UNPKG

@finagraph/strongbox-finconnect-react

Version:

React components to integrate with Finagraph Strongbox

44 lines (43 loc) 2.57 kB
import * as React from 'react'; import './styles.scss'; import { BorrowerSteps } from './Models/BorrowerState'; import { ConnectAccountingSystem, DisconnectConnection, FindConnection, GetFinancialsConnectionDescriptor, ImportDayMonthYear, ImportFinancials, LenderConnectionOptions, LoadConnectWindow, PortalFlowType, StrongboxConnectionDescriptor, StrongboxConnectionRequest, StrongboxImportRequest } from './Utils/ConnectStrongbox'; import { Theme } from './Models/Theme/Theme'; import { IDelegatedAccessToken } from './Models/Api/ClientBase'; import { AccountingPackageToShow, SupportedAccountingPackages } from './Components/ChoosePackage'; import { LinkerModal } from './Components/StrongboxLinker/LinkerModal'; import { ReceivablesAndPayablesOptions, BasisOfAccountingPreference, IFinancialStatementImportOptions, ITransactionImportOptions, IReceivablesAndPayablesOptions } from './Models/Api/strongbox.models'; export { BorrowerSteps, AccountingPackageToShow, SupportedAccountingPackages, BasisOfAccountingPreference, }; export type FinancialImportOptions = { mostRecentDate?: ImportDayMonthYear; financialStatementsPeriod?: IFinancialStatementImportOptions; transactionsPeriod?: ITransactionImportOptions; payablesPeriod?: IReceivablesAndPayablesOptions; receivablesPeriod?: ReceivablesAndPayablesOptions; anonymizeCustomersAndVendors: boolean; }; export type SBLinkAccountingPackageChildProps = { step: BorrowerSteps; pctComplete?: number; }; export type ISBLinkAccountingPackageProps = { accessToken: IDelegatedAccessToken; accountingPackages?: AccountingPackageToShow[]; children: (props: SBLinkAccountingPackageChildProps) => JSX.Element | undefined; className?: string; disabled?: boolean; financialImportOptions?: FinancialImportOptions; language?: string; onFailureToSetBusinessName?: (response?: Response) => void; onJobCreated?: (financialRecordId: string) => void; onButtonExpanded?: (expanded: boolean) => void; orgId: string; orgName?: string; partnerName: string; theme?: Theme; showConnectionDialog?: boolean; strongboxUrlOverride?: string; }; declare const App: React.FC<ISBLinkAccountingPackageProps>; export default App; export { ConnectAccountingSystem, DisconnectConnection, FindConnection, GetFinancialsConnectionDescriptor, ImportFinancials, LenderConnectionOptions, LinkerModal, LoadConnectWindow, PortalFlowType, StrongboxConnectionDescriptor, StrongboxConnectionRequest, StrongboxImportRequest, Theme };