@voyantjs/customer-portal-react 0.2.0 → 0.3.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/LICENSE +109 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/use-customer-portal-phone-contact-exists.d.ts +11 -0
- package/dist/hooks/use-customer-portal-phone-contact-exists.d.ts.map +1 -0
- package/dist/hooks/use-customer-portal-phone-contact-exists.js +12 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/operations.d.ts +7 -0
- package/dist/operations.d.ts.map +1 -1
- package/dist/operations.js +4 -1
- package/dist/query-keys.d.ts +5 -0
- package/dist/query-keys.d.ts.map +1 -1
- package/dist/query-keys.js +2 -0
- package/dist/query-options.d.ts +34 -2
- package/dist/query-options.d.ts.map +1 -1
- package/dist/query-options.js +8 -2
- package/dist/schemas.d.ts +10 -2
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +3 -2
- package/package.json +44 -53
package/LICENSE
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
# Functional Source License, Version 1.1, Apache 2.0 Future License
|
|
2
|
+
|
|
3
|
+
## Abbreviation
|
|
4
|
+
|
|
5
|
+
FSL-1.1-Apache-2.0
|
|
6
|
+
|
|
7
|
+
## Notice
|
|
8
|
+
|
|
9
|
+
Copyright 2026 PixelMakers Studio SRL
|
|
10
|
+
|
|
11
|
+
## Terms and Conditions
|
|
12
|
+
|
|
13
|
+
### Licensor ("We")
|
|
14
|
+
|
|
15
|
+
The party offering the Software under these Terms and Conditions.
|
|
16
|
+
|
|
17
|
+
### The Software
|
|
18
|
+
|
|
19
|
+
The "Software" is each version of the software that we make available under
|
|
20
|
+
these Terms and Conditions, as indicated by our inclusion of these Terms and
|
|
21
|
+
Conditions with the Software.
|
|
22
|
+
|
|
23
|
+
### License Grant
|
|
24
|
+
|
|
25
|
+
Subject to your compliance with this License Grant and the Patents,
|
|
26
|
+
Redistribution and Trademark clauses below, we hereby grant you the right to
|
|
27
|
+
use, copy, modify, create derivative works, publicly perform, publicly
|
|
28
|
+
display and redistribute the Software for any Permitted Purpose identified
|
|
29
|
+
below.
|
|
30
|
+
|
|
31
|
+
### Permitted Purpose
|
|
32
|
+
|
|
33
|
+
A Permitted Purpose is any purpose other than a Competing Use. A Competing
|
|
34
|
+
Use means making the Software available to others in a commercial product or
|
|
35
|
+
service that:
|
|
36
|
+
|
|
37
|
+
1. substitutes for the Software;
|
|
38
|
+
|
|
39
|
+
2. substitutes for any other product or service we offer using the Software
|
|
40
|
+
that exists as of the date we make the Software available; or
|
|
41
|
+
|
|
42
|
+
3. offers the same or substantially similar functionality as the Software.
|
|
43
|
+
|
|
44
|
+
Permitted Purposes specifically include using the Software:
|
|
45
|
+
|
|
46
|
+
1. for your internal use and access;
|
|
47
|
+
|
|
48
|
+
2. for non-commercial education;
|
|
49
|
+
|
|
50
|
+
3. for non-commercial research; and
|
|
51
|
+
|
|
52
|
+
4. in connection with professional services that you provide to a licensee
|
|
53
|
+
using the Software in accordance with these Terms and Conditions.
|
|
54
|
+
|
|
55
|
+
### Patents
|
|
56
|
+
|
|
57
|
+
To the extent your use for a Permitted Purpose would necessarily infringe
|
|
58
|
+
our patents, the license grant above includes a license under our patents.
|
|
59
|
+
If you make a claim against any party that the Software infringes or
|
|
60
|
+
contributes to the infringement of any patent, then your patent license to
|
|
61
|
+
the Software ends immediately.
|
|
62
|
+
|
|
63
|
+
### Redistribution
|
|
64
|
+
|
|
65
|
+
The Terms and Conditions apply to all copies, modifications and derivatives
|
|
66
|
+
of the Software.
|
|
67
|
+
|
|
68
|
+
If you redistribute any copies, modifications or derivatives of the
|
|
69
|
+
Software, you must include a copy of or a link to these Terms and Conditions
|
|
70
|
+
and not remove any copyright notices provided in or with the Software.
|
|
71
|
+
|
|
72
|
+
### Disclaimer
|
|
73
|
+
|
|
74
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS
|
|
75
|
+
OR IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A
|
|
76
|
+
PARTICULAR PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
|
|
77
|
+
|
|
78
|
+
IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO
|
|
79
|
+
THE SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL
|
|
80
|
+
DAMAGES, EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.
|
|
81
|
+
|
|
82
|
+
### Trademarks
|
|
83
|
+
|
|
84
|
+
Except for displaying the License Details and identifying us as the origin
|
|
85
|
+
of the Software, you have no right under these Terms and Conditions to use
|
|
86
|
+
our trademarks, trade names, service marks or product names.
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
## Grant of Future License
|
|
91
|
+
|
|
92
|
+
We hereby irrevocably grant you an additional license to use the Software
|
|
93
|
+
under the Apache License, Version 2.0 that is effective on the second
|
|
94
|
+
anniversary of the date we make the Software available. On or after that
|
|
95
|
+
date, you may use the Software under the Apache License, Version 2.0, in
|
|
96
|
+
which case the following will apply:
|
|
97
|
+
|
|
98
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
|
99
|
+
use this file except in compliance with the License.
|
|
100
|
+
|
|
101
|
+
You may obtain a copy of the License at
|
|
102
|
+
|
|
103
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
104
|
+
|
|
105
|
+
Unless required by applicable law or agreed to in writing, software
|
|
106
|
+
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
107
|
+
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
108
|
+
License for the specific language governing permissions and limitations
|
|
109
|
+
under the License.
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -4,5 +4,6 @@ export { type UseCustomerPortalBookingsOptions, useCustomerPortalBookings, } fro
|
|
|
4
4
|
export { type UseCustomerPortalCompanionsOptions, useCustomerPortalCompanions, } from "./use-customer-portal-companions.js";
|
|
5
5
|
export { type UseCustomerPortalContactExistsOptions, useCustomerPortalContactExists, } from "./use-customer-portal-contact-exists.js";
|
|
6
6
|
export { type DeleteCustomerPortalCompanionMutationInput, type UpdateCustomerPortalCompanionMutationInput, useCustomerPortalMutation, } from "./use-customer-portal-mutation.js";
|
|
7
|
+
export { type UseCustomerPortalPhoneContactExistsOptions, useCustomerPortalPhoneContactExists, } from "./use-customer-portal-phone-contact-exists.js";
|
|
7
8
|
export { type UseCustomerPortalProfileOptions, useCustomerPortalProfile, } from "./use-customer-portal-profile.js";
|
|
8
9
|
//# 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,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,+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,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"}
|
package/dist/hooks/index.js
CHANGED
|
@@ -4,4 +4,5 @@ export { useCustomerPortalBookings, } from "./use-customer-portal-bookings.js";
|
|
|
4
4
|
export { useCustomerPortalCompanions, } from "./use-customer-portal-companions.js";
|
|
5
5
|
export { useCustomerPortalContactExists, } from "./use-customer-portal-contact-exists.js";
|
|
6
6
|
export { useCustomerPortalMutation, } from "./use-customer-portal-mutation.js";
|
|
7
|
+
export { useCustomerPortalPhoneContactExists, } from "./use-customer-portal-phone-contact-exists.js";
|
|
7
8
|
export { useCustomerPortalProfile, } from "./use-customer-portal-profile.js";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface UseCustomerPortalPhoneContactExistsOptions {
|
|
2
|
+
enabled?: boolean;
|
|
3
|
+
}
|
|
4
|
+
export declare function useCustomerPortalPhoneContactExists(phone: string | null | undefined, options?: UseCustomerPortalPhoneContactExistsOptions): import("@tanstack/react-query").UseQueryResult<{
|
|
5
|
+
data: {
|
|
6
|
+
phone: string;
|
|
7
|
+
customerRecordExists: boolean;
|
|
8
|
+
linkedCustomerRecordExists: boolean;
|
|
9
|
+
};
|
|
10
|
+
}, Error>;
|
|
11
|
+
//# sourceMappingURL=use-customer-portal-phone-contact-exists.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-customer-portal-phone-contact-exists.d.ts","sourceRoot":"","sources":["../../src/hooks/use-customer-portal-phone-contact-exists.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,0CAA0C;IACzD,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,mCAAmC,CACjD,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAChC,OAAO,GAAE,0CAA+C;;;;;;UAYzD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useQuery } from "@tanstack/react-query";
|
|
3
|
+
import { useVoyantCustomerPortalContext } from "../provider.js";
|
|
4
|
+
import { getCustomerPortalPhoneContactExistsQueryOptions } from "../query-options.js";
|
|
5
|
+
export function useCustomerPortalPhoneContactExists(phone, options = {}) {
|
|
6
|
+
const { baseUrl, fetcher } = useVoyantCustomerPortalContext();
|
|
7
|
+
const { enabled = true } = options;
|
|
8
|
+
return useQuery({
|
|
9
|
+
...getCustomerPortalPhoneContactExistsQueryOptions({ phone: phone ?? "" }, { baseUrl, fetcher }),
|
|
10
|
+
enabled: enabled && Boolean(phone),
|
|
11
|
+
});
|
|
12
|
+
}
|
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, getCustomerPortalContactExists, getCustomerPortalProfile, listCustomerPortalBookingDocuments, listCustomerPortalBookings, listCustomerPortalCompanions, updateCustomerPortalCompanion, updateCustomerPortalProfile, } from "./operations.js";
|
|
3
|
+
export { bootstrapCustomerPortal, createCustomerPortalCompanion, deleteCustomerPortalCompanion, getCustomerPortalBooking, getCustomerPortalContactExists, getCustomerPortalPhoneContactExists, getCustomerPortalProfile, listCustomerPortalBookingDocuments, listCustomerPortalBookings, listCustomerPortalCompanions, updateCustomerPortalCompanion, updateCustomerPortalProfile, } from "./operations.js";
|
|
4
4
|
export { useVoyantCustomerPortalContext, type VoyantCustomerPortalContextValue, VoyantCustomerPortalProvider, type VoyantCustomerPortalProviderProps, } from "./provider.js";
|
|
5
|
-
export type { CustomerPortalContactExistsFilters } from "./query-keys.js";
|
|
5
|
+
export type { CustomerPortalContactExistsFilters, CustomerPortalPhoneContactExistsFilters, } from "./query-keys.js";
|
|
6
6
|
export { customerPortalQueryKeys } from "./query-keys.js";
|
|
7
|
-
export { getCustomerPortalBookingDocumentsQueryOptions, getCustomerPortalBookingQueryOptions, getCustomerPortalBookingsQueryOptions, getCustomerPortalCompanionsQueryOptions, getCustomerPortalContactExistsQueryOptions, getCustomerPortalProfileQueryOptions, } from "./query-options.js";
|
|
7
|
+
export { getCustomerPortalBookingDocumentsQueryOptions, getCustomerPortalBookingQueryOptions, getCustomerPortalBookingsQueryOptions, getCustomerPortalCompanionsQueryOptions, getCustomerPortalContactExistsQueryOptions, getCustomerPortalPhoneContactExistsQueryOptions, 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,8BAA8B,EAC9B,wBAAwB,EACxB,kCAAkC,EAClC,0BAA0B,EAC1B,4BAA4B,EAC5B,6BAA6B,EAC7B,2BAA2B,GAC5B,MAAM,iBAAiB,CAAA;AACxB,OAAO,EACL,8BAA8B,EAC9B,KAAK,gCAAgC,EACrC,4BAA4B,EAC5B,KAAK,iCAAiC,GACvC,MAAM,eAAe,CAAA;AACtB,YAAY,
|
|
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,8BAA8B,EAC9B,mCAAmC,EACnC,wBAAwB,EACxB,kCAAkC,EAClC,0BAA0B,EAC1B,4BAA4B,EAC5B,6BAA6B,EAC7B,2BAA2B,GAC5B,MAAM,iBAAiB,CAAA;AACxB,OAAO,EACL,8BAA8B,EAC9B,KAAK,gCAAgC,EACrC,4BAA4B,EAC5B,KAAK,iCAAiC,GACvC,MAAM,eAAe,CAAA;AACtB,YAAY,EACV,kCAAkC,EAClC,uCAAuC,GACxC,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAA;AACzD,OAAO,EACL,6CAA6C,EAC7C,oCAAoC,EACpC,qCAAqC,EACrC,uCAAuC,EACvC,0CAA0C,EAC1C,+CAA+C,EAC/C,oCAAoC,GACrC,MAAM,oBAAoB,CAAA;AAC3B,cAAc,cAAc,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,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, getCustomerPortalContactExists, getCustomerPortalProfile, listCustomerPortalBookingDocuments, listCustomerPortalBookings, listCustomerPortalCompanions, updateCustomerPortalCompanion, updateCustomerPortalProfile, } from "./operations.js";
|
|
3
|
+
export { bootstrapCustomerPortal, createCustomerPortalCompanion, deleteCustomerPortalCompanion, getCustomerPortalBooking, getCustomerPortalContactExists, getCustomerPortalPhoneContactExists, getCustomerPortalProfile, listCustomerPortalBookingDocuments, listCustomerPortalBookings, listCustomerPortalCompanions, updateCustomerPortalCompanion, updateCustomerPortalProfile, } from "./operations.js";
|
|
4
4
|
export { useVoyantCustomerPortalContext, VoyantCustomerPortalProvider, } from "./provider.js";
|
|
5
5
|
export { customerPortalQueryKeys } from "./query-keys.js";
|
|
6
|
-
export { getCustomerPortalBookingDocumentsQueryOptions, getCustomerPortalBookingQueryOptions, getCustomerPortalBookingsQueryOptions, getCustomerPortalCompanionsQueryOptions, getCustomerPortalContactExistsQueryOptions, getCustomerPortalProfileQueryOptions, } from "./query-options.js";
|
|
6
|
+
export { getCustomerPortalBookingDocumentsQueryOptions, getCustomerPortalBookingQueryOptions, getCustomerPortalBookingsQueryOptions, getCustomerPortalCompanionsQueryOptions, getCustomerPortalContactExistsQueryOptions, getCustomerPortalPhoneContactExistsQueryOptions, getCustomerPortalProfileQueryOptions, } from "./query-options.js";
|
|
7
7
|
export * from "./schemas.js";
|
package/dist/operations.d.ts
CHANGED
|
@@ -8,6 +8,13 @@ export declare function getCustomerPortalContactExists(client: FetchWithValidati
|
|
|
8
8
|
linkedCustomerRecordExists: boolean;
|
|
9
9
|
};
|
|
10
10
|
}>;
|
|
11
|
+
export declare function getCustomerPortalPhoneContactExists(client: FetchWithValidationOptions, phone: string): Promise<{
|
|
12
|
+
data: {
|
|
13
|
+
phone: string;
|
|
14
|
+
customerRecordExists: boolean;
|
|
15
|
+
linkedCustomerRecordExists: boolean;
|
|
16
|
+
};
|
|
17
|
+
}>;
|
|
11
18
|
export declare function getCustomerPortalProfile(client: FetchWithValidationOptions): Promise<{
|
|
12
19
|
data: {
|
|
13
20
|
userId: string;
|
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,EAWvC,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,EACtC,MAAM,cAAc,CAAA;AAErB,wBAAgB,8BAA8B,CAAC,MAAM,EAAE,0BAA0B,EAAE,KAAK,EAAE,MAAM;;;;;;;GAM/F;AAED,wBAAgB,mCAAmC,CACjD,MAAM,EAAE,0BAA0B,EAClC,KAAK,EAAE,MAAM;;;;;;GAOd;AAED,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAM1E;AAED,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,0BAA0B,EAClC,KAAK,EAAE,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAWxC;AAED,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,0BAA0B,EAClC,KAAK,EAAE,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAWpC;AAED,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,0BAA0B;;;;;;;;;;;;GAM9E;AAED,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,0BAA0B,EAClC,KAAK,EAAE,kCAAkC;;;;;;;;;;;;GAW1C;AAED,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,0BAA0B,EAClC,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,kCAAkC;;;;;;;;;;;;GAW1C;AAED,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,0BAA0B,EAClC,WAAW,EAAE,MAAM;;GAUpB;AAED,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,0BAA0B;;;;;;;;;;;;;;;GAM5E;AAED,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,0BAA0B,EAAE,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAM7F;AAED,wBAAgB,kCAAkC,CAChD,MAAM,EAAE,0BAA0B,EAClC,SAAS,EAAE,MAAM;;;;;;;;GAOlB"}
|
package/dist/operations.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { fetchWithValidation, withQueryParams } from "./client.js";
|
|
3
|
-
import { customerPortalBookingDocumentsResponseSchema, customerPortalBookingResponseSchema, customerPortalBookingsResponseSchema, customerPortalBootstrapResponseSchema, customerPortalCompanionResponseSchema, customerPortalCompanionsResponseSchema, customerPortalContactExistsResponseSchema, customerPortalProfileResponseSchema, successEnvelope, } from "./schemas.js";
|
|
3
|
+
import { customerPortalBookingDocumentsResponseSchema, customerPortalBookingResponseSchema, customerPortalBookingsResponseSchema, customerPortalBootstrapResponseSchema, customerPortalCompanionResponseSchema, customerPortalCompanionsResponseSchema, customerPortalContactExistsResponseSchema, customerPortalPhoneContactExistsResponseSchema, customerPortalProfileResponseSchema, successEnvelope, } from "./schemas.js";
|
|
4
4
|
export function getCustomerPortalContactExists(client, email) {
|
|
5
5
|
return fetchWithValidation(withQueryParams("/v1/customer-portal/contact-exists", { email }), customerPortalContactExistsResponseSchema, client);
|
|
6
6
|
}
|
|
7
|
+
export function getCustomerPortalPhoneContactExists(client, phone) {
|
|
8
|
+
return fetchWithValidation(withQueryParams("/v1/customer-portal/contact-exists/phone", { phone }), customerPortalPhoneContactExistsResponseSchema, client);
|
|
9
|
+
}
|
|
7
10
|
export function getCustomerPortalProfile(client) {
|
|
8
11
|
return fetchWithValidation("/v1/public/customer-portal/me", customerPortalProfileResponseSchema, client);
|
|
9
12
|
}
|
package/dist/query-keys.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export interface CustomerPortalContactExistsFilters {
|
|
2
2
|
email: string;
|
|
3
3
|
}
|
|
4
|
+
export interface CustomerPortalPhoneContactExistsFilters {
|
|
5
|
+
phone: string;
|
|
6
|
+
}
|
|
4
7
|
export declare const customerPortalQueryKeys: {
|
|
5
8
|
all: readonly ["customer-portal"];
|
|
6
9
|
profile: () => readonly ["customer-portal", "profile"];
|
|
@@ -10,5 +13,7 @@ export declare const customerPortalQueryKeys: {
|
|
|
10
13
|
bookingDocuments: (bookingId: string) => readonly ["customer-portal", "bookings", string, "documents"];
|
|
11
14
|
contactExists: () => readonly ["customer-portal", "contact-exists"];
|
|
12
15
|
contactExistsLookup: (filters: CustomerPortalContactExistsFilters) => readonly ["customer-portal", "contact-exists", CustomerPortalContactExistsFilters];
|
|
16
|
+
phoneContactExists: () => readonly ["customer-portal", "phone-contact-exists"];
|
|
17
|
+
phoneContactExistsLookup: (filters: CustomerPortalPhoneContactExistsFilters) => readonly ["customer-portal", "phone-contact-exists", CustomerPortalPhoneContactExistsFilters];
|
|
13
18
|
};
|
|
14
19
|
//# sourceMappingURL=query-keys.d.ts.map
|
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,eAAO,MAAM,uBAAuB;;;;;yBAKb,MAAM;kCACG,MAAM;;mCAGL,kCAAkC;
|
|
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;;;;;yBAKb,MAAM;kCACG,MAAM;;mCAGL,kCAAkC;;wCAG7B,uCAAuC;CAE5E,CAAA"}
|
package/dist/query-keys.js
CHANGED
|
@@ -7,4 +7,6 @@ export const customerPortalQueryKeys = {
|
|
|
7
7
|
bookingDocuments: (bookingId) => [...customerPortalQueryKeys.booking(bookingId), "documents"],
|
|
8
8
|
contactExists: () => [...customerPortalQueryKeys.all, "contact-exists"],
|
|
9
9
|
contactExistsLookup: (filters) => [...customerPortalQueryKeys.contactExists(), filters],
|
|
10
|
+
phoneContactExists: () => [...customerPortalQueryKeys.all, "phone-contact-exists"],
|
|
11
|
+
phoneContactExistsLookup: (filters) => [...customerPortalQueryKeys.phoneContactExists(), filters],
|
|
10
12
|
};
|
package/dist/query-options.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FetchWithValidationOptions } from "./client.js";
|
|
2
|
-
import { type CustomerPortalContactExistsFilters } from "./query-keys.js";
|
|
2
|
+
import { type CustomerPortalContactExistsFilters, type CustomerPortalPhoneContactExistsFilters } from "./query-keys.js";
|
|
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;
|
|
@@ -572,5 +572,37 @@ export declare function getCustomerPortalContactExistsQueryOptions(filters: Cust
|
|
|
572
572
|
[dataTagErrorSymbol]: Error;
|
|
573
573
|
};
|
|
574
574
|
};
|
|
575
|
-
export
|
|
575
|
+
export declare function getCustomerPortalPhoneContactExistsQueryOptions(filters: CustomerPortalPhoneContactExistsFilters, client: FetchWithValidationOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
576
|
+
data: {
|
|
577
|
+
phone: string;
|
|
578
|
+
customerRecordExists: boolean;
|
|
579
|
+
linkedCustomerRecordExists: boolean;
|
|
580
|
+
};
|
|
581
|
+
}, Error, {
|
|
582
|
+
data: {
|
|
583
|
+
phone: string;
|
|
584
|
+
customerRecordExists: boolean;
|
|
585
|
+
linkedCustomerRecordExists: boolean;
|
|
586
|
+
};
|
|
587
|
+
}, readonly ["customer-portal", "phone-contact-exists", CustomerPortalPhoneContactExistsFilters]>, "queryFn"> & {
|
|
588
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
589
|
+
data: {
|
|
590
|
+
phone: string;
|
|
591
|
+
customerRecordExists: boolean;
|
|
592
|
+
linkedCustomerRecordExists: boolean;
|
|
593
|
+
};
|
|
594
|
+
}, readonly ["customer-portal", "phone-contact-exists", CustomerPortalPhoneContactExistsFilters], never> | undefined;
|
|
595
|
+
} & {
|
|
596
|
+
queryKey: readonly ["customer-portal", "phone-contact-exists", CustomerPortalPhoneContactExistsFilters] & {
|
|
597
|
+
[dataTagSymbol]: {
|
|
598
|
+
data: {
|
|
599
|
+
phone: string;
|
|
600
|
+
customerRecordExists: boolean;
|
|
601
|
+
linkedCustomerRecordExists: boolean;
|
|
602
|
+
};
|
|
603
|
+
};
|
|
604
|
+
[dataTagErrorSymbol]: Error;
|
|
605
|
+
};
|
|
606
|
+
};
|
|
607
|
+
export type { CustomerPortalContactExistsFilters, CustomerPortalPhoneContactExistsFilters, } from "./query-keys.js";
|
|
576
608
|
//# sourceMappingURL=query-options.d.ts.map
|
|
@@ -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;AAU7D,OAAO,EACL,KAAK,kCAAkC,EACvC,KAAK,uCAAuC,EAE7C,MAAM,iBAAiB,CAAA;AAExB,wBAAgB,oCAAoC,CAAC,MAAM,EAAE,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKtF;AAED,wBAAgB,uCAAuC,CAAC,MAAM,EAAE,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKzF;AAED,wBAAgB,qCAAqC,CAAC,MAAM,EAAE,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKvF;AAED,wBAAgB,oCAAoC,CAClD,MAAM,EAAE,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,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { queryOptions } from "@tanstack/react-query";
|
|
3
|
-
import { getCustomerPortalBooking, getCustomerPortalContactExists, getCustomerPortalProfile, listCustomerPortalBookingDocuments, listCustomerPortalBookings, listCustomerPortalCompanions, } from "./operations.js";
|
|
4
|
-
import { customerPortalQueryKeys } from "./query-keys.js";
|
|
3
|
+
import { getCustomerPortalBooking, getCustomerPortalContactExists, getCustomerPortalPhoneContactExists, getCustomerPortalProfile, listCustomerPortalBookingDocuments, listCustomerPortalBookings, listCustomerPortalCompanions, } from "./operations.js";
|
|
4
|
+
import { customerPortalQueryKeys, } from "./query-keys.js";
|
|
5
5
|
export function getCustomerPortalProfileQueryOptions(client) {
|
|
6
6
|
return queryOptions({
|
|
7
7
|
queryKey: customerPortalQueryKeys.profile(),
|
|
@@ -38,3 +38,9 @@ export function getCustomerPortalContactExistsQueryOptions(filters, client) {
|
|
|
38
38
|
queryFn: () => getCustomerPortalContactExists(client, filters.email),
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
|
+
export function getCustomerPortalPhoneContactExistsQueryOptions(filters, client) {
|
|
42
|
+
return queryOptions({
|
|
43
|
+
queryKey: customerPortalQueryKeys.phoneContactExistsLookup(filters),
|
|
44
|
+
queryFn: () => getCustomerPortalPhoneContactExists(client, filters.phone),
|
|
45
|
+
});
|
|
46
|
+
}
|
package/dist/schemas.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bootstrapCustomerPortalResultSchema, bootstrapCustomerPortalSchema, createCustomerPortalCompanionSchema, customerPortalBookingDetailSchema, customerPortalBookingDocumentSchema, customerPortalBookingSummarySchema, customerPortalCompanionSchema, customerPortalContactExistsResultSchema, customerPortalProfileSchema, updateCustomerPortalCompanionSchema, updateCustomerPortalProfileSchema } from "@voyantjs/customer-portal";
|
|
1
|
+
import { bootstrapCustomerPortalResultSchema, bootstrapCustomerPortalSchema, createCustomerPortalCompanionSchema, customerPortalBookingDetailSchema, customerPortalBookingDocumentSchema, customerPortalBookingSummarySchema, customerPortalCompanionSchema, customerPortalContactExistsResultSchema, customerPortalPhoneContactExistsResultSchema, customerPortalProfileSchema, updateCustomerPortalCompanionSchema, updateCustomerPortalProfileSchema } from "@voyantjs/customer-portal";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
export declare const singleEnvelope: <T extends z.ZodTypeAny>(item: T) => z.ZodObject<{
|
|
4
4
|
data: T;
|
|
@@ -9,7 +9,7 @@ export declare const arrayEnvelope: <T extends z.ZodTypeAny>(item: T) => z.ZodOb
|
|
|
9
9
|
export declare const successEnvelope: z.ZodObject<{
|
|
10
10
|
success: z.ZodBoolean;
|
|
11
11
|
}, z.core.$strip>;
|
|
12
|
-
export { bootstrapCustomerPortalResultSchema, bootstrapCustomerPortalSchema, createCustomerPortalCompanionSchema, customerPortalBookingDetailSchema, customerPortalBookingDocumentSchema, customerPortalBookingSummarySchema, customerPortalCompanionSchema, customerPortalContactExistsResultSchema, customerPortalProfileSchema, updateCustomerPortalCompanionSchema, updateCustomerPortalProfileSchema, };
|
|
12
|
+
export { bootstrapCustomerPortalResultSchema, bootstrapCustomerPortalSchema, createCustomerPortalCompanionSchema, customerPortalBookingDetailSchema, customerPortalBookingDocumentSchema, customerPortalBookingSummarySchema, customerPortalCompanionSchema, customerPortalContactExistsResultSchema, customerPortalPhoneContactExistsResultSchema, customerPortalProfileSchema, updateCustomerPortalCompanionSchema, updateCustomerPortalProfileSchema, };
|
|
13
13
|
export declare const customerPortalProfileResponseSchema: z.ZodObject<{
|
|
14
14
|
data: z.ZodObject<{
|
|
15
15
|
userId: z.ZodString;
|
|
@@ -307,6 +307,13 @@ export declare const customerPortalContactExistsResponseSchema: z.ZodObject<{
|
|
|
307
307
|
linkedCustomerRecordExists: z.ZodBoolean;
|
|
308
308
|
}, z.core.$strip>;
|
|
309
309
|
}, z.core.$strip>;
|
|
310
|
+
export declare const customerPortalPhoneContactExistsResponseSchema: z.ZodObject<{
|
|
311
|
+
data: z.ZodObject<{
|
|
312
|
+
phone: z.ZodString;
|
|
313
|
+
customerRecordExists: z.ZodBoolean;
|
|
314
|
+
linkedCustomerRecordExists: z.ZodBoolean;
|
|
315
|
+
}, z.core.$strip>;
|
|
316
|
+
}, z.core.$strip>;
|
|
310
317
|
export type CustomerPortalProfileRecord = z.infer<typeof customerPortalProfileSchema>;
|
|
311
318
|
export type BootstrapCustomerPortalInput = z.input<typeof bootstrapCustomerPortalSchema>;
|
|
312
319
|
export type BootstrapCustomerPortalResult = z.infer<typeof bootstrapCustomerPortalResultSchema>;
|
|
@@ -318,4 +325,5 @@ export type CustomerPortalBookingSummaryRecord = z.infer<typeof customerPortalBo
|
|
|
318
325
|
export type CustomerPortalBookingRecord = z.infer<typeof customerPortalBookingDetailSchema>;
|
|
319
326
|
export type CustomerPortalBookingDocumentRecord = z.infer<typeof customerPortalBookingDocumentSchema>;
|
|
320
327
|
export type CustomerPortalContactExistsRecord = z.infer<typeof customerPortalContactExistsResultSchema>;
|
|
328
|
+
export type CustomerPortalPhoneContactExistsRecord = z.infer<typeof customerPortalPhoneContactExistsResultSchema>;
|
|
321
329
|
//# 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"],"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MAAM,8CAA8C;;;;;;iBAE1D,CAAA;AAED,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAA;AACrF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAA;AACxF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAA;AAC/F,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAA;AAChG,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAA;AACzF,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAA;AACpG,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAA;AACpG,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAA;AACnG,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAA;AAC3F,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,mCAAmC,CAC3C,CAAA;AACD,MAAM,MAAM,iCAAiC,GAAG,CAAC,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,9 +1,9 @@
|
|
|
1
|
-
import { bootstrapCustomerPortalResultSchema, bootstrapCustomerPortalSchema, createCustomerPortalCompanionSchema, customerPortalBookingDetailSchema, customerPortalBookingDocumentSchema, customerPortalBookingSummarySchema, customerPortalCompanionSchema, customerPortalContactExistsResultSchema, customerPortalProfileSchema, updateCustomerPortalCompanionSchema, updateCustomerPortalProfileSchema, } from "@voyantjs/customer-portal";
|
|
1
|
+
import { bootstrapCustomerPortalResultSchema, bootstrapCustomerPortalSchema, createCustomerPortalCompanionSchema, customerPortalBookingDetailSchema, customerPortalBookingDocumentSchema, customerPortalBookingSummarySchema, customerPortalCompanionSchema, customerPortalContactExistsResultSchema, customerPortalPhoneContactExistsResultSchema, customerPortalProfileSchema, updateCustomerPortalCompanionSchema, updateCustomerPortalProfileSchema, } from "@voyantjs/customer-portal";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
export const singleEnvelope = (item) => z.object({ data: item });
|
|
4
4
|
export const arrayEnvelope = (item) => z.object({ data: z.array(item) });
|
|
5
5
|
export const successEnvelope = z.object({ success: z.boolean() });
|
|
6
|
-
export { bootstrapCustomerPortalResultSchema, bootstrapCustomerPortalSchema, createCustomerPortalCompanionSchema, customerPortalBookingDetailSchema, customerPortalBookingDocumentSchema, customerPortalBookingSummarySchema, customerPortalCompanionSchema, customerPortalContactExistsResultSchema, customerPortalProfileSchema, updateCustomerPortalCompanionSchema, updateCustomerPortalProfileSchema, };
|
|
6
|
+
export { bootstrapCustomerPortalResultSchema, bootstrapCustomerPortalSchema, createCustomerPortalCompanionSchema, customerPortalBookingDetailSchema, customerPortalBookingDocumentSchema, customerPortalBookingSummarySchema, customerPortalCompanionSchema, customerPortalContactExistsResultSchema, customerPortalPhoneContactExistsResultSchema, customerPortalProfileSchema, updateCustomerPortalCompanionSchema, updateCustomerPortalProfileSchema, };
|
|
7
7
|
export const customerPortalProfileResponseSchema = singleEnvelope(customerPortalProfileSchema);
|
|
8
8
|
export const customerPortalBootstrapResponseSchema = singleEnvelope(bootstrapCustomerPortalResultSchema);
|
|
9
9
|
export const customerPortalCompanionsResponseSchema = arrayEnvelope(customerPortalCompanionSchema);
|
|
@@ -12,3 +12,4 @@ export const customerPortalBookingsResponseSchema = arrayEnvelope(customerPortal
|
|
|
12
12
|
export const customerPortalBookingResponseSchema = singleEnvelope(customerPortalBookingDetailSchema);
|
|
13
13
|
export const customerPortalBookingDocumentsResponseSchema = arrayEnvelope(customerPortalBookingDocumentSchema);
|
|
14
14
|
export const customerPortalContactExistsResponseSchema = singleEnvelope(customerPortalContactExistsResultSchema);
|
|
15
|
+
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.3.1",
|
|
4
4
|
"license": "FSL-1.1-Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -9,76 +9,67 @@
|
|
|
9
9
|
},
|
|
10
10
|
"type": "module",
|
|
11
11
|
"exports": {
|
|
12
|
-
".":
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"./
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"import": "./dist/index.js"
|
|
15
|
+
},
|
|
16
|
+
"./provider": {
|
|
17
|
+
"types": "./dist/provider.d.ts",
|
|
18
|
+
"import": "./dist/provider.js"
|
|
19
|
+
},
|
|
20
|
+
"./hooks": {
|
|
21
|
+
"types": "./dist/hooks/index.d.ts",
|
|
22
|
+
"import": "./dist/hooks/index.js"
|
|
23
|
+
},
|
|
24
|
+
"./client": {
|
|
25
|
+
"types": "./dist/client.d.ts",
|
|
26
|
+
"import": "./dist/client.js"
|
|
27
|
+
},
|
|
28
|
+
"./query-keys": {
|
|
29
|
+
"types": "./dist/query-keys.d.ts",
|
|
30
|
+
"import": "./dist/query-keys.js"
|
|
31
|
+
},
|
|
32
|
+
"./operations": {
|
|
33
|
+
"types": "./dist/operations.d.ts",
|
|
34
|
+
"import": "./dist/operations.js"
|
|
35
|
+
}
|
|
26
36
|
},
|
|
27
37
|
"peerDependencies": {
|
|
28
|
-
"@voyantjs/customer-portal": "workspace:*",
|
|
29
38
|
"@tanstack/react-query": "^5.0.0",
|
|
30
39
|
"react": "^19.0.0",
|
|
31
40
|
"react-dom": "^19.0.0",
|
|
32
|
-
"zod": "^4.0.0"
|
|
41
|
+
"zod": "^4.0.0",
|
|
42
|
+
"@voyantjs/customer-portal": "0.3.1"
|
|
33
43
|
},
|
|
34
44
|
"devDependencies": {
|
|
35
45
|
"@tanstack/react-query": "^5.96.2",
|
|
36
46
|
"@types/react": "^19.2.14",
|
|
37
47
|
"@types/react-dom": "^19.2.3",
|
|
38
|
-
"@voyantjs/customer-portal": "workspace:*",
|
|
39
|
-
"@voyantjs/react": "workspace:*",
|
|
40
|
-
"@voyantjs/voyant-typescript-config": "workspace:*",
|
|
41
48
|
"react": "^19.2.4",
|
|
42
49
|
"react-dom": "^19.2.4",
|
|
43
50
|
"typescript": "^6.0.2",
|
|
44
51
|
"vitest": "^4.1.2",
|
|
45
|
-
"zod": "^4.3.6"
|
|
52
|
+
"zod": "^4.3.6",
|
|
53
|
+
"@voyantjs/customer-portal": "0.3.1",
|
|
54
|
+
"@voyantjs/react": "0.3.1",
|
|
55
|
+
"@voyantjs/voyant-typescript-config": "0.1.0"
|
|
46
56
|
},
|
|
47
57
|
"dependencies": {
|
|
48
|
-
"@voyantjs/react": "
|
|
58
|
+
"@voyantjs/react": "0.3.1"
|
|
49
59
|
},
|
|
50
60
|
"files": [
|
|
51
61
|
"dist"
|
|
52
62
|
],
|
|
53
63
|
"publishConfig": {
|
|
54
|
-
"access": "public"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
"import": "./dist/hooks/index.js"
|
|
67
|
-
},
|
|
68
|
-
"./client": {
|
|
69
|
-
"types": "./dist/client.d.ts",
|
|
70
|
-
"import": "./dist/client.js"
|
|
71
|
-
},
|
|
72
|
-
"./query-keys": {
|
|
73
|
-
"types": "./dist/query-keys.d.ts",
|
|
74
|
-
"import": "./dist/query-keys.js"
|
|
75
|
-
},
|
|
76
|
-
"./operations": {
|
|
77
|
-
"types": "./dist/operations.d.ts",
|
|
78
|
-
"import": "./dist/operations.js"
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
"main": "./dist/index.js",
|
|
82
|
-
"types": "./dist/index.d.ts"
|
|
83
|
-
}
|
|
84
|
-
}
|
|
64
|
+
"access": "public"
|
|
65
|
+
},
|
|
66
|
+
"scripts": {
|
|
67
|
+
"build": "tsc -p tsconfig.json",
|
|
68
|
+
"clean": "rm -rf dist",
|
|
69
|
+
"typecheck": "tsc --noEmit",
|
|
70
|
+
"lint": "biome check src/",
|
|
71
|
+
"test": "vitest run --passWithNoTests"
|
|
72
|
+
},
|
|
73
|
+
"main": "./dist/index.js",
|
|
74
|
+
"types": "./dist/index.d.ts"
|
|
75
|
+
}
|