@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.02 kB
TypeScript
import { AppState } from '../../app';
import { Thanx, RequestError, RequestStatus } from '@open-tender/types';
export interface CustomerThanxState {
thanx: Thanx | null;
error: RequestError;
loading: RequestStatus;
}
export declare enum CustomerThanxActionType {
FetchCustomerThanx = "customer/fetchCustomerThanx"
}
export declare const fetchCustomerThanx: import("@reduxjs/toolkit").AsyncThunk<Thanx, void, {
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 resetCustomerThanx: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"thanx/resetCustomerThanx">;
export declare const selectCustomerThanx: (state: AppState) => CustomerThanxState;
export declare const customerThanxReducer: import("redux").Reducer<CustomerThanxState, import("redux").AnyAction>;