UNPKG

cloudhospital.react.sdk

Version:
48 lines (47 loc) 2.83 kB
import { RestException } from '@models/exceptions'; import { ProfilesApiApiV2ProfilesChangeemailPostRequest, ProfilesApiApiV2ProfilesPostRequest, ProfilesApiApiV2ProfilesProfileIdDeleteRequest, ProfilesApiApiV2ProfilesPutRequest } from 'ch-api-client-typescript2/lib/api/profiles-api'; import { PatientModel } from 'ch-api-client-typescript2/lib/models/patient-model'; import { SWRConfiguration } from 'swr'; import { SWRMutationConfiguration } from 'swr/mutation'; export declare const postProfileSWRMutation: (operationName?: string, config?: SWRMutationConfiguration<PatientModel, RestException, undefined, string>) => { data: PatientModel | undefined; error: RestException | undefined; trigger: import("swr/mutation").TriggerWithArgs<PatientModel, RestException, any, ProfilesApiApiV2ProfilesPostRequest>; reset: () => void; isMutating: boolean; }; export declare const updateEmailSWRMutation: (operationName?: string, config?: SWRMutationConfiguration<boolean, RestException, undefined, string>) => { data: boolean | undefined; error: RestException | undefined; trigger: import("swr/mutation").TriggerWithArgs<boolean, RestException, any, ProfilesApiApiV2ProfilesChangeemailPostRequest>; reset: () => void; isMutating: boolean; }; export declare const getProfileSWR: (operationName: string | undefined, payload: undefined, shouldFetch?: boolean, config?: SWRConfiguration<PatientModel, RestException>) => { data: PatientModel | undefined; error: RestException | undefined; mutate: import("swr/_internal").KeyedMutator<PatientModel>; isValidating: boolean; isLoading: boolean; }; export declare const getProfileSWRMutation: (operationName?: string, config?: SWRMutationConfiguration<PatientModel, RestException, undefined, string>) => { data: PatientModel | undefined; error: RestException | undefined; trigger: import("swr/mutation").TriggerWithoutArgs<PatientModel, RestException, any, never>; reset: () => void; isMutating: boolean; }; export declare const putProfileSWRMutation: (operationName?: string, config?: SWRMutationConfiguration<PatientModel, RestException, undefined, string>) => { data: PatientModel | undefined; error: RestException | undefined; trigger: import("swr/mutation").TriggerWithArgs<PatientModel, RestException, any, ProfilesApiApiV2ProfilesPutRequest>; reset: () => void; isMutating: boolean; }; export declare const deleteProfileSWRMutation: (operationName?: string, config?: SWRMutationConfiguration<boolean, RestException, undefined, string>) => { data: boolean | undefined; error: RestException | undefined; trigger: import("swr/mutation").TriggerWithArgs<boolean, RestException, any, ProfilesApiApiV2ProfilesProfileIdDeleteRequest>; reset: () => void; isMutating: boolean; };