@voyantjs/customer-portal-react 0.3.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/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 +5 -5
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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;;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"],"names":[],"mappings":"AAAA,OAAO,EACL,mCAAmC,EACnC,6BAA6B,EAC7B,mCAAmC,EACnC,iCAAiC,EACjC,mCAAmC,EACnC,kCAAkC,EAClC,6BAA6B,EAC7B,uCAAuC,EACvC,2BAA2B,EAC3B,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,OAAO,EACL,mCAAmC,EACnC,6BAA6B,EAC7B,mCA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AM,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.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"license": "FSL-1.1-Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"react": "^19.0.0",
|
|
40
40
|
"react-dom": "^19.0.0",
|
|
41
41
|
"zod": "^4.0.0",
|
|
42
|
-
"@voyantjs/customer-portal": "0.3.
|
|
42
|
+
"@voyantjs/customer-portal": "0.3.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@tanstack/react-query": "^5.96.2",
|
|
@@ -50,12 +50,12 @@
|
|
|
50
50
|
"typescript": "^6.0.2",
|
|
51
51
|
"vitest": "^4.1.2",
|
|
52
52
|
"zod": "^4.3.6",
|
|
53
|
-
"@voyantjs/customer-portal": "0.3.
|
|
54
|
-
"@voyantjs/react": "0.3.
|
|
53
|
+
"@voyantjs/customer-portal": "0.3.1",
|
|
54
|
+
"@voyantjs/react": "0.3.1",
|
|
55
55
|
"@voyantjs/voyant-typescript-config": "0.1.0"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@voyantjs/react": "0.3.
|
|
58
|
+
"@voyantjs/react": "0.3.1"
|
|
59
59
|
},
|
|
60
60
|
"files": [
|
|
61
61
|
"dist"
|