/// import { Identifier, Record } from '../../types'; import { GET_ONE } from '../../dataFetchActions'; import { FETCH_END, FETCH_ERROR } from '../fetchActions'; import { NotificationSideEffect, RedirectionSideEffect, RefreshSideEffect } from '../../sideEffect'; export declare const crudGetOne: (resource: string, id: import("react").ReactText, basePath: string, refresh?: boolean) => CrudGetOneAction; interface RequestPayload { id: Identifier; } export declare const CRUD_GET_ONE = "RA/CRUD_GET_ONE"; export interface CrudGetOneAction { readonly type: typeof CRUD_GET_ONE; readonly payload: RequestPayload; readonly meta: { resource: string; fetch: typeof GET_ONE; basePath: string; onFailure: { notification: NotificationSideEffect; redirectTo: RedirectionSideEffect; refresh: RefreshSideEffect; }; }; } export declare const CRUD_GET_ONE_LOADING = "RA/CRUD_GET_ONE_LOADING"; export interface CrudGetOneLoadingAction { readonly type: typeof CRUD_GET_ONE_LOADING; readonly payload: RequestPayload; readonly meta: { resource: string; basePath: string; }; } export declare const CRUD_GET_ONE_FAILURE = "RA/CRUD_GET_ONE_FAILURE"; export interface CrudGetOneFailureAction { readonly type: typeof CRUD_GET_ONE_FAILURE; readonly error: string | object; readonly payload: string; readonly requestPayload: RequestPayload; readonly meta: { resource: string; notification: NotificationSideEffect; redirectTo: RedirectionSideEffect; refresh: RefreshSideEffect; fetchResponse: typeof GET_ONE; fetchStatus: typeof FETCH_ERROR; }; } export declare const CRUD_GET_ONE_SUCCESS = "RA/CRUD_GET_ONE_SUCCESS"; export interface CrudGetOneSuccessAction { readonly type: typeof CRUD_GET_ONE_SUCCESS; readonly payload: { data: Record; }; readonly requestPayload: RequestPayload; readonly meta: { resource: string; fetchResponse: typeof GET_ONE; fetchStatus: typeof FETCH_END; }; } export {};