@voyantjs/customer-portal-react 0.25.0 → 0.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +2 -0
- package/dist/hooks/use-customer-portal-mutation.d.ts +12 -27
- package/dist/hooks/use-customer-portal-mutation.d.ts.map +1 -1
- package/dist/hooks/use-customer-portal-profile-document-mutation.d.ts +69 -0
- package/dist/hooks/use-customer-portal-profile-document-mutation.d.ts.map +1 -0
- package/dist/hooks/use-customer-portal-profile-document-mutation.js +28 -0
- package/dist/hooks/use-customer-portal-profile-documents.d.ts +20 -0
- package/dist/hooks/use-customer-portal-profile-documents.d.ts.map +1 -0
- package/dist/hooks/use-customer-portal-profile-documents.js +12 -0
- package/dist/hooks/use-customer-portal-profile.d.ts +4 -9
- package/dist/hooks/use-customer-portal-profile.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/operations.d.ts +80 -28
- package/dist/operations.d.ts.map +1 -1
- package/dist/operations.js +22 -1
- package/dist/query-keys.d.ts +1 -0
- package/dist/query-keys.d.ts.map +1 -1
- package/dist/query-keys.js +1 -0
- package/dist/query-options.d.ts +84 -36
- package/dist/query-options.d.ts.map +1 -1
- package/dist/query-options.js +7 -1
- package/dist/schemas.d.ts +57 -32
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +4 -2
- package/package.json +5 -5
package/dist/hooks/index.d.ts
CHANGED
|
@@ -7,4 +7,6 @@ export { type UseCustomerPortalContactExistsOptions, useCustomerPortalContactExi
|
|
|
7
7
|
export { type DeleteCustomerPortalCompanionMutationInput, type UpdateCustomerPortalCompanionMutationInput, useCustomerPortalMutation, } from "./use-customer-portal-mutation.js";
|
|
8
8
|
export { type UseCustomerPortalPhoneContactExistsOptions, useCustomerPortalPhoneContactExists, } from "./use-customer-portal-phone-contact-exists.js";
|
|
9
9
|
export { type UseCustomerPortalProfileOptions, useCustomerPortalProfile, } from "./use-customer-portal-profile.js";
|
|
10
|
+
export { type UpdateCustomerPortalProfileDocumentMutationInput, useCustomerPortalProfileDocumentMutation, } from "./use-customer-portal-profile-document-mutation.js";
|
|
11
|
+
export { type UseCustomerPortalProfileDocumentsOptions, useCustomerPortalProfileDocuments, } from "./use-customer-portal-profile-documents.js";
|
|
10
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,+BAA+B,EACpC,wBAAwB,GACzB,MAAM,kCAAkC,CAAA;AACzC,OAAO,EACL,KAAK,6CAA6C,EAClD,sCAAsC,GACvC,MAAM,kDAAkD,CAAA;AACzD,OAAO,EACL,KAAK,wCAAwC,EAC7C,iCAAiC,GAClC,MAAM,4CAA4C,CAAA;AACnD,OAAO,EACL,KAAK,gCAAgC,EACrC,yBAAyB,GAC1B,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EACL,KAAK,kCAAkC,EACvC,2BAA2B,GAC5B,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EACL,KAAK,qCAAqC,EAC1C,8BAA8B,GAC/B,MAAM,yCAAyC,CAAA;AAChD,OAAO,EACL,KAAK,0CAA0C,EAC/C,KAAK,0CAA0C,EAC/C,yBAAyB,GAC1B,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EACL,KAAK,0CAA0C,EAC/C,mCAAmC,GACpC,MAAM,+CAA+C,CAAA;AACtD,OAAO,EACL,KAAK,+BAA+B,EACpC,wBAAwB,GACzB,MAAM,kCAAkC,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,+BAA+B,EACpC,wBAAwB,GACzB,MAAM,kCAAkC,CAAA;AACzC,OAAO,EACL,KAAK,6CAA6C,EAClD,sCAAsC,GACvC,MAAM,kDAAkD,CAAA;AACzD,OAAO,EACL,KAAK,wCAAwC,EAC7C,iCAAiC,GAClC,MAAM,4CAA4C,CAAA;AACnD,OAAO,EACL,KAAK,gCAAgC,EACrC,yBAAyB,GAC1B,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EACL,KAAK,kCAAkC,EACvC,2BAA2B,GAC5B,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EACL,KAAK,qCAAqC,EAC1C,8BAA8B,GAC/B,MAAM,yCAAyC,CAAA;AAChD,OAAO,EACL,KAAK,0CAA0C,EAC/C,KAAK,0CAA0C,EAC/C,yBAAyB,GAC1B,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EACL,KAAK,0CAA0C,EAC/C,mCAAmC,GACpC,MAAM,+CAA+C,CAAA;AACtD,OAAO,EACL,KAAK,+BAA+B,EACpC,wBAAwB,GACzB,MAAM,kCAAkC,CAAA;AACzC,OAAO,EACL,KAAK,gDAAgD,EACrD,wCAAwC,GACzC,MAAM,oDAAoD,CAAA;AAC3D,OAAO,EACL,KAAK,wCAAwC,EAC7C,iCAAiC,GAClC,MAAM,4CAA4C,CAAA"}
|
package/dist/hooks/index.js
CHANGED
|
@@ -7,3 +7,5 @@ export { useCustomerPortalContactExists, } from "./use-customer-portal-contact-e
|
|
|
7
7
|
export { useCustomerPortalMutation, } from "./use-customer-portal-mutation.js";
|
|
8
8
|
export { useCustomerPortalPhoneContactExists, } from "./use-customer-portal-phone-contact-exists.js";
|
|
9
9
|
export { useCustomerPortalProfile, } from "./use-customer-portal-profile.js";
|
|
10
|
+
export { useCustomerPortalProfileDocumentMutation, } from "./use-customer-portal-profile-document-mutation.js";
|
|
11
|
+
export { useCustomerPortalProfileDocuments, } from "./use-customer-portal-profile-documents.js";
|
|
@@ -30,15 +30,10 @@ export declare function useCustomerPortalMutation(): {
|
|
|
30
30
|
addressLine1: string | null;
|
|
31
31
|
addressLine2: string | null;
|
|
32
32
|
} | null;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
issuingCountry: string;
|
|
38
|
-
nationality: string | null;
|
|
39
|
-
expiryDate: string;
|
|
40
|
-
issueDate: string | null;
|
|
41
|
-
}[];
|
|
33
|
+
accessibility: string | null;
|
|
34
|
+
dietary: string | null;
|
|
35
|
+
loyalty: string | null;
|
|
36
|
+
insurance: string | null;
|
|
42
37
|
marketingConsent: boolean;
|
|
43
38
|
marketingConsentAt: string | null;
|
|
44
39
|
marketingConsentSource: string | null;
|
|
@@ -142,15 +137,10 @@ export declare function useCustomerPortalMutation(): {
|
|
|
142
137
|
addressLine1: string | null;
|
|
143
138
|
addressLine2: string | null;
|
|
144
139
|
} | null;
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
issuingCountry: string;
|
|
150
|
-
nationality: string | null;
|
|
151
|
-
expiryDate: string;
|
|
152
|
-
issueDate: string | null;
|
|
153
|
-
}[];
|
|
140
|
+
accessibility: string | null;
|
|
141
|
+
dietary: string | null;
|
|
142
|
+
loyalty: string | null;
|
|
143
|
+
insurance: string | null;
|
|
154
144
|
marketingConsent: boolean;
|
|
155
145
|
marketingConsentAt: string | null;
|
|
156
146
|
marketingConsentSource: string | null;
|
|
@@ -198,15 +188,10 @@ export declare function useCustomerPortalMutation(): {
|
|
|
198
188
|
addressLine1?: string | null | undefined;
|
|
199
189
|
addressLine2?: string | null | undefined;
|
|
200
190
|
} | undefined;
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
expiryDate: string;
|
|
206
|
-
issuingAuthority?: string | null | undefined;
|
|
207
|
-
nationality?: string | null | undefined;
|
|
208
|
-
issueDate?: string | null | undefined;
|
|
209
|
-
}[] | undefined;
|
|
191
|
+
accessibility?: string | null | undefined;
|
|
192
|
+
dietary?: string | null | undefined;
|
|
193
|
+
loyalty?: string | null | undefined;
|
|
194
|
+
insurance?: string | null | undefined;
|
|
210
195
|
marketingConsent?: boolean | undefined;
|
|
211
196
|
marketingConsentSource?: string | null | undefined;
|
|
212
197
|
notificationDefaults?: Record<string, unknown> | null | undefined;
|
|
@@ -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"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { UpdateCustomerPortalProfileDocumentInput } from "../schemas.js";
|
|
2
|
+
export interface UpdateCustomerPortalProfileDocumentMutationInput {
|
|
3
|
+
documentId: string;
|
|
4
|
+
input: UpdateCustomerPortalProfileDocumentInput;
|
|
5
|
+
}
|
|
6
|
+
export declare function useCustomerPortalProfileDocumentMutation(): {
|
|
7
|
+
create: import("@tanstack/react-query").UseMutationResult<{
|
|
8
|
+
data: {
|
|
9
|
+
id: string;
|
|
10
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
11
|
+
number: string | null;
|
|
12
|
+
issuingAuthority: string | null;
|
|
13
|
+
issuingCountry: string | null;
|
|
14
|
+
issueDate: string | null;
|
|
15
|
+
expiryDate: string | null;
|
|
16
|
+
attachmentId: string | null;
|
|
17
|
+
isPrimary: boolean;
|
|
18
|
+
notes: string | null;
|
|
19
|
+
createdAt: string;
|
|
20
|
+
updatedAt: string;
|
|
21
|
+
};
|
|
22
|
+
}, Error, {
|
|
23
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
24
|
+
number?: string | null | undefined;
|
|
25
|
+
issuingAuthority?: string | null | undefined;
|
|
26
|
+
issuingCountry?: string | null | undefined;
|
|
27
|
+
issueDate?: string | null | undefined;
|
|
28
|
+
expiryDate?: string | null | undefined;
|
|
29
|
+
attachmentId?: string | null | undefined;
|
|
30
|
+
isPrimary?: boolean | undefined;
|
|
31
|
+
notes?: string | null | undefined;
|
|
32
|
+
}, unknown>;
|
|
33
|
+
update: import("@tanstack/react-query").UseMutationResult<{
|
|
34
|
+
data: {
|
|
35
|
+
id: string;
|
|
36
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
37
|
+
number: string | null;
|
|
38
|
+
issuingAuthority: string | null;
|
|
39
|
+
issuingCountry: string | null;
|
|
40
|
+
issueDate: string | null;
|
|
41
|
+
expiryDate: string | null;
|
|
42
|
+
attachmentId: string | null;
|
|
43
|
+
isPrimary: boolean;
|
|
44
|
+
notes: string | null;
|
|
45
|
+
createdAt: string;
|
|
46
|
+
updatedAt: string;
|
|
47
|
+
};
|
|
48
|
+
}, Error, UpdateCustomerPortalProfileDocumentMutationInput, unknown>;
|
|
49
|
+
remove: import("@tanstack/react-query").UseMutationResult<{
|
|
50
|
+
success: boolean;
|
|
51
|
+
}, Error, string, unknown>;
|
|
52
|
+
setPrimary: import("@tanstack/react-query").UseMutationResult<{
|
|
53
|
+
data: {
|
|
54
|
+
id: string;
|
|
55
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
56
|
+
number: string | null;
|
|
57
|
+
issuingAuthority: string | null;
|
|
58
|
+
issuingCountry: string | null;
|
|
59
|
+
issueDate: string | null;
|
|
60
|
+
expiryDate: string | null;
|
|
61
|
+
attachmentId: string | null;
|
|
62
|
+
isPrimary: boolean;
|
|
63
|
+
notes: string | null;
|
|
64
|
+
createdAt: string;
|
|
65
|
+
updatedAt: string;
|
|
66
|
+
};
|
|
67
|
+
}, Error, string, unknown>;
|
|
68
|
+
};
|
|
69
|
+
//# sourceMappingURL=use-customer-portal-profile-document-mutation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-customer-portal-profile-document-mutation.d.ts","sourceRoot":"","sources":["../../src/hooks/use-customer-portal-profile-document-mutation.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAEV,wCAAwC,EACzC,MAAM,eAAe,CAAA;AAEtB,MAAM,WAAW,gDAAgD;IAC/D,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,wCAAwC,CAAA;CAChD;AAED,wBAAgB,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiCvD"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useMutation, useQueryClient } from "@tanstack/react-query";
|
|
3
|
+
import { createCustomerPortalProfileDocument, deleteCustomerPortalProfileDocument, setPrimaryCustomerPortalProfileDocument, updateCustomerPortalProfileDocument, } from "../operations.js";
|
|
4
|
+
import { useVoyantCustomerPortalContext } from "../provider.js";
|
|
5
|
+
import { customerPortalQueryKeys } from "../query-keys.js";
|
|
6
|
+
export function useCustomerPortalProfileDocumentMutation() {
|
|
7
|
+
const { baseUrl, fetcher } = useVoyantCustomerPortalContext();
|
|
8
|
+
const queryClient = useQueryClient();
|
|
9
|
+
const client = { baseUrl, fetcher };
|
|
10
|
+
const invalidate = () => queryClient.invalidateQueries({ queryKey: customerPortalQueryKeys.profileDocuments() });
|
|
11
|
+
const create = useMutation({
|
|
12
|
+
mutationFn: async (input) => createCustomerPortalProfileDocument(client, input),
|
|
13
|
+
onSuccess: invalidate,
|
|
14
|
+
});
|
|
15
|
+
const update = useMutation({
|
|
16
|
+
mutationFn: async ({ documentId, input }) => updateCustomerPortalProfileDocument(client, documentId, input),
|
|
17
|
+
onSuccess: invalidate,
|
|
18
|
+
});
|
|
19
|
+
const remove = useMutation({
|
|
20
|
+
mutationFn: async (documentId) => deleteCustomerPortalProfileDocument(client, documentId),
|
|
21
|
+
onSuccess: invalidate,
|
|
22
|
+
});
|
|
23
|
+
const setPrimary = useMutation({
|
|
24
|
+
mutationFn: async (documentId) => setPrimaryCustomerPortalProfileDocument(client, documentId),
|
|
25
|
+
onSuccess: invalidate,
|
|
26
|
+
});
|
|
27
|
+
return { create, update, remove, setPrimary };
|
|
28
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface UseCustomerPortalProfileDocumentsOptions {
|
|
2
|
+
enabled?: boolean;
|
|
3
|
+
}
|
|
4
|
+
export declare function useCustomerPortalProfileDocuments(options?: UseCustomerPortalProfileDocumentsOptions): import("@tanstack/react-query").UseQueryResult<{
|
|
5
|
+
data: {
|
|
6
|
+
id: string;
|
|
7
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
8
|
+
number: string | null;
|
|
9
|
+
issuingAuthority: string | null;
|
|
10
|
+
issuingCountry: string | null;
|
|
11
|
+
issueDate: string | null;
|
|
12
|
+
expiryDate: string | null;
|
|
13
|
+
attachmentId: string | null;
|
|
14
|
+
isPrimary: boolean;
|
|
15
|
+
notes: string | null;
|
|
16
|
+
createdAt: string;
|
|
17
|
+
updatedAt: string;
|
|
18
|
+
}[];
|
|
19
|
+
}, Error>;
|
|
20
|
+
//# sourceMappingURL=use-customer-portal-profile-documents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-customer-portal-profile-documents.d.ts","sourceRoot":"","sources":["../../src/hooks/use-customer-portal-profile-documents.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,wCAAwC;IACvD,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,iCAAiC,CAC/C,OAAO,GAAE,wCAA6C;;;;;;;;;;;;;;;UASvD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useQuery } from "@tanstack/react-query";
|
|
3
|
+
import { useVoyantCustomerPortalContext } from "../provider.js";
|
|
4
|
+
import { getCustomerPortalProfileDocumentsQueryOptions } from "../query-options.js";
|
|
5
|
+
export function useCustomerPortalProfileDocuments(options = {}) {
|
|
6
|
+
const { baseUrl, fetcher } = useVoyantCustomerPortalContext();
|
|
7
|
+
const { enabled = true } = options;
|
|
8
|
+
return useQuery({
|
|
9
|
+
...getCustomerPortalProfileDocumentsQueryOptions({ baseUrl, fetcher }),
|
|
10
|
+
enabled,
|
|
11
|
+
});
|
|
12
|
+
}
|
|
@@ -22,15 +22,10 @@ export declare function useCustomerPortalProfile(options?: UseCustomerPortalProf
|
|
|
22
22
|
addressLine1: string | null;
|
|
23
23
|
addressLine2: string | null;
|
|
24
24
|
} | null;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
issuingCountry: string;
|
|
30
|
-
nationality: string | null;
|
|
31
|
-
expiryDate: string;
|
|
32
|
-
issueDate: string | null;
|
|
33
|
-
}[];
|
|
25
|
+
accessibility: string | null;
|
|
26
|
+
dietary: string | null;
|
|
27
|
+
loyalty: string | null;
|
|
28
|
+
insurance: string | null;
|
|
34
29
|
marketingConsent: boolean;
|
|
35
30
|
marketingConsentAt: string | null;
|
|
36
31
|
marketingConsentSource: string | null;
|
|
@@ -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,9 +1,9 @@
|
|
|
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, importCustomerPortalBookingTravelers, listCustomerPortalBookingDocuments, listCustomerPortalBookings, listCustomerPortalCompanions, updateCustomerPortalCompanion, updateCustomerPortalProfile, } from "./operations.js";
|
|
3
|
+
export { bootstrapCustomerPortal, createCustomerPortalCompanion, createCustomerPortalProfileDocument, deleteCustomerPortalCompanion, deleteCustomerPortalProfileDocument, getCustomerPortalBooking, getCustomerPortalBookingBillingContact, getCustomerPortalContactExists, getCustomerPortalPhoneContactExists, getCustomerPortalProfile, importCustomerPortalBookingParticipants, importCustomerPortalBookingTravelers, listCustomerPortalBookingDocuments, listCustomerPortalBookings, listCustomerPortalCompanions, listCustomerPortalProfileDocuments, setPrimaryCustomerPortalProfileDocument, updateCustomerPortalCompanion, updateCustomerPortalProfile, updateCustomerPortalProfileDocument, } 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";
|
|
7
|
-
export { getCustomerPortalBookingBillingContactQueryOptions, getCustomerPortalBookingDocumentsQueryOptions, getCustomerPortalBookingQueryOptions, getCustomerPortalBookingsQueryOptions, getCustomerPortalCompanionsQueryOptions, getCustomerPortalContactExistsQueryOptions, getCustomerPortalPhoneContactExistsQueryOptions, getCustomerPortalProfileQueryOptions, } from "./query-options.js";
|
|
7
|
+
export { getCustomerPortalBookingBillingContactQueryOptions, getCustomerPortalBookingDocumentsQueryOptions, getCustomerPortalBookingQueryOptions, getCustomerPortalBookingsQueryOptions, getCustomerPortalCompanionsQueryOptions, getCustomerPortalContactExistsQueryOptions, getCustomerPortalPhoneContactExistsQueryOptions, getCustomerPortalProfileDocumentsQueryOptions, getCustomerPortalProfileQueryOptions, } from "./query-options.js";
|
|
8
8
|
export * from "./schemas.js";
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
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,oCAAoC,EACpC,kCAAkC,EAClC,0BAA0B,EAC1B,4BAA4B,EAC5B,6BAA6B,EAC7B,2BAA2B,
|
|
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,mCAAmC,EACnC,6BAA6B,EAC7B,mCAAmC,EACnC,wBAAwB,EACxB,sCAAsC,EACtC,8BAA8B,EAC9B,mCAAmC,EACnC,wBAAwB,EACxB,uCAAuC,EACvC,oCAAoC,EACpC,kCAAkC,EAClC,0BAA0B,EAC1B,4BAA4B,EAC5B,kCAAkC,EAClC,uCAAuC,EACvC,6BAA6B,EAC7B,2BAA2B,EAC3B,mCAAmC,GACpC,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,6CAA6C,EAC7C,oCAAoC,GACrC,MAAM,oBAAoB,CAAA;AAC3B,cAAc,cAAc,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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, importCustomerPortalBookingTravelers, listCustomerPortalBookingDocuments, listCustomerPortalBookings, listCustomerPortalCompanions, updateCustomerPortalCompanion, updateCustomerPortalProfile, } from "./operations.js";
|
|
3
|
+
export { bootstrapCustomerPortal, createCustomerPortalCompanion, createCustomerPortalProfileDocument, deleteCustomerPortalCompanion, deleteCustomerPortalProfileDocument, getCustomerPortalBooking, getCustomerPortalBookingBillingContact, getCustomerPortalContactExists, getCustomerPortalPhoneContactExists, getCustomerPortalProfile, importCustomerPortalBookingParticipants, importCustomerPortalBookingTravelers, listCustomerPortalBookingDocuments, listCustomerPortalBookings, listCustomerPortalCompanions, listCustomerPortalProfileDocuments, setPrimaryCustomerPortalProfileDocument, updateCustomerPortalCompanion, updateCustomerPortalProfile, updateCustomerPortalProfileDocument, } from "./operations.js";
|
|
4
4
|
export { useVoyantCustomerPortalContext, VoyantCustomerPortalProvider, } from "./provider.js";
|
|
5
5
|
export { customerPortalQueryKeys } from "./query-keys.js";
|
|
6
|
-
export { getCustomerPortalBookingBillingContactQueryOptions, getCustomerPortalBookingDocumentsQueryOptions, getCustomerPortalBookingQueryOptions, getCustomerPortalBookingsQueryOptions, getCustomerPortalCompanionsQueryOptions, getCustomerPortalContactExistsQueryOptions, getCustomerPortalPhoneContactExistsQueryOptions, getCustomerPortalProfileQueryOptions, } from "./query-options.js";
|
|
6
|
+
export { getCustomerPortalBookingBillingContactQueryOptions, getCustomerPortalBookingDocumentsQueryOptions, getCustomerPortalBookingQueryOptions, getCustomerPortalBookingsQueryOptions, getCustomerPortalCompanionsQueryOptions, getCustomerPortalContactExistsQueryOptions, getCustomerPortalPhoneContactExistsQueryOptions, getCustomerPortalProfileDocumentsQueryOptions, getCustomerPortalProfileQueryOptions, } from "./query-options.js";
|
|
7
7
|
export * from "./schemas.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 ImportCustomerPortalBookingTravelersInput, type UpdateCustomerPortalCompanionInput, type UpdateCustomerPortalProfileInput } from "./schemas.js";
|
|
2
|
+
import { type BootstrapCustomerPortalInput, type CreateCustomerPortalCompanionInput, type CreateCustomerPortalProfileDocumentInput, type ImportCustomerPortalBookingTravelersInput, type UpdateCustomerPortalCompanionInput, type UpdateCustomerPortalProfileDocumentInput, type UpdateCustomerPortalProfileInput } from "./schemas.js";
|
|
3
3
|
export declare function getCustomerPortalContactExists(client: FetchWithValidationOptions, email: string): Promise<{
|
|
4
4
|
data: {
|
|
5
5
|
email: string;
|
|
@@ -36,15 +36,10 @@ export declare function getCustomerPortalProfile(client: FetchWithValidationOpti
|
|
|
36
36
|
addressLine1: string | null;
|
|
37
37
|
addressLine2: string | null;
|
|
38
38
|
} | null;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
issuingCountry: string;
|
|
44
|
-
nationality: string | null;
|
|
45
|
-
expiryDate: string;
|
|
46
|
-
issueDate: string | null;
|
|
47
|
-
}[];
|
|
39
|
+
accessibility: string | null;
|
|
40
|
+
dietary: string | null;
|
|
41
|
+
loyalty: string | null;
|
|
42
|
+
insurance: string | null;
|
|
48
43
|
marketingConsent: boolean;
|
|
49
44
|
marketingConsentAt: string | null;
|
|
50
45
|
marketingConsentSource: string | null;
|
|
@@ -97,15 +92,10 @@ export declare function updateCustomerPortalProfile(client: FetchWithValidationO
|
|
|
97
92
|
addressLine1: string | null;
|
|
98
93
|
addressLine2: string | null;
|
|
99
94
|
} | null;
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
issuingCountry: string;
|
|
105
|
-
nationality: string | null;
|
|
106
|
-
expiryDate: string;
|
|
107
|
-
issueDate: string | null;
|
|
108
|
-
}[];
|
|
95
|
+
accessibility: string | null;
|
|
96
|
+
dietary: string | null;
|
|
97
|
+
loyalty: string | null;
|
|
98
|
+
insurance: string | null;
|
|
109
99
|
marketingConsent: boolean;
|
|
110
100
|
marketingConsentAt: string | null;
|
|
111
101
|
marketingConsentSource: string | null;
|
|
@@ -160,15 +150,10 @@ export declare function bootstrapCustomerPortal(client: FetchWithValidationOptio
|
|
|
160
150
|
addressLine1: string | null;
|
|
161
151
|
addressLine2: string | null;
|
|
162
152
|
} | null;
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
issuingCountry: string;
|
|
168
|
-
nationality: string | null;
|
|
169
|
-
expiryDate: string;
|
|
170
|
-
issueDate: string | null;
|
|
171
|
-
}[];
|
|
153
|
+
accessibility: string | null;
|
|
154
|
+
dietary: string | null;
|
|
155
|
+
loyalty: string | null;
|
|
156
|
+
insurance: string | null;
|
|
172
157
|
marketingConsent: boolean;
|
|
173
158
|
marketingConsentAt: string | null;
|
|
174
159
|
marketingConsentSource: string | null;
|
|
@@ -533,4 +518,71 @@ export declare function listCustomerPortalBookingDocuments(client: FetchWithVali
|
|
|
533
518
|
reference: string | null;
|
|
534
519
|
}[];
|
|
535
520
|
}>;
|
|
521
|
+
export declare function listCustomerPortalProfileDocuments(client: FetchWithValidationOptions): Promise<{
|
|
522
|
+
data: {
|
|
523
|
+
id: string;
|
|
524
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
525
|
+
number: string | null;
|
|
526
|
+
issuingAuthority: string | null;
|
|
527
|
+
issuingCountry: string | null;
|
|
528
|
+
issueDate: string | null;
|
|
529
|
+
expiryDate: string | null;
|
|
530
|
+
attachmentId: string | null;
|
|
531
|
+
isPrimary: boolean;
|
|
532
|
+
notes: string | null;
|
|
533
|
+
createdAt: string;
|
|
534
|
+
updatedAt: string;
|
|
535
|
+
}[];
|
|
536
|
+
}>;
|
|
537
|
+
export declare function createCustomerPortalProfileDocument(client: FetchWithValidationOptions, input: CreateCustomerPortalProfileDocumentInput): Promise<{
|
|
538
|
+
data: {
|
|
539
|
+
id: string;
|
|
540
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
541
|
+
number: string | null;
|
|
542
|
+
issuingAuthority: string | null;
|
|
543
|
+
issuingCountry: string | null;
|
|
544
|
+
issueDate: string | null;
|
|
545
|
+
expiryDate: string | null;
|
|
546
|
+
attachmentId: string | null;
|
|
547
|
+
isPrimary: boolean;
|
|
548
|
+
notes: string | null;
|
|
549
|
+
createdAt: string;
|
|
550
|
+
updatedAt: string;
|
|
551
|
+
};
|
|
552
|
+
}>;
|
|
553
|
+
export declare function updateCustomerPortalProfileDocument(client: FetchWithValidationOptions, documentId: string, input: UpdateCustomerPortalProfileDocumentInput): Promise<{
|
|
554
|
+
data: {
|
|
555
|
+
id: string;
|
|
556
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
557
|
+
number: string | null;
|
|
558
|
+
issuingAuthority: string | null;
|
|
559
|
+
issuingCountry: string | null;
|
|
560
|
+
issueDate: string | null;
|
|
561
|
+
expiryDate: string | null;
|
|
562
|
+
attachmentId: string | null;
|
|
563
|
+
isPrimary: boolean;
|
|
564
|
+
notes: string | null;
|
|
565
|
+
createdAt: string;
|
|
566
|
+
updatedAt: string;
|
|
567
|
+
};
|
|
568
|
+
}>;
|
|
569
|
+
export declare function deleteCustomerPortalProfileDocument(client: FetchWithValidationOptions, documentId: string): Promise<{
|
|
570
|
+
success: boolean;
|
|
571
|
+
}>;
|
|
572
|
+
export declare function setPrimaryCustomerPortalProfileDocument(client: FetchWithValidationOptions, documentId: string): Promise<{
|
|
573
|
+
data: {
|
|
574
|
+
id: string;
|
|
575
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
576
|
+
number: string | null;
|
|
577
|
+
issuingAuthority: string | null;
|
|
578
|
+
issuingCountry: string | null;
|
|
579
|
+
issueDate: string | null;
|
|
580
|
+
expiryDate: string | null;
|
|
581
|
+
attachmentId: string | null;
|
|
582
|
+
isPrimary: boolean;
|
|
583
|
+
notes: string | null;
|
|
584
|
+
createdAt: string;
|
|
585
|
+
updatedAt: string;
|
|
586
|
+
};
|
|
587
|
+
}>;
|
|
536
588
|
//# sourceMappingURL=operations.d.ts.map
|
package/dist/operations.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../src/operations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,0BAA0B,EAAwC,MAAM,aAAa,CAAA;AACnG,OAAO,EACL,KAAK,4BAA4B,EACjC,KAAK,kCAAkC,
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../src/operations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,0BAA0B,EAAwC,MAAM,aAAa,CAAA;AACnG,OAAO,EACL,KAAK,4BAA4B,EACjC,KAAK,kCAAkC,EACvC,KAAK,wCAAwC,EAc7C,KAAK,yCAAyC,EAE9C,KAAK,kCAAkC,EACvC,KAAK,wCAAwC,EAC7C,KAAK,gCAAgC,EACtC,MAAM,cAAc,CAAA;AAErB,wBAAgB,8BAA8B,CAAC,MAAM,EAAE,0BAA0B,EAAE,KAAK,EAAE,MAA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;;;;;;;;;;;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;AAED,wBAAgB,kCAAkC,CAAC,MAAM,EAAE,0BAA0B;;;;;;;;;;;;;;;GAMpF;AAED,wBAAgB,mCAAmC,CACjD,MAAM,EAAE,0BAA0B,EAClC,KAAK,EAAE,wCAAwC;;;;;;;;;;;;;;;GAWhD;AAED,wBAAgB,mCAAmC,CACjD,MAAM,EAAE,0BAA0B,EAClC,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,wCAAwC;;;;;;;;;;;;;;;GAWhD;AAED,wBAAgB,mCAAmC,CACjD,MAAM,EAAE,0BAA0B,EAClC,UAAU,EAAE,MAAM;;GAQnB;AAED,wBAAgB,uCAAuC,CACrD,MAAM,EAAE,0BAA0B,EAClC,UAAU,EAAE,MAAM;;;;;;;;;;;;;;;GAQnB"}
|
package/dist/operations.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { fetchWithValidation, withQueryParams } from "./client.js";
|
|
3
|
-
import { customerPortalBookingBillingContactResponseSchema, customerPortalBookingDocumentsResponseSchema, customerPortalBookingResponseSchema, customerPortalBookingsResponseSchema, customerPortalBootstrapResponseSchema, customerPortalCompanionImportResponseSchema, customerPortalCompanionResponseSchema, customerPortalCompanionsResponseSchema, customerPortalContactExistsResponseSchema, customerPortalPhoneContactExistsResponseSchema, customerPortalProfileResponseSchema, successEnvelope, } from "./schemas.js";
|
|
3
|
+
import { customerPortalBookingBillingContactResponseSchema, customerPortalBookingDocumentsResponseSchema, customerPortalBookingResponseSchema, customerPortalBookingsResponseSchema, customerPortalBootstrapResponseSchema, customerPortalCompanionImportResponseSchema, customerPortalCompanionResponseSchema, customerPortalCompanionsResponseSchema, customerPortalContactExistsResponseSchema, customerPortalPhoneContactExistsResponseSchema, customerPortalProfileDocumentResponseSchema, customerPortalProfileDocumentsResponseSchema, customerPortalProfileResponseSchema, successEnvelope, } from "./schemas.js";
|
|
4
4
|
export function getCustomerPortalContactExists(client, email) {
|
|
5
5
|
return fetchWithValidation(withQueryParams("/v1/public/customer-portal/contact-exists", { email }), customerPortalContactExistsResponseSchema, client);
|
|
6
6
|
}
|
|
@@ -61,3 +61,24 @@ export function getCustomerPortalBookingBillingContact(client, bookingId) {
|
|
|
61
61
|
export function listCustomerPortalBookingDocuments(client, bookingId) {
|
|
62
62
|
return fetchWithValidation(`/v1/public/customer-portal/bookings/${bookingId}/documents`, customerPortalBookingDocumentsResponseSchema, client);
|
|
63
63
|
}
|
|
64
|
+
export function listCustomerPortalProfileDocuments(client) {
|
|
65
|
+
return fetchWithValidation("/v1/public/customer-portal/me/documents", customerPortalProfileDocumentsResponseSchema, client);
|
|
66
|
+
}
|
|
67
|
+
export function createCustomerPortalProfileDocument(client, input) {
|
|
68
|
+
return fetchWithValidation("/v1/public/customer-portal/me/documents", customerPortalProfileDocumentResponseSchema, client, {
|
|
69
|
+
method: "POST",
|
|
70
|
+
body: JSON.stringify(input),
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
export function updateCustomerPortalProfileDocument(client, documentId, input) {
|
|
74
|
+
return fetchWithValidation(`/v1/public/customer-portal/me/documents/${documentId}`, customerPortalProfileDocumentResponseSchema, client, {
|
|
75
|
+
method: "PATCH",
|
|
76
|
+
body: JSON.stringify(input),
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
export function deleteCustomerPortalProfileDocument(client, documentId) {
|
|
80
|
+
return fetchWithValidation(`/v1/public/customer-portal/me/documents/${documentId}`, successEnvelope, client, { method: "DELETE" });
|
|
81
|
+
}
|
|
82
|
+
export function setPrimaryCustomerPortalProfileDocument(client, documentId) {
|
|
83
|
+
return fetchWithValidation(`/v1/public/customer-portal/me/documents/${documentId}/set-primary`, customerPortalProfileDocumentResponseSchema, client, { method: "POST" });
|
|
84
|
+
}
|
package/dist/query-keys.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export interface CustomerPortalPhoneContactExistsFilters {
|
|
|
7
7
|
export declare const customerPortalQueryKeys: {
|
|
8
8
|
all: readonly ["customer-portal"];
|
|
9
9
|
profile: () => readonly ["customer-portal", "profile"];
|
|
10
|
+
profileDocuments: () => readonly ["customer-portal", "profile", "documents"];
|
|
10
11
|
companions: () => readonly ["customer-portal", "companions"];
|
|
11
12
|
bookings: () => readonly ["customer-portal", "bookings"];
|
|
12
13
|
booking: (bookingId: string) => readonly ["customer-portal", "bookings", string];
|
package/dist/query-keys.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-keys.d.ts","sourceRoot":"","sources":["../src/query-keys.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kCAAkC;IACjD,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,uCAAuC;IACtD,KAAK,EAAE,MAAM,CAAA;CACd;AAED,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"query-keys.d.ts","sourceRoot":"","sources":["../src/query-keys.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kCAAkC;IACjD,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,uCAAuC;IACtD,KAAK,EAAE,MAAM,CAAA;CACd;AAED,eAAO,MAAM,uBAAuB;;;;;;yBAMb,MAAM;uCACQ,MAAM;kCAEX,MAAM;;mCAGL,kCAAkC;;wCAG7B,uCAAuC;CAE5E,CAAA"}
|
package/dist/query-keys.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export const customerPortalQueryKeys = {
|
|
2
2
|
all: ["customer-portal"],
|
|
3
3
|
profile: () => [...customerPortalQueryKeys.all, "profile"],
|
|
4
|
+
profileDocuments: () => [...customerPortalQueryKeys.profile(), "documents"],
|
|
4
5
|
companions: () => [...customerPortalQueryKeys.all, "companions"],
|
|
5
6
|
bookings: () => [...customerPortalQueryKeys.all, "bookings"],
|
|
6
7
|
booking: (bookingId) => [...customerPortalQueryKeys.bookings(), bookingId],
|
package/dist/query-options.d.ts
CHANGED
|
@@ -21,15 +21,10 @@ export declare function getCustomerPortalProfileQueryOptions(client: FetchWithVa
|
|
|
21
21
|
addressLine1: string | null;
|
|
22
22
|
addressLine2: string | null;
|
|
23
23
|
} | null;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
issuingCountry: string;
|
|
29
|
-
nationality: string | null;
|
|
30
|
-
expiryDate: string;
|
|
31
|
-
issueDate: string | null;
|
|
32
|
-
}[];
|
|
24
|
+
accessibility: string | null;
|
|
25
|
+
dietary: string | null;
|
|
26
|
+
loyalty: string | null;
|
|
27
|
+
insurance: string | null;
|
|
33
28
|
marketingConsent: boolean;
|
|
34
29
|
marketingConsentAt: string | null;
|
|
35
30
|
marketingConsentSource: string | null;
|
|
@@ -81,15 +76,10 @@ export declare function getCustomerPortalProfileQueryOptions(client: FetchWithVa
|
|
|
81
76
|
addressLine1: string | null;
|
|
82
77
|
addressLine2: string | null;
|
|
83
78
|
} | null;
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
issuingCountry: string;
|
|
89
|
-
nationality: string | null;
|
|
90
|
-
expiryDate: string;
|
|
91
|
-
issueDate: string | null;
|
|
92
|
-
}[];
|
|
79
|
+
accessibility: string | null;
|
|
80
|
+
dietary: string | null;
|
|
81
|
+
loyalty: string | null;
|
|
82
|
+
insurance: string | null;
|
|
93
83
|
marketingConsent: boolean;
|
|
94
84
|
marketingConsentAt: string | null;
|
|
95
85
|
marketingConsentSource: string | null;
|
|
@@ -142,15 +132,10 @@ export declare function getCustomerPortalProfileQueryOptions(client: FetchWithVa
|
|
|
142
132
|
addressLine1: string | null;
|
|
143
133
|
addressLine2: string | null;
|
|
144
134
|
} | null;
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
issuingCountry: string;
|
|
150
|
-
nationality: string | null;
|
|
151
|
-
expiryDate: string;
|
|
152
|
-
issueDate: string | null;
|
|
153
|
-
}[];
|
|
135
|
+
accessibility: string | null;
|
|
136
|
+
dietary: string | null;
|
|
137
|
+
loyalty: string | null;
|
|
138
|
+
insurance: string | null;
|
|
154
139
|
marketingConsent: boolean;
|
|
155
140
|
marketingConsentAt: string | null;
|
|
156
141
|
marketingConsentSource: string | null;
|
|
@@ -205,15 +190,10 @@ export declare function getCustomerPortalProfileQueryOptions(client: FetchWithVa
|
|
|
205
190
|
addressLine1: string | null;
|
|
206
191
|
addressLine2: string | null;
|
|
207
192
|
} | null;
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
issuingCountry: string;
|
|
213
|
-
nationality: string | null;
|
|
214
|
-
expiryDate: string;
|
|
215
|
-
issueDate: string | null;
|
|
216
|
-
}[];
|
|
193
|
+
accessibility: string | null;
|
|
194
|
+
dietary: string | null;
|
|
195
|
+
loyalty: string | null;
|
|
196
|
+
insurance: string | null;
|
|
217
197
|
marketingConsent: boolean;
|
|
218
198
|
marketingConsentAt: string | null;
|
|
219
199
|
marketingConsentSource: string | null;
|
|
@@ -248,6 +228,74 @@ export declare function getCustomerPortalProfileQueryOptions(client: FetchWithVa
|
|
|
248
228
|
[dataTagErrorSymbol]: Error;
|
|
249
229
|
};
|
|
250
230
|
};
|
|
231
|
+
export declare function getCustomerPortalProfileDocumentsQueryOptions(client: FetchWithValidationOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
232
|
+
data: {
|
|
233
|
+
id: string;
|
|
234
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
235
|
+
number: string | null;
|
|
236
|
+
issuingAuthority: string | null;
|
|
237
|
+
issuingCountry: string | null;
|
|
238
|
+
issueDate: string | null;
|
|
239
|
+
expiryDate: string | null;
|
|
240
|
+
attachmentId: string | null;
|
|
241
|
+
isPrimary: boolean;
|
|
242
|
+
notes: string | null;
|
|
243
|
+
createdAt: string;
|
|
244
|
+
updatedAt: string;
|
|
245
|
+
}[];
|
|
246
|
+
}, Error, {
|
|
247
|
+
data: {
|
|
248
|
+
id: string;
|
|
249
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
250
|
+
number: string | null;
|
|
251
|
+
issuingAuthority: string | null;
|
|
252
|
+
issuingCountry: string | null;
|
|
253
|
+
issueDate: string | null;
|
|
254
|
+
expiryDate: string | null;
|
|
255
|
+
attachmentId: string | null;
|
|
256
|
+
isPrimary: boolean;
|
|
257
|
+
notes: string | null;
|
|
258
|
+
createdAt: string;
|
|
259
|
+
updatedAt: string;
|
|
260
|
+
}[];
|
|
261
|
+
}, readonly ["customer-portal", "profile", "documents"]>, "queryFn"> & {
|
|
262
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
263
|
+
data: {
|
|
264
|
+
id: string;
|
|
265
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
266
|
+
number: string | null;
|
|
267
|
+
issuingAuthority: string | null;
|
|
268
|
+
issuingCountry: string | null;
|
|
269
|
+
issueDate: string | null;
|
|
270
|
+
expiryDate: string | null;
|
|
271
|
+
attachmentId: string | null;
|
|
272
|
+
isPrimary: boolean;
|
|
273
|
+
notes: string | null;
|
|
274
|
+
createdAt: string;
|
|
275
|
+
updatedAt: string;
|
|
276
|
+
}[];
|
|
277
|
+
}, readonly ["customer-portal", "profile", "documents"], never> | undefined;
|
|
278
|
+
} & {
|
|
279
|
+
queryKey: readonly ["customer-portal", "profile", "documents"] & {
|
|
280
|
+
[dataTagSymbol]: {
|
|
281
|
+
data: {
|
|
282
|
+
id: string;
|
|
283
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
284
|
+
number: string | null;
|
|
285
|
+
issuingAuthority: string | null;
|
|
286
|
+
issuingCountry: string | null;
|
|
287
|
+
issueDate: string | null;
|
|
288
|
+
expiryDate: string | null;
|
|
289
|
+
attachmentId: string | null;
|
|
290
|
+
isPrimary: boolean;
|
|
291
|
+
notes: string | null;
|
|
292
|
+
createdAt: string;
|
|
293
|
+
updatedAt: string;
|
|
294
|
+
}[];
|
|
295
|
+
};
|
|
296
|
+
[dataTagErrorSymbol]: Error;
|
|
297
|
+
};
|
|
298
|
+
};
|
|
251
299
|
export declare function getCustomerPortalCompanionsQueryOptions(client: FetchWithValidationOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
252
300
|
data: {
|
|
253
301
|
id: 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;
|
|
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;AAY7D,OAAO,EACL,KAAK,kCAAkC,EACvC,KAAK,uCAAuC,EAE7C,MAAM,iBAAiB,CAAA;AAExB,wBAAgB,oCAAoC,CAAC,MAAM,EAAE,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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0BAA0B,EAClC,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMlB;AAED,wBAAgB,6CAA6C,CAC3D,MAAM,EAAE,0BAA0B,EAClC,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMlB;AAED,wBAAgB,0CAA0C,CACxD,OAAO,EAAE,kCAAkC,EAC3C,MAAM,EAAE,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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/query-options.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { queryOptions } from "@tanstack/react-query";
|
|
3
|
-
import { getCustomerPortalBooking, getCustomerPortalBookingBillingContact, getCustomerPortalContactExists, getCustomerPortalPhoneContactExists, getCustomerPortalProfile, listCustomerPortalBookingDocuments, listCustomerPortalBookings, listCustomerPortalCompanions, } from "./operations.js";
|
|
3
|
+
import { getCustomerPortalBooking, getCustomerPortalBookingBillingContact, getCustomerPortalContactExists, getCustomerPortalPhoneContactExists, getCustomerPortalProfile, listCustomerPortalBookingDocuments, listCustomerPortalBookings, listCustomerPortalCompanions, listCustomerPortalProfileDocuments, } from "./operations.js";
|
|
4
4
|
import { customerPortalQueryKeys, } from "./query-keys.js";
|
|
5
5
|
export function getCustomerPortalProfileQueryOptions(client) {
|
|
6
6
|
return queryOptions({
|
|
@@ -8,6 +8,12 @@ export function getCustomerPortalProfileQueryOptions(client) {
|
|
|
8
8
|
queryFn: () => getCustomerPortalProfile(client),
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
|
+
export function getCustomerPortalProfileDocumentsQueryOptions(client) {
|
|
12
|
+
return queryOptions({
|
|
13
|
+
queryKey: customerPortalQueryKeys.profileDocuments(),
|
|
14
|
+
queryFn: () => listCustomerPortalProfileDocuments(client),
|
|
15
|
+
});
|
|
16
|
+
}
|
|
11
17
|
export function getCustomerPortalCompanionsQueryOptions(client) {
|
|
12
18
|
return queryOptions({
|
|
13
19
|
queryKey: customerPortalQueryKeys.companions(),
|
package/dist/schemas.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bootstrapCustomerPortalResultSchema, bootstrapCustomerPortalSchema, createCustomerPortalCompanionSchema, customerPortalBookingBillingContactSchema, customerPortalBookingDetailSchema, customerPortalBookingDocumentSchema, customerPortalBookingSummarySchema, customerPortalCompanionSchema, customerPortalContactExistsResultSchema, customerPortalPhoneContactExistsResultSchema, customerPortalProfileSchema, importCustomerPortalBookingTravelersResultSchema, importCustomerPortalBookingTravelersSchema, updateCustomerPortalCompanionSchema, updateCustomerPortalProfileSchema } from "@voyantjs/customer-portal";
|
|
1
|
+
import { bootstrapCustomerPortalResultSchema, bootstrapCustomerPortalSchema, createCustomerPortalCompanionSchema, createCustomerPortalProfileDocumentSchema, customerPortalBookingBillingContactSchema, customerPortalBookingDetailSchema, customerPortalBookingDocumentSchema, customerPortalBookingSummarySchema, customerPortalCompanionSchema, customerPortalContactExistsResultSchema, customerPortalPhoneContactExistsResultSchema, customerPortalProfileDocumentSchema, customerPortalProfileSchema, importCustomerPortalBookingTravelersResultSchema, importCustomerPortalBookingTravelersSchema, updateCustomerPortalCompanionSchema, updateCustomerPortalProfileDocumentSchema, 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;
|
|
@@ -57,7 +57,7 @@ export declare const importCustomerPortalBookingParticipantsResultSchema: z.ZodO
|
|
|
57
57
|
}, z.core.$strip>>;
|
|
58
58
|
skippedCount: z.ZodNumber;
|
|
59
59
|
}, z.core.$strip>;
|
|
60
|
-
export { bootstrapCustomerPortalResultSchema, bootstrapCustomerPortalSchema, createCustomerPortalCompanionSchema, customerPortalBookingBillingContactSchema, customerPortalBookingDetailSchema, customerPortalBookingDocumentSchema, customerPortalBookingSummarySchema, customerPortalCompanionSchema, customerPortalContactExistsResultSchema, customerPortalPhoneContactExistsResultSchema, customerPortalProfileSchema, importCustomerPortalBookingTravelersResultSchema, importCustomerPortalBookingTravelersSchema, updateCustomerPortalCompanionSchema, updateCustomerPortalProfileSchema, };
|
|
60
|
+
export { bootstrapCustomerPortalResultSchema, bootstrapCustomerPortalSchema, createCustomerPortalCompanionSchema, createCustomerPortalProfileDocumentSchema, customerPortalBookingBillingContactSchema, customerPortalBookingDetailSchema, customerPortalBookingDocumentSchema, customerPortalBookingSummarySchema, customerPortalCompanionSchema, customerPortalContactExistsResultSchema, customerPortalPhoneContactExistsResultSchema, customerPortalProfileDocumentSchema, customerPortalProfileSchema, importCustomerPortalBookingTravelersResultSchema, importCustomerPortalBookingTravelersSchema, updateCustomerPortalCompanionSchema, updateCustomerPortalProfileDocumentSchema, updateCustomerPortalProfileSchema, };
|
|
61
61
|
export declare const customerPortalProfileResponseSchema: z.ZodObject<{
|
|
62
62
|
data: z.ZodObject<{
|
|
63
63
|
userId: z.ZodString;
|
|
@@ -84,21 +84,10 @@ export declare const customerPortalProfileResponseSchema: z.ZodObject<{
|
|
|
84
84
|
addressLine1: z.ZodNullable<z.ZodString>;
|
|
85
85
|
addressLine2: z.ZodNullable<z.ZodString>;
|
|
86
86
|
}, z.core.$strip>>;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
drivers_license: "drivers_license";
|
|
92
|
-
other: "other";
|
|
93
|
-
id_card: "id_card";
|
|
94
|
-
}>;
|
|
95
|
-
number: z.ZodString;
|
|
96
|
-
issuingAuthority: z.ZodNullable<z.ZodString>;
|
|
97
|
-
issuingCountry: z.ZodString;
|
|
98
|
-
nationality: z.ZodNullable<z.ZodString>;
|
|
99
|
-
expiryDate: z.ZodString;
|
|
100
|
-
issueDate: z.ZodNullable<z.ZodString>;
|
|
101
|
-
}, z.core.$strip>>;
|
|
87
|
+
accessibility: z.ZodNullable<z.ZodString>;
|
|
88
|
+
dietary: z.ZodNullable<z.ZodString>;
|
|
89
|
+
loyalty: z.ZodNullable<z.ZodString>;
|
|
90
|
+
insurance: z.ZodNullable<z.ZodString>;
|
|
102
91
|
marketingConsent: z.ZodBoolean;
|
|
103
92
|
marketingConsentAt: z.ZodNullable<z.ZodString>;
|
|
104
93
|
marketingConsentSource: z.ZodNullable<z.ZodString>;
|
|
@@ -172,21 +161,10 @@ export declare const customerPortalBootstrapResponseSchema: z.ZodObject<{
|
|
|
172
161
|
addressLine1: z.ZodNullable<z.ZodString>;
|
|
173
162
|
addressLine2: z.ZodNullable<z.ZodString>;
|
|
174
163
|
}, z.core.$strip>>;
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
drivers_license: "drivers_license";
|
|
180
|
-
other: "other";
|
|
181
|
-
id_card: "id_card";
|
|
182
|
-
}>;
|
|
183
|
-
number: z.ZodString;
|
|
184
|
-
issuingAuthority: z.ZodNullable<z.ZodString>;
|
|
185
|
-
issuingCountry: z.ZodString;
|
|
186
|
-
nationality: z.ZodNullable<z.ZodString>;
|
|
187
|
-
expiryDate: z.ZodString;
|
|
188
|
-
issueDate: z.ZodNullable<z.ZodString>;
|
|
189
|
-
}, z.core.$strip>>;
|
|
164
|
+
accessibility: z.ZodNullable<z.ZodString>;
|
|
165
|
+
dietary: z.ZodNullable<z.ZodString>;
|
|
166
|
+
loyalty: z.ZodNullable<z.ZodString>;
|
|
167
|
+
insurance: z.ZodNullable<z.ZodString>;
|
|
190
168
|
marketingConsent: z.ZodBoolean;
|
|
191
169
|
marketingConsentAt: z.ZodNullable<z.ZodString>;
|
|
192
170
|
marketingConsentSource: z.ZodNullable<z.ZodString>;
|
|
@@ -684,6 +662,50 @@ export declare const customerPortalBookingDocumentsResponseSchema: z.ZodObject<{
|
|
|
684
662
|
reference: z.ZodNullable<z.ZodString>;
|
|
685
663
|
}, z.core.$strip>>;
|
|
686
664
|
}, z.core.$strip>;
|
|
665
|
+
export declare const customerPortalProfileDocumentsResponseSchema: z.ZodObject<{
|
|
666
|
+
data: z.ZodArray<z.ZodObject<{
|
|
667
|
+
id: z.ZodString;
|
|
668
|
+
type: z.ZodEnum<{
|
|
669
|
+
passport: "passport";
|
|
670
|
+
visa: "visa";
|
|
671
|
+
drivers_license: "drivers_license";
|
|
672
|
+
other: "other";
|
|
673
|
+
id_card: "id_card";
|
|
674
|
+
}>;
|
|
675
|
+
number: z.ZodNullable<z.ZodString>;
|
|
676
|
+
issuingAuthority: z.ZodNullable<z.ZodString>;
|
|
677
|
+
issuingCountry: z.ZodNullable<z.ZodString>;
|
|
678
|
+
issueDate: z.ZodNullable<z.ZodString>;
|
|
679
|
+
expiryDate: z.ZodNullable<z.ZodString>;
|
|
680
|
+
attachmentId: z.ZodNullable<z.ZodString>;
|
|
681
|
+
isPrimary: z.ZodBoolean;
|
|
682
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
683
|
+
createdAt: z.ZodString;
|
|
684
|
+
updatedAt: z.ZodString;
|
|
685
|
+
}, z.core.$strip>>;
|
|
686
|
+
}, z.core.$strip>;
|
|
687
|
+
export declare const customerPortalProfileDocumentResponseSchema: z.ZodObject<{
|
|
688
|
+
data: z.ZodObject<{
|
|
689
|
+
id: z.ZodString;
|
|
690
|
+
type: z.ZodEnum<{
|
|
691
|
+
passport: "passport";
|
|
692
|
+
visa: "visa";
|
|
693
|
+
drivers_license: "drivers_license";
|
|
694
|
+
other: "other";
|
|
695
|
+
id_card: "id_card";
|
|
696
|
+
}>;
|
|
697
|
+
number: z.ZodNullable<z.ZodString>;
|
|
698
|
+
issuingAuthority: z.ZodNullable<z.ZodString>;
|
|
699
|
+
issuingCountry: z.ZodNullable<z.ZodString>;
|
|
700
|
+
issueDate: z.ZodNullable<z.ZodString>;
|
|
701
|
+
expiryDate: z.ZodNullable<z.ZodString>;
|
|
702
|
+
attachmentId: z.ZodNullable<z.ZodString>;
|
|
703
|
+
isPrimary: z.ZodBoolean;
|
|
704
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
705
|
+
createdAt: z.ZodString;
|
|
706
|
+
updatedAt: z.ZodString;
|
|
707
|
+
}, z.core.$strip>;
|
|
708
|
+
}, z.core.$strip>;
|
|
687
709
|
export declare const customerPortalContactExistsResponseSchema: z.ZodObject<{
|
|
688
710
|
data: z.ZodObject<{
|
|
689
711
|
email: z.ZodString;
|
|
@@ -714,6 +736,9 @@ export type CustomerPortalBookingSummaryRecord = z.infer<typeof customerPortalBo
|
|
|
714
736
|
export type CustomerPortalBookingRecord = z.infer<typeof customerPortalBookingDetailSchema>;
|
|
715
737
|
export type CustomerPortalBookingBillingContactRecord = z.infer<typeof customerPortalBookingBillingContactSchema>;
|
|
716
738
|
export type CustomerPortalBookingDocumentRecord = z.infer<typeof customerPortalBookingDocumentSchema>;
|
|
739
|
+
export type CustomerPortalProfileDocumentRecord = z.infer<typeof customerPortalProfileDocumentSchema>;
|
|
740
|
+
export type CreateCustomerPortalProfileDocumentInput = z.input<typeof createCustomerPortalProfileDocumentSchema>;
|
|
741
|
+
export type UpdateCustomerPortalProfileDocumentInput = z.input<typeof updateCustomerPortalProfileDocumentSchema>;
|
|
717
742
|
export type CustomerPortalContactExistsRecord = z.infer<typeof customerPortalContactExistsResultSchema>;
|
|
718
743
|
export type CustomerPortalPhoneContactExistsRecord = z.infer<typeof customerPortalPhoneContactExistsResultSchema>;
|
|
719
744
|
//# sourceMappingURL=schemas.d.ts.map
|
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,mCAAmC,EACnC,yCAAyC,EACzC,iCAAiC,EACjC,mCAAmC,EACnC,kCAAkC,EAClC,6BAA6B,EAC7B,uCAAuC,EACvC,4CAA4C,EAC5C,2BAA2B,EAC3B,gDAAgD,EAChD,0CAA0C,EAC1C,mCAAmC,EACnC,iCAAiC,EAClC,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,MAAM,CAAC;;iBAA6B,CAAA;AAC3F,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,MAAM,CAAC;;iBAAsC,CAAA;AACnG,eAAO,MAAM,eAAe;;iBAAqC,CAAA;AAEjE,eAAO,MAAM,6CAA6C;;iBACd,CAAA;AAC5C,eAAO,MAAM,mDAAmD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBACd,CAAA;AAElD,OAAO,EACL,mCAAmC,EACnC,6BAA6B,EAC7B,mCAAmC,EACnC,yCAAyC,EACzC,iCAAiC,EACjC,mCAAmC,EACnC,kCAAkC,EAClC,6BAA6B,EAC7B,uCAAuC,EACvC,4CAA4C,EAC5C,2BAA2B,EAC3B,gDAAgD,EAChD,0CAA0C,EAC1C,mCAAmC,EACnC,iCAAiC,GAClC,CAAA;AAED,eAAO,MAAM,mCAAmC
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mCAAmC,EACnC,6BAA6B,EAC7B,mCAAmC,EACnC,yCAAyC,EACzC,yCAAyC,EACzC,iCAAiC,EACjC,mCAAmC,EACnC,kCAAkC,EAClC,6BAA6B,EAC7B,uCAAuC,EACvC,4CAA4C,EAC5C,mCAAmC,EACnC,2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emas.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { bootstrapCustomerPortalResultSchema, bootstrapCustomerPortalSchema, createCustomerPortalCompanionSchema, customerPortalBookingBillingContactSchema, customerPortalBookingDetailSchema, customerPortalBookingDocumentSchema, customerPortalBookingSummarySchema, customerPortalCompanionSchema, customerPortalContactExistsResultSchema, customerPortalPhoneContactExistsResultSchema, customerPortalProfileSchema, importCustomerPortalBookingTravelersResultSchema, importCustomerPortalBookingTravelersSchema, updateCustomerPortalCompanionSchema, updateCustomerPortalProfileSchema, } from "@voyantjs/customer-portal";
|
|
1
|
+
import { bootstrapCustomerPortalResultSchema, bootstrapCustomerPortalSchema, createCustomerPortalCompanionSchema, createCustomerPortalProfileDocumentSchema, customerPortalBookingBillingContactSchema, customerPortalBookingDetailSchema, customerPortalBookingDocumentSchema, customerPortalBookingSummarySchema, customerPortalCompanionSchema, customerPortalContactExistsResultSchema, customerPortalPhoneContactExistsResultSchema, customerPortalProfileDocumentSchema, customerPortalProfileSchema, importCustomerPortalBookingTravelersResultSchema, importCustomerPortalBookingTravelersSchema, updateCustomerPortalCompanionSchema, updateCustomerPortalProfileDocumentSchema, 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
6
|
export const importCustomerPortalBookingParticipantsSchema = importCustomerPortalBookingTravelersSchema;
|
|
7
7
|
export const importCustomerPortalBookingParticipantsResultSchema = importCustomerPortalBookingTravelersResultSchema;
|
|
8
|
-
export { bootstrapCustomerPortalResultSchema, bootstrapCustomerPortalSchema, createCustomerPortalCompanionSchema, customerPortalBookingBillingContactSchema, customerPortalBookingDetailSchema, customerPortalBookingDocumentSchema, customerPortalBookingSummarySchema, customerPortalCompanionSchema, customerPortalContactExistsResultSchema, customerPortalPhoneContactExistsResultSchema, customerPortalProfileSchema, importCustomerPortalBookingTravelersResultSchema, importCustomerPortalBookingTravelersSchema, updateCustomerPortalCompanionSchema, updateCustomerPortalProfileSchema, };
|
|
8
|
+
export { bootstrapCustomerPortalResultSchema, bootstrapCustomerPortalSchema, createCustomerPortalCompanionSchema, createCustomerPortalProfileDocumentSchema, customerPortalBookingBillingContactSchema, customerPortalBookingDetailSchema, customerPortalBookingDocumentSchema, customerPortalBookingSummarySchema, customerPortalCompanionSchema, customerPortalContactExistsResultSchema, customerPortalPhoneContactExistsResultSchema, customerPortalProfileDocumentSchema, customerPortalProfileSchema, importCustomerPortalBookingTravelersResultSchema, importCustomerPortalBookingTravelersSchema, updateCustomerPortalCompanionSchema, updateCustomerPortalProfileDocumentSchema, updateCustomerPortalProfileSchema, };
|
|
9
9
|
export const customerPortalProfileResponseSchema = singleEnvelope(customerPortalProfileSchema);
|
|
10
10
|
export const customerPortalBootstrapResponseSchema = singleEnvelope(bootstrapCustomerPortalResultSchema);
|
|
11
11
|
export const customerPortalCompanionsResponseSchema = arrayEnvelope(customerPortalCompanionSchema);
|
|
@@ -15,5 +15,7 @@ export const customerPortalBookingsResponseSchema = arrayEnvelope(customerPortal
|
|
|
15
15
|
export const customerPortalBookingResponseSchema = singleEnvelope(customerPortalBookingDetailSchema);
|
|
16
16
|
export const customerPortalBookingBillingContactResponseSchema = singleEnvelope(customerPortalBookingBillingContactSchema);
|
|
17
17
|
export const customerPortalBookingDocumentsResponseSchema = arrayEnvelope(customerPortalBookingDocumentSchema);
|
|
18
|
+
export const customerPortalProfileDocumentsResponseSchema = arrayEnvelope(customerPortalProfileDocumentSchema);
|
|
19
|
+
export const customerPortalProfileDocumentResponseSchema = singleEnvelope(customerPortalProfileDocumentSchema);
|
|
18
20
|
export const customerPortalContactExistsResponseSchema = singleEnvelope(customerPortalContactExistsResultSchema);
|
|
19
21
|
export const customerPortalPhoneContactExistsResponseSchema = singleEnvelope(customerPortalPhoneContactExistsResultSchema);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/customer-portal-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"react": "^19.0.0",
|
|
47
47
|
"react-dom": "^19.0.0",
|
|
48
48
|
"zod": "^4.0.0",
|
|
49
|
-
"@voyantjs/customer-portal": "0.
|
|
49
|
+
"@voyantjs/customer-portal": "0.26.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@tanstack/react-query": "^5.96.2",
|
|
@@ -57,12 +57,12 @@
|
|
|
57
57
|
"typescript": "^6.0.2",
|
|
58
58
|
"vitest": "^4.1.2",
|
|
59
59
|
"zod": "^4.3.6",
|
|
60
|
-
"@voyantjs/customer-portal": "0.
|
|
61
|
-
"@voyantjs/react": "0.
|
|
60
|
+
"@voyantjs/customer-portal": "0.26.1",
|
|
61
|
+
"@voyantjs/react": "0.26.1",
|
|
62
62
|
"@voyantjs/voyant-typescript-config": "0.1.0"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@voyantjs/react": "0.
|
|
65
|
+
"@voyantjs/react": "0.26.1"
|
|
66
66
|
},
|
|
67
67
|
"files": [
|
|
68
68
|
"dist"
|