import { fetchQueueReducer } from "@payping/utils/fetchQueue"; import { CombinedState, Reducer, Action } from "redux"; import { ThunkAction, ThunkDispatch } from "redux-thunk"; import { CategoryDetailViewModel, CouponDetailViewModel, CouponListItemViewModel, CustomerListItemViewModel, InvoiceCustomerDetailViewModel, BanksApis, KhavarmiyanehApis, SamanApis, InvoiceProductDetailViewModel, InvoiceComplexDetailViewModel, InvoiceListItemViewModel, PermanentDetailViewModel, PermanentListItemViewModel, ProductFullDeatilViewModel, ProductListWordpress, PaymentDetailsVM, UserTerminalInfo, TransactionReportViewModel, BaseIntegration, ServiceDetailViewModel, DashboardProfileChecksResponseModel, DashboardProfileResponseModel, GetUserMessagesResponseModel, PhoneNumberInformationResponseModel, UserBusinessInformationAdminModel, UserLocalInfoResponseModel, UserPersonalInfoResponseModel, UserProfilePlanInfoResponseModel, UserShabaInfoResponseModel, UserSocialInfoResponseModel, UserWizardStatusInfo, WageInfoViewModel, GetUserProfileAdminResponseModel, TransactionWithdrawDetailsViewModel, UserMessageModel, UserVerificationTypeAdminEnum, UserVerificationTypeEnum, CreateRequestResultVM, GetFavouriteIbansResponse, OverviewResult, PagedQueryResultSettlementFullDetails, PagedQueryResultTransactionDetails, PagedQueryResultRequestDetailsVM } from "@payping/api"; declare const CLEAR_LIST = "CLEAR_LIST"; declare const LOGGED_OUT = "LOGGED_OUT"; interface ClearListAction { type: typeof CLEAR_LIST; } interface LoggedOutAction { type: typeof LOGGED_OUT; } type SdkExtraArg = undefined; type SdkThunkActionResult = ThunkAction; // Next Line: // It is important to use Action as last type argument, does not work with any. type SdkThunkDispatch = ThunkDispatch; declare const LOGGED_IN = "LOGGED_IN"; declare const SET_TOTP_CODE = "SET_TOTP_CODE"; declare const SET_SHOW_TOTP_MODAL = "SET_SHOW_TOTP_MODAL"; declare const UPDATE_USER_CLAIMS = "UPDATE_USER_CLAIMS"; interface AuthState { token: string; TOTPCode: string; showTOTPModal: boolean; ssoUserInfo?: Record; userClaims?: string[]; } interface LoggedInAction { type: typeof LOGGED_IN; payload: { token: string; ssoUserInfo: AuthState["ssoUserInfo"]; }; } interface SetTOTPCodeAction { type: typeof SET_TOTP_CODE; payload: string; } interface SetShowTOTPModalAction { type: typeof SET_SHOW_TOTP_MODAL; payload: boolean; } interface UpdateUserClaimsActions { type: typeof UPDATE_USER_CLAIMS; payload: AuthState["userClaims"]; } type AuthActionTypes = LoggedInAction | LoggedOutAction | SetTOTPCodeAction | SetShowTOTPModalAction | UpdateUserClaimsActions; declare function auth(state: AuthState | undefined, action: AuthActionTypes): AuthState; declare const CATEGORIES_LOADED = "CATEGORIES_LOADED"; declare const CATEGORY_ITEMS_LOADED = "CATEGORY_ITEMS_LOADED"; declare const CATEGORY_REMOVED = "CATEGORY_REMOVED"; interface CategoryState { list: CategoryDetailViewModel[]; totalCount: number; } interface CategoriesLoadedAction { type: typeof CATEGORIES_LOADED; payload: { list: CategoryDetailViewModel[]; totalCount: number; append: boolean; }; } interface CategoryProductsLoadedAction { type: typeof CATEGORY_ITEMS_LOADED; payload: { category: CategoryDetailViewModel; }; } interface CategoryRemovedAction { type: typeof CATEGORY_REMOVED; payload: { code: string; }; } type CategoryActionTypes = CategoriesLoadedAction | CategoryProductsLoadedAction | ClearListAction | CategoryRemovedAction | LoggedOutAction; declare function categories(state: CategoryState | undefined, action: CategoryActionTypes): CategoryState; interface ClientDetailViewModel { clientId?: string; clientName?: string; description?: string; logoUri?: string; } interface AppDetailViewModel extends ClientDetailViewModel { allowedScopes?: string[]; clientType?: number; clientUri?: string; clientSecret?: string; enabled?: boolean; expireMonths?: number; isChecked?: boolean; isTest?: boolean; isTrusted?: boolean; redirectUris: string[]; } interface TokenDetailViewModel extends AppDetailViewModel { allowedIPs?: string; expireDate?: string; token?: string; } interface ScopeDetailViewModel { name?: string; displayName?: string; description?: string; emphasize?: boolean; required?: boolean; checked?: boolean; } declare const COUPONS_LOADED = "COUPONS_LOADED"; declare const SET_COUPON_DETAILS = "SET_COUPON_DETAILS"; declare const COUPON_REMOVED = "COUPON_REMOVED"; declare const TOGGLE_COUPON_ACTIVATION = "TOGGLE_COUPON_ACTIVATION"; declare const TOGGLE_COUPON_ARCHIVE = "TOGGLE_COUPON_ARCHIVE"; interface CouponState { list: CouponListItemViewModel[]; totalCount: number; paginationEnd: boolean; details?: CouponDetailViewModel; } interface CouponsLoadedAction { type: typeof COUPONS_LOADED; payload: { list: CouponListItemViewModel[]; totalCount: number; append: boolean; }; } interface SetCouponDetailsAction { type: typeof SET_COUPON_DETAILS; payload: { details: CouponDetailViewModel; }; } interface CouponRemovedAction { type: typeof COUPON_REMOVED; payload: { code: string; }; } interface ToggleCouponActivationAction { type: typeof TOGGLE_COUPON_ACTIVATION; payload: { code: string; }; } interface ToggleCouponArchiveAction { type: typeof TOGGLE_COUPON_ARCHIVE; payload: { code: string; }; } type CouponActionTypes = CouponsLoadedAction | SetCouponDetailsAction | CouponRemovedAction | ToggleCouponActivationAction | ToggleCouponArchiveAction | ClearListAction | LoggedOutAction; declare function coupons(state: CouponState | undefined, action: CouponActionTypes): CouponState; declare const CUSTOMERS_LOADED = "CUSTOMERS_LOADED"; declare const SET_CUSTOMER_DETAILS = "SET_CUSTOMER_DETAILS"; declare const CUSTOMER_REMOVED = "CUSTOMER_REMOVED"; interface CustomerState { list: CustomerListItemViewModel[]; totalCount: number; paginationEnd: boolean; details?: InvoiceCustomerDetailViewModel; } interface CustomersLoadedAction { type: typeof CUSTOMERS_LOADED; payload: { list: CustomerListItemViewModel[]; totalCount: number; append: boolean; }; } interface SetCustomerDetailsAction { type: typeof SET_CUSTOMER_DETAILS; payload: { details: InvoiceCustomerDetailViewModel; }; } interface CustomerRemovedAction { type: typeof CUSTOMER_REMOVED; payload: { code: string; }; } type CustomerActionTypes = CustomersLoadedAction | SetCustomerDetailsAction | CustomerRemovedAction | ClearListAction | LoggedOutAction; declare function customers(state: CustomerState | undefined, action: CustomerActionTypes): CustomerState; declare const ADD_ENTRY = "ADD_ENTRY"; declare const REMOVE_ENTRY = "REMOVE_ENTRY"; declare const UPDATE_ENTRY = "UPDATE_ENTRY"; declare const INC_FAST_INVOICE_COUNTER = "INC_FAST_INVOICE_COUNTER"; declare const RESET_FAST_INVOICE_COUNTER = "RESET_FAST_INVOICE_COUNTER"; declare const SET_ORDER_TYPE = "SET_ORDER_TYPE"; declare const TOGGLE_USE_WEIGHT = "TOGGLE_USE_WEIGHT"; declare const SET_INVOICE_COUPON = "SET_INVOICE_COUPON"; declare const SET_PRODUCT_COUPON = "SET_PRODUCT_COUPON"; declare const CLEAR_FASTINVOICE = "CLEAR_FASTINVOICE"; type OrderType = "salon" | "pack" | "delivery"; type ActiveDiscountType = "customerClub" | "coupon" | "manual" | undefined; interface FastInvoiceState { invoice: { products: InvoiceProductDetailViewModel[]; latestSelectedProduct?: InvoiceProductDetailViewModel; orderType: OrderType; activeDiscountType: ActiveDiscountType; invoiceCoupon?: CouponDetailViewModel; }; fastInvoiceCounter: number; useWeight: boolean; } interface AddEntryAction { type: typeof ADD_ENTRY; payload: { product: InvoiceProductDetailViewModel; }; } interface RemoveEntryAction { type: typeof REMOVE_ENTRY; payload: { code: string; }; } interface UpdateEntryAction { type: typeof UPDATE_ENTRY; payload: { code: string; newProduct: InvoiceProductDetailViewModel; }; } interface IncFastInvoiceCounterAction { type: typeof INC_FAST_INVOICE_COUNTER; } interface ResetFastInvoiceCounterAction { type: typeof RESET_FAST_INVOICE_COUNTER; } interface SetOrderTypeAction { type: typeof SET_ORDER_TYPE; payload: { orderType: OrderType; }; } interface ToggleUseWeightAction { type: typeof TOGGLE_USE_WEIGHT; } interface SetInvoiceCouponAction { type: typeof SET_INVOICE_COUPON; payload: { coupon: CouponDetailViewModel; type: ActiveDiscountType; }; } interface SetProductCouponActionPayload { itemCode: string; coupon: { userCouponCode: string; discountType: number; discountAmount: number; }; type: ActiveDiscountType; } interface SetProductCouponAction { type: typeof SET_PRODUCT_COUPON; payload: SetProductCouponActionPayload; } interface ClearFastInvoiceAction { type: typeof CLEAR_FASTINVOICE; } type FastInvoiceActionTypes = AddEntryAction | RemoveEntryAction | UpdateEntryAction | IncFastInvoiceCounterAction | ResetFastInvoiceCounterAction | SetOrderTypeAction | ToggleUseWeightAction | SetInvoiceCouponAction | SetProductCouponAction | ClearFastInvoiceAction | LoggedOutAction; declare function fastInvoice(state: FastInvoiceState | undefined, action: FastInvoiceActionTypes): FastInvoiceState; declare const INVOICES_LOADED = "INVOICES_LOADED"; declare const SET_INVOICE_DETAILS = "SET_INVOICE_DETAILS"; declare const INVOICE_REMOVED = "INVOICE_REMOVED"; declare const INVOICE_COUPONS_LOADED = "INVOICE_COUPONS_LOADED"; interface InvoiceState { list: InvoiceListItemViewModel[]; totalCount: number; paginationEnd: boolean; details?: InvoiceComplexDetailViewModel; coupon?: CouponState; } interface InvoicesLoadedAction { type: typeof INVOICES_LOADED; payload: { list: InvoiceListItemViewModel[]; totalCount: number; append: boolean; }; } interface SetInvoiceDetailsAction { type: typeof SET_INVOICE_DETAILS; payload: { details: InvoiceComplexDetailViewModel; }; } interface InvoiceRemovedAction { type: typeof INVOICE_REMOVED; payload: { code: string; }; } interface InvoiceCouponsLoadedAction { type: typeof INVOICE_COUPONS_LOADED; payload: { list: CouponListItemViewModel[]; totalCount: number; append: boolean; }; } type InvoiceActionTypes = InvoicesLoadedAction | SetInvoiceDetailsAction | InvoiceRemovedAction | ClearListAction | InvoiceCouponsLoadedAction | LoggedOutAction; declare function invoices(state: InvoiceState | undefined, action: InvoiceActionTypes): InvoiceState; interface Versions { current?: string; supported?: string; latest?: string; } declare const LOGGED_IN_ORGANIZATION = "LOGGED_IN_ORGANIZATION"; declare const SET_ORGANIZATION_INFO = "SET_ORGANIZATION_INFO"; declare const LOGOUT_FROM_ORGANIZATION = "LOGOUT_FROM_ORGANIZATION"; interface OrganizationState { organizationClientId: string; token: string; name: string; logoUri: string; } interface LoggedInOrganizationAction { type: typeof LOGGED_IN_ORGANIZATION; payload: { token: string; }; } interface SetOrganizationInfoAction { type: typeof SET_ORGANIZATION_INFO; payload: { organization: { name: string; organizationClientId: string; logoUri?: string; }; }; } interface LogoutFromOrganizationAction { type: typeof LOGOUT_FROM_ORGANIZATION; } type AuthActionTypes$0 = LoggedInOrganizationAction | SetOrganizationInfoAction | LogoutFromOrganizationAction | LoggedOutAction; declare function auth$0(state: OrganizationState | undefined, action: AuthActionTypes$0): OrganizationState; declare const PERMALINKS_LOADED = "PERMALINKS_LOADED"; declare const SET_PERMALINK_DETAILS = "SET_PERMALINK_DETAILS"; declare const PERMALINK_REMOVED = "PERMALINK_REMOVED"; interface PermaLinkState { list: PermanentListItemViewModel[]; totalCount: number; details?: PermanentDetailViewModel; } interface PermaLinksLoadedAction { type: typeof PERMALINKS_LOADED; payload: { list: PermanentListItemViewModel[]; totalCount: number; }; } interface SetPermaLinkDetailsAction { type: typeof SET_PERMALINK_DETAILS; payload: { details: PermanentDetailViewModel; }; } interface PermaLinkRemovedAction { type: typeof PERMALINK_REMOVED; payload: { code: string; }; } type PermalinkActionTypes = PermaLinksLoadedAction | SetPermaLinkDetailsAction | PermaLinkRemovedAction | ClearListAction | LoggedOutAction; declare function permalinks(state: PermaLinkState | undefined, action: PermalinkActionTypes): PermaLinkState; declare const SET_DEFAULT_POS = "SET_DEFAULT_POS"; declare const DELETE_DEFAULT_POS = "DELETE_DEFAULT_POS"; declare const ADD_TO_POS_DEVICES = "ADD_TO_POS_DEVICES"; declare const REMOVE_FROM_POS_DEVICES = "REMOVE_FROM_POS_DEVICES"; interface PcPosConfig { uniqueId: string; pspId: string; ip: string; port: string; pspName: string; posName: string; logo: string; } interface PosState { pcpos: { active?: PcPosConfig; list: PcPosConfig[]; }; mpos: { terminalId?: string; }; } interface SetDefaultPosAction { type: typeof SET_DEFAULT_POS; payload: { uniqueId: string; }; } interface DeleteDefaultPosAction { type: typeof DELETE_DEFAULT_POS; } interface AddToPosDevicesAction { type: typeof ADD_TO_POS_DEVICES; payload: { config: PcPosConfig; }; } interface RemoveFromPosDevicesAction { type: typeof REMOVE_FROM_POS_DEVICES; payload: { uniqueId: string; }; } type PosActionTypes = SetDefaultPosAction | DeleteDefaultPosAction | AddToPosDevicesAction | RemoveFromPosDevicesAction | LoggedOutAction; declare function pos(state: PosState | undefined, action: PosActionTypes): PosState; declare const PRODUCTS_LOADED = "PRODUCTS_LOADED"; declare const SET_PRODUCT_DETAILS = "SET_PRODUCT_DETAILS"; declare const PRODUCT_REMOVED = "PRODUCT_REMOVED"; declare const TOGGLE_PRODUCT_ACTIVATION = "TOGGLE_PRODUCT_ACTIVATION"; declare const TOGGLE_PRODUCT_ARCHIVE = "TOGGLE_PRODUCT_ARCHIVE"; interface ProductState { list: ProductListWordpress[]; totalCount: number; paginationEnd: boolean; details?: ProductFullDeatilViewModel; } interface ProductsLoadedAction { type: typeof PRODUCTS_LOADED; payload: { list: ProductListWordpress[]; totalCount: number; append: boolean; }; } interface SetProductDetailsAction { type: typeof SET_PRODUCT_DETAILS; payload: { details: ProductFullDeatilViewModel; }; } interface ProductRemovedAction { type: typeof PRODUCT_REMOVED; payload: { code: string; }; } interface ToggleProductActivationAction { type: typeof TOGGLE_PRODUCT_ACTIVATION; payload: { code: string; }; } interface ToggleProductArchiveAction { type: typeof TOGGLE_PRODUCT_ARCHIVE; payload: { code: string; }; } type ProductActionTypes = ProductsLoadedAction | SetProductDetailsAction | ProductRemovedAction | ToggleProductActivationAction | ToggleProductArchiveAction | ClearListAction | LoggedOutAction; declare function products(state: ProductState | undefined, action: ProductActionTypes): ProductState; declare const REPORTS_LOADED = "REPORTS_LOADED"; declare const SET_REPORT_DETAILS = "SET_REPORT_DETAILS"; declare const SET_TRANSACTION_ISPAID = "SET_TRANSACTION_ISPAID"; declare const SET_TOTAL_TRANSACTION_COUNT = "SET_TOTAL_TRANSACTION_COUNT"; declare const SET_USER_TERMINAL_LIST = "SET_USER_TERMINAL_LIST"; interface ReportState { list: TransactionReportViewModel[]; totalCount: number; paginationEnd: boolean; details?: TransactionDetailsVM; totalTransactionCount?: number; terminalList: UserTerminalInfo[]; } interface ReportsLoadedAction { type: typeof REPORTS_LOADED; payload: { list: TransactionReportViewModel[]; totalCount: number; append: boolean; }; } interface SetReportDetailsAction { type: typeof SET_REPORT_DETAILS; payload: { details?: TransactionDetailsVM; }; } interface SetTransactionIsPaidAction { type: typeof SET_TRANSACTION_ISPAID; payload: { code: string; }; } interface SetTotalTransactionCountAction { type: typeof SET_TOTAL_TRANSACTION_COUNT; payload: number; } interface SetUserTerminalList { type: typeof SET_USER_TERMINAL_LIST; payload: UserTerminalInfo[]; } type ReportActionTypes = ReportsLoadedAction | SetReportDetailsAction | SetTransactionIsPaidAction | SetTotalTransactionCountAction | SetUserTerminalList | ClearListAction | LoggedOutAction; declare function reports(state: ReportState | undefined, action: ReportActionTypes): ReportState; interface TransactionDetailsVM extends PaymentDetailsVM { code: string; } declare const REQUEST_MONEYS_LOADED = "REQUEST_MONEYS_LOADED"; declare const SET_REQUEST_MONEY_DETAILS = "SET_REQUEST_MONEY_DETAILS"; interface RequestMoneyState { list: TransactionReportViewModel[]; totalCount: number; paginationEnd: boolean; details?: TransactionDetailsVM; } interface RequestMoneysLoadedAction { type: typeof REQUEST_MONEYS_LOADED; payload: { list: TransactionReportViewModel[]; totalCount: number; append: boolean; }; } interface SetRequestMoneyDetailsAction { type: typeof SET_REQUEST_MONEY_DETAILS; payload: { details?: TransactionDetailsVM; }; } type RequestMoneyActionTypes = RequestMoneysLoadedAction | SetRequestMoneyDetailsAction | ClearListAction | LoggedOutAction; declare function reports$0(state: RequestMoneyState | undefined, action: RequestMoneyActionTypes): RequestMoneyState; declare const ENABLE_DEFAULT_TERMS = "ENABLE_DEFAULT_TERMS"; declare const DISABLE_DEFAULT_TERMS = "DISABLE_DEFAULT_TERMS"; declare const TOGGLE_AUTO_PRINTING = "TOGGLE_AUTO_PRINTING"; declare const TOGGLE_PRINTING_RECEPTION_INVOICE = "TOGGLE_PRINTING_RECEPTION_INVOICE"; declare const SET_PRINTER_FOR_RECEPTION_INVOICE = "SET_PRINTER_FOR_RECEPTION_INVOICE"; declare const TOGGLE_SECOND_SCREEN_WINDOW_VISIBLITY = "TOGGLE_SECOND_SCREEN_WINDOW_VISIBLITY"; declare const TOGGLE_SHOP_MODE = "TOGGLE_SHOP_MODE"; declare const TOGGLE_CUSTOMER_ORDER_MODE = "TOGGLE_CUSTOMER_ORDER_MODE"; declare const TOGGLE_SELECT_ORDER_TYPE = "TOGGLE_SELECT_ORDER_TYPE"; declare const TOGGLE_CURRENT_SALE_COMPACT_MODE = "TOGGLE_CURRENT_SALE_COMPACT_MODE"; declare const TOGGLE_PRE_INVOICE_MODE = "TOGGLE_PRE_INVOICE_MODE"; declare const TOGGLE_READ_WEIGHT_FROM_PORT = "TOGGLE_READ_WEIGHT_FROM_PORT"; declare const SET_NETWORK_STATUS = "SET_NETWORK_STATUS"; declare const SET_PAPER_SIZE = "SET_PAPER_SIZE"; declare const SET_LOCALE = "SET_LOCALE"; declare const SET_DIRECTION = "SET_DIRECTION"; declare const SET_THEME = "SET_THEME"; declare const SET_COMPACT = "SET_COMPACT"; declare const SET_AUTO_RELEASE_NOTES = "SET_AUTO_RELEASE_NOTES"; declare const SET_VERSIONS = "SET_VERSIONS"; type PrintPaperSizeTypes = "A4" | "A5" | "80mm"; type LocaleType = "fa" | "en"; type DirectionType = "rtl" | "ltr"; type ThemeType = "light" | "dark"; interface PrinterConfig { name: string; isDefault: boolean; } interface SettingState { autoDisplay: boolean; defaultTerms: { isEnabled: boolean; text: string; }; isAutoPrintingActive: boolean; printReceptionInvoice: boolean; defaultPrinterForReceptionInvoice?: PrinterConfig; isSecondScreenWindowVisible: boolean; isShopModeActive: boolean; customerOrderMode: boolean; showSelectOrderType: boolean; fastInvoiceCompactMode: boolean; preInvoiceMode: boolean; isOnline: boolean; readWeightFromPort: boolean; paperSize: PrintPaperSizeTypes; locale: LocaleType; direction: DirectionType; versions: Versions; theme: ThemeType; compactTheme: boolean; } interface EnableDefaultTermsAction { type: typeof ENABLE_DEFAULT_TERMS; payload: { text: string; }; } interface DisableDefaultTermsAction { type: typeof DISABLE_DEFAULT_TERMS; } interface ToggleAutoPrintingAction { type: typeof TOGGLE_AUTO_PRINTING; } interface TogglePrintingReceptionInvoiceAction { type: typeof TOGGLE_PRINTING_RECEPTION_INVOICE; } interface SetPrinterForReceptionInvoiceAction { type: typeof SET_PRINTER_FOR_RECEPTION_INVOICE; payload: { config?: PrinterConfig; }; } interface ToggleSecondScreenVisiblityAction { type: typeof TOGGLE_SECOND_SCREEN_WINDOW_VISIBLITY; } interface ToggleShopModeAction { type: typeof TOGGLE_SHOP_MODE; } interface ToggleCustomerOrderModeAction { type: typeof TOGGLE_CUSTOMER_ORDER_MODE; } interface ToggleSelectOrderTypeAction { type: typeof TOGGLE_SELECT_ORDER_TYPE; } interface ToggleFastInvoiceCompactModeAction { type: typeof TOGGLE_CURRENT_SALE_COMPACT_MODE; } interface TogglePreInvoiceModeAction { type: typeof TOGGLE_PRE_INVOICE_MODE; } interface ToggleReadWeightFromPortAction { type: typeof TOGGLE_READ_WEIGHT_FROM_PORT; } interface SetNetworkStatusAction { type: typeof SET_NETWORK_STATUS; payload: { isOnline: boolean; }; } interface SetPaperSizeAction { type: typeof SET_PAPER_SIZE; payload: { paperSize: PrintPaperSizeTypes; }; } interface SetLocaleAction { type: typeof SET_LOCALE; payload: { locale: LocaleType; }; } interface SetDirectionAction { type: typeof SET_DIRECTION; payload: { direction: DirectionType; }; } interface SetThemeAction { type: typeof SET_THEME; payload: { theme: ThemeType; }; } interface SetCompactAction { type: typeof SET_COMPACT; payload: { compact: boolean; }; } interface SetAutoReleaseNotesAction { type: typeof SET_AUTO_RELEASE_NOTES; payload: { autoDisplay: boolean; }; } interface SetVersionsAction { type: typeof SET_VERSIONS; payload: Versions; } type SettingActionTypes = EnableDefaultTermsAction | DisableDefaultTermsAction | ToggleAutoPrintingAction | TogglePrintingReceptionInvoiceAction | SetPrinterForReceptionInvoiceAction | ToggleSecondScreenVisiblityAction | ToggleShopModeAction | ToggleCustomerOrderModeAction | ToggleSelectOrderTypeAction | ToggleFastInvoiceCompactModeAction | TogglePreInvoiceModeAction | ToggleReadWeightFromPortAction | SetNetworkStatusAction | SetPaperSizeAction | SetLocaleAction | SetDirectionAction | SetThemeAction | SetCompactAction | LoggedOutAction | SetVersionsAction | SetAutoReleaseNotesAction; declare function settings(state: SettingState | undefined, action: SettingActionTypes): SettingState; declare const SET_ACTIVE_REFERRAL = "SET_ACTIVE_REFERRAL"; declare const SET_USER_PROFILE = "SET_USER_PROFILE"; declare const SET_USER_WAGE = "SET_USER_WAGE"; declare const SET_USER_DETAIL = "SET_USER_DETAIL"; declare const SET_BUSINESS_INFO = "SET_BUSINESS_INFO"; declare const SET_PERSONAL_INFO = "SET_PERSONAL_INFO"; declare const SET_USER_INFO = "SET_USER_INFO"; declare const SET_USER_CHECKS = "SET_USER_CHECKS"; declare const SET_LOCAL_INFORMATION = "SET_LOCAL_INFORMATION"; declare const SET_USER_PANEL_DATA = "SET_USER_PANEL_DATA"; declare const SET_PHONE_NUMBER = "SET_PHONE_NUMBER"; declare const SET_BANK = "SET_BANK"; declare const SET_SOCIALS = "SET_SOCIALS"; declare const SET_USER_WIZARD_INFO = "SET_USER_WIZARD_INFO"; declare const SET_USER_MESSAGE_LIST = "SET_USER_MESSAGE_LIST"; declare const SET_USER_MESSAGE_COUNT = "SET_USER_MESSAGE_COUNT"; declare const READ_ALL_MESSAGES = "READ_ALL_MESSAGES"; declare const SET_USER_WITHDRAW_STATUS = "SET_USER_WITHDRAW_STATUS"; declare const SET_USER_OVERVIEW_TASKS_STATUS = "SET_USER_OVERVIEW_TASKS_STATUS"; declare const SET_USER_PERMISSIONS = "SET_USER_PERMISSIONS"; declare const SET_IS_LOADING_PERMISSIONS = "SET_IS_LOADING_PERMISSIONS"; interface ConnectUserInfo { businessname: string; firstname: string; /* eslint-disable camelcase */ /** Backend boolean notation. No way to change it due to third party authentication packages in backend */ have_terminal: "True" | "False"; is_oauth: boolean; ischecked_verification: boolean; /* eslint-enable camelcase */ isverify: boolean; lastname: string; ppclientid: string; profilepicture: string; role?: string[]; sub: string; username: string; paidFeature?: string[]; } interface UserState extends DashboardProfileResponseModel { personalInfo?: Omit & Omit & { haveTerminal?: boolean; birthdayNationalCodeVerified?: boolean; name?: string; verifyType?: UserVerificationTypeEnum | UserVerificationTypeAdminEnum; }; businessInfo?: UserBusinessInformationAdminModel; panelInfo?: UserProfilePlanInfoResponseModel & Pick; bankInfo?: { sheba?: string; shebaVerified?: boolean; }; localInfo?: UserLocalInfoResponseModel; message: { count: number; list: UserMessageModel[]; }; checks?: DashboardProfileChecksResponseModel; socials?: UserSocialInfoResponseModel; discountDays?: number; hasWithdraw?: boolean; autoWithdraw?: boolean; phoneNumber?: string; qrCode?: string; role?: string[]; twoFactorEnabled?: boolean; wizard?: UserWizardStatusInfo; referralCode?: string; registerDateTime?: string; isReferralActive?: boolean; isSettlement?: boolean; wage?: WageInfoViewModel; permissions: string[]; isLoadingPermission: boolean; overview: { hasWithdraw?: boolean; lastWithdraw?: TransactionWithdrawDetailsViewModel; tasksStatus?: { hasCoupon: boolean; hasCustomer: boolean; hasInvoices: boolean; hasProduct: boolean; hasToken: boolean; hasTransaction: boolean; }; }; } interface SetUserInfoAction { type: typeof SET_USER_PROFILE; payload: GetUserProfileAdminResponseModel; } interface SetUserPermissions { type: typeof SET_USER_PERMISSIONS; payload: UserState["permissions"]; } interface SetIsLoadingPermissions { type: typeof SET_IS_LOADING_PERMISSIONS; payload: UserState["isLoadingPermission"]; } interface SetUserProfileAction { type: typeof SET_USER_WAGE; payload: WageInfoViewModel; } interface SetUserDetailAction { type: typeof SET_USER_DETAIL; payload: DashboardProfileResponseModel; } interface SetBusinesInfoAction { type: typeof SET_BUSINESS_INFO; payload: UserBusinessInformationAdminModel; } interface SetPersonalInfoAction { type: typeof SET_PERSONAL_INFO; payload: UserPersonalInfoResponseModel; } interface SetUserRoleAction { type: typeof SET_USER_INFO; payload: ConnectUserInfo; } interface SetUserChecksAction { type: typeof SET_USER_CHECKS; payload: DashboardProfileChecksResponseModel; } interface SetLocalInformationAction { type: typeof SET_LOCAL_INFORMATION; payload: UserLocalInfoResponseModel; } interface SetUserPanelDataAction { type: typeof SET_USER_PANEL_DATA; payload: UserProfilePlanInfoResponseModel; } interface SetPhoneNumberAction { type: typeof SET_PHONE_NUMBER; payload: PhoneNumberInformationResponseModel; } interface SetBankAction { type: typeof SET_BANK; payload: UserShabaInfoResponseModel; } interface SetSocialsAction { type: typeof SET_SOCIALS; payload: UserSocialInfoResponseModel; } interface SetUserWizardInfoAction { type: typeof SET_USER_WIZARD_INFO; payload: UserWizardStatusInfo; } interface SetUserMessageListAction { type: typeof SET_USER_MESSAGE_LIST; payload: GetUserMessagesResponseModel; } interface SetUserMessageCountAction { type: typeof SET_USER_MESSAGE_COUNT; payload: number; } interface ReadAllMessagesAction { type: typeof READ_ALL_MESSAGES; } interface SetActiveReferral { type: typeof SET_ACTIVE_REFERRAL; } interface SetUserWithdrawStatusAction { type: typeof SET_USER_WITHDRAW_STATUS; payload: { hasWithdraw?: UserState["overview"]["hasWithdraw"]; lastWithdraw?: UserState["overview"]["lastWithdraw"]; }; } interface SetUserOverviewTasksStatus { type: typeof SET_USER_OVERVIEW_TASKS_STATUS; payload: UserState["overview"]["tasksStatus"]; } type UserActionTypes = SetUserInfoAction | SetUserPermissions | SetUserProfileAction | SetIsLoadingPermissions | SetUserDetailAction | SetBusinesInfoAction | SetPersonalInfoAction | SetUserRoleAction | SetUserChecksAction | ClearListAction | SetLocalInformationAction | SetPhoneNumberAction | SetBankAction | SetSocialsAction | SetUserWizardInfoAction | SetUserMessageListAction | SetUserMessageCountAction | ReadAllMessagesAction | SetUserPanelDataAction | SetActiveReferral | LoggedOutAction | SetUserWithdrawStatusAction | SetUserOverviewTasksStatus; declare function user(state: UserState | undefined, action: UserActionTypes): UserState; declare const SET_TOKENS_LIST = "SET_TOKENS_LIST"; declare const SET_APPS_LIST = "SET_APPS_LIST"; declare const SET_CLIENTS_LIST = "SET_CLIENTS_LIST"; declare const SET_SCOPES_LIST = "SET_SCOPES_LIST"; declare const ADD_NEW_TOKEN = "ADD_NEW_TOKEN"; declare const ADD_NEW_APP = "ADD_NEW_APP"; interface ClientState { app: { list: AppDetailViewModel[]; details?: AppDetailViewModel; totalCount: number; }; client: { list: ClientDetailViewModel[]; details?: ClientDetailViewModel; totalCount: number; }; hasWithdrawRefund?: boolean; allScopes: { scopes: ScopeDetailViewModel[]; identityScopes: ScopeDetailViewModel[]; }; token: { list: TokenDetailViewModel[]; details?: TokenDetailViewModel; totalCount: number; }; } interface SetAppsListAction { type: typeof SET_APPS_LIST; payload: ClientState["app"]; } interface SetClientsListAction { type: typeof SET_CLIENTS_LIST; payload: ClientState["client"]; } interface SetTokensListAction { type: typeof SET_TOKENS_LIST; payload: ClientState["token"]; } interface SetScopesListAction { type: typeof SET_SCOPES_LIST; payload: { scopes: ScopeDetailViewModel[]; identityScopes: ScopeDetailViewModel[]; }; } interface AddNewAppAction { type: typeof ADD_NEW_APP; payload: AppDetailViewModel; } interface AddNewTokenAction { type: typeof ADD_NEW_TOKEN; payload: TokenDetailViewModel; } type ClientActionTypes = SetAppsListAction | SetClientsListAction | SetTokensListAction | SetScopesListAction | AddNewAppAction | AddNewTokenAction | ClearListAction | LoggedOutAction; declare function client(state: ClientState | undefined, action: ClientActionTypes): ClientState; type Unpromisify = T extends Promise ? U : T; interface DigitalAccountState { availableBanks: Unpromisify>; depositStatements: Unpromisify>; statementsList: Unpromisify>; depositBalance: Unpromisify>; samanRequestList: Unpromisify>; samanOverviewDetail: Unpromisify>; khavarmianeh: { status?: Unpromisify>; }; } declare const USER_AVAILABLE_BANKS_LOADED = "USER_AVAILABLE_BANKS_LOADED"; declare const SAMAN_DEPOSIT_STATEMENTS_LOADED = "SAMAN_DEPOSIT_STATEMENTS_LOADED"; declare const SAMAN_DEPOSIT_STATEMENTS_LIST_LOADED = "SAMAN_DEPOSIT_STATEMENTS_LIST_LOADED"; declare const SAMAN_DEPOSIT_BALANCE_LOADED = "SAMAN_DEPOSIT_BALANCE_LOADED"; declare const USER_KHAVARMIANEH_STATUS_LOADED = "USER_KHAVARMIANEH_STATUS_LOADED"; declare const SAMAN_REQUEST_LIST_LOADED = "SAMAN_REQUEST_LIST_LOADED"; declare const SAMAN_UPLOAD_LIST_LOADED = "SAMAN_UPLOAD_LIST_LOADED"; declare const SAMAN_OVERVIEW_DETAIL_LOADED = "SAMAN_OVERVIEW_DETAIL_LOADED"; interface UserBanksLoadedAction { type: typeof USER_AVAILABLE_BANKS_LOADED; payload: { list: Unpromisify>; }; } interface SamanDepositStatementsLoadedAction { type: typeof SAMAN_DEPOSIT_STATEMENTS_LOADED; payload: { result: Unpromisify>; }; } interface SamanDepositStatementsListLoadedAction { type: typeof SAMAN_DEPOSIT_STATEMENTS_LIST_LOADED; payload: { result: Unpromisify>; }; } interface SamanDepositBalanceLoadedAction { type: typeof SAMAN_DEPOSIT_BALANCE_LOADED; payload: { result: Unpromisify>; }; } interface UserKhavarmianehStatusAction { type: typeof USER_KHAVARMIANEH_STATUS_LOADED; payload: Unpromisify>; } interface SamanRequestListLoadedAction { type: typeof SAMAN_REQUEST_LIST_LOADED; payload: { list: Unpromisify>; }; } interface SamanUploadListLoadedAction { type: typeof SAMAN_UPLOAD_LIST_LOADED; payload: { list: Unpromisify>; }; } interface SamanOverviewDetailLoadedAction { type: typeof SAMAN_OVERVIEW_DETAIL_LOADED; payload: { result: Unpromisify>; }; } type DigitalAccountActionTypes = UserBanksLoadedAction | LoggedOutAction | SamanDepositStatementsLoadedAction | SamanDepositStatementsListLoadedAction | SamanDepositBalanceLoadedAction | UserKhavarmianehStatusAction | SamanRequestListLoadedAction | SamanUploadListLoadedAction | SamanOverviewDetailLoadedAction; // eslint-disable-next-line default-param-last declare function digitalAccount(state: DigitalAccountState | undefined, action: DigitalAccountActionTypes): DigitalAccountState; declare const organization: typeof auth$0; declare const requestMoney: typeof reports$0; declare const SET_SERVICE_LIST = "SET_SERVICE_LIST"; declare const SET_ONE_SERVICE = "SET_ONE_SERVICE"; interface ServiceState { oneService: BaseIntegration; list: ServiceDetailViewModel[]; totalCount: number; } interface SetServiceListAction { type: typeof SET_SERVICE_LIST; payload: { list: ServiceDetailViewModel[]; totalCount: number; }; } interface SetOneServiceAction { type: typeof SET_ONE_SERVICE; payload: BaseIntegration; } type ServiceActionTypes = SetServiceListAction | SetOneServiceAction | LoggedOutAction; declare function services(state: ServiceState | undefined, action: ServiceActionTypes): ServiceState; declare const WITHDRAWS_LOADED = "WITHDRAWS_LOADED"; declare const SET_BALANCE = "SET_BALANCE"; interface WithdrawState { balance: number; list: TransactionWithdrawDetailsViewModel[]; totalCount: number; paginationEnd: boolean; } interface WithdrawsLoadedAction { type: typeof WITHDRAWS_LOADED; payload: { list: TransactionWithdrawDetailsViewModel[]; totalCount: number; append: boolean; }; } interface SetBalanceAction { type: typeof SET_BALANCE; payload: number; } type WithdrawActionTypes = WithdrawsLoadedAction | ClearListAction | LoggedOutAction | SetBalanceAction; declare function withdraws(state: WithdrawState | undefined, action: WithdrawActionTypes): WithdrawState; declare const CASH_OUT_REQUESTS_LOADED = "CASH_OUT_REQUESTS_LOADED"; declare const CASH_OUT_SETTLEMENTS_LOADED = "CASH_OUT_SETTLEMENTS_LOADED"; declare const CASH_OUT_OVERVIEW_LOADED = "CASH_OUT_OVERVIEW_LOADED"; declare const SET_CREATE_REQUEST_RESULT = "SET_CREATE_REQUEST_RESULT"; declare const CASH_OUT_SEARCH_SETTLEMENTS_LOADED = "CASH_OUT_SEARCH_SETTLEMENTS_LOADED"; declare const CASH_OUT_DEPOSIT_LOADED = "CASH_OUT_DEPOSIT_LOADED"; declare const CASH_OUT_FAVORITE_IBAN = "CASH_OUT_FAVORITE_IBAN"; declare const CASH_OUT_TRANSACTIONS_LOADED = "CASH_OUT_TRANSACTIONS_LOADED"; interface CashOutState { depositList?: PagedQueryResultRequestDetailsVM; depositTransactionsList?: PagedQueryResultTransactionDetails; requestList?: PagedQueryResultRequestDetailsVM; settlementList?: PagedQueryResultSettlementFullDetails; overview?: OverviewResult; createdRequest?: CreateRequestResultVM; createRequestSettlements?: PagedQueryResultSettlementFullDetails; filteredSettlementList?: PagedQueryResultSettlementFullDetails; favouriteIbans?: GetFavouriteIbansResponse; } interface CashOutDepositLoadedAction { type: typeof CASH_OUT_DEPOSIT_LOADED; payload: PagedQueryResultRequestDetailsVM; } interface CashOutDepositTransactionsLoadedAction { type: typeof CASH_OUT_TRANSACTIONS_LOADED; payload: PagedQueryResultTransactionDetails; } interface CashOutOverviewLoadedAction { type: typeof CASH_OUT_OVERVIEW_LOADED; payload: OverviewResult; } interface CashOutFavoriteIbanAction { type: typeof CASH_OUT_FAVORITE_IBAN; payload: GetFavouriteIbansResponse; } interface CashOutRequestsLoadedAction { type: typeof CASH_OUT_REQUESTS_LOADED; payload: PagedQueryResultRequestDetailsVM; } interface SetCashOutRequestsListAction { type: typeof SET_CREATE_REQUEST_RESULT; payload: CreateRequestResultVM; } interface CashOutSettlementLoadedAction { type: typeof CASH_OUT_SETTLEMENTS_LOADED; payload: PagedQueryResultSettlementFullDetails; } interface CashOutSearchSettlementsAction { type: typeof CASH_OUT_SEARCH_SETTLEMENTS_LOADED; payload: PagedQueryResultSettlementFullDetails; } type CashOutActionTypes = CashOutOverviewLoadedAction | CashOutRequestsLoadedAction | CashOutSettlementLoadedAction | SetCashOutRequestsListAction | LoggedOutAction | CashOutSearchSettlementsAction | CashOutDepositLoadedAction | CashOutFavoriteIbanAction | CashOutDepositTransactionsLoadedAction; declare function cashOuts(state: CashOutState | undefined, action: CashOutActionTypes): CashOutState; interface SdkReducers { auth: typeof auth; categories: typeof categories; client: typeof client; coupons: typeof coupons; customers: typeof customers; digitalAccount: typeof digitalAccount; fastInvoice: typeof fastInvoice; fetchQueue: typeof fetchQueueReducer; invoices: typeof invoices; organization: typeof organization; permalinks: typeof permalinks; pos: typeof pos; products: typeof products; reports: typeof reports; service: typeof services; settings: typeof settings; user: typeof user; withdraws: typeof withdraws; requestMoney: typeof requestMoney; cashOuts: typeof cashOuts; } interface SdkStoreStates { auth: AuthState; categories: CategoryState; client: ClientState; coupons: CouponState; customers: CustomerState; digitalAccount: DigitalAccountState; fastInvoice: FastInvoiceState; fetchQueue: ReturnType; invoices: InvoiceState; organization: OrganizationState; permalinks: PermaLinkState; pos: PosState; products: ProductState; reports: ReportState; service: ServiceState; settings: SettingState; user: UserState; withdraws: WithdrawState; requestMoney: RequestMoneyState; cashOuts: CashOutState; } declare function createRootReducer(appReducers?: Record): Reducer>; export { SdkReducers, SdkStoreStates, createRootReducer as default, CLEAR_LIST, LOGGED_OUT, PrinterConfig, PrintPaperSizeTypes, ClearListAction, LoggedOutAction, SdkThunkActionResult, SdkThunkDispatch };