cloudhospital.react.sdk
Version:
### Build local package
43 lines (42 loc) • 2.56 kB
TypeScript
import { RestException } from '@models/exceptions';
import { CountriesApiApiV2CountriesCountryIdGetRequest, CountriesApiApiV2CountriesGetRequest } from 'ch-api-client-typescript2/lib/api/countries-api';
import { CountriesModel } from 'ch-api-client-typescript2/lib/models/countries-model';
import { CountryModel } from 'ch-api-client-typescript2/lib/models/country-model';
import { SWRConfiguration } from 'swr';
import { SWRMutationConfiguration } from 'swr/mutation';
export declare const getCountriesSWR: (operationName: string | undefined, payload: CountriesApiApiV2CountriesGetRequest, shouldFetch?: boolean, config?: SWRConfiguration<CountriesModel, RestException>) => {
data: CountriesModel | undefined;
error: RestException | undefined;
mutate: import("swr/_internal").KeyedMutator<CountriesModel>;
isValidating: boolean;
isLoading: boolean;
};
export declare const getCountriesSWRMutation: (operationName?: string, config?: SWRMutationConfiguration<CountriesModel, RestException, undefined, string>) => {
data: CountriesModel | undefined;
error: RestException | undefined;
trigger: import("swr/mutation").TriggerWithArgs<CountriesModel, RestException, any, CountriesApiApiV2CountriesGetRequest>;
reset: () => void;
isMutating: boolean;
};
export declare const getCountriesSwrInfinite: (operationName: string | undefined, payload: CountriesApiApiV2CountriesGetRequest, shouldFetch?: boolean) => {
data: CountriesModel | undefined;
isValidating: boolean;
isLoading: boolean;
error: RestException | undefined;
setSize: (size: number | ((_size: number) => number)) => Promise<CountriesModel[] | undefined>;
mutate: import("swr/_internal").KeyedMutator<CountriesModel[]>;
};
export declare const getCountrySWR: (operationName: string | undefined, payload: CountriesApiApiV2CountriesCountryIdGetRequest, shouldFetch?: boolean, config?: SWRConfiguration<CountryModel, RestException>) => {
data: CountryModel | undefined;
error: RestException | undefined;
mutate: import("swr/_internal").KeyedMutator<CountryModel>;
isValidating: boolean;
isLoading: boolean;
};
export declare const getCountrySWRMutation: (operationName?: string, config?: SWRMutationConfiguration<CountryModel, RestException, undefined, string>) => {
data: CountryModel | undefined;
error: RestException | undefined;
trigger: import("swr/mutation").TriggerWithArgs<CountryModel, RestException, any, CountriesApiApiV2CountriesCountryIdGetRequest>;
reset: () => void;
isMutating: boolean;
};