@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.
242 lines (241 loc) • 11.9 kB
TypeScript
import { AppState } from '../../app';
import { RequestError, RequestStatus, TPLS } from '@open-tender/types';
export interface CustomerTplsState {
tpls: TPLS | null;
error: RequestError;
loading: RequestStatus;
}
export declare enum CustomerTplsActionType {
FetchCustomerTpls = "customer/fetchCustomerTpls",
VerifyCustomerTpls = "customer/verifyCustomerTpls"
}
export declare const fetchCustomerTpls: import("@reduxjs/toolkit").AsyncThunk<TPLS, 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 verifyCustomerTpls: import("@reduxjs/toolkit").AsyncThunk<void, 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 resetCustomerTpls: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"tpls/resetCustomerTpls">;
export declare const selectCustomerTpls: (state: AppState) => CustomerTplsState;
export declare const selectCustomerTplsPoints: ((state: import("redux").EmptyObject & {
alerts: import("@open-tender/types").Alerts;
allergens: import("..").AllergensState;
announcements: import("..").AnnouncementsState;
checkout: import("..").CheckoutState;
completedOrders: import("..").CompletedOrdersState;
config: import("..").ConfigState;
confirmation: import("..").ConfirmationState;
customer: import("redux").CombinedState<{
account: import("./account").AccountState;
communicationPreferences: import("./communicationPreferences").CustomerCommunicationPrefsState;
creditCards: import("./creditCards").CustomerCreditCardsState;
allergens: import("./allergens").CustomerAllergensState;
addresses: import("./addresses").CustomerAddressesState;
favorites: import("./favorites").CustomerFavoritesState;
fcmToken: import("./fcmToken").CustomerFcmTokenState;
giftCards: import("./giftCards").CustomerGiftCardsState;
groupOrders: import("./groupOrders").CustomerGroupOrdersState;
history: import("./history").CustomerHistoryState;
houseAccounts: import("./houseAccounts").CustomerHouseAccountsState;
loyalty: import("./loyalty").CustomerLoyaltyState;
order: import("./order").CustomerOrderState;
orders: import("./orders").CustomerOrdersState;
pointsShop: import("./pointsShop").PointsShopState;
tplsPointsShop: import("./tplsPointsShop").TplsPointsShopState;
qrcode: import("./qrCode").CustomerQRCodeState;
rewards: import("./rewards").CustomerRewardsState;
thanx: import("./thanx").CustomerThanxState;
tpls: CustomerTplsState;
}>;
deals: import("..").DealsState;
donations: import("..").DonationState;
geolocation: import("..").GeoLocationState;
giftCards: import("..").GiftCardsState;
groupOrder: import("..").GroupOrderState;
guest: import("..").GuestState;
loader: import("..").LoaderState;
menu: import("..").MenuState;
menuDisplay: import("..").MenuDisplayState;
menuItems: import("..").MenuItemsState;
modal: import("@open-tender/types").Modal;
misc: import("..").MiscState;
nav: import("..").NavState;
navSite: import("..").NavSiteState;
notifications: import("@open-tender/types").Notifications;
oneTimePasscode: import("..").OneTimePasscodeState;
order: import("..").OrderState;
orderFulfillment: import("..").OrderFulfillmentState;
orderRating: import("..").OrderRatingState;
posts: import("..").PostsSlice;
pushNotifications: import("..").PushNotificationsState;
qr: import("..").QrState;
quote: import("..").QuoteState;
resetPassword: import("..").ResetPasswordState;
revenueCenters: import("..").RevenueCentersState;
rewardCode: import("..").RewardCodeState;
sidebar: import("..").SidebarState;
sidebarModal: import("..").SidebarModalState;
signUp: import("..").SignUpState;
tags: import("..").TagsState;
terms: import("..").TermsSlice;
Unsubscribe: import("..").UnsubscribeState;
validTimes: import("..").ValidTimesState;
verifyAccount: import("..").VerifyAccountState;
}) => number | null) & import("reselect").OutputSelectorFields<(args_0: import("@open-tender/types").TPLSPoints | null | undefined) => number | null, {
clearCache: () => void;
}> & {
clearCache: () => void;
};
export declare const selectCustomerTplsRewards: ((state: import("redux").EmptyObject & {
alerts: import("@open-tender/types").Alerts;
allergens: import("..").AllergensState;
announcements: import("..").AnnouncementsState;
checkout: import("..").CheckoutState;
completedOrders: import("..").CompletedOrdersState;
config: import("..").ConfigState;
confirmation: import("..").ConfirmationState;
customer: import("redux").CombinedState<{
account: import("./account").AccountState;
communicationPreferences: import("./communicationPreferences").CustomerCommunicationPrefsState;
creditCards: import("./creditCards").CustomerCreditCardsState;
allergens: import("./allergens").CustomerAllergensState;
addresses: import("./addresses").CustomerAddressesState;
favorites: import("./favorites").CustomerFavoritesState;
fcmToken: import("./fcmToken").CustomerFcmTokenState;
giftCards: import("./giftCards").CustomerGiftCardsState;
groupOrders: import("./groupOrders").CustomerGroupOrdersState;
history: import("./history").CustomerHistoryState;
houseAccounts: import("./houseAccounts").CustomerHouseAccountsState;
loyalty: import("./loyalty").CustomerLoyaltyState;
order: import("./order").CustomerOrderState;
orders: import("./orders").CustomerOrdersState;
pointsShop: import("./pointsShop").PointsShopState;
tplsPointsShop: import("./tplsPointsShop").TplsPointsShopState;
qrcode: import("./qrCode").CustomerQRCodeState;
rewards: import("./rewards").CustomerRewardsState;
thanx: import("./thanx").CustomerThanxState;
tpls: CustomerTplsState;
}>;
deals: import("..").DealsState;
donations: import("..").DonationState;
geolocation: import("..").GeoLocationState;
giftCards: import("..").GiftCardsState;
groupOrder: import("..").GroupOrderState;
guest: import("..").GuestState;
loader: import("..").LoaderState;
menu: import("..").MenuState;
menuDisplay: import("..").MenuDisplayState;
menuItems: import("..").MenuItemsState;
modal: import("@open-tender/types").Modal;
misc: import("..").MiscState;
nav: import("..").NavState;
navSite: import("..").NavSiteState;
notifications: import("@open-tender/types").Notifications;
oneTimePasscode: import("..").OneTimePasscodeState;
order: import("..").OrderState;
orderFulfillment: import("..").OrderFulfillmentState;
orderRating: import("..").OrderRatingState;
posts: import("..").PostsSlice;
pushNotifications: import("..").PushNotificationsState;
qr: import("..").QrState;
quote: import("..").QuoteState;
resetPassword: import("..").ResetPasswordState;
revenueCenters: import("..").RevenueCentersState;
rewardCode: import("..").RewardCodeState;
sidebar: import("..").SidebarState;
sidebarModal: import("..").SidebarModalState;
signUp: import("..").SignUpState;
tags: import("..").TagsState;
terms: import("..").TermsSlice;
Unsubscribe: import("..").UnsubscribeState;
validTimes: import("..").ValidTimesState;
verifyAccount: import("..").VerifyAccountState;
}) => import("@open-tender/types").TPLSRewards) & import("reselect").OutputSelectorFields<(args_0: import("@open-tender/types").TPLSRewards | undefined) => import("@open-tender/types").TPLSRewards, {
clearCache: () => void;
}> & {
clearCache: () => void;
};
export declare const selectCustomerTplsProgress: ((state: import("redux").EmptyObject & {
alerts: import("@open-tender/types").Alerts;
allergens: import("..").AllergensState;
announcements: import("..").AnnouncementsState;
checkout: import("..").CheckoutState;
completedOrders: import("..").CompletedOrdersState;
config: import("..").ConfigState;
confirmation: import("..").ConfirmationState;
customer: import("redux").CombinedState<{
account: import("./account").AccountState;
communicationPreferences: import("./communicationPreferences").CustomerCommunicationPrefsState;
creditCards: import("./creditCards").CustomerCreditCardsState;
allergens: import("./allergens").CustomerAllergensState;
addresses: import("./addresses").CustomerAddressesState;
favorites: import("./favorites").CustomerFavoritesState;
fcmToken: import("./fcmToken").CustomerFcmTokenState;
giftCards: import("./giftCards").CustomerGiftCardsState;
groupOrders: import("./groupOrders").CustomerGroupOrdersState;
history: import("./history").CustomerHistoryState;
houseAccounts: import("./houseAccounts").CustomerHouseAccountsState;
loyalty: import("./loyalty").CustomerLoyaltyState;
order: import("./order").CustomerOrderState;
orders: import("./orders").CustomerOrdersState;
pointsShop: import("./pointsShop").PointsShopState;
tplsPointsShop: import("./tplsPointsShop").TplsPointsShopState;
qrcode: import("./qrCode").CustomerQRCodeState;
rewards: import("./rewards").CustomerRewardsState;
thanx: import("./thanx").CustomerThanxState;
tpls: CustomerTplsState;
}>;
deals: import("..").DealsState;
donations: import("..").DonationState;
geolocation: import("..").GeoLocationState;
giftCards: import("..").GiftCardsState;
groupOrder: import("..").GroupOrderState;
guest: import("..").GuestState;
loader: import("..").LoaderState;
menu: import("..").MenuState;
menuDisplay: import("..").MenuDisplayState;
menuItems: import("..").MenuItemsState;
modal: import("@open-tender/types").Modal;
misc: import("..").MiscState;
nav: import("..").NavState;
navSite: import("..").NavSiteState;
notifications: import("@open-tender/types").Notifications;
oneTimePasscode: import("..").OneTimePasscodeState;
order: import("..").OrderState;
orderFulfillment: import("..").OrderFulfillmentState;
orderRating: import("..").OrderRatingState;
posts: import("..").PostsSlice;
pushNotifications: import("..").PushNotificationsState;
qr: import("..").QrState;
quote: import("..").QuoteState;
resetPassword: import("..").ResetPasswordState;
revenueCenters: import("..").RevenueCentersState;
rewardCode: import("..").RewardCodeState;
sidebar: import("..").SidebarState;
sidebarModal: import("..").SidebarModalState;
signUp: import("..").SignUpState;
tags: import("..").TagsState;
terms: import("..").TermsSlice;
Unsubscribe: import("..").UnsubscribeState;
validTimes: import("..").ValidTimesState;
verifyAccount: import("..").VerifyAccountState;
}) => import("@open-tender/types").TPLSProgress | null) & import("reselect").OutputSelectorFields<(args_0: import("@open-tender/types").TPLSProgress | null | undefined) => import("@open-tender/types").TPLSProgress | null, {
clearCache: () => void;
}> & {
clearCache: () => void;
};
export declare const customerTplsReducer: import("redux").Reducer<CustomerTplsState, import("redux").AnyAction>;