cloudhospital.react.sdk
Version:
### Build local package
54 lines (53 loc) • 3.56 kB
TypeScript
import { RestException } from '@models/exceptions';
import { DoctorsApiApiV2DoctorsDoctorIdGetRequest, DoctorsApiApiV2DoctorsGetRequest, DoctorsApiApiV2DoctorsSimpleGetRequest } from 'ch-api-client-typescript2/lib/api/doctors-api';
import { DoctorModel } from 'ch-api-client-typescript2/lib/models/doctor-model';
import { DoctorsModel } from 'ch-api-client-typescript2/lib/models/doctors-model';
import { DoctorsSimpleModel } from 'ch-api-client-typescript2/lib/models/doctors-simple-model';
import { SWRConfiguration } from 'swr';
import { SWRMutationConfiguration } from 'swr/mutation';
export declare const getDoctorsSWR: (operationName: string | undefined, payload: DoctorsApiApiV2DoctorsGetRequest, shouldFetch?: boolean, config?: SWRConfiguration<DoctorsModel, RestException>) => void;
export declare const getDoctorsSWRMutation: (operationName?: string, config?: SWRMutationConfiguration<DoctorsModel, RestException, undefined, string>) => {
data: DoctorsModel | undefined;
error: RestException | undefined;
trigger: import("swr/mutation").TriggerWithArgs<DoctorsModel, RestException, any, DoctorsApiApiV2DoctorsGetRequest>;
reset: () => void;
isMutating: boolean;
};
export declare const getDoctorsSWRInfinite: (operationName?: string, payload?: DoctorsApiApiV2DoctorsGetRequest, shouldFetch?: boolean) => {
data: DoctorsModel | undefined;
isValidating: boolean;
isLoading: boolean;
error: RestException | undefined;
setSize: (size: number | ((_size: number) => number)) => Promise<DoctorsModel[] | undefined>;
mutate: import("swr/_internal").KeyedMutator<DoctorsModel[]>;
};
export declare const getDoctorsSimpleSWR: (operationName: string | undefined, payload: DoctorsApiApiV2DoctorsSimpleGetRequest, shouldFetch?: boolean, config?: SWRConfiguration<DoctorsSimpleModel, RestException>) => void;
export declare const getDoctorsSimpleSWRMutation: (operationName?: string, config?: SWRMutationConfiguration<DoctorsSimpleModel, RestException, undefined, string>) => {
data: DoctorsSimpleModel | undefined;
error: RestException | undefined;
trigger: import("swr/mutation").TriggerWithArgs<DoctorsSimpleModel, RestException, any, DoctorsApiApiV2DoctorsSimpleGetRequest>;
reset: () => void;
isMutating: boolean;
};
export declare const getDoctorsSimpleSWRInfinite: (operationName?: string, payload?: DoctorsApiApiV2DoctorsSimpleGetRequest, shouldFetch?: boolean) => {
data: DoctorsSimpleModel | undefined;
isValidating: boolean;
isLoading: boolean;
error: RestException | undefined;
setSize: (size: number | ((_size: number) => number)) => Promise<DoctorsSimpleModel[] | undefined>;
mutate: import("swr/_internal").KeyedMutator<DoctorsSimpleModel[]>;
};
export declare const getDoctorByDoctorIdSWR: (operationName: string | undefined, payload: DoctorsApiApiV2DoctorsDoctorIdGetRequest, shouldFetch?: boolean, config?: SWRConfiguration<DoctorModel, RestException>) => {
data: DoctorModel | undefined;
error: RestException | undefined;
mutate: import("swr/_internal").KeyedMutator<DoctorModel>;
isValidating: boolean;
isLoading: boolean;
};
export declare const getDoctorsWRMutation: (operationName?: string, config?: SWRMutationConfiguration<DoctorModel, RestException, undefined, string>) => {
data: DoctorModel | undefined;
error: RestException | undefined;
trigger: import("swr/mutation").TriggerWithArgs<DoctorModel, RestException, any, DoctorsApiApiV2DoctorsDoctorIdGetRequest>;
reset: () => void;
isMutating: boolean;
};