import { FetchStateAndError, FetchedState } from '../../../commonStateTypes/common'; import { InvoicingSettingsPayload } from '../../../entity/invoicing/invoicingCommonPayload'; import { InvoicingBrandingFormLocalData } from './invoicingBrandingFormConfig'; import { InvoicingQboSettingsLocalData } from './invoicingQboSettingsFormConfig'; export interface InvoicingSettingsViewState extends FetchedState { saveFetchState: FetchStateAndError; stripeFetchState: FetchStateAndError; brandingDraft?: InvoicingBrandingFormLocalData; /** * In-progress QBO settings edits. Held here rather than in the page so a * selection cannot be lost between the change and the save, and so a * half-finished edit survives navigating away. Undefined until first edited, * which is what makes the server's settings the fallback. */ qboDraft?: InvoicingQboSettingsLocalData; settings?: InvoicingSettingsPayload; }