UNPKG

cloudhospital.react.sdk

Version:
61 lines (60 loc) 3.32 kB
import { AccountModel, ChangePasswordModel, ConfirmAccountModel, ForgotPasswordModel, PostAccountModel, ResetPasswordModel } from '@models/accounts'; import { IdentityError, RestException } from '@models/exceptions'; import { SWRConfiguration } from 'swr'; import { SWRMutationConfiguration } from 'swr/mutation'; export declare const postAccountSWRMutation: (operationName?: string, config?: SWRMutationConfiguration<boolean, IdentityError[], any, string>) => { data: boolean | undefined; error: IdentityError[] | undefined; trigger: import("swr/mutation").TriggerWithArgs<boolean, IdentityError[], any, PostAccountModel>; reset: () => void; isMutating: boolean; }; export declare const getAccountSWR: (operationName: string | undefined, payload: undefined, shouldFetch?: boolean, config?: SWRConfiguration<AccountModel, RestException>) => { data: AccountModel | undefined; error: RestException | undefined; mutate: import("swr/_internal").KeyedMutator<AccountModel>; isValidating: boolean; isLoading: boolean; }; export declare const getAccountSWRMutation: (operationName?: string, config?: SWRMutationConfiguration<AccountModel, RestException, undefined, string>) => { data: AccountModel | undefined; error: RestException | undefined; trigger: import("swr/mutation").TriggerWithoutArgs<AccountModel, RestException, any, never>; reset: () => void; isMutating: boolean; }; export declare const sendVerificationEmailSWRMutation: (operationName?: string, config?: SWRMutationConfiguration<boolean, RestException, undefined, string>) => { data: boolean | undefined; error: RestException | undefined; trigger: import("swr/mutation").TriggerWithoutArgs<boolean, RestException, any, never>; reset: () => void; isMutating: boolean; }; export declare const confirmAccountSWRMutation: (operationName?: string, config?: SWRMutationConfiguration<boolean, IdentityError, any, string>) => { data: boolean | undefined; error: IdentityError | undefined; trigger: import("swr/mutation").TriggerWithArgs<boolean, IdentityError, any, ConfirmAccountModel>; reset: () => void; isMutating: boolean; }; export declare const changePasswordSWRMutation: (operationName?: string, config?: SWRMutationConfiguration<boolean, IdentityError[], any, string>) => { data: boolean | undefined; error: IdentityError[] | undefined; trigger: import("swr/mutation").TriggerWithArgs<boolean, IdentityError[], any, ChangePasswordModel>; reset: () => void; isMutating: boolean; }; export declare const resetPasswordSWRMutation: (operationName?: string, config?: SWRMutationConfiguration<boolean, IdentityError[], any, string>) => { data: boolean | undefined; error: IdentityError[] | undefined; trigger: import("swr/mutation").TriggerWithArgs<boolean, IdentityError[], any, ResetPasswordModel>; reset: () => void; isMutating: boolean; }; export declare const forgotPasswordSWRMutaton: (operationName?: string, config?: SWRMutationConfiguration<boolean, IdentityError[], any, string>) => { data: boolean | undefined; error: IdentityError[] | undefined; trigger: import("swr/mutation").TriggerWithArgs<boolean, IdentityError[], any, ForgotPasswordModel>; reset: () => void; isMutating: boolean; };