@voyantjs/customer-portal-react 0.26.0 → 0.26.2
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 +16 -29
- 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 +6 -10
- 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 +86 -31
- 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 +92 -40
- package/dist/query-options.d.ts.map +1 -1
- package/dist/query-options.js +7 -1
- package/dist/schemas.d.ts +61 -34
- 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";
|
|
@@ -12,7 +12,7 @@ export declare function useCustomerPortalMutation(): {
|
|
|
12
12
|
status: "already_linked" | "linked_existing_customer" | "created_customer" | "customer_selection_required";
|
|
13
13
|
profile: {
|
|
14
14
|
userId: string;
|
|
15
|
-
email: string;
|
|
15
|
+
email: string | null;
|
|
16
16
|
emailVerified: boolean;
|
|
17
17
|
firstName: string | null;
|
|
18
18
|
middleName: string | null;
|
|
@@ -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;
|
|
@@ -68,6 +63,7 @@ export declare function useCustomerPortalMutation(): {
|
|
|
68
63
|
relation: string | null;
|
|
69
64
|
status: string;
|
|
70
65
|
} | null;
|
|
66
|
+
phoneNumber?: string | null | undefined;
|
|
71
67
|
} | null;
|
|
72
68
|
candidates: {
|
|
73
69
|
id: string;
|
|
@@ -124,7 +120,7 @@ export declare function useCustomerPortalMutation(): {
|
|
|
124
120
|
updateProfile: import("@tanstack/react-query").UseMutationResult<{
|
|
125
121
|
data: {
|
|
126
122
|
userId: string;
|
|
127
|
-
email: string;
|
|
123
|
+
email: string | null;
|
|
128
124
|
emailVerified: boolean;
|
|
129
125
|
firstName: string | null;
|
|
130
126
|
middleName: string | null;
|
|
@@ -142,15 +138,10 @@ export declare function useCustomerPortalMutation(): {
|
|
|
142
138
|
addressLine1: string | null;
|
|
143
139
|
addressLine2: string | null;
|
|
144
140
|
} | null;
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
issuingCountry: string;
|
|
150
|
-
nationality: string | null;
|
|
151
|
-
expiryDate: string;
|
|
152
|
-
issueDate: string | null;
|
|
153
|
-
}[];
|
|
141
|
+
accessibility: string | null;
|
|
142
|
+
dietary: string | null;
|
|
143
|
+
loyalty: string | null;
|
|
144
|
+
insurance: string | null;
|
|
154
145
|
marketingConsent: boolean;
|
|
155
146
|
marketingConsentAt: string | null;
|
|
156
147
|
marketingConsentSource: string | null;
|
|
@@ -180,6 +171,7 @@ export declare function useCustomerPortalMutation(): {
|
|
|
180
171
|
relation: string | null;
|
|
181
172
|
status: string;
|
|
182
173
|
} | null;
|
|
174
|
+
phoneNumber?: string | null | undefined;
|
|
183
175
|
};
|
|
184
176
|
}, Error, {
|
|
185
177
|
firstName?: string | null | undefined;
|
|
@@ -198,15 +190,10 @@ export declare function useCustomerPortalMutation(): {
|
|
|
198
190
|
addressLine1?: string | null | undefined;
|
|
199
191
|
addressLine2?: string | null | undefined;
|
|
200
192
|
} | 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;
|
|
193
|
+
accessibility?: string | null | undefined;
|
|
194
|
+
dietary?: string | null | undefined;
|
|
195
|
+
loyalty?: string | null | undefined;
|
|
196
|
+
insurance?: string | null | undefined;
|
|
210
197
|
marketingConsent?: boolean | undefined;
|
|
211
198
|
marketingConsentSource?: string | null | undefined;
|
|
212
199
|
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
|
+
}
|
|
@@ -4,7 +4,7 @@ export interface UseCustomerPortalProfileOptions {
|
|
|
4
4
|
export declare function useCustomerPortalProfile(options?: UseCustomerPortalProfileOptions): import("@tanstack/react-query").UseQueryResult<{
|
|
5
5
|
data: {
|
|
6
6
|
userId: string;
|
|
7
|
-
email: string;
|
|
7
|
+
email: string | null;
|
|
8
8
|
emailVerified: boolean;
|
|
9
9
|
firstName: string | null;
|
|
10
10
|
middleName: string | null;
|
|
@@ -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;
|
|
@@ -60,6 +55,7 @@ export declare function useCustomerPortalProfile(options?: UseCustomerPortalProf
|
|
|
60
55
|
relation: string | null;
|
|
61
56
|
status: string;
|
|
62
57
|
} | null;
|
|
58
|
+
phoneNumber?: string | null | undefined;
|
|
63
59
|
};
|
|
64
60
|
}, Error>;
|
|
65
61
|
//# sourceMappingURL=use-customer-portal-profile.d.ts.map
|
|
@@ -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;
|
|
@@ -18,7 +18,7 @@ export declare function getCustomerPortalPhoneContactExists(client: FetchWithVal
|
|
|
18
18
|
export declare function getCustomerPortalProfile(client: FetchWithValidationOptions): Promise<{
|
|
19
19
|
data: {
|
|
20
20
|
userId: string;
|
|
21
|
-
email: string;
|
|
21
|
+
email: string | null;
|
|
22
22
|
emailVerified: boolean;
|
|
23
23
|
firstName: string | null;
|
|
24
24
|
middleName: string | null;
|
|
@@ -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;
|
|
@@ -74,12 +69,13 @@ export declare function getCustomerPortalProfile(client: FetchWithValidationOpti
|
|
|
74
69
|
relation: string | null;
|
|
75
70
|
status: string;
|
|
76
71
|
} | null;
|
|
72
|
+
phoneNumber?: string | null | undefined;
|
|
77
73
|
};
|
|
78
74
|
}>;
|
|
79
75
|
export declare function updateCustomerPortalProfile(client: FetchWithValidationOptions, input: UpdateCustomerPortalProfileInput): Promise<{
|
|
80
76
|
data: {
|
|
81
77
|
userId: string;
|
|
82
|
-
email: string;
|
|
78
|
+
email: string | null;
|
|
83
79
|
emailVerified: boolean;
|
|
84
80
|
firstName: string | null;
|
|
85
81
|
middleName: string | null;
|
|
@@ -97,15 +93,10 @@ export declare function updateCustomerPortalProfile(client: FetchWithValidationO
|
|
|
97
93
|
addressLine1: string | null;
|
|
98
94
|
addressLine2: string | null;
|
|
99
95
|
} | null;
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
issuingCountry: string;
|
|
105
|
-
nationality: string | null;
|
|
106
|
-
expiryDate: string;
|
|
107
|
-
issueDate: string | null;
|
|
108
|
-
}[];
|
|
96
|
+
accessibility: string | null;
|
|
97
|
+
dietary: string | null;
|
|
98
|
+
loyalty: string | null;
|
|
99
|
+
insurance: string | null;
|
|
109
100
|
marketingConsent: boolean;
|
|
110
101
|
marketingConsentAt: string | null;
|
|
111
102
|
marketingConsentSource: string | null;
|
|
@@ -135,6 +126,7 @@ export declare function updateCustomerPortalProfile(client: FetchWithValidationO
|
|
|
135
126
|
relation: string | null;
|
|
136
127
|
status: string;
|
|
137
128
|
} | null;
|
|
129
|
+
phoneNumber?: string | null | undefined;
|
|
138
130
|
};
|
|
139
131
|
}>;
|
|
140
132
|
export declare function bootstrapCustomerPortal(client: FetchWithValidationOptions, input: BootstrapCustomerPortalInput): Promise<{
|
|
@@ -142,7 +134,7 @@ export declare function bootstrapCustomerPortal(client: FetchWithValidationOptio
|
|
|
142
134
|
status: "already_linked" | "linked_existing_customer" | "created_customer" | "customer_selection_required";
|
|
143
135
|
profile: {
|
|
144
136
|
userId: string;
|
|
145
|
-
email: string;
|
|
137
|
+
email: string | null;
|
|
146
138
|
emailVerified: boolean;
|
|
147
139
|
firstName: string | null;
|
|
148
140
|
middleName: string | null;
|
|
@@ -160,15 +152,10 @@ export declare function bootstrapCustomerPortal(client: FetchWithValidationOptio
|
|
|
160
152
|
addressLine1: string | null;
|
|
161
153
|
addressLine2: string | null;
|
|
162
154
|
} | null;
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
issuingCountry: string;
|
|
168
|
-
nationality: string | null;
|
|
169
|
-
expiryDate: string;
|
|
170
|
-
issueDate: string | null;
|
|
171
|
-
}[];
|
|
155
|
+
accessibility: string | null;
|
|
156
|
+
dietary: string | null;
|
|
157
|
+
loyalty: string | null;
|
|
158
|
+
insurance: string | null;
|
|
172
159
|
marketingConsent: boolean;
|
|
173
160
|
marketingConsentAt: string | null;
|
|
174
161
|
marketingConsentSource: string | null;
|
|
@@ -198,6 +185,7 @@ export declare function bootstrapCustomerPortal(client: FetchWithValidationOptio
|
|
|
198
185
|
relation: string | null;
|
|
199
186
|
status: string;
|
|
200
187
|
} | null;
|
|
188
|
+
phoneNumber?: string | null | undefined;
|
|
201
189
|
} | null;
|
|
202
190
|
candidates: {
|
|
203
191
|
id: string;
|
|
@@ -533,4 +521,71 @@ export declare function listCustomerPortalBookingDocuments(client: FetchWithVali
|
|
|
533
521
|
reference: string | null;
|
|
534
522
|
}[];
|
|
535
523
|
}>;
|
|
524
|
+
export declare function listCustomerPortalProfileDocuments(client: FetchWithValidationOptions): Promise<{
|
|
525
|
+
data: {
|
|
526
|
+
id: string;
|
|
527
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
528
|
+
number: string | null;
|
|
529
|
+
issuingAuthority: string | null;
|
|
530
|
+
issuingCountry: string | null;
|
|
531
|
+
issueDate: string | null;
|
|
532
|
+
expiryDate: string | null;
|
|
533
|
+
attachmentId: string | null;
|
|
534
|
+
isPrimary: boolean;
|
|
535
|
+
notes: string | null;
|
|
536
|
+
createdAt: string;
|
|
537
|
+
updatedAt: string;
|
|
538
|
+
}[];
|
|
539
|
+
}>;
|
|
540
|
+
export declare function createCustomerPortalProfileDocument(client: FetchWithValidationOptions, input: CreateCustomerPortalProfileDocumentInput): Promise<{
|
|
541
|
+
data: {
|
|
542
|
+
id: string;
|
|
543
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
544
|
+
number: string | null;
|
|
545
|
+
issuingAuthority: string | null;
|
|
546
|
+
issuingCountry: string | null;
|
|
547
|
+
issueDate: string | null;
|
|
548
|
+
expiryDate: string | null;
|
|
549
|
+
attachmentId: string | null;
|
|
550
|
+
isPrimary: boolean;
|
|
551
|
+
notes: string | null;
|
|
552
|
+
createdAt: string;
|
|
553
|
+
updatedAt: string;
|
|
554
|
+
};
|
|
555
|
+
}>;
|
|
556
|
+
export declare function updateCustomerPortalProfileDocument(client: FetchWithValidationOptions, documentId: string, input: UpdateCustomerPortalProfileDocumentInput): Promise<{
|
|
557
|
+
data: {
|
|
558
|
+
id: string;
|
|
559
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
560
|
+
number: string | null;
|
|
561
|
+
issuingAuthority: string | null;
|
|
562
|
+
issuingCountry: string | null;
|
|
563
|
+
issueDate: string | null;
|
|
564
|
+
expiryDate: string | null;
|
|
565
|
+
attachmentId: string | null;
|
|
566
|
+
isPrimary: boolean;
|
|
567
|
+
notes: string | null;
|
|
568
|
+
createdAt: string;
|
|
569
|
+
updatedAt: string;
|
|
570
|
+
};
|
|
571
|
+
}>;
|
|
572
|
+
export declare function deleteCustomerPortalProfileDocument(client: FetchWithValidationOptions, documentId: string): Promise<{
|
|
573
|
+
success: boolean;
|
|
574
|
+
}>;
|
|
575
|
+
export declare function setPrimaryCustomerPortalProfileDocument(client: FetchWithValidationOptions, documentId: string): Promise<{
|
|
576
|
+
data: {
|
|
577
|
+
id: string;
|
|
578
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
579
|
+
number: string | null;
|
|
580
|
+
issuingAuthority: string | null;
|
|
581
|
+
issuingCountry: string | null;
|
|
582
|
+
issueDate: string | null;
|
|
583
|
+
expiryDate: string | null;
|
|
584
|
+
attachmentId: string | null;
|
|
585
|
+
isPrimary: boolean;
|
|
586
|
+
notes: string | null;
|
|
587
|
+
createdAt: string;
|
|
588
|
+
updatedAt: string;
|
|
589
|
+
};
|
|
590
|
+
}>;
|
|
536
591
|
//# 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.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B"}
|
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
|
@@ -3,7 +3,7 @@ import { type CustomerPortalContactExistsFilters, type CustomerPortalPhoneContac
|
|
|
3
3
|
export declare function getCustomerPortalProfileQueryOptions(client: FetchWithValidationOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
4
4
|
data: {
|
|
5
5
|
userId: string;
|
|
6
|
-
email: string;
|
|
6
|
+
email: string | null;
|
|
7
7
|
emailVerified: boolean;
|
|
8
8
|
firstName: string | null;
|
|
9
9
|
middleName: string | null;
|
|
@@ -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;
|
|
@@ -59,11 +54,12 @@ export declare function getCustomerPortalProfileQueryOptions(client: FetchWithVa
|
|
|
59
54
|
relation: string | null;
|
|
60
55
|
status: string;
|
|
61
56
|
} | null;
|
|
57
|
+
phoneNumber?: string | null | undefined;
|
|
62
58
|
};
|
|
63
59
|
}, Error, {
|
|
64
60
|
data: {
|
|
65
61
|
userId: string;
|
|
66
|
-
email: string;
|
|
62
|
+
email: string | null;
|
|
67
63
|
emailVerified: boolean;
|
|
68
64
|
firstName: string | null;
|
|
69
65
|
middleName: string | null;
|
|
@@ -81,15 +77,10 @@ export declare function getCustomerPortalProfileQueryOptions(client: FetchWithVa
|
|
|
81
77
|
addressLine1: string | null;
|
|
82
78
|
addressLine2: string | null;
|
|
83
79
|
} | null;
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
issuingCountry: string;
|
|
89
|
-
nationality: string | null;
|
|
90
|
-
expiryDate: string;
|
|
91
|
-
issueDate: string | null;
|
|
92
|
-
}[];
|
|
80
|
+
accessibility: string | null;
|
|
81
|
+
dietary: string | null;
|
|
82
|
+
loyalty: string | null;
|
|
83
|
+
insurance: string | null;
|
|
93
84
|
marketingConsent: boolean;
|
|
94
85
|
marketingConsentAt: string | null;
|
|
95
86
|
marketingConsentSource: string | null;
|
|
@@ -119,12 +110,13 @@ export declare function getCustomerPortalProfileQueryOptions(client: FetchWithVa
|
|
|
119
110
|
relation: string | null;
|
|
120
111
|
status: string;
|
|
121
112
|
} | null;
|
|
113
|
+
phoneNumber?: string | null | undefined;
|
|
122
114
|
};
|
|
123
115
|
}, readonly ["customer-portal", "profile"]>, "queryFn"> & {
|
|
124
116
|
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
125
117
|
data: {
|
|
126
118
|
userId: string;
|
|
127
|
-
email: string;
|
|
119
|
+
email: string | null;
|
|
128
120
|
emailVerified: boolean;
|
|
129
121
|
firstName: string | null;
|
|
130
122
|
middleName: string | null;
|
|
@@ -142,15 +134,10 @@ export declare function getCustomerPortalProfileQueryOptions(client: FetchWithVa
|
|
|
142
134
|
addressLine1: string | null;
|
|
143
135
|
addressLine2: string | null;
|
|
144
136
|
} | null;
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
issuingCountry: string;
|
|
150
|
-
nationality: string | null;
|
|
151
|
-
expiryDate: string;
|
|
152
|
-
issueDate: string | null;
|
|
153
|
-
}[];
|
|
137
|
+
accessibility: string | null;
|
|
138
|
+
dietary: string | null;
|
|
139
|
+
loyalty: string | null;
|
|
140
|
+
insurance: string | null;
|
|
154
141
|
marketingConsent: boolean;
|
|
155
142
|
marketingConsentAt: string | null;
|
|
156
143
|
marketingConsentSource: string | null;
|
|
@@ -180,6 +167,7 @@ export declare function getCustomerPortalProfileQueryOptions(client: FetchWithVa
|
|
|
180
167
|
relation: string | null;
|
|
181
168
|
status: string;
|
|
182
169
|
} | null;
|
|
170
|
+
phoneNumber?: string | null | undefined;
|
|
183
171
|
};
|
|
184
172
|
}, readonly ["customer-portal", "profile"], never> | undefined;
|
|
185
173
|
} & {
|
|
@@ -187,7 +175,7 @@ export declare function getCustomerPortalProfileQueryOptions(client: FetchWithVa
|
|
|
187
175
|
[dataTagSymbol]: {
|
|
188
176
|
data: {
|
|
189
177
|
userId: string;
|
|
190
|
-
email: string;
|
|
178
|
+
email: string | null;
|
|
191
179
|
emailVerified: boolean;
|
|
192
180
|
firstName: string | null;
|
|
193
181
|
middleName: string | null;
|
|
@@ -205,15 +193,10 @@ export declare function getCustomerPortalProfileQueryOptions(client: FetchWithVa
|
|
|
205
193
|
addressLine1: string | null;
|
|
206
194
|
addressLine2: string | null;
|
|
207
195
|
} | null;
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
issuingCountry: string;
|
|
213
|
-
nationality: string | null;
|
|
214
|
-
expiryDate: string;
|
|
215
|
-
issueDate: string | null;
|
|
216
|
-
}[];
|
|
196
|
+
accessibility: string | null;
|
|
197
|
+
dietary: string | null;
|
|
198
|
+
loyalty: string | null;
|
|
199
|
+
insurance: string | null;
|
|
217
200
|
marketingConsent: boolean;
|
|
218
201
|
marketingConsentAt: string | null;
|
|
219
202
|
marketingConsentSource: string | null;
|
|
@@ -243,11 +226,80 @@ export declare function getCustomerPortalProfileQueryOptions(client: FetchWithVa
|
|
|
243
226
|
relation: string | null;
|
|
244
227
|
status: string;
|
|
245
228
|
} | null;
|
|
229
|
+
phoneNumber?: string | null | undefined;
|
|
246
230
|
};
|
|
247
231
|
};
|
|
248
232
|
[dataTagErrorSymbol]: Error;
|
|
249
233
|
};
|
|
250
234
|
};
|
|
235
|
+
export declare function getCustomerPortalProfileDocumentsQueryOptions(client: FetchWithValidationOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
236
|
+
data: {
|
|
237
|
+
id: string;
|
|
238
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
239
|
+
number: string | null;
|
|
240
|
+
issuingAuthority: string | null;
|
|
241
|
+
issuingCountry: string | null;
|
|
242
|
+
issueDate: string | null;
|
|
243
|
+
expiryDate: string | null;
|
|
244
|
+
attachmentId: string | null;
|
|
245
|
+
isPrimary: boolean;
|
|
246
|
+
notes: string | null;
|
|
247
|
+
createdAt: string;
|
|
248
|
+
updatedAt: string;
|
|
249
|
+
}[];
|
|
250
|
+
}, Error, {
|
|
251
|
+
data: {
|
|
252
|
+
id: string;
|
|
253
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
254
|
+
number: string | null;
|
|
255
|
+
issuingAuthority: string | null;
|
|
256
|
+
issuingCountry: string | null;
|
|
257
|
+
issueDate: string | null;
|
|
258
|
+
expiryDate: string | null;
|
|
259
|
+
attachmentId: string | null;
|
|
260
|
+
isPrimary: boolean;
|
|
261
|
+
notes: string | null;
|
|
262
|
+
createdAt: string;
|
|
263
|
+
updatedAt: string;
|
|
264
|
+
}[];
|
|
265
|
+
}, readonly ["customer-portal", "profile", "documents"]>, "queryFn"> & {
|
|
266
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
267
|
+
data: {
|
|
268
|
+
id: string;
|
|
269
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
270
|
+
number: string | null;
|
|
271
|
+
issuingAuthority: string | null;
|
|
272
|
+
issuingCountry: string | null;
|
|
273
|
+
issueDate: string | null;
|
|
274
|
+
expiryDate: string | null;
|
|
275
|
+
attachmentId: string | null;
|
|
276
|
+
isPrimary: boolean;
|
|
277
|
+
notes: string | null;
|
|
278
|
+
createdAt: string;
|
|
279
|
+
updatedAt: string;
|
|
280
|
+
}[];
|
|
281
|
+
}, readonly ["customer-portal", "profile", "documents"], never> | undefined;
|
|
282
|
+
} & {
|
|
283
|
+
queryKey: readonly ["customer-portal", "profile", "documents"] & {
|
|
284
|
+
[dataTagSymbol]: {
|
|
285
|
+
data: {
|
|
286
|
+
id: string;
|
|
287
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
288
|
+
number: string | null;
|
|
289
|
+
issuingAuthority: string | null;
|
|
290
|
+
issuingCountry: string | null;
|
|
291
|
+
issueDate: string | null;
|
|
292
|
+
expiryDate: string | null;
|
|
293
|
+
attachmentId: string | null;
|
|
294
|
+
isPrimary: boolean;
|
|
295
|
+
notes: string | null;
|
|
296
|
+
createdAt: string;
|
|
297
|
+
updatedAt: string;
|
|
298
|
+
}[];
|
|
299
|
+
};
|
|
300
|
+
[dataTagErrorSymbol]: Error;
|
|
301
|
+
};
|
|
302
|
+
};
|
|
251
303
|
export declare function getCustomerPortalCompanionsQueryOptions(client: FetchWithValidationOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
252
304
|
data: {
|
|
253
305
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKtF;AAED,wBAAgB,6CAA6C,CAAC,MAAM,EAAE,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK/F;AAED,wBAAgB,uCAAuC,CAAC,MAAM,EAAE,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;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,11 +57,12 @@ 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;
|
|
64
|
-
email: z.ZodString
|
|
64
|
+
email: z.ZodNullable<z.ZodString>;
|
|
65
|
+
phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
66
|
emailVerified: z.ZodBoolean;
|
|
66
67
|
firstName: z.ZodNullable<z.ZodString>;
|
|
67
68
|
middleName: z.ZodNullable<z.ZodString>;
|
|
@@ -84,21 +85,10 @@ export declare const customerPortalProfileResponseSchema: z.ZodObject<{
|
|
|
84
85
|
addressLine1: z.ZodNullable<z.ZodString>;
|
|
85
86
|
addressLine2: z.ZodNullable<z.ZodString>;
|
|
86
87
|
}, 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>>;
|
|
88
|
+
accessibility: z.ZodNullable<z.ZodString>;
|
|
89
|
+
dietary: z.ZodNullable<z.ZodString>;
|
|
90
|
+
loyalty: z.ZodNullable<z.ZodString>;
|
|
91
|
+
insurance: z.ZodNullable<z.ZodString>;
|
|
102
92
|
marketingConsent: z.ZodBoolean;
|
|
103
93
|
marketingConsentAt: z.ZodNullable<z.ZodString>;
|
|
104
94
|
marketingConsentSource: z.ZodNullable<z.ZodString>;
|
|
@@ -149,7 +139,8 @@ export declare const customerPortalBootstrapResponseSchema: z.ZodObject<{
|
|
|
149
139
|
}>;
|
|
150
140
|
profile: z.ZodNullable<z.ZodObject<{
|
|
151
141
|
userId: z.ZodString;
|
|
152
|
-
email: z.ZodString
|
|
142
|
+
email: z.ZodNullable<z.ZodString>;
|
|
143
|
+
phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
153
144
|
emailVerified: z.ZodBoolean;
|
|
154
145
|
firstName: z.ZodNullable<z.ZodString>;
|
|
155
146
|
middleName: z.ZodNullable<z.ZodString>;
|
|
@@ -172,21 +163,10 @@ export declare const customerPortalBootstrapResponseSchema: z.ZodObject<{
|
|
|
172
163
|
addressLine1: z.ZodNullable<z.ZodString>;
|
|
173
164
|
addressLine2: z.ZodNullable<z.ZodString>;
|
|
174
165
|
}, 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>>;
|
|
166
|
+
accessibility: z.ZodNullable<z.ZodString>;
|
|
167
|
+
dietary: z.ZodNullable<z.ZodString>;
|
|
168
|
+
loyalty: z.ZodNullable<z.ZodString>;
|
|
169
|
+
insurance: z.ZodNullable<z.ZodString>;
|
|
190
170
|
marketingConsent: z.ZodBoolean;
|
|
191
171
|
marketingConsentAt: z.ZodNullable<z.ZodString>;
|
|
192
172
|
marketingConsentSource: z.ZodNullable<z.ZodString>;
|
|
@@ -684,6 +664,50 @@ export declare const customerPortalBookingDocumentsResponseSchema: z.ZodObject<{
|
|
|
684
664
|
reference: z.ZodNullable<z.ZodString>;
|
|
685
665
|
}, z.core.$strip>>;
|
|
686
666
|
}, z.core.$strip>;
|
|
667
|
+
export declare const customerPortalProfileDocumentsResponseSchema: z.ZodObject<{
|
|
668
|
+
data: z.ZodArray<z.ZodObject<{
|
|
669
|
+
id: z.ZodString;
|
|
670
|
+
type: z.ZodEnum<{
|
|
671
|
+
passport: "passport";
|
|
672
|
+
visa: "visa";
|
|
673
|
+
drivers_license: "drivers_license";
|
|
674
|
+
other: "other";
|
|
675
|
+
id_card: "id_card";
|
|
676
|
+
}>;
|
|
677
|
+
number: z.ZodNullable<z.ZodString>;
|
|
678
|
+
issuingAuthority: z.ZodNullable<z.ZodString>;
|
|
679
|
+
issuingCountry: z.ZodNullable<z.ZodString>;
|
|
680
|
+
issueDate: z.ZodNullable<z.ZodString>;
|
|
681
|
+
expiryDate: z.ZodNullable<z.ZodString>;
|
|
682
|
+
attachmentId: z.ZodNullable<z.ZodString>;
|
|
683
|
+
isPrimary: z.ZodBoolean;
|
|
684
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
685
|
+
createdAt: z.ZodString;
|
|
686
|
+
updatedAt: z.ZodString;
|
|
687
|
+
}, z.core.$strip>>;
|
|
688
|
+
}, z.core.$strip>;
|
|
689
|
+
export declare const customerPortalProfileDocumentResponseSchema: z.ZodObject<{
|
|
690
|
+
data: z.ZodObject<{
|
|
691
|
+
id: z.ZodString;
|
|
692
|
+
type: z.ZodEnum<{
|
|
693
|
+
passport: "passport";
|
|
694
|
+
visa: "visa";
|
|
695
|
+
drivers_license: "drivers_license";
|
|
696
|
+
other: "other";
|
|
697
|
+
id_card: "id_card";
|
|
698
|
+
}>;
|
|
699
|
+
number: z.ZodNullable<z.ZodString>;
|
|
700
|
+
issuingAuthority: z.ZodNullable<z.ZodString>;
|
|
701
|
+
issuingCountry: z.ZodNullable<z.ZodString>;
|
|
702
|
+
issueDate: z.ZodNullable<z.ZodString>;
|
|
703
|
+
expiryDate: z.ZodNullable<z.ZodString>;
|
|
704
|
+
attachmentId: z.ZodNullable<z.ZodString>;
|
|
705
|
+
isPrimary: z.ZodBoolean;
|
|
706
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
707
|
+
createdAt: z.ZodString;
|
|
708
|
+
updatedAt: z.ZodString;
|
|
709
|
+
}, z.core.$strip>;
|
|
710
|
+
}, z.core.$strip>;
|
|
687
711
|
export declare const customerPortalContactExistsResponseSchema: z.ZodObject<{
|
|
688
712
|
data: z.ZodObject<{
|
|
689
713
|
email: z.ZodString;
|
|
@@ -714,6 +738,9 @@ export type CustomerPortalBookingSummaryRecord = z.infer<typeof customerPortalBo
|
|
|
714
738
|
export type CustomerPortalBookingRecord = z.infer<typeof customerPortalBookingDetailSchema>;
|
|
715
739
|
export type CustomerPortalBookingBillingContactRecord = z.infer<typeof customerPortalBookingBillingContactSchema>;
|
|
716
740
|
export type CustomerPortalBookingDocumentRecord = z.infer<typeof customerPortalBookingDocumentSchema>;
|
|
741
|
+
export type CustomerPortalProfileDocumentRecord = z.infer<typeof customerPortalProfileDocumentSchema>;
|
|
742
|
+
export type CreateCustomerPortalProfileDocumentInput = z.input<typeof createCustomerPortalProfileDocumentSchema>;
|
|
743
|
+
export type UpdateCustomerPortalProfileDocumentInput = z.input<typeof updateCustomerPortalProfileDocumentSchema>;
|
|
717
744
|
export type CustomerPortalContactExistsRecord = z.infer<typeof customerPortalContactExistsResultSchema>;
|
|
718
745
|
export type CustomerPortalPhoneContactExistsRecord = z.infer<typeof customerPortalPhoneContactExistsResultSchema>;
|
|
719
746
|
//# 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,E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CAAC,KAAK,CACrD,OAAO,uCAAuC,CAC/C,CAAA;AACD,MAAM,MAAM,sCAAsC,GAAG,CAAC,CAAC,KAAK,CAC1D,OAAO,4CAA4C,CACpD,CAAA"}
|
package/dist/schemas.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.26.
|
|
3
|
+
"version": "0.26.2",
|
|
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.26.
|
|
49
|
+
"@voyantjs/customer-portal": "0.26.2"
|
|
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.26.
|
|
61
|
-
"@voyantjs/react": "0.26.
|
|
60
|
+
"@voyantjs/customer-portal": "0.26.2",
|
|
61
|
+
"@voyantjs/react": "0.26.2",
|
|
62
62
|
"@voyantjs/voyant-typescript-config": "0.1.0"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@voyantjs/react": "0.26.
|
|
65
|
+
"@voyantjs/react": "0.26.2"
|
|
66
66
|
},
|
|
67
67
|
"files": [
|
|
68
68
|
"dist"
|