@learnorama/mozaik-sdk 0.8.2-staging.31.1 → 0.9.0-staging.35.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/api/account.d.ts +27 -28
- package/dist/api/account.js +41 -28
- package/dist/api/account.js.map +1 -1
- package/dist/api/admin-catalogue.d.ts +1 -1
- package/dist/api/admin-catalogue.js.map +1 -1
- package/dist/api/admin-consumption.d.ts +1 -1
- package/dist/api/admin-consumption.js.map +1 -1
- package/dist/api/admin-desk.d.ts +23 -1
- package/dist/api/admin-desk.js +59 -1
- package/dist/api/admin-desk.js.map +1 -1
- package/dist/api/admin-licenses.d.ts +1 -1
- package/dist/api/admin-licenses.js.map +1 -1
- package/dist/api/admin-patrons.d.ts +1 -1
- package/dist/api/admin-patrons.js.map +1 -1
- package/dist/api/admin-reviews.d.ts +1 -1
- package/dist/api/admin-reviews.js.map +1 -1
- package/dist/api/admin-roles.d.ts +1 -1
- package/dist/api/admin-roles.js.map +1 -1
- package/dist/api/admin-support.d.ts +1 -1
- package/dist/api/admin-support.js.map +1 -1
- package/dist/api/admin-tenants.d.ts +1 -1
- package/dist/api/admin-tenants.js.map +1 -1
- package/dist/api/admin-tutoring.d.ts +1 -1
- package/dist/api/admin-tutoring.js.map +1 -1
- package/dist/api/auth.d.ts +11 -1
- package/dist/api/auth.js +31 -1
- package/dist/api/auth.js.map +1 -1
- package/dist/api/biblio-catalogue.d.ts +1 -1
- package/dist/api/biblio-catalogue.js.map +1 -1
- package/dist/api/biblio-home.d.ts +1 -1
- package/dist/api/biblio-home.js.map +1 -1
- package/dist/api/biblio-library.d.ts +1 -1
- package/dist/api/biblio-library.js.map +1 -1
- package/dist/api/biblio-nextory.d.ts +1 -1
- package/dist/api/biblio-nextory.js.map +1 -1
- package/dist/api/biblio-press.d.ts +17 -1
- package/dist/api/biblio-press.js +49 -1
- package/dist/api/biblio-press.js.map +1 -1
- package/dist/api/biblio-search.d.ts +1 -1
- package/dist/api/biblio-search.js.map +1 -1
- package/dist/api/biblio-telemetry.d.ts +1 -1
- package/dist/api/biblio-telemetry.js.map +1 -1
- package/dist/api/consumption.d.ts +1 -1
- package/dist/api/consumption.js.map +1 -1
- package/dist/api/cvs-app.d.ts +1 -1
- package/dist/api/cvs-app.js.map +1 -1
- package/dist/api/cvs-documents.d.ts +1 -1
- package/dist/api/cvs-documents.js.map +1 -1
- package/dist/api/cvs-favorites.d.ts +1 -1
- package/dist/api/cvs-favorites.js.map +1 -1
- package/dist/api/cvs-ils.d.ts +1 -1
- package/dist/api/cvs-ils.js.map +1 -1
- package/dist/api/cvs-loans.d.ts +1 -1
- package/dist/api/cvs-loans.js.map +1 -1
- package/dist/api/cvs-payments.d.ts +1 -1
- package/dist/api/cvs-payments.js.map +1 -1
- package/dist/api/cvs-streaming.d.ts +1 -1
- package/dist/api/cvs-streaming.js.map +1 -1
- package/dist/api/index.d.ts +8 -8
- package/dist/api/index.js +8 -8
- package/dist/api/partner-catalogue.d.ts +20 -1
- package/dist/api/partner-catalogue.js +44 -1
- package/dist/api/partner-catalogue.js.map +1 -1
- package/dist/api/partner-reader.d.ts +34 -6
- package/dist/api/partner-reader.js +48 -6
- package/dist/api/partner-reader.js.map +1 -1
- package/dist/api/profiles.d.ts +86 -33
- package/dist/api/profiles.js +302 -33
- package/dist/api/profiles.js.map +1 -1
- package/dist/api/search.d.ts +1 -1
- package/dist/api/search.js.map +1 -1
- package/dist/api/tutoring-catalogue.d.ts +1 -1
- package/dist/api/tutoring-catalogue.js.map +1 -1
- package/dist/api/tutoring-chat.d.ts +1 -1
- package/dist/api/tutoring-chat.js.map +1 -1
- package/dist/api/tutoring-dispatch.d.ts +1 -1
- package/dist/api/tutoring-dispatch.js.map +1 -1
- package/dist/api/tutoring-practitioner.d.ts +1 -1
- package/dist/api/tutoring-practitioner.js.map +1 -1
- package/dist/api/tutoring-requests.d.ts +1 -1
- package/dist/api/tutoring-requests.js.map +1 -1
- package/dist/chunks/client2.d.ts +1 -1
- package/dist/chunks/connection.d.ts +1 -1
- package/dist/chunks/index.d.ts +1183 -347
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/models.d.ts +2 -2
- package/dist/models.js +95 -2
- package/dist/models.js.map +1 -1
- package/dist/react/account.d.ts +81 -28
- package/dist/react/account.js +90 -29
- package/dist/react/account.js.map +1 -1
- package/dist/react/admin-catalogue.d.ts +1 -1
- package/dist/react/admin-catalogue.js +1 -1
- package/dist/react/admin-catalogue.js.map +1 -1
- package/dist/react/admin-consumption.d.ts +1 -1
- package/dist/react/admin-consumption.js +1 -1
- package/dist/react/admin-consumption.js.map +1 -1
- package/dist/react/admin-desk.d.ts +104 -1
- package/dist/react/admin-desk.js +132 -2
- package/dist/react/admin-desk.js.map +1 -1
- package/dist/react/admin-licenses.d.ts +1 -1
- package/dist/react/admin-licenses.js +1 -1
- package/dist/react/admin-licenses.js.map +1 -1
- package/dist/react/admin-patrons.d.ts +1 -1
- package/dist/react/admin-patrons.js +1 -1
- package/dist/react/admin-patrons.js.map +1 -1
- package/dist/react/admin-reviews.d.ts +1 -1
- package/dist/react/admin-reviews.js +1 -1
- package/dist/react/admin-reviews.js.map +1 -1
- package/dist/react/admin-roles.d.ts +1 -1
- package/dist/react/admin-roles.js +1 -1
- package/dist/react/admin-roles.js.map +1 -1
- package/dist/react/admin-support.d.ts +1 -1
- package/dist/react/admin-support.js +1 -1
- package/dist/react/admin-support.js.map +1 -1
- package/dist/react/admin-tenants.d.ts +1 -1
- package/dist/react/admin-tenants.js +1 -1
- package/dist/react/admin-tenants.js.map +1 -1
- package/dist/react/admin-tutoring.d.ts +1 -1
- package/dist/react/admin-tutoring.js +1 -1
- package/dist/react/admin-tutoring.js.map +1 -1
- package/dist/react/auth.d.ts +29 -1
- package/dist/react/auth.js +60 -2
- package/dist/react/auth.js.map +1 -1
- package/dist/react/biblio-catalogue.d.ts +1 -1
- package/dist/react/biblio-catalogue.js +1 -1
- package/dist/react/biblio-catalogue.js.map +1 -1
- package/dist/react/biblio-home.d.ts +1 -1
- package/dist/react/biblio-home.js +1 -1
- package/dist/react/biblio-home.js.map +1 -1
- package/dist/react/biblio-library.d.ts +1 -1
- package/dist/react/biblio-library.js +1 -1
- package/dist/react/biblio-library.js.map +1 -1
- package/dist/react/biblio-nextory.d.ts +1 -1
- package/dist/react/biblio-nextory.js +1 -1
- package/dist/react/biblio-nextory.js.map +1 -1
- package/dist/react/biblio-press.d.ts +65 -3
- package/dist/react/biblio-press.js +104 -3
- package/dist/react/biblio-press.js.map +1 -1
- package/dist/react/biblio-search.d.ts +1 -1
- package/dist/react/biblio-search.js +1 -1
- package/dist/react/biblio-search.js.map +1 -1
- package/dist/react/biblio-telemetry.d.ts +1 -1
- package/dist/react/biblio-telemetry.js +1 -1
- package/dist/react/biblio-telemetry.js.map +1 -1
- package/dist/react/chat.d.ts +1 -1
- package/dist/react/consumption.d.ts +1 -1
- package/dist/react/consumption.js +1 -1
- package/dist/react/consumption.js.map +1 -1
- package/dist/react/cvs-app.d.ts +1 -1
- package/dist/react/cvs-app.js +1 -1
- package/dist/react/cvs-app.js.map +1 -1
- package/dist/react/cvs-documents.d.ts +1 -1
- package/dist/react/cvs-documents.js +1 -1
- package/dist/react/cvs-documents.js.map +1 -1
- package/dist/react/cvs-favorites.d.ts +1 -1
- package/dist/react/cvs-favorites.js +1 -1
- package/dist/react/cvs-favorites.js.map +1 -1
- package/dist/react/cvs-ils.d.ts +1 -1
- package/dist/react/cvs-ils.js +1 -1
- package/dist/react/cvs-ils.js.map +1 -1
- package/dist/react/cvs-loans.d.ts +1 -1
- package/dist/react/cvs-loans.js +1 -1
- package/dist/react/cvs-loans.js.map +1 -1
- package/dist/react/cvs-payments.d.ts +1 -1
- package/dist/react/cvs-payments.js +1 -1
- package/dist/react/cvs-payments.js.map +1 -1
- package/dist/react/cvs-streaming.d.ts +1 -1
- package/dist/react/cvs-streaming.js +1 -1
- package/dist/react/cvs-streaming.js.map +1 -1
- package/dist/react/index.d.ts +8 -8
- package/dist/react/index.js +8 -8
- package/dist/react/partner-catalogue.d.ts +74 -1
- package/dist/react/partner-catalogue.js +95 -2
- package/dist/react/partner-catalogue.js.map +1 -1
- package/dist/react/partner-reader.d.ts +79 -6
- package/dist/react/partner-reader.js +102 -7
- package/dist/react/partner-reader.js.map +1 -1
- package/dist/react/profiles.d.ts +406 -33
- package/dist/react/profiles.js +760 -59
- package/dist/react/profiles.js.map +1 -1
- package/dist/react/search.d.ts +1 -1
- package/dist/react/search.js +1 -1
- package/dist/react/search.js.map +1 -1
- package/dist/react/tutoring-catalogue.d.ts +1 -1
- package/dist/react/tutoring-catalogue.js +1 -1
- package/dist/react/tutoring-catalogue.js.map +1 -1
- package/dist/react/tutoring-chat.d.ts +1 -1
- package/dist/react/tutoring-chat.js +1 -1
- package/dist/react/tutoring-chat.js.map +1 -1
- package/dist/react/tutoring-dispatch.d.ts +1 -1
- package/dist/react/tutoring-dispatch.js +1 -1
- package/dist/react/tutoring-dispatch.js.map +1 -1
- package/dist/react/tutoring-practitioner.d.ts +1 -1
- package/dist/react/tutoring-practitioner.js +1 -1
- package/dist/react/tutoring-practitioner.js.map +1 -1
- package/dist/react/tutoring-requests.d.ts +1 -1
- package/dist/react/tutoring-requests.js +1 -1
- package/dist/react/tutoring-requests.js.map +1 -1
- package/package.json +7 -7
package/dist/react/profiles.d.ts
CHANGED
|
@@ -1,16 +1,158 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
2
|
+
import { $r as HTTPExceptionResponse, Lt as ProfileCreateWrite, Nr as IndependentInvitationWrite, Nt as ProfileListRead, Pn as OpenChildProfileWrite, Pt as ProfileRead, _i as GuardianPinResetRead, ai as HouseholdGuardianWrite, ei as HouseholdInvitationWrite, gi as GuardianPinResetWrite, hi as GuardianPinWrite, ii as HouseholdInvitationAcceptWrite, jt as ProfileSessionRead, ki as ExitChildProfileWrite, kt as ProfileUpdateWrite, ni as HouseholdInvitationRead, oi as HouseholdGuardianListRead, r as ValidationErrorResponse, ti as HouseholdInvitationListRead } from "../chunks/index.js";
|
|
3
3
|
import { a as ErrorType, c as request, n as BodyType } from "../chunks/client.js";
|
|
4
4
|
import { DataTag, DefinedInitialDataOptions, DefinedUseQueryResult, QueryClient, QueryKey, UndefinedInitialDataOptions, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult } from "@tanstack/react-query";
|
|
5
5
|
//#region src/react/profiles/profiles.d.ts
|
|
6
6
|
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
7
|
+
export declare const getSetPinUrl: () => string;
|
|
8
|
+
/**
|
|
9
|
+
* @summary Set Pin
|
|
10
|
+
*/
|
|
11
|
+
export declare const setPin: (guardianPinWrite: GuardianPinWrite, options?: Parameters<typeof request>[1]) => Promise<void>;
|
|
12
|
+
export declare const getSetPinMutationKey: () => readonly ['setPin'];
|
|
13
|
+
export declare const getSetPinMutationOptions: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
|
|
14
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof setPin>>, TError, SetPinMutationVariables, TContext>;
|
|
15
|
+
request?: SecondParameter<typeof request>;
|
|
16
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof setPin>>, TError, SetPinMutationVariables, TContext>;
|
|
17
|
+
export type SetPinMutationResult = NonNullable<Awaited<ReturnType<typeof setPin>>>;
|
|
18
|
+
export type SetPinMutationBody = BodyType<GuardianPinWrite>;
|
|
19
|
+
export type SetPinMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
|
|
20
|
+
export type SetPinMutationVariables = {
|
|
21
|
+
data: BodyType<GuardianPinWrite>;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* @summary Set Pin
|
|
25
|
+
*/
|
|
26
|
+
export declare const useSetPin: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
|
|
27
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof setPin>>, TError, SetPinMutationVariables, TContext>;
|
|
28
|
+
request?: SecondParameter<typeof request>;
|
|
29
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof setPin>>, TError, SetPinMutationVariables, TContext>;
|
|
30
|
+
export declare const getRequestResetUrl: () => string;
|
|
31
|
+
/**
|
|
32
|
+
* @summary Request Reset
|
|
33
|
+
*/
|
|
34
|
+
export declare const requestReset: (options?: Parameters<typeof request>[1]) => Promise<GuardianPinResetRead>;
|
|
35
|
+
export declare const getRequestResetMutationKey: () => readonly ['requestReset'];
|
|
36
|
+
export declare const getRequestResetMutationOptions: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
|
|
37
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof requestReset>>, TError, void, TContext>;
|
|
38
|
+
request?: SecondParameter<typeof request>;
|
|
39
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof requestReset>>, TError, void, TContext>;
|
|
40
|
+
export type RequestResetMutationResult = NonNullable<Awaited<ReturnType<typeof requestReset>>>;
|
|
41
|
+
export type RequestResetMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* @summary Request Reset
|
|
44
|
+
*/
|
|
45
|
+
export declare const useRequestReset: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
|
|
46
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof requestReset>>, TError, void, TContext>;
|
|
47
|
+
request?: SecondParameter<typeof request>;
|
|
48
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof requestReset>>, TError, void, TContext>;
|
|
49
|
+
export declare const getConfirmResetUrl: () => string;
|
|
50
|
+
/**
|
|
51
|
+
* @summary Confirm Reset
|
|
52
|
+
*/
|
|
53
|
+
export declare const confirmReset: (guardianPinResetWrite: GuardianPinResetWrite, options?: Parameters<typeof request>[1]) => Promise<void>;
|
|
54
|
+
export declare const getConfirmResetMutationKey: () => readonly ['confirmReset'];
|
|
55
|
+
export declare const getConfirmResetMutationOptions: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
|
|
56
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof confirmReset>>, TError, ConfirmResetMutationVariables, TContext>;
|
|
57
|
+
request?: SecondParameter<typeof request>;
|
|
58
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof confirmReset>>, TError, ConfirmResetMutationVariables, TContext>;
|
|
59
|
+
export type ConfirmResetMutationResult = NonNullable<Awaited<ReturnType<typeof confirmReset>>>;
|
|
60
|
+
export type ConfirmResetMutationBody = BodyType<GuardianPinResetWrite>;
|
|
61
|
+
export type ConfirmResetMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
|
|
62
|
+
export type ConfirmResetMutationVariables = {
|
|
63
|
+
data: BodyType<GuardianPinResetWrite>;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* @summary Confirm Reset
|
|
67
|
+
*/
|
|
68
|
+
export declare const useConfirmReset: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
|
|
69
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof confirmReset>>, TError, ConfirmResetMutationVariables, TContext>;
|
|
70
|
+
request?: SecondParameter<typeof request>;
|
|
71
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof confirmReset>>, TError, ConfirmResetMutationVariables, TContext>;
|
|
72
|
+
export declare const getProfileSessionUrl: () => string;
|
|
73
|
+
/**
|
|
74
|
+
* @summary Profile Session
|
|
75
|
+
*/
|
|
76
|
+
export declare const profileSession: (options?: Parameters<typeof request>[1]) => Promise<ProfileSessionRead>;
|
|
77
|
+
export declare const getProfileSessionQueryKey: () => readonly [`/me/profile-session`];
|
|
78
|
+
export declare const getProfileSessionQueryOptions: <TData = Awaited<ReturnType<typeof profileSession>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(options?: {
|
|
79
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof profileSession>>, TError, TData>>;
|
|
80
|
+
request?: SecondParameter<typeof request>;
|
|
81
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof profileSession>>, TError, TData> & {
|
|
82
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
83
|
+
};
|
|
84
|
+
export type ProfileSessionQueryResult = NonNullable<Awaited<ReturnType<typeof profileSession>>>;
|
|
85
|
+
export type ProfileSessionQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
|
|
86
|
+
export declare function useProfileSession<TData = Awaited<ReturnType<typeof profileSession>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(options: {
|
|
87
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof profileSession>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof profileSession>>, TError, Awaited<ReturnType<typeof profileSession>>>, 'initialData'>;
|
|
88
|
+
request?: SecondParameter<typeof request>;
|
|
89
|
+
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
90
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
91
|
+
};
|
|
92
|
+
export declare function useProfileSession<TData = Awaited<ReturnType<typeof profileSession>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(options?: {
|
|
93
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof profileSession>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof profileSession>>, TError, Awaited<ReturnType<typeof profileSession>>>, 'initialData'>;
|
|
94
|
+
request?: SecondParameter<typeof request>;
|
|
95
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
96
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
97
|
+
};
|
|
98
|
+
export declare function useProfileSession<TData = Awaited<ReturnType<typeof profileSession>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(options?: {
|
|
99
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof profileSession>>, TError, TData>>;
|
|
100
|
+
request?: SecondParameter<typeof request>;
|
|
101
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
102
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
103
|
+
};
|
|
104
|
+
export declare const getOpenChildUrl: () => string;
|
|
105
|
+
/**
|
|
106
|
+
* @summary Open Child
|
|
107
|
+
*/
|
|
108
|
+
export declare const openChild: (openChildProfileWrite: OpenChildProfileWrite, options?: Parameters<typeof request>[1]) => Promise<ProfileSessionRead>;
|
|
109
|
+
export declare const getOpenChildMutationKey: () => readonly ['openChild'];
|
|
110
|
+
export declare const getOpenChildMutationOptions: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
|
|
111
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof openChild>>, TError, OpenChildMutationVariables, TContext>;
|
|
112
|
+
request?: SecondParameter<typeof request>;
|
|
113
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof openChild>>, TError, OpenChildMutationVariables, TContext>;
|
|
114
|
+
export type OpenChildMutationResult = NonNullable<Awaited<ReturnType<typeof openChild>>>;
|
|
115
|
+
export type OpenChildMutationBody = BodyType<OpenChildProfileWrite>;
|
|
116
|
+
export type OpenChildMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
|
|
117
|
+
export type OpenChildMutationVariables = {
|
|
118
|
+
data: BodyType<OpenChildProfileWrite>;
|
|
119
|
+
};
|
|
120
|
+
/**
|
|
121
|
+
* @summary Open Child
|
|
122
|
+
*/
|
|
123
|
+
export declare const useOpenChild: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
|
|
124
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof openChild>>, TError, OpenChildMutationVariables, TContext>;
|
|
125
|
+
request?: SecondParameter<typeof request>;
|
|
126
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof openChild>>, TError, OpenChildMutationVariables, TContext>;
|
|
127
|
+
export declare const getExitChildUrl: () => string;
|
|
128
|
+
/**
|
|
129
|
+
* @summary Exit Child
|
|
130
|
+
*/
|
|
131
|
+
export declare const exitChild: (exitChildProfileWrite: ExitChildProfileWrite, options?: Parameters<typeof request>[1]) => Promise<ProfileSessionRead>;
|
|
132
|
+
export declare const getExitChildMutationKey: () => readonly ['exitChild'];
|
|
133
|
+
export declare const getExitChildMutationOptions: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
|
|
134
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof exitChild>>, TError, ExitChildMutationVariables, TContext>;
|
|
135
|
+
request?: SecondParameter<typeof request>;
|
|
136
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof exitChild>>, TError, ExitChildMutationVariables, TContext>;
|
|
137
|
+
export type ExitChildMutationResult = NonNullable<Awaited<ReturnType<typeof exitChild>>>;
|
|
138
|
+
export type ExitChildMutationBody = BodyType<ExitChildProfileWrite>;
|
|
139
|
+
export type ExitChildMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
|
|
140
|
+
export type ExitChildMutationVariables = {
|
|
141
|
+
data: BodyType<ExitChildProfileWrite>;
|
|
142
|
+
};
|
|
143
|
+
/**
|
|
144
|
+
* @summary Exit Child
|
|
145
|
+
*/
|
|
146
|
+
export declare const useExitChild: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
|
|
147
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof exitChild>>, TError, ExitChildMutationVariables, TContext>;
|
|
148
|
+
request?: SecondParameter<typeof request>;
|
|
149
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof exitChild>>, TError, ExitChildMutationVariables, TContext>;
|
|
7
150
|
export declare const getListProfilesUrl: () => string;
|
|
8
151
|
/**
|
|
9
|
-
*
|
|
152
|
+
* Holder sees household cards; another adult sees self and supervised children.
|
|
10
153
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* differently — the difference was presentation, which is the client's problem.
|
|
154
|
+
* Cards never grant the right to open another adult's profile. Expired pending
|
|
155
|
+
* invitations remain manageable but no longer reserve capacity.
|
|
14
156
|
* @summary List Profiles
|
|
15
157
|
*/
|
|
16
158
|
export declare const listProfiles: (options?: Parameters<typeof request>[1]) => Promise<ProfileListRead>;
|
|
@@ -43,15 +185,6 @@ export declare function useListProfiles<TData = Awaited<ReturnType<typeof listPr
|
|
|
43
185
|
};
|
|
44
186
|
export declare const getCreateProfileUrl: () => string;
|
|
45
187
|
/**
|
|
46
|
-
* Add a profile to this account (E21).
|
|
47
|
-
*
|
|
48
|
-
* The new row inherits ``tenant_id`` from the holder rather than accepting one:
|
|
49
|
-
* a profile belongs to the same company as the account it hangs off, and
|
|
50
|
-
* letting that be supplied would be a way into another tenant.
|
|
51
|
-
*
|
|
52
|
-
* A profile has no credential of its own. It has no ``login``, no ``email`` and
|
|
53
|
-
* no password — it is reached by switching within an authenticated session, so
|
|
54
|
-
* there is nothing for it to authenticate *with*.
|
|
55
188
|
* @summary Create Profile
|
|
56
189
|
*/
|
|
57
190
|
export declare const createProfile: (profileCreateWrite: ProfileCreateWrite, options?: Parameters<typeof request>[1]) => Promise<ProfileRead>;
|
|
@@ -73,16 +206,164 @@ export declare const useCreateProfile: <TError = ErrorType<HTTPExceptionResponse
|
|
|
73
206
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof createProfile>>, TError, CreateProfileMutationVariables, TContext>;
|
|
74
207
|
request?: SecondParameter<typeof request>;
|
|
75
208
|
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof createProfile>>, TError, CreateProfileMutationVariables, TContext>;
|
|
209
|
+
export declare const getGuardianCandidatesUrl: () => string;
|
|
210
|
+
/**
|
|
211
|
+
* @summary Guardian Candidates
|
|
212
|
+
*/
|
|
213
|
+
export declare const guardianCandidates: (options?: Parameters<typeof request>[1]) => Promise<HouseholdGuardianListRead>;
|
|
214
|
+
export declare const getGuardianCandidatesQueryKey: () => readonly [`/me/profiles/guardian-candidates`];
|
|
215
|
+
export declare const getGuardianCandidatesQueryOptions: <TData = Awaited<ReturnType<typeof guardianCandidates>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(options?: {
|
|
216
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof guardianCandidates>>, TError, TData>>;
|
|
217
|
+
request?: SecondParameter<typeof request>;
|
|
218
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof guardianCandidates>>, TError, TData> & {
|
|
219
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
220
|
+
};
|
|
221
|
+
export type GuardianCandidatesQueryResult = NonNullable<Awaited<ReturnType<typeof guardianCandidates>>>;
|
|
222
|
+
export type GuardianCandidatesQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
|
|
223
|
+
export declare function useGuardianCandidates<TData = Awaited<ReturnType<typeof guardianCandidates>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(options: {
|
|
224
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof guardianCandidates>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof guardianCandidates>>, TError, Awaited<ReturnType<typeof guardianCandidates>>>, 'initialData'>;
|
|
225
|
+
request?: SecondParameter<typeof request>;
|
|
226
|
+
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
227
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
228
|
+
};
|
|
229
|
+
export declare function useGuardianCandidates<TData = Awaited<ReturnType<typeof guardianCandidates>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(options?: {
|
|
230
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof guardianCandidates>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof guardianCandidates>>, TError, Awaited<ReturnType<typeof guardianCandidates>>>, 'initialData'>;
|
|
231
|
+
request?: SecondParameter<typeof request>;
|
|
232
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
233
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
234
|
+
};
|
|
235
|
+
export declare function useGuardianCandidates<TData = Awaited<ReturnType<typeof guardianCandidates>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(options?: {
|
|
236
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof guardianCandidates>>, TError, TData>>;
|
|
237
|
+
request?: SecondParameter<typeof request>;
|
|
238
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
239
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
240
|
+
};
|
|
241
|
+
export declare const getListInvitationsUrl: () => string;
|
|
242
|
+
/**
|
|
243
|
+
* @summary List Invitations
|
|
244
|
+
*/
|
|
245
|
+
export declare const listInvitations: (options?: Parameters<typeof request>[1]) => Promise<HouseholdInvitationListRead>;
|
|
246
|
+
export declare const getListInvitationsQueryKey: () => readonly [`/me/profiles/invitations`];
|
|
247
|
+
export declare const getListInvitationsQueryOptions: <TData = Awaited<ReturnType<typeof listInvitations>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(options?: {
|
|
248
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listInvitations>>, TError, TData>>;
|
|
249
|
+
request?: SecondParameter<typeof request>;
|
|
250
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof listInvitations>>, TError, TData> & {
|
|
251
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
252
|
+
};
|
|
253
|
+
export type ListInvitationsQueryResult = NonNullable<Awaited<ReturnType<typeof listInvitations>>>;
|
|
254
|
+
export type ListInvitationsQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
|
|
255
|
+
export declare function useListInvitations<TData = Awaited<ReturnType<typeof listInvitations>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(options: {
|
|
256
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof listInvitations>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof listInvitations>>, TError, Awaited<ReturnType<typeof listInvitations>>>, 'initialData'>;
|
|
257
|
+
request?: SecondParameter<typeof request>;
|
|
258
|
+
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
259
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
260
|
+
};
|
|
261
|
+
export declare function useListInvitations<TData = Awaited<ReturnType<typeof listInvitations>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(options?: {
|
|
262
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listInvitations>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof listInvitations>>, TError, Awaited<ReturnType<typeof listInvitations>>>, 'initialData'>;
|
|
263
|
+
request?: SecondParameter<typeof request>;
|
|
264
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
265
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
266
|
+
};
|
|
267
|
+
export declare function useListInvitations<TData = Awaited<ReturnType<typeof listInvitations>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(options?: {
|
|
268
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listInvitations>>, TError, TData>>;
|
|
269
|
+
request?: SecondParameter<typeof request>;
|
|
270
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
271
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
272
|
+
};
|
|
273
|
+
export declare const getInviteAdultUrl: () => string;
|
|
274
|
+
/**
|
|
275
|
+
* @summary Invite Adult
|
|
276
|
+
*/
|
|
277
|
+
export declare const inviteAdult: (householdInvitationWrite: HouseholdInvitationWrite, options?: Parameters<typeof request>[1]) => Promise<HouseholdInvitationRead>;
|
|
278
|
+
export declare const getInviteAdultMutationKey: () => readonly ['inviteAdult'];
|
|
279
|
+
export declare const getInviteAdultMutationOptions: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
|
|
280
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof inviteAdult>>, TError, InviteAdultMutationVariables, TContext>;
|
|
281
|
+
request?: SecondParameter<typeof request>;
|
|
282
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof inviteAdult>>, TError, InviteAdultMutationVariables, TContext>;
|
|
283
|
+
export type InviteAdultMutationResult = NonNullable<Awaited<ReturnType<typeof inviteAdult>>>;
|
|
284
|
+
export type InviteAdultMutationBody = BodyType<HouseholdInvitationWrite>;
|
|
285
|
+
export type InviteAdultMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
|
|
286
|
+
export type InviteAdultMutationVariables = {
|
|
287
|
+
data: BodyType<HouseholdInvitationWrite>;
|
|
288
|
+
};
|
|
289
|
+
/**
|
|
290
|
+
* @summary Invite Adult
|
|
291
|
+
*/
|
|
292
|
+
export declare const useInviteAdult: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
|
|
293
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof inviteAdult>>, TError, InviteAdultMutationVariables, TContext>;
|
|
294
|
+
request?: SecondParameter<typeof request>;
|
|
295
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof inviteAdult>>, TError, InviteAdultMutationVariables, TContext>;
|
|
296
|
+
export declare const getAcceptInvitationUrl: () => string;
|
|
297
|
+
/**
|
|
298
|
+
* Requires a verified login email; never creates an unrelated root account.
|
|
299
|
+
* @summary Accept Invitation
|
|
300
|
+
*/
|
|
301
|
+
export declare const acceptInvitation: (householdInvitationAcceptWrite: HouseholdInvitationAcceptWrite, options?: Parameters<typeof request>[1]) => Promise<ProfileRead>;
|
|
302
|
+
export declare const getAcceptInvitationMutationKey: () => readonly ['acceptInvitation'];
|
|
303
|
+
export declare const getAcceptInvitationMutationOptions: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
|
|
304
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof acceptInvitation>>, TError, AcceptInvitationMutationVariables, TContext>;
|
|
305
|
+
request?: SecondParameter<typeof request>;
|
|
306
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof acceptInvitation>>, TError, AcceptInvitationMutationVariables, TContext>;
|
|
307
|
+
export type AcceptInvitationMutationResult = NonNullable<Awaited<ReturnType<typeof acceptInvitation>>>;
|
|
308
|
+
export type AcceptInvitationMutationBody = BodyType<HouseholdInvitationAcceptWrite>;
|
|
309
|
+
export type AcceptInvitationMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
|
|
310
|
+
export type AcceptInvitationMutationVariables = {
|
|
311
|
+
data: BodyType<HouseholdInvitationAcceptWrite>;
|
|
312
|
+
};
|
|
313
|
+
/**
|
|
314
|
+
* @summary Accept Invitation
|
|
315
|
+
*/
|
|
316
|
+
export declare const useAcceptInvitation: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
|
|
317
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof acceptInvitation>>, TError, AcceptInvitationMutationVariables, TContext>;
|
|
318
|
+
request?: SecondParameter<typeof request>;
|
|
319
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof acceptInvitation>>, TError, AcceptInvitationMutationVariables, TContext>;
|
|
320
|
+
export declare const getRevokeInvitationUrl: (invitationId: number) => string;
|
|
321
|
+
/**
|
|
322
|
+
* @summary Revoke Invitation
|
|
323
|
+
*/
|
|
324
|
+
export declare const revokeInvitation: (invitationId: number, options?: Parameters<typeof request>[1]) => Promise<void>;
|
|
325
|
+
export declare const getRevokeInvitationMutationKey: () => readonly ['revokeInvitation'];
|
|
326
|
+
export declare const getRevokeInvitationMutationOptions: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
|
|
327
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof revokeInvitation>>, TError, RevokeInvitationMutationVariables, TContext>;
|
|
328
|
+
request?: SecondParameter<typeof request>;
|
|
329
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof revokeInvitation>>, TError, RevokeInvitationMutationVariables, TContext>;
|
|
330
|
+
export type RevokeInvitationMutationResult = NonNullable<Awaited<ReturnType<typeof revokeInvitation>>>;
|
|
331
|
+
export type RevokeInvitationMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
|
|
332
|
+
export type RevokeInvitationMutationVariables = {
|
|
333
|
+
invitationId: number;
|
|
334
|
+
};
|
|
335
|
+
/**
|
|
336
|
+
* @summary Revoke Invitation
|
|
337
|
+
*/
|
|
338
|
+
export declare const useRevokeInvitation: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
|
|
339
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof revokeInvitation>>, TError, RevokeInvitationMutationVariables, TContext>;
|
|
340
|
+
request?: SecondParameter<typeof request>;
|
|
341
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof revokeInvitation>>, TError, RevokeInvitationMutationVariables, TContext>;
|
|
342
|
+
export declare const getResendInvitationUrl: (invitationId: number) => string;
|
|
343
|
+
/**
|
|
344
|
+
* @summary Resend Invitation
|
|
345
|
+
*/
|
|
346
|
+
export declare const resendInvitation: (invitationId: number, options?: Parameters<typeof request>[1]) => Promise<HouseholdInvitationRead>;
|
|
347
|
+
export declare const getResendInvitationMutationKey: () => readonly ['resendInvitation'];
|
|
348
|
+
export declare const getResendInvitationMutationOptions: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
|
|
349
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof resendInvitation>>, TError, ResendInvitationMutationVariables, TContext>;
|
|
350
|
+
request?: SecondParameter<typeof request>;
|
|
351
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof resendInvitation>>, TError, ResendInvitationMutationVariables, TContext>;
|
|
352
|
+
export type ResendInvitationMutationResult = NonNullable<Awaited<ReturnType<typeof resendInvitation>>>;
|
|
353
|
+
export type ResendInvitationMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
|
|
354
|
+
export type ResendInvitationMutationVariables = {
|
|
355
|
+
invitationId: number;
|
|
356
|
+
};
|
|
357
|
+
/**
|
|
358
|
+
* @summary Resend Invitation
|
|
359
|
+
*/
|
|
360
|
+
export declare const useResendInvitation: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
|
|
361
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof resendInvitation>>, TError, ResendInvitationMutationVariables, TContext>;
|
|
362
|
+
request?: SecondParameter<typeof request>;
|
|
363
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof resendInvitation>>, TError, ResendInvitationMutationVariables, TContext>;
|
|
76
364
|
export declare const getDeleteProfileUrl: (profileId: number) => string;
|
|
77
365
|
/**
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
* Deleting a profile that is already gone is ``204``, not ``404``: the caller
|
|
81
|
-
* asked for it to be absent and it is absent. A retried delete after a timeout
|
|
82
|
-
* must not read as a failure.
|
|
83
|
-
*
|
|
84
|
-
* The account holder cannot be deleted this way — that is E17, which anonymises
|
|
85
|
-
* the whole account and is a different decision with different consequences.
|
|
366
|
+
* Deactivate membership without discarding profile history or its ancestry.
|
|
86
367
|
* @summary Delete Profile
|
|
87
368
|
*/
|
|
88
369
|
export declare const deleteProfile: (profileId: number, options?: Parameters<typeof request>[1]) => Promise<void>;
|
|
@@ -105,7 +386,6 @@ export declare const useDeleteProfile: <TError = ErrorType<HTTPExceptionResponse
|
|
|
105
386
|
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof deleteProfile>>, TError, DeleteProfileMutationVariables, TContext>;
|
|
106
387
|
export declare const getReadProfileUrl: (profileId: number) => string;
|
|
107
388
|
/**
|
|
108
|
-
* One profile (E22). Returns the resource; the legacy rendered an edit form.
|
|
109
389
|
* @summary Read Profile
|
|
110
390
|
*/
|
|
111
391
|
export declare const readProfile: (profileId: number, options?: Parameters<typeof request>[1]) => Promise<ProfileRead>;
|
|
@@ -138,16 +418,6 @@ export declare function useReadProfile<TData = Awaited<ReturnType<typeof readPro
|
|
|
138
418
|
};
|
|
139
419
|
export declare const getUpdateProfileUrl: (profileId: number) => string;
|
|
140
420
|
/**
|
|
141
|
-
* Partially update a profile (E23).
|
|
142
|
-
*
|
|
143
|
-
* The target comes from the path and the row is re-read from the database
|
|
144
|
-
* before anything is written, so nothing in the body can retarget the write.
|
|
145
|
-
* That is the one habit worth keeping from the legacy handler, which overwrote
|
|
146
|
-
* the identity fields from the trusted record for exactly this reason.
|
|
147
|
-
*
|
|
148
|
-
* ``exclude_unset`` is what makes this a PATCH rather than a PUT wearing the
|
|
149
|
-
* wrong verb: a field the client did not send is untouched, which is not the
|
|
150
|
-
* same as a field it sent as null.
|
|
151
421
|
* @summary Update Profile
|
|
152
422
|
*/
|
|
153
423
|
export declare const updateProfile: (profileId: number, profileUpdateWrite: ProfileUpdateWrite, options?: Parameters<typeof request>[1]) => Promise<ProfileRead>;
|
|
@@ -170,5 +440,108 @@ export declare const useUpdateProfile: <TError = ErrorType<HTTPExceptionResponse
|
|
|
170
440
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof updateProfile>>, TError, UpdateProfileMutationVariables, TContext>;
|
|
171
441
|
request?: SecondParameter<typeof request>;
|
|
172
442
|
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof updateProfile>>, TError, UpdateProfileMutationVariables, TContext>;
|
|
443
|
+
export declare const getListGuardiansUrl: (profileId: number) => string;
|
|
444
|
+
/**
|
|
445
|
+
* @summary List Guardians
|
|
446
|
+
*/
|
|
447
|
+
export declare const listGuardians: (profileId: number, options?: Parameters<typeof request>[1]) => Promise<HouseholdGuardianListRead>;
|
|
448
|
+
export declare const getListGuardiansQueryKey: (profileId: number) => readonly [`/me/profiles/${number}/guardians`];
|
|
449
|
+
export declare const getListGuardiansQueryOptions: <TData = Awaited<ReturnType<typeof listGuardians>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(profileId: number, options?: {
|
|
450
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listGuardians>>, TError, TData>>;
|
|
451
|
+
request?: SecondParameter<typeof request>;
|
|
452
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof listGuardians>>, TError, TData> & {
|
|
453
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
454
|
+
};
|
|
455
|
+
export type ListGuardiansQueryResult = NonNullable<Awaited<ReturnType<typeof listGuardians>>>;
|
|
456
|
+
export type ListGuardiansQueryError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
|
|
457
|
+
export declare function useListGuardians<TData = Awaited<ReturnType<typeof listGuardians>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(profileId: number, options: {
|
|
458
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof listGuardians>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof listGuardians>>, TError, Awaited<ReturnType<typeof listGuardians>>>, 'initialData'>;
|
|
459
|
+
request?: SecondParameter<typeof request>;
|
|
460
|
+
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
461
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
462
|
+
};
|
|
463
|
+
export declare function useListGuardians<TData = Awaited<ReturnType<typeof listGuardians>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(profileId: number, options?: {
|
|
464
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listGuardians>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof listGuardians>>, TError, Awaited<ReturnType<typeof listGuardians>>>, 'initialData'>;
|
|
465
|
+
request?: SecondParameter<typeof request>;
|
|
466
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
467
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
468
|
+
};
|
|
469
|
+
export declare function useListGuardians<TData = Awaited<ReturnType<typeof listGuardians>>, TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>>(profileId: number, options?: {
|
|
470
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof listGuardians>>, TError, TData>>;
|
|
471
|
+
request?: SecondParameter<typeof request>;
|
|
472
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
473
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
474
|
+
};
|
|
475
|
+
export declare const getAddGuardianUrl: (profileId: number) => string;
|
|
476
|
+
/**
|
|
477
|
+
* @summary Add Guardian
|
|
478
|
+
*/
|
|
479
|
+
export declare const addGuardian: (profileId: number, householdGuardianWrite: HouseholdGuardianWrite, options?: Parameters<typeof request>[1]) => Promise<HouseholdGuardianListRead>;
|
|
480
|
+
export declare const getAddGuardianMutationKey: () => readonly ['addGuardian'];
|
|
481
|
+
export declare const getAddGuardianMutationOptions: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
|
|
482
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof addGuardian>>, TError, AddGuardianMutationVariables, TContext>;
|
|
483
|
+
request?: SecondParameter<typeof request>;
|
|
484
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof addGuardian>>, TError, AddGuardianMutationVariables, TContext>;
|
|
485
|
+
export type AddGuardianMutationResult = NonNullable<Awaited<ReturnType<typeof addGuardian>>>;
|
|
486
|
+
export type AddGuardianMutationBody = BodyType<HouseholdGuardianWrite>;
|
|
487
|
+
export type AddGuardianMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
|
|
488
|
+
export type AddGuardianMutationVariables = {
|
|
489
|
+
profileId: number;
|
|
490
|
+
data: BodyType<HouseholdGuardianWrite>;
|
|
491
|
+
};
|
|
492
|
+
/**
|
|
493
|
+
* @summary Add Guardian
|
|
494
|
+
*/
|
|
495
|
+
export declare const useAddGuardian: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
|
|
496
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof addGuardian>>, TError, AddGuardianMutationVariables, TContext>;
|
|
497
|
+
request?: SecondParameter<typeof request>;
|
|
498
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof addGuardian>>, TError, AddGuardianMutationVariables, TContext>;
|
|
499
|
+
export declare const getRemoveGuardianUrl: (profileId: number, adultId: number) => string;
|
|
500
|
+
/**
|
|
501
|
+
* @summary Remove Guardian
|
|
502
|
+
*/
|
|
503
|
+
export declare const removeGuardian: (profileId: number, adultId: number, options?: Parameters<typeof request>[1]) => Promise<void>;
|
|
504
|
+
export declare const getRemoveGuardianMutationKey: () => readonly ['removeGuardian'];
|
|
505
|
+
export declare const getRemoveGuardianMutationOptions: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
|
|
506
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof removeGuardian>>, TError, RemoveGuardianMutationVariables, TContext>;
|
|
507
|
+
request?: SecondParameter<typeof request>;
|
|
508
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof removeGuardian>>, TError, RemoveGuardianMutationVariables, TContext>;
|
|
509
|
+
export type RemoveGuardianMutationResult = NonNullable<Awaited<ReturnType<typeof removeGuardian>>>;
|
|
510
|
+
export type RemoveGuardianMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
|
|
511
|
+
export type RemoveGuardianMutationVariables = {
|
|
512
|
+
profileId: number;
|
|
513
|
+
adultId: number;
|
|
514
|
+
};
|
|
515
|
+
/**
|
|
516
|
+
* @summary Remove Guardian
|
|
517
|
+
*/
|
|
518
|
+
export declare const useRemoveGuardian: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
|
|
519
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof removeGuardian>>, TError, RemoveGuardianMutationVariables, TContext>;
|
|
520
|
+
request?: SecondParameter<typeof request>;
|
|
521
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof removeGuardian>>, TError, RemoveGuardianMutationVariables, TContext>;
|
|
522
|
+
export declare const getInviteIndependentMinorUrl: (profileId: number) => string;
|
|
523
|
+
/**
|
|
524
|
+
* @summary Invite Independent Minor
|
|
525
|
+
*/
|
|
526
|
+
export declare const inviteIndependentMinor: (profileId: number, independentInvitationWrite: IndependentInvitationWrite, options?: Parameters<typeof request>[1]) => Promise<HouseholdInvitationRead>;
|
|
527
|
+
export declare const getInviteIndependentMinorMutationKey: () => readonly ['inviteIndependentMinor'];
|
|
528
|
+
export declare const getInviteIndependentMinorMutationOptions: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
|
|
529
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof inviteIndependentMinor>>, TError, InviteIndependentMinorMutationVariables, TContext>;
|
|
530
|
+
request?: SecondParameter<typeof request>;
|
|
531
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof inviteIndependentMinor>>, TError, InviteIndependentMinorMutationVariables, TContext>;
|
|
532
|
+
export type InviteIndependentMinorMutationResult = NonNullable<Awaited<ReturnType<typeof inviteIndependentMinor>>>;
|
|
533
|
+
export type InviteIndependentMinorMutationBody = BodyType<IndependentInvitationWrite>;
|
|
534
|
+
export type InviteIndependentMinorMutationError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>;
|
|
535
|
+
export type InviteIndependentMinorMutationVariables = {
|
|
536
|
+
profileId: number;
|
|
537
|
+
data: BodyType<IndependentInvitationWrite>;
|
|
538
|
+
};
|
|
539
|
+
/**
|
|
540
|
+
* @summary Invite Independent Minor
|
|
541
|
+
*/
|
|
542
|
+
export declare const useInviteIndependentMinor: <TError = ErrorType<HTTPExceptionResponse | ValidationErrorResponse>, TContext = unknown>(options?: {
|
|
543
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof inviteIndependentMinor>>, TError, InviteIndependentMinorMutationVariables, TContext>;
|
|
544
|
+
request?: SecondParameter<typeof request>;
|
|
545
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof inviteIndependentMinor>>, TError, InviteIndependentMinorMutationVariables, TContext>;
|
|
173
546
|
//#endregion
|
|
174
547
|
//# sourceMappingURL=profiles.d.ts.map
|