UNPKG

@open-tender/store

Version:

A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our in-store POS API

25 lines (24 loc) 1.21 kB
import { CustomerIdentifier, CustomerIdentify, RequestError, RequestStatus } from '@open-tender/types'; import { AppState } from '../app'; export interface CustomerIdentifyState { data: CustomerIdentify | null; loading: RequestStatus; error: RequestError; } export declare enum CustomerIdentifyActionType { FetchCustomerIdentify = "CustomerIdentify/fetchCustomerIdentify" } export declare const fetchCustomerIdentify: import("@reduxjs/toolkit").AsyncThunk<CustomerIdentify, CustomerIdentifier, { state: AppState; rejectValue: RequestError; dispatch?: import("redux").Dispatch<import("redux").UnknownAction> | undefined; extra?: unknown; serializedErrorType?: unknown; pendingMeta?: unknown; fulfilledMeta?: unknown; rejectedMeta?: unknown; }>; export declare const resetCustomerIdentify: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"customerIdentify/resetCustomerIdentify">; export declare const selectCustomerIdentify: (state: AppState) => CustomerIdentifyState; export declare const selectCustomerIdentified: (state: AppState) => CustomerIdentify | null; export declare const customerIdentifyReducer: import("redux").Reducer<CustomerIdentifyState>;