UNPKG

@open-tender/cloud

Version:

A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our cloud-based Order API.

24 lines (23 loc) 1.13 kB
import { AppState } from '../app'; import { OrderType, RequestError, RequestStatus, ValidTimes } from '@open-tender/types'; export interface ValidTimesState { loading: RequestStatus; error: RequestError; entity: ValidTimes | null; } export declare enum ValidTimesActionType { FetchValidTimes = "validTimes/fetchValidTimes" } export declare const fetchValidTimes: import("@reduxjs/toolkit").AsyncThunk<ValidTimes, OrderType, { state: AppState; rejectValue: RequestError; dispatch?: import("redux").Dispatch<import("redux").AnyAction> | undefined; extra?: unknown; serializedErrorType?: unknown; pendingMeta?: unknown; fulfilledMeta?: unknown; rejectedMeta?: unknown; }>; export declare const resetValidTimes: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"validTimes/resetValidTimes">, setValidTimes: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "validTimes/setValidTimes">; export declare const selectValidTimes: (state: AppState) => ValidTimesState; export declare const validTimesReducer: import("redux").Reducer<ValidTimesState, import("redux").AnyAction>;