@accounter/scraper-app
Version:
Scraper app with Fastify server and React UI
29,063 lines • 1.67 MB
text/typescript
/** Internal type. DO NOT USE DIRECTLY. */
type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
/** Internal type. DO NOT USE DIRECTLY. */
export type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
import { type GraphQLClient, type RequestOptions } from 'graphql-request';
import { GraphQLError, print } from 'graphql'
import gql from 'graphql-tag';
type GraphQLClientRequestHeaders = RequestOptions['requestHeaders'];
/** represents accountant approval status */
export const AccountantStatus = {
Approved: 'APPROVED',
Pending: 'PENDING',
Unapproved: 'UNAPPROVED'
} as const;
export type AccountantStatus = typeof AccountantStatus[keyof typeof AccountantStatus];
/** Accounting method enum (שיטת חשבונאות) */
export const AccountingMethod = {
/** Double-entry (כפולה) */
DoubleEntry: 'DOUBLE_ENTRY',
/** Single-entry (חד צידית) */
SingleEntry: 'SINGLE_ENTRY'
} as const;
export type AccountingMethod = typeof AccountingMethod[keyof typeof AccountingMethod];
/** Business accounting system enum (הנח''ש של העסק) */
export const AccountingSystem = {
/** Computerized (ממוחשב) */
Computerized: 'COMPUTERIZED',
/** Manual (ידני) */
Manual: 'MANUAL'
} as const;
export type AccountingSystem = typeof AccountingSystem[keyof typeof AccountingSystem];
/** the input for adding a new business trip accommodation expense */
export type AddBusinessTripAccommodationsExpenseInput = {
amount?: number | null | undefined;
attendeesStay?: Array<BusinessTripAttendeeStayInput> | null | undefined;
businessTripId: string;
country?: unknown;
currency?: Currency | null | undefined;
date?: unknown;
employeeBusinessId?: string | null | undefined;
nightsCount?: number | null | undefined;
valueDate?: unknown;
};
/** the input for adding a new business trip T&S expense */
export type AddBusinessTripCarRentalExpenseInput = {
amount?: number | null | undefined;
businessTripId: string;
currency?: Currency | null | undefined;
date?: unknown;
days?: number | null | undefined;
employeeBusinessId?: string | null | undefined;
isFuelExpense?: boolean | null | undefined;
valueDate?: unknown;
};
/** the input for adding a new business trip flights expense */
export type AddBusinessTripFlightsExpenseInput = {
amount?: number | null | undefined;
attendeeIds?: Array<string> | null | undefined;
businessTripId: string;
currency?: Currency | null | undefined;
date?: unknown;
employeeBusinessId?: string | null | undefined;
flightClass?: FlightClass | null | undefined;
path?: Array<string> | null | undefined;
valueDate?: unknown;
};
/** the input for adding a new business trip other expense */
export type AddBusinessTripOtherExpenseInput = {
amount?: number | null | undefined;
businessTripId: string;
currency?: Currency | null | undefined;
date?: unknown;
deductibleExpense?: boolean | null | undefined;
description?: string | null | undefined;
employeeBusinessId?: string | null | undefined;
valueDate?: unknown;
};
/** the input for adding a new business trip T&S expense */
export type AddBusinessTripTravelAndSubsistenceExpenseInput = {
amount?: number | null | undefined;
businessTripId: string;
currency?: Currency | null | undefined;
date?: unknown;
employeeBusinessId?: string | null | undefined;
expenseType?: string | null | undefined;
valueDate?: unknown;
};
/** Input for an American Express credit card transaction */
export type AmexTransactionInput = {
adendum?: string | null | undefined;
card: string;
cardIndex: number;
chargingDate?: string | null | undefined;
city?: string | null | undefined;
clientIpAddress?: string | null | undefined;
currencyId?: string | null | undefined;
currentPaymentCurrency?: string | null | undefined;
dealSum?: string | null | undefined;
dealSumOutbound?: string | null | undefined;
dealSumType?: string | null | undefined;
dealsInbound?: string | null | undefined;
displayProperties?: string | null | undefined;
esbServicesCall?: string | null | undefined;
fullPaymentDate?: string | null | undefined;
fullPurchaseDate?: string | null | undefined;
fullPurchaseDateOutbound?: string | null | undefined;
fullSupplierNameHeb?: string | null | undefined;
fullSupplierNameOutbound?: string | null | undefined;
horaatKeva?: string | null | undefined;
isButton: string;
isCaptcha: string;
isError: string;
isHoraatKeva: string;
isShowDealsOutbound?: string | null | undefined;
isShowLinkForSupplierDetails?: string | null | undefined;
kodMatbeaMekori?: string | null | undefined;
message?: string | null | undefined;
moreInfo?: string | null | undefined;
paymentDate?: string | null | undefined;
paymentSum?: string | null | undefined;
paymentSumOutbound?: string | null | undefined;
paymentSumSign?: string | null | undefined;
purchaseDate?: string | null | undefined;
purchaseDateOutbound?: string | null | undefined;
returnCode?: string | null | undefined;
returnMessage?: string | null | undefined;
siteName?: string | null | undefined;
solek?: string | null | undefined;
specificDate?: string | null | undefined;
stage?: string | null | undefined;
supplierId?: number | null | undefined;
supplierName?: string | null | undefined;
supplierNameOutbound?: string | null | undefined;
tablePageNum: boolean;
voucherNumber?: number | null | undefined;
voucherNumberRatz?: number | null | undefined;
voucherNumberRatzOutbound?: number | null | undefined;
};
/** User type classification for annual audit opening balance step */
export const AnnualAuditOpeningBalanceUserType = {
Continuing: 'CONTINUING',
Error: 'ERROR',
Migrating: 'MIGRATING',
New: 'NEW'
} as const;
export type AnnualAuditOpeningBalanceUserType = typeof AnnualAuditOpeningBalanceUserType[keyof typeof AnnualAuditOpeningBalanceUserType];
/** Status values for annual audit steps */
export const AnnualAuditStepStatus = {
Blocked: 'BLOCKED',
Completed: 'COMPLETED',
InProgress: 'IN_PROGRESS',
Pending: 'PENDING'
} as const;
export type AnnualAuditStepStatus = typeof AnnualAuditStepStatus[keyof typeof AnnualAuditStepStatus];
/** Input type representing an annual identifier for tax purposes. */
export type AnnualIdInput = {
id: string;
year: number;
};
/** annual revenue report filter */
export type AnnualRevenueReportFilter = {
adminBusinessId?: string | null | undefined;
year: number;
};
/** Audit opinion type enum (חוות דעת) */
export const AuditOpinionType = {
/** Adverse opinion (שלילית) */
Adverse: 'ADVERSE',
/** Disclaimer of opinion (המנעות) */
Disclaimer: 'DISCLAIMER',
/** No audit opinion (אין חוות דעת) */
None: 'NONE',
/** Qualified opinion (הסתייגות) */
Qualified: 'QUALIFIED',
/** Unqualified opinion (נוסח אחיד (בלתי מסוייג)) */
Unqualified: 'UNQUALIFIED',
/** Unqualified opinion with emphasis on going concern (בנוסח אחיד עם הפניית תשומת לב להערת עסק חי) */
UnqualifiedWithGoingConcern: 'UNQUALIFIED_WITH_GOING_CONCERN',
/** Unqualified opinion with other emphases (בנוסח אחיד עם הפניות תשומת לב אחרת) */
UnqualifiedWithOtherEmphases: 'UNQUALIFIED_WITH_OTHER_EMPHASES'
} as const;
export type AuditOpinionType = typeof AuditOpinionType[keyof typeof AuditOpinionType];
/** input type for creating a bank account */
export type BankAccountInsertInput = {
accountAgreementOpeningDate?: number | null | undefined;
accountClosingReasonCode?: number | null | undefined;
accountDealDate?: number | null | undefined;
accountUpdateDate?: number | null | undefined;
bankNumber: number;
branchNumber: number;
branchTypeCode?: number | null | undefined;
extendedBankNumber?: number | null | undefined;
iban?: string | null | undefined;
kodHarshaatPeilut?: number | null | undefined;
metegDoarNet?: number | null | undefined;
mymailEntitlementSwitch?: number | null | undefined;
partyAccountInvolvementCode?: number | null | undefined;
partyPreferredIndication?: number | null | undefined;
productLabel?: string | null | undefined;
serviceAuthorizationDesc?: string | null | undefined;
swiftCode?: string | null | undefined;
};
/** input type for updating a bank account */
export type BankAccountUpdateInput = {
accountAgreementOpeningDate?: number | null | undefined;
accountClosingReasonCode?: number | null | undefined;
accountDealDate?: number | null | undefined;
accountUpdateDate?: number | null | undefined;
bankNumber?: number | null | undefined;
branchNumber?: number | null | undefined;
branchTypeCode?: number | null | undefined;
extendedBankNumber?: number | null | undefined;
iban?: string | null | undefined;
kodHarshaatPeilut?: number | null | undefined;
metegDoarNet?: number | null | undefined;
mymailEntitlementSwitch?: number | null | undefined;
partyAccountInvolvementCode?: number | null | undefined;
partyPreferredIndication?: number | null | undefined;
productLabel?: string | null | undefined;
serviceAuthorizationDesc?: string | null | undefined;
swiftCode?: string | null | undefined;
};
/** input for batchUpdateBusinesses: the subset of business fields that is safe to apply to many businesses at once */
export type BatchUpdateBusinessInput = {
city?: string | null | undefined;
country?: unknown;
exemptDealer?: boolean | null | undefined;
irsCode?: number | null | undefined;
isActive?: boolean | null | undefined;
isDocumentsOptional?: boolean | null | undefined;
isReceiptEnough?: boolean | null | undefined;
optionalVAT?: boolean | null | undefined;
pcn874RecordType?: Pcn874RecordType | null | undefined;
sortCode?: number | null | undefined;
suggestions?: SuggestionsInput | null | undefined;
taxCategory?: string | null | undefined;
zipCode?: string | null | undefined;
};
/** contract billing cycle */
export const BillingCycle = {
Annual: 'ANNUAL',
Monthly: 'MONTHLY'
} as const;
export type BillingCycle = typeof BillingCycle[keyof typeof BillingCycle];
/** input variables for businessTransactions */
export type BusinessTransactionsFilter = {
businessIDs?: Array<string> | null | undefined;
fromDate?: unknown;
includeRevaluation?: boolean | null | undefined;
ownerIds?: Array<string> | null | undefined;
toDate?: unknown;
type?: FinancialEntityType | null | undefined;
};
/** the input for attendee accommodation stay info */
export type BusinessTripAttendeeStayInput = {
attendeeId: string;
nightsCount: number;
};
/** the input for updating a business trip attendee */
export type BusinessTripAttendeeUpdateInput = {
arrivalDate?: unknown;
attendeeId: string;
businessTripId: string;
departureDate?: unknown;
};
/** represent category type of business trip summary */
export const BusinessTripExpenseCategories = {
Accommodation: 'ACCOMMODATION',
CarRental: 'CAR_RENTAL',
Flight: 'FLIGHT',
Other: 'OTHER',
TravelAndSubsistence: 'TRAVEL_AND_SUBSISTENCE'
} as const;
export type BusinessTripExpenseCategories = typeof BusinessTripExpenseCategories[keyof typeof BusinessTripExpenseCategories];
/** represent category type of business trip summary */
export const BusinessTripSummaryCategories = {
Accommodation: 'ACCOMMODATION',
CarRental: 'CAR_RENTAL',
Flight: 'FLIGHT',
Other: 'OTHER',
Total: 'TOTAL',
TravelAndSubsistence: 'TRAVEL_AND_SUBSISTENCE'
} as const;
export type BusinessTripSummaryCategories = typeof BusinessTripSummaryCategories[keyof typeof BusinessTripSummaryCategories];
/** Business type enum (סוג עסק) */
export const BusinessType = {
/** Combination (שילוב) */
Combination: 'COMBINATION',
/** Commercial (מסחרי) */
Commercial: 'COMMERCIAL',
/** Industrial (תעשייתי) */
Industrial: 'INDUSTRIAL',
/** Report includes more than one business (הדוח כולל יותר מעסק אחד) */
Multiple: 'MULTIPLE',
/** Service providers (נותני שירותים) */
Service: 'SERVICE'
} as const;
export type BusinessType = typeof BusinessType[keyof typeof BusinessType];
/** Input for a Cal (Visa Cal) credit card transaction */
export type CalTransactionInput = {
amtBeforeConvAndIndex?: string | null | undefined;
branchCodeDesc?: string | null | undefined;
card: number;
cashAccountTrnAmt?: string | null | undefined;
chargeExternalToCardComment?: string | null | undefined;
crdExtIdNumTypeCode?: string | null | undefined;
curPaymentNum?: number | null | undefined;
debCrdCurrencySymbol?: string | null | undefined;
debCrdDate?: string | null | undefined;
debitSpreadInd?: boolean | null | undefined;
earlyPaymentInd?: boolean | null | undefined;
isAbroadTransaction?: boolean | null | undefined;
isImmediateCommentInd?: boolean | null | undefined;
isImmediateHhkInd?: boolean | null | undefined;
isMargarita?: boolean | null | undefined;
isSpreadPaymenstAbroad?: boolean | null | undefined;
merchantAddress?: string | null | undefined;
merchantId?: string | null | undefined;
merchantName?: string | null | undefined;
merchantPhoneNo?: string | null | undefined;
numOfPayments?: number | null | undefined;
onGoingTransactionsComment?: string | null | undefined;
refundInd?: boolean | null | undefined;
tokenInd?: number | null | undefined;
tokenNumberPart4?: string | null | undefined;
transCardPresentInd?: boolean | null | undefined;
transSource?: string | null | undefined;
trnAmt?: string | null | undefined;
trnCurrencySymbol?: string | null | undefined;
trnExacWay?: number | null | undefined;
trnIntId?: string | null | undefined;
trnNumaretor?: number | null | undefined;
trnPurchaseDate?: string | null | undefined;
trnType?: string | null | undefined;
trnTypeCode?: string | null | undefined;
walletProviderCode?: number | null | undefined;
walletProviderDesc?: string | null | undefined;
};
/** the input for categorizing a business trip expense */
export type CategorizeBusinessTripExpenseInput = {
amount?: number | null | undefined;
businessTripId: string;
category?: BusinessTripExpenseCategories | null | undefined;
transactionId: string;
};
/** the input for categorizing into an existing business trip expense */
export type CategorizeIntoExistingBusinessTripExpenseInput = {
amount?: number | null | undefined;
businessTripExpenseId: string;
transactionId: string;
};
/** input variables for charge filtering */
export type ChargeFilter = {
accountantStatus?: Array<AccountantStatus> | null | undefined;
/** filter by business trip (should be later in business trip module?) */
businessTrip?: string | null | undefined;
/** Include only charges tied to one of these business trips */
byBusinessTrips?: Array<string> | null | undefined;
/** Include only charges including specific business */
byBusinesses?: Array<string> | null | undefined;
/** Include only charges resolved to one of these concrete types (by __typename) */
byChargeTypes?: Array<ChargeType> | null | undefined;
/** Include only charges related to specific financial accounts */
byFinancialAccounts?: Array<string> | null | undefined;
/** Include only charges related to specific owners financial entities */
byOwners?: Array<string> | null | undefined;
/** Include only charges with those tags */
byTags?: Array<string> | null | undefined;
chargesType?: ChargeFilterType | null | undefined;
/** Include only charges with user description | transactions description / reference | documents description / remarks / serial that contains this text */
freeText?: string | null | undefined;
/** Include only charges with any doc/transaction date occurred after this date */
fromAnyDate?: unknown;
/** Include only charges with main date occurred after this date */
fromDate?: unknown;
sortBy?: ChargeSortBy | null | undefined;
/** Include only charges with any doc/transaction date occurred before this date */
toAnyDate?: unknown;
/** Include only charges with main date occurred before this date */
toDate?: unknown;
/** Include only charges that are not balances */
unbalanced?: boolean | null | undefined;
/** Include only charges with a missing counterparty: a transaction without a business, or a document without a creditor / debtor */
withMissingCounterparty?: boolean | null | undefined;
withOpenDocuments?: boolean | null | undefined;
/** Include only charges that doesn't have documents linked */
withoutDocuments?: boolean | null | undefined;
/** Include only charges that doesn't have invoice document linked */
withoutInvoice?: boolean | null | undefined;
/** Include only charges that doesn't have ledger records linked */
withoutLedger?: boolean | null | undefined;
/** Include only charges that doesn't have receipt document linked */
withoutReceipt?: boolean | null | undefined;
/** Include only charges that doesn't have transactions linked */
withoutTransactions?: boolean | null | undefined;
};
/** filter charges by income / expense flow */
export const ChargeFilterType = {
All: 'ALL',
Expense: 'EXPENSE',
Income: 'INCOME'
} as const;
export type ChargeFilterType = typeof ChargeFilterType[keyof typeof ChargeFilterType];
/** Kind of base charge to include in the awaiting-match queue */
export const ChargeMatchQueueMode = {
/** Base charges built from documents (e.g. invoices from email ingestion) */
DocBase: 'DOC_BASE',
/** Base charges built from transactions (e.g. bank feed scraper) */
TransactionBase: 'TRANSACTION_BASE'
} as const;
export type ChargeMatchQueueMode = typeof ChargeMatchQueueMode[keyof typeof ChargeMatchQueueMode];
/** Ordering options for the awaiting-match queue */
export const ChargeMatchQueueSortBy = {
/** Order by the base charge's date, newest first (default) */
ByDate: 'BY_DATE',
/** Order by top match confidence score, highest first. Evaluates only the 100 most recent unmatched charges */
ByScore: 'BY_SCORE'
} as const;
export type ChargeMatchQueueSortBy = typeof ChargeMatchQueueSortBy[keyof typeof ChargeMatchQueueSortBy];
/** input variables for sorting charges */
export type ChargeSortBy = {
asc?: boolean | null | undefined;
field: ChargeSortByField;
};
/** fields that can be used to sort charges */
export const ChargeSortByField = {
AbsAmount: 'ABS_AMOUNT',
Amount: 'AMOUNT',
Date: 'DATE'
} as const;
export type ChargeSortByField = typeof ChargeSortByField[keyof typeof ChargeSortByField];
/** Charge type enum */
export const ChargeType = {
BankDeposit: 'BANK_DEPOSIT',
BusinessTrip: 'BUSINESS_TRIP',
Common: 'COMMON',
Conversion: 'CONVERSION',
CreditcardBank: 'CREDITCARD_BANK',
Dividend: 'DIVIDEND',
Financial: 'FINANCIAL',
ForeignSecurities: 'FOREIGN_SECURITIES',
Internal: 'INTERNAL',
Payroll: 'PAYROLL',
Vat: 'VAT'
} as const;
export type ChargeType = typeof ChargeType[keyof typeof ChargeType];
/** fields for inserting a new client */
export type ClientInsertInput = {
businessId: string;
emails?: Array<string> | null | undefined;
generatedDocumentType: DocumentType;
integrations?: ClientIntegrationsInput | null | undefined;
};
/** integrations input for client insert/update */
export type ClientIntegrationsInput = {
greenInvoiceId?: string | null | undefined;
hiveId?: string | null | undefined;
linearId?: string | null | undefined;
notionId?: string | null | undefined;
slackChannelKey?: string | null | undefined;
workflowyUrl?: string | null | undefined;
};
/** fields for updating an existing client */
export type ClientUpdateInput = {
emails?: Array<string> | null | undefined;
generatedDocumentType?: DocumentType | null | undefined;
integrations?: ClientIntegrationsInput | null | undefined;
newBusinessId?: string | null | undefined;
};
/** input for creating a new contract */
export type CreateContractInput = {
amount: FinancialAmountInput;
billingCycle: BillingCycle;
clientId: string;
deactivateContracts?: Array<string> | null | undefined;
documentType: DocumentType;
endDate: unknown;
isActive: boolean;
msCloud?: unknown;
operationsLimit?: unknown;
plan?: SubscriptionPlan | null | undefined;
product?: Product | null | undefined;
purchaseOrders: Array<string>;
remarks?: string | null | undefined;
startDate: unknown;
};
/** input type for creating a financial account */
export type CreateFinancialAccountInput = {
bankAccountDetails?: BankAccountInsertInput | null | undefined;
currencies?: Array<FinancialAccountCurrencyInput> | null | undefined;
name: string;
number: string;
ownerId: string;
privateOrBusiness: PrivateOrBusinessType;
type: FinancialAccountType;
};
/** All possible currencies */
export const Currency = {
/** FIAT currencies */
Aud: 'AUD',
Cad: 'CAD',
/** Crypto currencies */
Eth: 'ETH',
Eur: 'EUR',
Gbp: 'GBP',
Grt: 'GRT',
Ils: 'ILS',
Jpy: 'JPY',
Sek: 'SEK',
Usd: 'USD',
Usdc: 'USDC'
} as const;
export type Currency = typeof Currency[keyof typeof Currency];
/** Input for daily currency exchange rates */
export type CurrencyRateInput = {
aud?: number | null | undefined;
cad?: number | null | undefined;
eur?: number | null | undefined;
exchangeDate: unknown;
gbp?: number | null | undefined;
jpy?: number | null | undefined;
sek?: number | null | undefined;
usd?: number | null | undefined;
};
/** Currency reporting type enum (דיווח מטבע) */
export const CurrencyType = {
/** Amounts in dollars (הסכומים בדולרים) */
Dollars: 'DOLLARS',
/** Amounts in shekels (הסכומים בשקלים) */
Shekels: 'SHEKELS'
} as const;
export type CurrencyType = typeof CurrencyType[keyof typeof CurrencyType];
/** the input for removing a business trip attendee */
export type DeleteBusinessTripAttendeeInput = {
attendeeId: string;
businessTripId: string;
};
/** input variables for depreciationReport */
export type DepreciationReportFilter = {
financialEntityId?: string | null | undefined;
year: number;
};
/** depreciation type */
export const DepreciationType = {
GeneralAndManagement: 'GENERAL_AND_MANAGEMENT',
Marketing: 'MARKETING',
ResearchAndDevelopment: 'RESEARCH_AND_DEVELOPMENT'
} as const;
export type DepreciationType = typeof DepreciationType[keyof typeof DepreciationType];
/** Input for a Discount Bank account transaction */
export type DiscountTransactionInput = {
accountNumber?: string | null | undefined;
balanceAfterOperation?: string | null | undefined;
branchTreasuryNumber?: string | null | undefined;
businessDayDate?: string | null | undefined;
categoryCode?: number | null | undefined;
categoryDescCode?: number | null | undefined;
categoryDescription?: string | null | undefined;
channel?: string | null | undefined;
channelName?: string | null | undefined;
checkNumber?: number | null | undefined;
commissionChannelCode?: string | null | undefined;
commissionChannelName?: string | null | undefined;
commissionTypeName?: string | null | undefined;
eventName?: string | null | undefined;
instituteCode?: string | null | undefined;
isLastSeen?: boolean | null | undefined;
operationAmount?: string | null | undefined;
operationBank?: number | null | undefined;
operationBranch?: number | null | undefined;
operationCode?: string | null | undefined;
operationDate?: string | null | undefined;
operationDescription?: string | null | undefined;
operationDescription2?: string | null | undefined;
operationDescription3?: string | null | undefined;
operationDescriptionToDisplay?: string | null | undefined;
operationDetailsServiceName?: string | null | undefined;
operationNumber?: number | null | undefined;
operationOrder?: number | null | undefined;
urn?: string | null | undefined;
valueDate?: string | null | undefined;
};
/** client input */
export type DocumentClientInput = {
add?: boolean | null | undefined;
address?: string | null | undefined;
city?: string | null | undefined;
country?: unknown;
emails?: Array<string> | null | undefined;
fax?: string | null | undefined;
id: string;
mobile?: string | null | undefined;
name?: string | null | undefined;
phone?: string | null | undefined;
self?: boolean | null | undefined;
taxId?: string | null | undefined;
zipCode?: string | null | undefined;
};
/** discount input */
export type DocumentDiscountInput = {
amount: number;
type: DocumentDiscountType;
};
/** discount type enum */
export const DocumentDiscountType = {
Percentage: 'PERCENTAGE',
Sum: 'SUM'
} as const;
export type DocumentDiscountType = typeof DocumentDiscountType[keyof typeof DocumentDiscountType];
/** income input */
export type DocumentIncomeRecordInput = {
amount?: number | null | undefined;
amountTotal?: number | null | undefined;
catalogNum?: string | null | undefined;
currency: Currency;
currencyRate?: number | null | undefined;
description: string;
itemId?: string | null | undefined;
price: number;
quantity: number;
vat?: number | null | undefined;
vatRate?: number | null | undefined;
vatType: DocumentVatType;
};
/** input for issuing or previewing document */
export type DocumentIssueInput = {
client?: DocumentClientInput | null | undefined;
currency: Currency;
date?: string | null | undefined;
description?: string | null | undefined;
discount?: DocumentDiscountInput | null | undefined;
dueDate?: string | null | undefined;
footer?: string | null | undefined;
income?: Array<DocumentIncomeRecordInput> | null | undefined;
language: DocumentLanguage;
linkType?: DocumentLinkType | null | undefined;
linkedDocumentIds?: Array<string> | null | undefined;
linkedPaymentId?: string | null | undefined;
maxPayments?: number | null | undefined;
payment?: Array<DocumentPaymentRecordInput> | null | undefined;
remarks?: string | null | undefined;
rounding?: boolean | null | undefined;
signed?: boolean | null | undefined;
type: DocumentType;
vatType: DocumentVatType;
};
/** document language enum */
export const DocumentLanguage = {
English: 'ENGLISH',
Hebrew: 'HEBREW'
} as const;
export type DocumentLanguage = typeof DocumentLanguage[keyof typeof DocumentLanguage];
/** link type enum */
export const DocumentLinkType = {
Cancel: 'CANCEL',
Link: 'LINK'
} as const;
export type DocumentLinkType = typeof DocumentLinkType[keyof typeof DocumentLinkType];
/** card type enum */
export const DocumentPaymentRecordCardType = {
AmericanExpress: 'AMERICAN_EXPRESS',
Diners: 'DINERS',
Isracard: 'ISRACARD',
Mastercard: 'MASTERCARD',
Unknown: 'UNKNOWN',
Visa: 'VISA'
} as const;
export type DocumentPaymentRecordCardType = typeof DocumentPaymentRecordCardType[keyof typeof DocumentPaymentRecordCardType];
/** payment input */
export type DocumentPaymentRecordInput = {
accountId?: string | null | undefined;
bankAccount?: string | null | undefined;
bankBranch?: string | null | undefined;
bankName?: string | null | undefined;
cardNum?: string | null | undefined;
cardType?: DocumentPaymentRecordCardType | null | undefined;
chequeNum?: string | null | undefined;
currency: Currency;
currencyRate?: number | null | undefined;
date?: string | null | undefined;
firstPayment?: number | null | undefined;
numPayments?: number | null | undefined;
price: number;
transactionId?: string | null | undefined;
type: PaymentType;
};
/** Document status */
export const DocumentStatus = {
Cancelled: 'CANCELLED',
CancelledByOtherDoc: 'CANCELLED_BY_OTHER_DOC',
Closed: 'CLOSED',
ManuallyClosed: 'MANUALLY_CLOSED',
Open: 'OPEN'
} as const;
export type DocumentStatus = typeof DocumentStatus[keyof typeof DocumentStatus];
/** All possible document types */
export const DocumentType = {
CreditInvoice: 'CREDIT_INVOICE',
Invoice: 'INVOICE',
InvoiceReceipt: 'INVOICE_RECEIPT',
Other: 'OTHER',
Proforma: 'PROFORMA',
Receipt: 'RECEIPT',
Unprocessed: 'UNPROCESSED'
} as const;
export type DocumentType = typeof DocumentType[keyof typeof DocumentType];
/** VAT type enum */
export const DocumentVatType = {
Default: 'DEFAULT',
Exempt: 'EXEMPT',
Mixed: 'MIXED'
} as const;
export type DocumentVatType = typeof DocumentVatType[keyof typeof DocumentVatType];
/** input variables for documents filtering */
export type DocumentsFilters = {
businessIDs?: Array<string> | null | undefined;
fromDate?: unknown;
ownerIDs?: Array<string> | null | undefined;
toDate?: unknown;
/** Include only documents without matching transactions */
unmatched?: boolean | null | undefined;
};
/** types of email attachments that can be parsed */
export const EmailAttachmentType = {
Jpeg: 'JPEG',
Pdf: 'PDF',
Png: 'PNG'
} as const;
export type EmailAttachmentType = typeof EmailAttachmentType[keyof typeof EmailAttachmentType];
/** Metadata for a single document extracted from the email */
export type ExtractedDocumentInput = {
/** Base64-encoded document bytes (inline transport, Option B); omitted = metadata only */
content?: string | null | undefined;
/** Optional filename */
filename?: string | null | undefined;
/** SHA-256 hash of the document content */
hash: string;
/** MIME type */
mimeType: string;
/** Document size in bytes */
sizeBytes: number;
};
/** input type for financial account currency and tax category */
export type FinancialAccountCurrencyInput = {
currency: Currency;
taxCategoryId: string;
};
/** general types of financial accounts */
export const FinancialAccountType = {
BankAccount: 'BANK_ACCOUNT',
BankDepositAccount: 'BANK_DEPOSIT_ACCOUNT',
CreditCard: 'CREDIT_CARD',
CryptoWallet: 'CRYPTO_WALLET',
ForeignSecurities: 'FOREIGN_SECURITIES'
} as const;
export type FinancialAccountType = typeof FinancialAccountType[keyof typeof FinancialAccountType];
/** input variables for updateCharge.FinancialAmount */
export type FinancialAmountInput = {
currency: Currency;
raw: number;
};
/** represent financial entity type */
export const FinancialEntityType = {
Business: 'BUSINESS',
TaxCategory: 'TAX_CATEGORY'
} as const;
export type FinancialEntityType = typeof FinancialEntityType[keyof typeof FinancialEntityType];
/** represent flight classes */
export const FlightClass = {
Business: 'BUSINESS',
Economy: 'ECONOMY',
FirstClass: 'FIRST_CLASS',
PremiumEconomy: 'PREMIUM_ECONOMY'
} as const;
export type FlightClass = typeof FlightClass[keyof typeof FlightClass];
/** IFRS reporting option enum (דווח בחלופה - יישום תקני חשבונאות) */
export const IfrsReportingOption = {
/** No IFRS implementation (במידה ואין יישום תקני חשבונאות) */
None: 'NONE',
/** Option 1 (חלופה 1) */
Option_1: 'OPTION_1',
/** Accounting adjustments for those who implemented Option 2 per directive 7/2010 (התאמות חשבונאיות למי שיישם את חלופה 2 בהוראת ביצוע 7/2010) */
Option_2Adjustments: 'OPTION_2_ADJUSTMENTS',
/** Accounting adjustments for those who implemented Option 3 per directive 7/2010 (התאמות חשבונאיות למי שיישם את חלופה 3 בהוראת ביצוע 7/2010) */
Option_3Adjustments: 'OPTION_3_ADJUSTMENTS'
} as const;
export type IfrsReportingOption = typeof IfrsReportingOption[keyof typeof IfrsReportingOption];
/** input variables for incomeExpenseChart filters */
export type IncomeExpenseChartFilters = {
currency?: Currency | null | undefined;
fromDate: unknown;
toDate: unknown;
};
/** Input for requesting a short-lived ingest control grant */
export type IngestControlInput = {
/** Optional correlation ID for distributed tracing */
correlationId?: string | null | undefined;
/** RFC 2822 Message-ID header */
messageId: string;
/** SHA-256 hex hash of the raw MIME message */
rawMessageHash: string;
/** ISO-8601 timestamp the message was received (reserved for future replay-window validation) */
receivedAt?: string | null | undefined;
/** Recipient alias the message was delivered to */
recipientAlias: string;
/** Sender evidence used to recognize the issuing business (issuer-selection runs server-side) */
senderEvidence?: SenderEvidenceInput | null | undefined;
};
/** Input for the v2 ingest endpoint */
export type IngestEmailInput = {
/** Optional correlation ID for distributed tracing */
correlationId?: string | null | undefined;
/** Extracted document metadata from MIME parsing */
extractedDocuments: Array<ExtractedDocumentInput>;
/** JTI of the ingest grant from requestIngestControl */
grantJti: string;
/** Gateway-supplied idempotency key */
idempotencyKey: string;
/** RFC 2822 Message-ID header */
messageId: string;
/** SHA-256 hex hash of the raw MIME message */
rawMessageHash: string;
/** ISO-8601 timestamp the message was received, used in the charge description */
receivedAt?: string | null | undefined;
/** Sender (From header) address, used in the charge description */
sender?: string | null | undefined;
/** Subject header of the email, used to build a human-readable charge description */
subject?: string | null | undefined;
/** Tenant ID from the grant (validated server-side) */
tenantId: string;
};
/** Outcome of a v2 ingest operation */
export const IngestOutcome = {
Duplicate: 'DUPLICATE',
Inserted: 'INSERTED',
Quarantined: 'QUARANTINED',
Rejected: 'REJECTED'
} as const;
export type IngestOutcome = typeof IngestOutcome[keyof typeof IngestOutcome];
/** the input for adding an attendee to a business trip */
export type InsertBusinessTripAttendeeInput = {
arrivalDate?: unknown;
attendeeId: string;
businessTripId: string;
departureDate?: unknown;
};
/** the input for creating a business trip */
export type InsertBusinessTripInput = {
destinationCode?: string | null | undefined;
fromDate?: unknown;
name: string;
toDate?: unknown;
tripPurpose?: string | null | undefined;
};
/** input variables for insertDepreciationRecord */
export type InsertDepreciationRecordInput = {
activationDate: unknown;
amount?: number | null | undefined;
categoryId: string;
chargeId: string;
currency?: Currency | null | undefined;
type?: DepreciationType | null | undefined;
};
/** input variables for insertDocument */
export type InsertDocumentInput = {
allocationNumber?: string | null | undefined;
amount?: FinancialAmountInput | null | undefined;
chargeId?: string | null | undefined;
creditorId?: string | null | undefined;
date?: unknown;
debtorId?: string | null | undefined;
description?: string | null | undefined;
documentType?: DocumentType | null | undefined;
exchangeRateOverride?: number | null | undefined;
file?: unknown;
image?: unknown;
noVatAmount?: number | null | undefined;
remarks?: string | null | undefined;
serialNumber?: string | null | undefined;
vat?: FinancialAmountInput | null | undefined;
vatReportDateOverride?: unknown;
};
/** input variables for insertMiscExpense */
export type InsertMiscExpenseInput = {
amount: number;
creditorId: string;
currency: Currency;
debtorId: string;
description?: string | null | undefined;
invoiceDate: unknown;
valueDate: unknown;
};
/** input for insertNewBusiness */
export type InsertNewBusinessInput = {
address?: string | null | undefined;
city?: string | null | undefined;
country?: unknown;
email?: string | null | undefined;
exemptDealer?: boolean | null | undefined;
governmentId?: string | null | undefined;
hebrewName?: string | null | undefined;
irsCode?: number | null | undefined;
isActive?: boolean | null | undefined;
isDocumentsOptional?: boolean | null | undefined;
isReceiptEnough?: boolean | null | undefined;
name: string;
optionalVAT?: boolean | null | undefined;
pcn874RecordType?: Pcn874RecordType | null | undefined;
phoneNumber?: string | null | undefined;
sortCode?: number | null | undefined;
suggestions?: SuggestionsInput | null | undefined;
taxCategory?: string | null | undefined;
website?: string | null | undefined;
zipCode?: string | null | undefined;
};
/** input for insertTaxCategory */
export type InsertTaxCategoryInput = {
hashavshevetName?: string | null | undefined;
irsCode?: number | null | undefined;
isActive?: boolean | null | undefined;
name: string;
sortCode?: number | null | undefined;
taxExcluded?: boolean | null | undefined;
};
/** Input for an Isracard credit card transaction */
export type IsracardTransactionInput = {
adendum?: string | null | undefined;
card: string;
cardIndex: number;
chargingDate?: string | null | undefined;
city?: string | null | undefined;
clientIpAddress?: string | null | undefined;
currencyId?: string | null | undefined;
currentPaymentCurrency?: string | null | undefined;
dealSum?: string | null | undefined;
dealSumOutbound?: string | null | undefined;
dealSumType?: string | null | undefined;
dealsInbound?: string | null | undefined;
displayProperties?: string | null | undefined;
esbServicesCall?: string | null | undefined;
fullPaymentDate?: string | null | undefined;
fullPurchaseDate?: string | null | undefined;
fullPurchaseDateOutbound?: string | null | undefined;
fullSupplierNameHeb?: string | null | undefined;
fullSupplierNameOutbound?: string | null | undefined;
horaatKeva?: string | null | undefined;
isButton: string;
isCaptcha: string;
isError: string;
isHoraatKeva: string;
isShowDealsOutbound?: string | null | undefined;
isShowLinkForSupplierDetails?: string | null | undefined;
kodMatbeaMekori?: string | null | undefined;
message?: string | null | undefined;
moreInfo?: string | null | undefined;
paymentDate?: string | null | undefined;
paymentSum?: string | null | undefined;
paymentSumOutbound?: string | null | undefined;
paymentSumSign?: string | null | undefined;
purchaseDate?: string | null | undefined;
purchaseDateOutbound?: string | null | undefined;
returnCode?: string | null | undefined;
returnMessage?: string | null | undefined;
siteName?: string | null | undefined;
solek?: string | null | undefined;
specificDate?: string | null | undefined;
stage?: string | null | undefined;
supplierId?: number | null | undefined;
supplierName?: string | null | undefined;
supplierNameOutbound?: string | null | undefined;
tablePageNum: boolean;
voucherNumber?: number | null | undefined;
voucherNumberRatz?: number | null | undefined;
voucherNumberRatzOutbound?: number | null | undefined;
};
/** represent charge's metadata ledger validation status */
export const LedgerValidationStatus = {
Diff: 'DIFF',
Invalid: 'INVALID',
Valid: 'VALID'
} as const;
export type LedgerValidationStatus = typeof LedgerValidationStatus[keyof typeof LedgerValidationStatus];
/** Input for a Max (formerly Leumi Card) credit card transaction */
export type MaxTransactionInput = {
actualPaymentAmount: string;
arn: string;
cardIndex: number;
categoryId: number;
comments: string;
dealDataAcq: string;
dealDataAdjustmentAmount?: string | null | undefined;
dealDataAdjustmentType: string;
dealDataAmount: string;
dealDataAmountIls: string;
dealDataAmountLeft: string;
dealDataArn: string;
dealDataAuthorizationNumber: string;
dealDataCardName?: string | null | undefined;
dealDataCardToken?: string | null | undefined;
dealDataCommissionVat: string;
dealDataDirectExchange?: string | null | undefined;
dealDataExchangeCommissionAmount?: string | null | undefined;
dealDataExchangeCommissionMaam?: string | null | undefined;
dealDataExchangeCommissionType?: string | null | undefined;
dealDataExchangeDirect: string;
dealDataExchangeRate: string;
dealDataIndexRateBase?: string | null | undefined;
dealDataIndexRatePmt?: string | null | undefined;
dealDataInterestAmount: string;
dealDataIsAllowedSpreadWithBenefit: boolean;
dealDataIssuerCurrency: string;
dealDataIssuerExchangeRate?: string | null | undefined;
dealDataOriginalTerm?: string | null | undefined;
dealDataPercentMaam?: string | null | undefined;
dealDataPlan: string;
dealDataPosEntryEmv: string;
dealDataProcessingDate: string;
dealDataPurchaseAmount?: string | null | undefined;
dealDataPurchaseTime?: string | null | undefined;
dealDataRefNbr: string;
dealDataShowCancelDebit: boolean;
dealDataShowSpread: boolean;
dealDataShowSpreadBenefitButton: boolean;
dealDataShowSpreadButton: boolean;
dealDataShowSpreadForLeumi: boolean;
dealDataTdmCardToken: string;
dealDataTdmTransactionType: number;
dealDataTransactionType: number;
dealDataTxnCode: number;
dealDataUserName: string;
dealDataWithdrawalCommissionAmount?: string | null | undefined;
discountKeyAmount?: string | null | undefined;
discountKeyRecType?: string | null | undefined;
ethocaInd: boolean;
fundsTransferComment?: string | null | undefined;
fundsTransferReceiverOrTransfer?: string | null | undefined;
isRegisterCh: boolean;
isSpreadingAutorizationAllowed: boolean;
issuerId: number;
merchant: string;
merchantAddress?: string | null | undefined;
merchantCommercialName?: string | null | undefined;
merchantCoordinates?: string | null | undefined;
merchantMaxPhone: boolean;
merchantName: string;
merchantNumber: string;
merchantPhone: string;
merchantTaxId: string;
originalAmount: string;
originalCurrency: string;
paymentCurrency?: number | null | undefined;
paymentDate: string;
planName: string;
planTypeId: number;
promotionAmount?: string | null | undefined;
promotionClub: string;
promotionType?: string | null | undefined;
purchaseDate: string;
receiptPDF?: string | null | undefined;
refIndex: number;
runtimeReferenceId?: string | null | undefined;
runtimeReferenceInternalId: string;
runtimeReferenceType: number;
shortCardNumber?: string | null | undefined;
spreadTransactionByCampainInd: boolean;
spreadTransactionByCampainNumber?: number | null | undefined;
tableType: number;
tag?: string | null | undefined;
uid: string;
upSaleForTransactionResult?: string | null | undefined;
userIndex: number;
};
/** represent a missing info attributes for a charge */
export const MissingChargeInfo = {
Counterparty: 'COUNTERPARTY',
Description: 'DESCRIPTION',
Documents: 'DOCUMENTS',
Tags: 'TAGS',
TaxCategory: 'TAX_CATEGORY',
Transactions: 'TRANSACTIONS',
Vat: 'VAT'
} as const;
export type MissingChargeInfo = typeof MissingChargeInfo[keyof typeof MissingChargeInfo];
/** Input for an Otsar HaHayal credit card transaction */
export type OtsarHahayalCreditCardTransactionInput = {
/** Card type code (from CreditCardsResponse) */
cardType: number;
/** Charged amount in charge currency */
chargeAmount: number;
/** Currency the charge is made in */
chargeCurrency: string;
/** Charge date */
chargeDate: string;
/** Counter for deduplicating identical transactions in the same billing period */
counter: number;
/** Transaction date */
date: string;
/** Original deal amount in deal currency */
dealAmount: number;
/** Currency of the original deal */
dealCurrency: string;
/** Deal group key (e.g. localDeals, euroDeals) */
dealGroup: string;
/** Masked PAN of the card (from CreditCardsResponse) */
maskedPan: string;
/** Merchant / transaction name */
name: string;
/** Additional notes */
notes: string;
/** UUID of the card resource (from CreditCardsResponse) */
resourceId: string;
/** Wallet type code */
walletType: number;
};
/** Input for an Otsar HaHayal foreign currency bank account transaction */
export type OtsarHahayalForeignTransactionInput = {
account: number;
accountType: string;
balance?: number | null | undefined;
branch: number;
credit: number;
currency: string;
date: string;
debit: number;
description: string;
openingBalance: number;
reference: string;
sp?: number | null | undefined;
subTransactions: string;
valueDate: string;
};
/** Input for an Otsar HaHayal ILS (NIS) bank account transaction */
export type OtsarHahayalIlsTransactionInput = {
accountNumber: number;
accountType: number;
actionCode: number;
bfbSource: string;
branchNumber: number;
closingBalance: number;
correspondentAccount: number;
correspondentAccountType: number;
correspondentBank: number;
correspondentBranch: number;
creditAmount: number;
customerName: string;
dateOfBusinessDay: string;
dateOfRegistration: string;
debitAmount: number;
depositorId: number;
description: string;
drillDownData?: string | null | undefined;
drillDownUrl: string;
firstTransactionOfDay: boolean;
lastTransactionOfDay: boolean;
name: string;
openingBalance: number;
operationSource: string;
originReference?: string | null | undefined;
reference: number;
salaryInd: number;
transactionReason: string;
transactionSource: string;
};
/** payment type enum */
export const PaymentType = {
Cash: 'CASH',
Cheque: 'CHEQUE',
CreditCard: 'CREDIT_CARD',
Other: 'OTHER',
OtherDeduction: 'OTHER_DEDUCTION',
PaymentApp: 'PAYMENT_APP',
Paypal: 'PAYPAL',
TaxDeduction: 'TAX_DEDUCTION',
WireTransfer: 'WIRE_TRANSFER'
} as const;
export type PaymentType = typeof PaymentType[keyof typeof PaymentType];
/** record type of PCN874 report */
export const Pcn874RecordType = {
C: 'C',
H: 'H',
I: 'I',
K: 'K',
L1: 'L1',
L2: 'L2',
M: 'M',
P: 'P',
R: 'R',
S1: 'S1',
S2: 'S2',
T: 'T',
Y: 'Y'
} as const;
export type Pcn874RecordType = typeof Pcn874RecordType[keyof typeof Pcn874RecordType];
/** Input for a Poalim foreign currency bank account transaction */
export type PoalimForeignTransactionInput = {
accountName?: string | null | undefined;
accountNumber: number;
activityDescription: string;
activityTypeCode: number;
bankNumber: number;
branchNumber: number;
commentExistenceSwitch: boolean;
comments?: string | null | undefined;
contraAccountFieldNameLable?: string | null | undefined;
contraAccountNumber: number;
contraBankNumber: number;
contraBranchNumber: number;
contraCurrencyCode: number;
currency: Currency;
currencyLongDescription: string;
currencyRate: number;
currencySwiftCode: string;
currentBalance: number;
dataGroupCode: boolean;
eventActivityTypeCode: number;
eventAmount: number;
eventDetails?: string | null | undefined;
eventNumber: number;
executingDate: string;
formattedExecutingDate: string;
formattedValueDate?: string | null | undefined;
metadataAttributesContraAccountFieldNameLable?: string | null | undefined;
metadataAttributesContraAccountNumber?: string | null | undefined;
metadataAttributesContraBankNumber?: string | null | undefined;
metadataAttributesContraBranchNumber?: string | null | undefined;
metadataAttributesContraCurrencyCode?: string | null | undefined;
metadataAttributesCurrencyRate?: string | null | undefined;
metadataAttributesDataGroupCode?: string | null | undefined;
metadataAttributesOriginalEventKey?: string | null | undefined;
metadataAttributesRateFixingCode?: string | null | undefined;
originalEventKey: boolean;
originalSystemId: number;
rateFixingCode: number;
rateFixingDescription?: string | null | undefined;
rateFixingShortDescription: string;
referenceCatenatedNumber: number;
referenceNumber: string;
transactionType: string;
urlAddress?: string | null | undefined;
urlAddressNiar?: string | null | undefined;
validityDate: string;
valueDate: string;
};
/** Input for a Poalim ILS (NIS) bank account transaction */
export type PoalimIlsTransactionInput = {
accountNumber: number;
activityDescription: string;
activityDescriptionIncludeValueDate?: string | null | undefined;
activityTypeCode: number;
bankNumber: number;
beneficiaryDetailsData?: string | null | undefined;
beneficiaryDetailsDataMessageDetail?: string | null | undefined;
beneficiaryDetailsDataMessageHeadline?: string | null | undefined;
beneficiaryDetailsDataPartyHeadline?: string | null | undefined;
beneficiaryDetailsDataPartyName?: string | null | undefined;
beneficiaryDetailsDataRecordNumber?: number | null | undefined;
beneficiaryDetailsDataTableNumber?: number | null | undefined;
branchNumber: number;
comment?: string | null | undefined;
commentExistenceSwitch: boolean;
contraAccountNumber: number;
contraAccountTypeCode: number;
contraBankNumber: number;
contraBranchNumber: number;
currentBalance: number;
dataGroupCode: number;
details?: string | null | undefined;
differentDateIndication: string;
englishActionDesc?: string | null | undefined;
eventActivityTypeCode: number;
eventAmount: number;
eventDate: string;
eventId: string;
executingBranchNumber: number;
expandedEventDate: string;
fieldDescDisplaySwitch: boolean;
formattedEventDate: string;
formattedOriginalEventCreateDate?: string | null | undefined;
formattedValueDate?: string | null | undefined;
internalLinkCode: number;
marketingOfferContext: boolean;
offerActivityContext?: string | null | undefined;
originalEventCreateDate: number;
pfmDetails?: string | null | undefined;
recordNumber: number;
referenceCatenatedNumber: number;
referenceNumber: string;
rejectedDataEventPertainingIndication?: string | null | undefined;
serialNumber: number;
tableNumber: number;
textCode: number;
transactionType: string;
urlAddressNiar?: string | null | undefined;
valueDate: string;
};
/** Input for a Poalim SWIFT international wire transfer */
export type PoalimSwiftTransactionInput = {
accountNumber?: number | null | undefined;
amount?: number | null | undefined;
bankNumber?: number | null | undefined;
beneficiaryEnglishCityName?: string | null | undefined;
beneficiaryEnglishCountryName?: string | null | undefined;
beneficiaryEnglishStreetName?: string | null | undefined;
branchNumber?: number | null | undefined;
chargePartyName?: string | null | undefined;
currencyCodeCatenatedKey?: string | null | undefined;
currencyLongDescription?: string | null | undefined;
dataOriginCode?: string | null | undefined;
formattedStartDate?: string | null | undefined;
orderCustomerName?: string | null | undefined;
referenceNumber?: string | null | undefined;
startDate?: string | null | undefined;
swiftAccountWithInstitution57?: string | null | undefined;
swiftBankCode?: string | null | undefined;
swiftBankOperationCode23B?: string | null | undefined;
swiftBeneficiaryCustomer59?: string | null | undefined;
swiftCurrencyInstructedAmount33B?: string | null | undefined;
swiftDetailsOfCharges71A?: string | null | undefined;
swiftExchangeRate36?: string | null | undefined;
swiftInstructionCode23E?: string | null | undefined;
swiftIsnSerialNumber?: string | null | undefined;
swiftOrderingCustomer50K?: string | null | undefined;
swiftOrderingInstitution52A?: string | null | undefined;
swiftOrderingInstitution52D?: string | null | undefined;
swiftReceiversCorrespondent54A?: string | null | undefined;
swiftRegulatoryReporting77B?: string | null | undefined;
swiftRemittanceInformation70?: string | null | undefined;
swiftSendersCharges71F?: string | null | undefined;
swiftSendersCorrespondent53A?: string | null | undefined;
swiftSendersReference20?: string | null | undefined;
swiftSendersToReceiverInformation72?: string | null | undefined;
swiftStatusCode?: string | null | undefined;
swiftStatusDesc?: string | null | undefined;
swiftValueDateCurrencyAmount32A?: string | null | undefined;
transferCatenatedId?: string | null | undefined;
};
/** private or business account type */
export const PrivateOrBusinessType = {
Business: 'BUSINESS',
Private: 'PRIVATE'
} as const;
export type PrivateOrBusinessType = typeof PrivateOrBusinessType[keyof typeof PrivateOrBusinessType];
/** contract products */
export const Product = {
Hive: 'HIVE',
Stellate: 'STELLATE'
} as const;
export type Product = typeof Product[keyof typeof Product];
/** Supported third-party provider integrations */
export const ProviderKey = {
/** Deel global payroll platform */
Deel: 'DEEL',
/** Green Invoice billing platform */
GreenInvoice: 'GREEN_INVOICE'
} as const;
export type ProviderKey = typeof ProviderKey[keyof typeof ProviderKey];
/** Reporting method enum (שיטת דיווח) */
export const ReportingMethod = {
/** Accrual basis (מצטבר) */
Accrual: 'ACCRUAL',
/** Cash basis (מזומן) */
Cash: 'CASH',
/** According to dollar regulations (לפי תקנות דולריות) */
DollarRegulations: 'DOLLAR_REGULATIONS'
} as const;
export type ReportingMethod = typeof ReportingMethod[keyof typeof ReportingMethod];
/** input variables for update salary records */
export type SalaryRecordEditInput = {
addedVacationDays?: number | null | undefined;
baseSalary?: number | null | undefined;
bonus?: number | null | undefined;
chargeId?: string | null | undefined;
compensationsEmployerAmount?: number | null | undefined;
compensationsEmployerPercentage?: number | null | undefined;
directPaymentAmount?: number | null | undefined;
employeeId: string;
employer?: string | null | undefined;
gift?: number | null | undefined;
globalAdditionalHours?: number | null | undefined;
healthPaymentAmount?: number | null | undefined;
hourlyRate?: number | null | undefined;
hours?: number | null | undefined;
month: string;
pensionEmployeeAmount?: number | null | undefined;
pensionEmployeePercentage?: number | null | undefined;
pensionEmployerAmount?: number | null | undefined;
pensionEmployerPercentage?: number | null | undefined;
pensionFundId?: string | null | undefined;
recovery?: number | null | undefined;
sicknessDaysBalance?: number | null | undefined;
socialSecurityAmountEmployee?: number | null | undefined;
socialSecurityAmountEmployer?: number | null | undefined;
taxAmount?: number | null | undefined;
trainingFundEmployeeAmount?: number | null | undefined;
trainingFundEmployeePercentage?: number | null | undefined;
trainingFundEmployerAmount?: number | null | undefined;
trainingFundEmployerPercentage?: number | null | undefined;
trainingFundId?: string | null | undefined;
travelAndSubsistence?: number | null | undefined;
vacationDaysBalance?: number | null | undefined;
vacationTakeout?: number | null | undefined;
workDays?: number | null | undefined;
zkufot?: number | null | undefined;
};
/** input variables for insert salary records */
export type SalaryRecordInput = {
addedVacationDays?: number | null | undefined;
baseSalary?: number | null | undefined;
bonus?: number | null | undefined;
chargeId?: string | null | undefined;
compensationsEmployerAmount?: number | null | undefined;
compensationsEmployerPercentage?: number | null | undefined;
directPaymentAmount: number;
employee?: string | null | undefined;
employeeId: string;
employer: string;
gift?: number | null | undefined;
globalAdditionalHours?: number | null | undefined;
healthPaymentAmount?: number | null | undefined;
hourlyRate?: number | null | undefined;
hours?: number | null | undefined;
jobPercentage?: number | null | undefined;
month: string;
pensionEmployeeAmount?: number | null | undefined;
pensionEmployeePercentage?: number | null | undefined;
pensionEmployerAmount?: number | null | undefined;
pensionEmployerPercentage?: number | null | undefined;
pensionFundId?: string | null | undefined;
recovery?: number | null | undefined;
sicknessDaysBalance?: number | null | undefined;
socialSecurityAmountEmployee?: number | null | undefined;
socialSecurityAmountEmployer?: number | null | undefined;
taxAmount?: number | null | undefined;
trainingFundEmployeeAmount?: number | null | undefined;
trainingFundEmployeePercentage?: number | null | undefined;
trainingFundEmployerAmount?: number | null | undefined;
trainingFundEmployerPercentage?: number | null | undefined;
trainingFundId?: string | null | undefined;
travelAndSubsistence?: number | null | undefined;
vacationDaysBalance?: number | null | undefined;
vacationTakeout?: number | null | undefined;
workDays?: number | null | undefined;
zkufot?: number | null | undefined;
};
/** Candidate sender addresses extracted by the gateway, used for business recognition */
export type SenderEvidenceInput = {
/** X-Forwarded-To / Envelope-To address */
forwardedTo?: string | null | undefined;
/** From header address */
from?: string | null | undefined;
/** Sender addresses parsed from mailto links in the email body, in document order */
issuerCandidates?: Array<string> | null | undefined;
/** X-Original-From / X-Original-Sender address */
originalFrom?: string | null | undefined;
/** Reply-To header address */
replyTo?: string | null | undefined;
};
/** Input for setting Step 03 (opening balance) manual status */
export type SetAnnualAuditStep03StatusInput = {
notes?: string | null | undefined;
ownerId: string;
status: AnnualAuditStepStatus;
year: number;
};
/** Input for setting Step 09 (save final dynamic report template) status */
export type SetAnnualAuditStep09StatusInput = {
ownerId: string;
/** The name of the dynamic report template to lock as the final draft */
templateName: string;
year: number;
};
/** Generic input for manually setting any annual audit step status */
export type SetAnnualAuditStepStatusInput = {
notes?: string | null | undefined;
ownerId: string;
status: AnnualAuditStepStatus;
stepId: string;
year: number;
};
/** contract subscription plans */
export const SubscriptionPlan = {
Enterprise: 'ENTERPRISE',
Pro: 'PRO'
} as const;
export type SubscriptionPlan = typeof SubscriptionPlan[keyof typeof SubscriptionPlan];
/** input for business suggestions email listener config */
export type SuggestionsEmailListenerConfigInput = {
attachments?: Array<EmailAttachmentType> | null | undefined;
emailBody?: boolean | null | undefined;
internalEmailLinks?: Array<string> | null | undefined;
};
/** input for business suggestions */
export type SuggestionsInput = {
description?: string | null | undefined;
emailListener?: SuggestionsEmailListenerConfigInput | null | undefined;
emails?: Array<string> | null | undefined;
phrases?: Array<string> | null | undefined;
priority?: number | null | undefined;
tags?: Array<TagInput> | null | undefined;
};
/** input variables for Tag */
export type TagInput = {
id: string;
};
/** Input type representing the tax advance rate for a specific date. */
export type TaxAdvancesRateInput = {
date: unknown;
rate: number;
};
/** Input type for updating admin business details. */
export type UpdateAdminBusinessInput = {
governmentId?: string | null | undefined;
name?: string | null | undefined;
registrationDate?: unknown;
/** Social Security Info */
socialSecurityEmployerIds?: Array<AnnualIdInput> | null | undefined;
/** Tax Advances Info */
taxAdvancesAnnualIds?: Array<AnnualIdInput> | null | undefined;
taxAdvancesRates?: Array<TaxAdvancesRateInput> | null | undefined;
withholdingTaxAnnualIds?: Array<AnnualIdInput> | null | undefined;
/** Withholding Tax Info */
withholdingTaxCompanyId?: string | null | undefined;
};
/** input for updateBusiness */
export type UpdateBusinessInput = {
address?: string | null | undefined;
city?: string | null | undefined;
country?: unknown;
email?: string | null | undefined;
exemptDealer?: boolean | null | undefined;
governmentId?: string | null | undefined;
hebrewName?: string | null | undefined;
irsCode?: number | null | undefined;
isActive?: boolean | null | undefined;
isDocumentsOptional?: boolean | null | undefined;
isReceiptEnough?: boolean | null | undefined;
name?: string | null | undefined;
optionalVAT?: boolean | null | undefined;
pcn874RecordType?: Pcn874RecordType | null | undefined;
phoneNumber?: string | null | undefined;
sortCode?: number | null | undefined;
suggestions?: SuggestionsInput | null | undefined;
taxCategory?: string | null | undefined;
website?: string | null | undefined;
zipCode?: string | null | undefined;
};
/** the input for updating a business trip accommodation expense */
export type UpdateBusinessTripAccommodationsExpenseInput = {
amount?: number | null | undefined;
attendeesStay: Array<BusinessTripAttendeeStayInput>;
businessTripId: string;
country?: unknown;
currency?: Currency | null | undefined;
date?: unknown;
employeeBusinessId?: string | null | undefined;
id: string;
nightsCount?: number | null | undefined;
valueDate?: unknown;
};
/** the input for updating a business trip car rental expense */
export type UpdateBusinessTripCarRentalExpenseInput = {
amount?: number | null | undefined;
businessTripId: string;
currency?: Currency | null | undefined;
date?: unknown;
days?: number | null | undefined;
employeeBusinessId?: string | null | undefined;
id: string;
isFuelExpense?: boolean | null | undefined;
valueDate?: unknown;
};
/** the input for updating a business trip flights expense */
export type UpdateBusinessTripFlightsExpenseInput = {
amount?: number | null | undefined;
attendeeIds?: Array<string> | null | undefined;
businessTripId: string;
currency?: Currency | null | undefined;
date?: unknown;
employeeBusinessId?: string | null | undefined;
flightClass?: FlightClass | null | undefined;
id: string;
path?: Array<string> | null | undefined;
valueDate?: unknown;
};
/** the input for updating a business trip other expense */
export type UpdateBusinessTripOtherExpenseInput = {
amount?: number | null | undefined;
businessTripId: string;
currency?: Currency | null | undefined;
date?: unknown;
deductibleExpense?: boolean | null | undefined;
description?: string | null | undefined;
employeeBusinessId?: string | null | undefined;
id: string;
valueDate?: unknown;
};
/** the input for updating a business trip T&S expense */
export type UpdateBusinessTripTravelAndSubsistenceExpenseInput = {
amount?: number | null | undefined;
businessTripId: string;
currency?: Currency | null | undefined;
date?: unknown;
employeeBusinessId?: string | null | undefined;
expenseType?: string | null | undefined;
id: string;
valueDate?: unknown;
};
/** input variables for updateCharge */
export type UpdateChargeInput = {
accountantApproval?: AccountantStatus | null | undefined;
businessTripID?: string | null | undefined;
counterpartyId?: string | null | undefined;
defaultTaxCategoryID?: string | null | undefined;
isDecreasedVAT?: boolean | null | undefined;
isInvoicePaymentDifferentCurrency?: boolean | null | undefined;
optionalDocuments?: boolean | null | undefined;
optionalVAT?: boolean | null | undefined;
tags?: Array<TagInput> | null | undefined;
type?: ChargeType | null | undefined;
/** user custom description */
userDescription?: string | null | undefined;
yearsOfRelevance?: Array<YearOfRelevanceInput> | null | undefined;
};
/** input for updating a contract */
export type UpdateContractInput = {
amount?: FinancialAmountInput | null | undefined;
billingCycle?: BillingCycle | null | undefined;
clientId?: string | null | undefined;
documentType?: DocumentType | null | undefined;
endDate?: unknown;
isActive?: boolean | null | undefined;
msCloud?: unknown;
operationsLimit?: unknown;
plan?: SubscriptionPlan | null | undefined;
product?: Product | null | undefined;
purchaseOrders?: Array<string> | null | undefined;
remarks?: string | null | undefined;
startDate?: unknown;
};
/** input variables for updateDepreciationRecord */
export type UpdateDepreciationRecordInput = {
activationDate?: unknown;
amount?: number | null | undefined;
categoryId?: string | null | undefined;
chargeId?: string | null | undefined;
currency?: Currency | null | undefined;
id: string;
type?: DepreciationType | null | undefined;
};
/** input variables for updateDocument */
export type UpdateDocumentFieldsInput = {
allocationNumber?: string | null | undefined;
amount?: FinancialAmountInput | null | undefined;
chargeId?: string | null | undefined;
creditorId?: string | null | undefined;
date?: unknown;
debtorId?: string | null | undefined;
description?: string | null | undefined;
documentType?: DocumentType | null | undefined;
exchangeRateOverride?: number | null | undefined;
file?: unknown;
image?: unknown;
noVatAmount?: number | null | undefined;
remarks?: string | null | undefined;
serialNumber?: string | null | undefined;
vat?: FinancialAmountInput | null | undefined;
vatReportDateOverride?: unknown;
};
/** input type for updating a financial account */
export type UpdateFinancialAccountInput = {
bankAccountDetails?: BankAccountUpdateInput | null | undefined;
currencies?: Array<FinancialAccountCurrencyInput> | null | undefined;
name?: string | null | undefined;
number?: string | null | undefined;
ownerId?: string | null | undefined;
privateOrBusiness?: PrivateOrBusinessType | null | undefined;
type?: FinancialAccountType | null | undefined;
};
/** input variables for updateMiscExpense */
export type UpdateMiscExpenseInput = {
amount?: number | null | undefined;
chargeId?: string | null | undefined;
creditorId?: string | null | undefined;
currency?: Currency | null | undefined;
debtorId?: string | null | undefined;
description?: string | null | undefined;
invoiceDate?: unknown;
valueDate?: unknown;
};
/** input variables for updateSortCode */
export type UpdateSortCodeFieldsInput = {
defaultIrsCode?: number | null | undefined;
name?: string | null | undefined;
};
/** input variables for updateTag */
export type UpdateTagFieldsInput = {
name?: string | null | undefined;
parentId?: string | null | undefined;
};
/** input for updateTaxCategory */
export type UpdateTaxCategoryInput = {
hashavshevetName?: string | null | undefined;
irsCode?: number | null | undefined;
isActive?: boolean | null | undefined;
name?: string | null | undefined;
sortCode?: number | null | undefined;
taxExcluded?: boolean | null | undefined;
};
/** input variables for updateTransaction */
export type UpdateTransactionInput = {
chargeId?: string | null | undefined;
counterpartyId?: string | null | undefined;
effectiveDate?: unknown;
isFee?: boolean | null | undefined;
};
/** input variables for vatReportRecords */
export type VatReportFilter = {
chargesType?: ChargeFilterType | null | undefined;
financialEntityId: string;
monthDate: unknown;
};
/** input variables for charge spread */
export type YearOfRelevanceInput = {
amount?: number | null | undefined;
year: unknown;
};
export type ListApiKeysQueryVariables = Exact<{ [key: string]: never; }>;
export type ListApiKeysQuery = { listApiKeys: Array<{ id: string, name: string, roleId: string, lastUsedAt: unknown, createdAt: unknown }> };
export type ListBusinessUsersQueryVariables = Exact<{ [key: string]: never; }>;
export type ListBusinessUsersQuery = { listBusinessUsers: Array<{ id: string, email: string, name: string | null, roleId: string, createdAt: unknown }> };
export type ListInvitationsQueryVariables = Exact<{ [key: string]: never; }>;
export type ListInvitationsQuery = { listInvitations: Array<{ id: string, email: string, roleId: string, expiresAt: unknown }> };
type DepositTransactionFields_CommonTransaction_Fragment = { id: string, eventDate: unknown, chargeId: string, amount: { raw: number, formatted: string, currency: Currency }, debitExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null, eventExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null };
type DepositTransactionFields_ConversionTransaction_Fragment = { id: string, eventDate: unknown, chargeId: string, amount: { raw: number, formatted: string, currency: Currency }, debitExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null, eventExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null };
export type DepositTransactionFieldsFragment =
| DepositTransactionFields_CommonTransaction_Fragment
| DepositTransactionFields_ConversionTransaction_Fragment
;
export type SharedDepositTransactionsQueryVariables = Exact<{
depositId: string;
}>;
export type SharedDepositTransactionsQuery = { deposit: { id: string, currency: Currency | null, metadata: { id: string, transactions: Array<
| { id: string, eventDate: unknown, chargeId: string, amount: { raw: number, formatted: string, currency: Currency }, debitExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null, eventExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null }
| { id: string, eventDate: unknown, chargeId: string, amount: { raw: number, formatted: string, currency: Currency }, debitExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null, eventExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null }
> } } };
export type BusinessLedgerInfoQueryVariables = Exact<{
filters?: BusinessTransactionsFilter | null | undefined;
}>;
export type BusinessLedgerInfoQuery = { businessTransactionsFromLedgerRecords:
| { __typename: 'BusinessTransactionsFromLedgerRecordsSuccessfulResult', businessTransactions: Array<{ invoiceDate: unknown, reference: string | null, details: string | null, chargeId: string, amount: { formatted: string, raw: number }, business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
, foreignAmount: { formatted: string, raw: number, currency: Currency } | null, counterAccount:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null }> }
| { __typename: 'CommonError', message: string }
};
export type BusinessLedgerRecordsSummeryQueryVariables = Exact<{
filters?: BusinessTransactionsFilter | null | undefined;
}>;
export type BusinessLedgerRecordsSummeryQuery = { businessTransactionsSumFromLedgerRecords:
| { __typename: 'BusinessTransactionsSumFromLedgerRecordsSuccessfulResult', businessTransactionsSum: Array<{ business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
, credit: { formatted: string }, debit: { formatted: string }, total: { formatted: string, raw: number }, foreignCurrenciesSum: Array<{ currency: Currency, credit: { formatted: string }, debit: { formatted: string }, total: { formatted: string, raw: number } }> }> }
| { __typename: 'CommonError', message: string }
};
export type BusinessTripScreenQueryVariables = Exact<{
businessTripId: string;
}>;
export type BusinessTripScreenQuery = { businessTrip: { id: string, name: string, dates: { start: unknown } | null } | null };
export type BusinessTripsRowFieldsFragment = { id: string, name: string, accountantApproval: AccountantStatus };
export type BusinessTripsRowValidationQueryVariables = Exact<{
id: string;
}>;
export type BusinessTripsRowValidationQuery = { businessTrip: { id: string, uncategorizedTransactions: Array<{ transaction: Record<PropertyKey, never> } | null>, summary:
| ({ errors: Array<string> | null } | { errors?: never })
| Record<PropertyKey, never>
} | null };
export type EditableBusinessTripQueryVariables = Exact<{
businessTripId: string;
}>;
export type EditableBusinessTripQuery = { businessTrip: { id: string, name: string, purpose: string | null, accountantApproval: AccountantStatus, uncategorizedTransactions: Array<{ errors: Array<string>, transaction:
| { id: string, eventDate: unknown, chargeId: string, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, eventDate: unknown, chargeId: string, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
, categorizedAmount: { raw: number, formatted: string } } | null>, dates: { start: unknown, end: unknown } | null, destination: { id: string, name: string } | null, attendees: Array<{ id: string, name: string, arrivalDate: unknown, departureDate: unknown, flights: Array<{ id: string, date: unknown, payedByEmployee: boolean | null, path: Array<string> | null, class: string | null, valueDate: unknown, attendees: Array<{ id: string, name: string }>, amount: { formatted: string, raw: number, currency: Currency } | null, employee:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, charges: Array<
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
> | null }>, accommodations: Array<{ id: string, date: unknown, payedByEmployee: boolean | null, nightsCount: number | null, valueDate: unknown, country: { id: string, name: string } | null, attendeesStay: Array<{ id: string, nightsCount: number, attendee: { id: string, name: string } }>, amount: { formatted: string, raw: number, currency: Currency } | null, employee:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, charges: Array<
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
> | null }> }>, flightExpenses: Array<{ id: string, date: unknown, payedByEmployee: boolean | null, path: Array<string> | null, class: string | null, valueDate: unknown, attendees: Array<{ id: string, name: string }>, amount: { formatted: string, raw: number, currency: Currency } | null, employee:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, charges: Array<
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
> | null }>, accommodationExpenses: Array<{ id: string, date: unknown, payedByEmployee: boolean | null, nightsCount: number | null, valueDate: unknown, country: { id: string, name: string } | null, attendeesStay: Array<{ id: string, nightsCount: number, attendee: { id: string, name: string } }>, amount: { formatted: string, raw: number, currency: Currency } | null, employee:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, charges: Array<
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
> | null }>, travelAndSubsistenceExpenses: Array<{ id: string, date: unknown, payedByEmployee: boolean | null, expenseType: string | null, valueDate: unknown, amount: { formatted: string, raw: number, currency: Currency } | null, employee:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, charges: Array<
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
> | null }>, carRentalExpenses: Array<{ id: string, date: unknown, payedByEmployee: boolean | null, days: number, isFuelExpense: boolean, valueDate: unknown, amount: { formatted: string, raw: number, currency: Currency } | null, employee:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, charges: Array<
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
> | null }>, otherExpenses: Array<{ id: string, date: unknown, payedByEmployee: boolean | null, description: string | null, deductibleExpense: boolean | null, valueDate: unknown, amount: { formatted: string, raw: number, currency: Currency } | null, employee:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, charges: Array<
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
> | null }> } | null };
export type BusinessTripsScreenQueryVariables = Exact<{ [key: string]: never; }>;
export type BusinessTripsScreenQuery = { allBusinessTrips: Array<{ id: string, name: string, accountantApproval: AccountantStatus, dates: { start: unknown } | null }> };
type BusinessAdminSection_LtdFinancialEntity_Fragment = { __typename: 'LtdFinancialEntity', id: string, adminInfo: { id: string, registrationDate: unknown, withholdingTaxCompanyId: string | null, socialSecurityDeductionsId: string | null, withholdingTaxAnnualIds: Array<{ id: string, year: number }>, socialSecurityEmployerIds: Array<{ id: string, year: number }>, taxAdvancesAnnualIds: Array<{ id: string, year: number }>, taxAdvancesRates: Array<{ date: unknown, rate: number }> } | null };
type BusinessAdminSection_PersonalFinancialEntity_Fragment = { __typename: 'PersonalFinancialEntity', id: string };
export type BusinessAdminSectionFragment =
| BusinessAdminSection_LtdFinancialEntity_Fragment
| BusinessAdminSection_PersonalFinancialEntity_Fragment
;
export type AdminFinancialAccountsSectionQueryVariables = Exact<{
adminId: string;
}>;
export type AdminFinancialAccountsSectionQuery = { financialAccountsByOwner: Array<
| { __typename: 'BankDepositFinancialAccount', id: string, name: string, number: string, type: FinancialAccountType, privateOrBusiness: PrivateOrBusinessType, accountTaxCategories: Array<{ id: string, currency: Currency, taxCategory: { id: string, name: string } }> }
| { __typename: 'BankFinancialAccount', bankNumber: number, branchNumber: number, iban: string | null, swiftCode: string | null, extendedBankNumber: number | null, partyPreferredIndication: number | null, partyAccountInvolvementCode: number | null, accountDealDate: number | null, accountUpdateDate: number | null, metegDoarNet: number | null, kodHarshaatPeilut: number | null, accountClosingReasonCode: number | null, accountAgreementOpeningDate: number | null, serviceAuthorizationDesc: string | null, branchTypeCode: number | null, mymailEntitlementSwitch: number | null, productLabel: string | null, id: string, name: string, number: string, type: FinancialAccountType, privateOrBusiness: PrivateOrBusinessType, accountTaxCategories: Array<{ id: string, currency: Currency, taxCategory: { id: string, name: string } }> }
| { __typename: 'CardFinancialAccount', id: string, name: string, number: string, type: FinancialAccountType, privateOrBusiness: PrivateOrBusinessType, accountTaxCategories: Array<{ id: string, currency: Currency, taxCategory: { id: string, name: string } }> }
| { __typename: 'CryptoWalletFinancialAccount', id: string, name: string, number: string, type: FinancialAccountType, privateOrBusiness: PrivateOrBusinessType, accountTaxCategories: Array<{ id: string, currency: Currency, taxCategory: { id: string, name: string } }> }
| { __typename: 'ForeignSecuritiesFinancialAccount', id: string, name: string, number: string, type: FinancialAccountType, privateOrBusiness: PrivateOrBusinessType, accountTaxCategories: Array<{ id: string, currency: Currency, taxCategory: { id: string, name: string } }> }
> };
type BusinessHeader_LtdFinancialEntity_Fragment = { __typename: 'LtdFinancialEntity', governmentId: string | null, id: string, name: string, createdAt: unknown, isActive: boolean, adminInfo: { id: string } | null, clientInfo: { id: string } | null };
type BusinessHeader_PersonalFinancialEntity_Fragment = { __typename: 'PersonalFinancialEntity', id: string, name: string, createdAt: unknown, isActive: boolean };
export type BusinessHeaderFragment =
| BusinessHeader_LtdFinancialEntity_Fragment
| BusinessHeader_PersonalFinancialEntity_Fragment
;
export type BusinessChargesSectionQueryVariables = Exact<{
page?: number | null | undefined;
limit?: number | null | undefined;
filters?: ChargeFilter | null | undefined;
}>;
export type BusinessChargesSectionQuery = { allCharges: { nodes: Array<
| { __typename: 'BankDepositCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'BusinessTripCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, businessTrip: { id: string, name: string } | null, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'CommonCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'ConversionCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'CreditcardBankCharge', id: string, validCreditCardAmount: boolean, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'DividendCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'FinancialCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'ForeignSecuritiesCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'InternalTransferCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'MonthlyVatCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'SalaryCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
>, pageInfo: { totalPages: number } } };
export type ClientContractsSectionQueryVariables = Exact<{
clientId: string;
}>;
export type ClientContractsSectionQuery = { contractsByClient: Array<{ id: string, purchaseOrders: Array<string>, startDate: unknown, endDate: unknown, billingCycle: BillingCycle, isActive: boolean, product: Product | null, documentType: DocumentType, remarks: string | null, plan: SubscriptionPlan | null, msCloud: unknown, operationsLimit: unknown, amount: { raw: number, currency: Currency } }> };
export type ClientIntegrationsSectionFragment = { id: string, clientInfo: { id: string, integrations: { id: string, hiveId: string | null, linearId: string | null, slackChannelKey: string | null, notionId: string | null, workflowyUrl: string | null, greenInvoiceInfo: { businessId: string, greenInvoiceId: string | null } | null } } | null };
export type ClientIntegrationsSectionGreenInvoiceQueryVariables = Exact<{
clientId: string;
}>;
export type ClientIntegrationsSectionGreenInvoiceQuery = { greenInvoiceClient: { businessId: string, greenInvoiceId: string | null, emails: Array<string> | null, name: string | null, phone: string | null, taxId: string | null, address: string | null, city: string | null, zip: string | null, fax: string | null, mobile: string | null, country: { id: string, name: string } | null } };
export type ContractBasedDocumentDraftQueryVariables = Exact<{
issueMonth: unknown;
contractId: string;
}>;
export type ContractBasedDocumentDraftQuery = { periodicalDocumentDraftsByContracts: Array<{ description: string | null, remarks: string | null, footer: string | null, type: DocumentType, date: string | null, dueDate: string | null, language: DocumentLanguage, currency: Currency, vatType: DocumentVatType, rounding: boolean | null, signed: boolean | null, maxPayments: number | null, linkedDocumentIds: Array<string> | null, linkedPaymentId: string | null, discount: { amount: number, type: DocumentDiscountType } | null, client: { id: string, emails: Array<string>, originalBusiness: { id: string, name: string, address: string | null, city: string | null, zipCode: string | null, governmentId: string | null, phoneNumber: string | null, country: { id: string, code: unknown } }, integrations: { id: string } } | null, income: Array<{ currency: Currency, currencyRate: number | null, description: string, itemId: string | null, price: number, quantity: number, vatRate: number | null, vatType: DocumentVatType }> | null, payment: Array<{ currency: Currency, currencyRate: number | null, date: string | null, price: number, type: PaymentType, bankName: string | null, bankBranch: string | null, bankAccount: string | null, chequeNum: string | null, accountId: string | null, transactionId: string | null, cardType: DocumentPaymentRecordCardType | null, cardNum: string | null, numPayments: number | null, firstPayment: number | null }> | null }> };
type BusinessConfigurationSection_LtdFinancialEntity_Fragment = { __typename: 'LtdFinancialEntity', optionalVAT: boolean | null, exemptDealer: boolean | null, isReceiptEnough: boolean | null, isDocumentsOptional: boolean | null, id: string, pcn874RecordType: Pcn874RecordType | null, irsCode: number | null, isActive: boolean, ownerId: string | null, sortCode: { id: string, key: number, defaultIrsCode: number | null } | null, taxCategory: { id: string } | null, suggestions: { phrases: Array<string>, emails: Array<string> | null, description: string | null, tags: Array<{ id: string }>, emailListener: { internalEmailLinks: Array<string> | null, emailBody: boolean | null, attachments: Array<EmailAttachmentType> | null } | null } | null, clientInfo: { id: string } | null };
type BusinessConfigurationSection_PersonalFinancialEntity_Fragment = { __typename: 'PersonalFinancialEntity', id: string, pcn874RecordType: Pcn874RecordType | null, irsCode: number | null, isActive: boolean, ownerId: string | null };
export type BusinessConfigurationSectionFragment =
| BusinessConfigurationSection_LtdFinancialEntity_Fragment
| BusinessConfigurationSection_PersonalFinancialEntity_Fragment
;
type BusinessContactSection_LtdFinancialEntity_Fragment = { __typename: 'LtdFinancialEntity', name: string, hebrewName: string | null, governmentId: string | null, address: string | null, city: string | null, zipCode: string | null, email: string | null, phoneNumber: string | null, website: string | null, id: string, country: { id: string, code: unknown }, clientInfo: { id: string, emails: Array<string> } | null };
type BusinessContactSection_PersonalFinancialEntity_Fragment = { __typename: 'PersonalFinancialEntity', id: string };
export type BusinessContactSectionFragment =
| BusinessContactSection_LtdFinancialEntity_Fragment
| BusinessContactSection_PersonalFinancialEntity_Fragment
;
type BusinessPage_LtdFinancialEntity_Fragment = { __typename: 'LtdFinancialEntity', id: string, governmentId: string | null, name: string, createdAt: unknown, isActive: boolean, hebrewName: string | null, address: string | null, city: string | null, zipCode: string | null, email: string | null, phoneNumber: string | null, website: string | null, optionalVAT: boolean | null, exemptDealer: boolean | null, isReceiptEnough: boolean | null, isDocumentsOptional: boolean | null, pcn874RecordType: Pcn874RecordType | null, irsCode: number | null, ownerId: string | null, clientInfo: { id: string, emails: Array<string>, integrations: { id: string, hiveId: string | null, linearId: string | null, slackChannelKey: string | null, notionId: string | null, workflowyUrl: string | null, greenInvoiceInfo: { businessId: string, greenInvoiceId: string | null } | null } } | null, adminInfo: { id: string, registrationDate: unknown, withholdingTaxCompanyId: string | null, socialSecurityDeductionsId: string | null, withholdingTaxAnnualIds: Array<{ id: string, year: number }>, socialSecurityEmployerIds: Array<{ id: string, year: number }>, taxAdvancesAnnualIds: Array<{ id: string, year: number }>, taxAdvancesRates: Array<{ date: unknown, rate: number }> } | null, country: { id: string, code: unknown }, sortCode: { id: string, key: number, defaultIrsCode: number | null } | null, taxCategory: { id: string } | null, suggestions: { phrases: Array<string>, emails: Array<string> | null, description: string | null, tags: Array<{ id: string }>, emailListener: { internalEmailLinks: Array<string> | null, emailBody: boolean | null, attachments: Array<EmailAttachmentType> | null } | null } | null };
type BusinessPage_PersonalFinancialEntity_Fragment = { __typename: 'PersonalFinancialEntity', id: string, name: string, createdAt: unknown, isActive: boolean, pcn874RecordType: Pcn874RecordType | null, irsCode: number | null, ownerId: string | null };
export type BusinessPageFragment =
| BusinessPage_LtdFinancialEntity_Fragment
| BusinessPage_PersonalFinancialEntity_Fragment
;
export type BusinessLedgerSectionQueryVariables = Exact<{
businessId: string;
}>;
export type BusinessLedgerSectionQuery = { ledgerRecordsByFinancialEntity: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> };
export type BusinessTransactionsSectionQueryVariables = Exact<{
businessId: string;
}>;
export type BusinessTransactionsSectionQuery = { transactionsByFinancialEntity: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string, currency: Currency }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string, currency: Currency }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
> };
export type AllBusinessesForScreenQueryVariables = Exact<{ [key: string]: never; }>;
export type AllBusinessesForScreenQuery = { allBusinesses: { nodes: Array<
| { __typename: 'LtdFinancialEntity', hebrewName: string | null, governmentId: string | null, city: string | null, zipCode: string | null, createdAt: unknown, updatedAt: unknown, irsCode: number | null, pcn874RecordType: Pcn874RecordType | null, isClient: boolean, isAdmin: boolean, isActive: boolean, id: string, name: string, country: { id: string, code: unknown }, sortCode: { id: string, key: number, name: string | null } | null, taxCategory: { id: string, name: string } | null, suggestions: { description: string | null, tags: Array<{ id: string, name: string }> } | null }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
> } | null };
export type BusinessesUsageQueryVariables = Exact<{
ids: Array<string> | string;
}>;
export type BusinessesUsageQuery = { businessesUsage: Array<{ id: string, businessId: string, totalTransactions: number, totalDocuments: number, totalMiscExpenses: number, totalLedgerRecords: number }> };
export type ChargeMatchesTableFieldsFragment = { confidenceScore: number, charge:
| { __typename: 'BankDepositCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null }
| { __typename: 'BusinessTripCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null }
| { __typename: 'CommonCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null }
| { __typename: 'ConversionCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null }
| { __typename: 'CreditcardBankCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null }
| { __typename: 'DividendCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null }
| { __typename: 'FinancialCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null }
| { __typename: 'ForeignSecuritiesCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null }
| { __typename: 'InternalTransferCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null }
| { __typename: 'MonthlyVatCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null }
| { __typename: 'SalaryCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null }
};
export type ChargeExtendedInfoForChargeMatchesQueryVariables = Exact<{
chargeId: string;
}>;
export type ChargeExtendedInfoForChargeMatchesQuery = { charge:
| { id: string, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
>, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> }
| { id: string, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
>, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> }
| { id: string, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
>, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> }
| { id: string, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
>, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> }
| { id: string, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
>, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> }
| { id: string, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
>, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> }
| { id: string, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
>, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> }
| { id: string, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
>, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> }
| { id: string, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
>, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> }
| { id: string, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
>, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> }
| { id: string, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
>, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> }
};
type ChargeMatchCardFields_BankDepositCharge_Fragment = { __typename: 'BankDepositCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, additionalDocuments: Array<
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
>, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
>, miscExpenses: Array<{ id: string, description: string | null, amount: { formatted: string } }> };
type ChargeMatchCardFields_BusinessTripCharge_Fragment = { __typename: 'BusinessTripCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, additionalDocuments: Array<
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
>, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
>, miscExpenses: Array<{ id: string, description: string | null, amount: { formatted: string } }> };
type ChargeMatchCardFields_CommonCharge_Fragment = { __typename: 'CommonCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, additionalDocuments: Array<
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
>, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
>, miscExpenses: Array<{ id: string, description: string | null, amount: { formatted: string } }> };
type ChargeMatchCardFields_ConversionCharge_Fragment = { __typename: 'ConversionCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, additionalDocuments: Array<
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
>, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
>, miscExpenses: Array<{ id: string, description: string | null, amount: { formatted: string } }> };
type ChargeMatchCardFields_CreditcardBankCharge_Fragment = { __typename: 'CreditcardBankCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, additionalDocuments: Array<
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
>, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
>, miscExpenses: Array<{ id: string, description: string | null, amount: { formatted: string } }> };
type ChargeMatchCardFields_DividendCharge_Fragment = { __typename: 'DividendCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, additionalDocuments: Array<
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
>, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
>, miscExpenses: Array<{ id: string, description: string | null, amount: { formatted: string } }> };
type ChargeMatchCardFields_FinancialCharge_Fragment = { __typename: 'FinancialCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, additionalDocuments: Array<
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
>, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
>, miscExpenses: Array<{ id: string, description: string | null, amount: { formatted: string } }> };
type ChargeMatchCardFields_ForeignSecuritiesCharge_Fragment = { __typename: 'ForeignSecuritiesCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, additionalDocuments: Array<
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
>, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
>, miscExpenses: Array<{ id: string, description: string | null, amount: { formatted: string } }> };
type ChargeMatchCardFields_InternalTransferCharge_Fragment = { __typename: 'InternalTransferCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, additionalDocuments: Array<
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
>, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
>, miscExpenses: Array<{ id: string, description: string | null, amount: { formatted: string } }> };
type ChargeMatchCardFields_MonthlyVatCharge_Fragment = { __typename: 'MonthlyVatCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, additionalDocuments: Array<
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
>, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
>, miscExpenses: Array<{ id: string, description: string | null, amount: { formatted: string } }> };
type ChargeMatchCardFields_SalaryCharge_Fragment = { __typename: 'SalaryCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, additionalDocuments: Array<
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
>, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
>, miscExpenses: Array<{ id: string, description: string | null, amount: { formatted: string } }> };
export type ChargeMatchCardFieldsFragment =
| ChargeMatchCardFields_BankDepositCharge_Fragment
| ChargeMatchCardFields_BusinessTripCharge_Fragment
| ChargeMatchCardFields_CommonCharge_Fragment
| ChargeMatchCardFields_ConversionCharge_Fragment
| ChargeMatchCardFields_CreditcardBankCharge_Fragment
| ChargeMatchCardFields_DividendCharge_Fragment
| ChargeMatchCardFields_FinancialCharge_Fragment
| ChargeMatchCardFields_ForeignSecuritiesCharge_Fragment
| ChargeMatchCardFields_InternalTransferCharge_Fragment
| ChargeMatchCardFields_MonthlyVatCharge_Fragment
| ChargeMatchCardFields_SalaryCharge_Fragment
;
export type ChargesAwaitingMatchQueueQueryVariables = Exact<{
limit?: number | null | undefined;
offset?: number | null | undefined;
businessId?: string | null | undefined;
fromDate?: unknown;
toDate?: unknown;
mode?: ChargeMatchQueueMode | null | undefined;
sortBy?: ChargeMatchQueueSortBy | null | undefined;
}>;
export type ChargesAwaitingMatchQueueQuery = { chargesAwaitingMatchQueue: { totalCount: number, baseCharges: Array<{ id: string, baseCharge:
| { __typename: 'BankDepositCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, additionalDocuments: Array<
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
>, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
>, miscExpenses: Array<{ id: string, description: string | null, amount: { formatted: string } }> }
| { __typename: 'BusinessTripCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, additionalDocuments: Array<
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
>, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
>, miscExpenses: Array<{ id: string, description: string | null, amount: { formatted: string } }> }
| { __typename: 'CommonCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, additionalDocuments: Array<
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
>, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
>, miscExpenses: Array<{ id: string, description: string | null, amount: { formatted: string } }> }
| { __typename: 'ConversionCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, additionalDocuments: Array<
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
>, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
>, miscExpenses: Array<{ id: string, description: string | null, amount: { formatted: string } }> }
| { __typename: 'CreditcardBankCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, additionalDocuments: Array<
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
>, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
>, miscExpenses: Array<{ id: string, description: string | null, amount: { formatted: string } }> }
| { __typename: 'DividendCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, additionalDocuments: Array<
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
>, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
>, miscExpenses: Array<{ id: string, description: string | null, amount: { formatted: string } }> }
| { __typename: 'FinancialCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, additionalDocuments: Array<
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
>, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
>, miscExpenses: Array<{ id: string, description: string | null, amount: { formatted: string } }> }
| { __typename: 'ForeignSecuritiesCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, additionalDocuments: Array<
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
>, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
>, miscExpenses: Array<{ id: string, description: string | null, amount: { formatted: string } }> }
| { __typename: 'InternalTransferCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, additionalDocuments: Array<
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
>, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
>, miscExpenses: Array<{ id: string, description: string | null, amount: { formatted: string } }> }
| { __typename: 'MonthlyVatCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, additionalDocuments: Array<
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
>, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
>, miscExpenses: Array<{ id: string, description: string | null, amount: { formatted: string } }> }
| { __typename: 'SalaryCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, additionalDocuments: Array<
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
>, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
>, miscExpenses: Array<{ id: string, description: string | null, amount: { formatted: string } }> }
, suggestions: Array<{ chargeId: string, confidenceScore: number, charge:
| { __typename: 'BankDepositCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, additionalDocuments: Array<
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
>, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
>, miscExpenses: Array<{ id: string, description: string | null, amount: { formatted: string } }> }
| { __typename: 'BusinessTripCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, additionalDocuments: Array<
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
>, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
>, miscExpenses: Array<{ id: string, description: string | null, amount: { formatted: string } }> }
| { __typename: 'CommonCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, additionalDocuments: Array<
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
>, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
>, miscExpenses: Array<{ id: string, description: string | null, amount: { formatted: string } }> }
| { __typename: 'ConversionCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, additionalDocuments: Array<
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
>, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
>, miscExpenses: Array<{ id: string, description: string | null, amount: { formatted: string } }> }
| { __typename: 'CreditcardBankCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, additionalDocuments: Array<
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
>, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
>, miscExpenses: Array<{ id: string, description: string | null, amount: { formatted: string } }> }
| { __typename: 'DividendCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, additionalDocuments: Array<
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
>, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
>, miscExpenses: Array<{ id: string, description: string | null, amount: { formatted: string } }> }
| { __typename: 'FinancialCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, additionalDocuments: Array<
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
>, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
>, miscExpenses: Array<{ id: string, description: string | null, amount: { formatted: string } }> }
| { __typename: 'ForeignSecuritiesCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, additionalDocuments: Array<
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
>, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
>, miscExpenses: Array<{ id: string, description: string | null, amount: { formatted: string } }> }
| { __typename: 'InternalTransferCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, additionalDocuments: Array<
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
>, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
>, miscExpenses: Array<{ id: string, description: string | null, amount: { formatted: string } }> }
| { __typename: 'MonthlyVatCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, additionalDocuments: Array<
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
>, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
>, miscExpenses: Array<{ id: string, description: string | null, amount: { formatted: string } }> }
| { __typename: 'SalaryCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, additionalDocuments: Array<
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown }
>, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, amount: { raw: number, formatted: string } }
>, miscExpenses: Array<{ id: string, description: string | null, amount: { formatted: string } }> }
}> }> } };
export type ChargesLedgerValidationQueryVariables = Exact<{
limit?: number | null | undefined;
filters?: ChargeFilter | null | undefined;
}>;
export type ChargesLedgerValidationQuery = { chargesWithLedgerChanges: Array<{ progress: number, charge:
| { __typename: 'BankDepositCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'BusinessTripCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, businessTrip: { id: string, name: string } | null, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'CommonCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'ConversionCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'CreditcardBankCharge', id: string, validCreditCardAmount: boolean, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'DividendCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'FinancialCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'ForeignSecuritiesCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'InternalTransferCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'MonthlyVatCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'SalaryCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| null }> };
type ChargesTableErrorsFields_BankDepositCharge_Fragment = { id: string, errorsLedger: { validate: { errors: Array<string> } } };
type ChargesTableErrorsFields_BusinessTripCharge_Fragment = { id: string, errorsLedger: { validate: { errors: Array<string> } } };
type ChargesTableErrorsFields_CommonCharge_Fragment = { id: string, errorsLedger: { validate: { errors: Array<string> } } };
type ChargesTableErrorsFields_ConversionCharge_Fragment = { id: string, errorsLedger: { validate: { errors: Array<string> } } };
type ChargesTableErrorsFields_CreditcardBankCharge_Fragment = { id: string, errorsLedger: { validate: { errors: Array<string> } } };
type ChargesTableErrorsFields_DividendCharge_Fragment = { id: string, errorsLedger: { validate: { errors: Array<string> } } };
type ChargesTableErrorsFields_FinancialCharge_Fragment = { id: string, errorsLedger: { validate: { errors: Array<string> } } };
type ChargesTableErrorsFields_ForeignSecuritiesCharge_Fragment = { id: string, errorsLedger: { validate: { errors: Array<string> } } };
type ChargesTableErrorsFields_InternalTransferCharge_Fragment = { id: string, errorsLedger: { validate: { errors: Array<string> } } };
type ChargesTableErrorsFields_MonthlyVatCharge_Fragment = { id: string, errorsLedger: { validate: { errors: Array<string> } } };
type ChargesTableErrorsFields_SalaryCharge_Fragment = { id: string, errorsLedger: { validate: { errors: Array<string> } } };
export type ChargesTableErrorsFieldsFragment =
| ChargesTableErrorsFields_BankDepositCharge_Fragment
| ChargesTableErrorsFields_BusinessTripCharge_Fragment
| ChargesTableErrorsFields_CommonCharge_Fragment
| ChargesTableErrorsFields_ConversionCharge_Fragment
| ChargesTableErrorsFields_CreditcardBankCharge_Fragment
| ChargesTableErrorsFields_DividendCharge_Fragment
| ChargesTableErrorsFields_FinancialCharge_Fragment
| ChargesTableErrorsFields_ForeignSecuritiesCharge_Fragment
| ChargesTableErrorsFields_InternalTransferCharge_Fragment
| ChargesTableErrorsFields_MonthlyVatCharge_Fragment
| ChargesTableErrorsFields_SalaryCharge_Fragment
;
export type FetchChargeQueryVariables = Exact<{
chargeId: string;
}>;
export type FetchChargeQuery = { charge:
| { __typename: 'BankDepositCharge', id: string, metadata: { transactionsCount: number, documentsCount: number, receiptsCount: number, invoicesCount: number, ledgerCount: number, miscExpensesCount: number, isLedgerLocked: boolean, openDocuments: boolean } | null, totalAmount: { raw: number } | null }
| { __typename: 'BusinessTripCharge', id: string, businessTrip: { id: string, name: string, purpose: string | null, accountantApproval: AccountantStatus, dates: { start: unknown, end: unknown } | null, destination: { id: string, name: string } | null } | null, metadata: { transactionsCount: number, documentsCount: number, receiptsCount: number, invoicesCount: number, ledgerCount: number, miscExpensesCount: number, isLedgerLocked: boolean, openDocuments: boolean } | null, totalAmount: { raw: number } | null }
| { __typename: 'CommonCharge', id: string, metadata: { transactionsCount: number, documentsCount: number, receiptsCount: number, invoicesCount: number, ledgerCount: number, miscExpensesCount: number, isLedgerLocked: boolean, openDocuments: boolean } | null, totalAmount: { raw: number } | null }
| { __typename: 'ConversionCharge', id: string, metadata: { transactionsCount: number, documentsCount: number, receiptsCount: number, invoicesCount: number, ledgerCount: number, miscExpensesCount: number, isLedgerLocked: boolean, openDocuments: boolean } | null, totalAmount: { raw: number } | null }
| { __typename: 'CreditcardBankCharge', id: string, metadata: { transactionsCount: number, documentsCount: number, receiptsCount: number, invoicesCount: number, ledgerCount: number, miscExpensesCount: number, isLedgerLocked: boolean, openDocuments: boolean } | null, totalAmount: { raw: number } | null }
| { __typename: 'DividendCharge', id: string, metadata: { transactionsCount: number, documentsCount: number, receiptsCount: number, invoicesCount: number, ledgerCount: number, miscExpensesCount: number, isLedgerLocked: boolean, openDocuments: boolean } | null, totalAmount: { raw: number } | null }
| { __typename: 'FinancialCharge', id: string, metadata: { transactionsCount: number, documentsCount: number, receiptsCount: number, invoicesCount: number, ledgerCount: number, miscExpensesCount: number, isLedgerLocked: boolean, openDocuments: boolean } | null, totalAmount: { raw: number } | null }
| { __typename: 'ForeignSecuritiesCharge', id: string, metadata: { transactionsCount: number, documentsCount: number, receiptsCount: number, invoicesCount: number, ledgerCount: number, miscExpensesCount: number, isLedgerLocked: boolean, openDocuments: boolean } | null, totalAmount: { raw: number } | null }
| { __typename: 'InternalTransferCharge', id: string, metadata: { transactionsCount: number, documentsCount: number, receiptsCount: number, invoicesCount: number, ledgerCount: number, miscExpensesCount: number, isLedgerLocked: boolean, openDocuments: boolean } | null, totalAmount: { raw: number } | null }
| { __typename: 'MonthlyVatCharge', id: string, metadata: { transactionsCount: number, documentsCount: number, receiptsCount: number, invoicesCount: number, ledgerCount: number, miscExpensesCount: number, isLedgerLocked: boolean, openDocuments: boolean } | null, totalAmount: { raw: number } | null }
| { __typename: 'SalaryCharge', id: string, metadata: { transactionsCount: number, documentsCount: number, receiptsCount: number, invoicesCount: number, ledgerCount: number, miscExpensesCount: number, isLedgerLocked: boolean, openDocuments: boolean } | null, totalAmount: { raw: number } | null }
};
type ChargeExpansionFields_BankDepositCharge_Fragment = { __typename: 'BankDepositCharge', id: string, metadata: { transactionsCount: number, documentsCount: number, receiptsCount: number, invoicesCount: number, ledgerCount: number, miscExpensesCount: number, isLedgerLocked: boolean, openDocuments: boolean } | null, totalAmount: { raw: number } | null } & ({ id: string, additionalDocuments: Array<
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { id: string, image: unknown }
> } | { id?: never, additionalDocuments?: never }) & ({ id: string, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> } | { id?: never, additionalDocuments?: never }) & ({ id: string, ledger: { __typename: 'Ledger', records: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> } & ({ validate:
| ({ matches: Array<string> } | { matches?: never }) & ({ differences: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> } | { differences?: never })
| Record<PropertyKey, never>
} | { validate?: never }) } | { id?: never, ledger?: never }) & ({ id: string, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
> } | { id?: never, transactions?: never }) & ({ __typename: 'BankDepositCharge', id: string } | { __typename: 'BankDepositCharge', id?: never }) & ({ __typename: 'BankDepositCharge', id: string } | { __typename: 'BankDepositCharge', id?: never }) & ({ __typename: 'BankDepositCharge', id: string } | { __typename: 'BankDepositCharge', id?: never }) & ({ id: string, errorsLedger: { validate: { errors: Array<string> } } } | { id?: never, errorsLedger?: never }) & ({ id: string, miscExpenses: Array<{ id: string, description: string | null, invoiceDate: unknown, valueDate: unknown, chargeId: string, amount: { raw: number, formatted: string, currency: Currency }, creditor:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
, debtor:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
}> } | { id?: never, miscExpenses?: never }) & ({ __typename: 'BankDepositCharge', id: string } | { __typename: 'BankDepositCharge', id?: never });
type ChargeExpansionFields_BusinessTripCharge_Fragment = { __typename: 'BusinessTripCharge', id: string, businessTrip: { id: string, name: string, purpose: string | null, accountantApproval: AccountantStatus, dates: { start: unknown, end: unknown } | null, destination: { id: string, name: string } | null } | null, metadata: { transactionsCount: number, documentsCount: number, receiptsCount: number, invoicesCount: number, ledgerCount: number, miscExpensesCount: number, isLedgerLocked: boolean, openDocuments: boolean } | null, totalAmount: { raw: number } | null } & ({ id: string, additionalDocuments: Array<
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { id: string, image: unknown }
> } | { id?: never, additionalDocuments?: never }) & ({ id: string, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> } | { id?: never, additionalDocuments?: never }) & ({ id: string, ledger: { __typename: 'Ledger', records: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> } & ({ validate:
| ({ matches: Array<string> } | { matches?: never }) & ({ differences: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> } | { differences?: never })
| Record<PropertyKey, never>
} | { validate?: never }) } | { id?: never, ledger?: never }) & ({ id: string, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
> } | { id?: never, transactions?: never }) & ({ __typename: 'BusinessTripCharge', id: string } | { __typename: 'BusinessTripCharge', id?: never }) & ({ __typename: 'BusinessTripCharge', id: string } | { __typename: 'BusinessTripCharge', id?: never }) & ({ __typename: 'BusinessTripCharge', id: string } | { __typename: 'BusinessTripCharge', id?: never }) & ({ id: string, errorsLedger: { validate: { errors: Array<string> } } } | { id?: never, errorsLedger?: never }) & ({ id: string, miscExpenses: Array<{ id: string, description: string | null, invoiceDate: unknown, valueDate: unknown, chargeId: string, amount: { raw: number, formatted: string, currency: Currency }, creditor:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
, debtor:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
}> } | { id?: never, miscExpenses?: never }) & ({ __typename: 'BusinessTripCharge', id: string } | { __typename: 'BusinessTripCharge', id?: never });
type ChargeExpansionFields_CommonCharge_Fragment = { __typename: 'CommonCharge', id: string, metadata: { transactionsCount: number, documentsCount: number, receiptsCount: number, invoicesCount: number, ledgerCount: number, miscExpensesCount: number, isLedgerLocked: boolean, openDocuments: boolean } | null, totalAmount: { raw: number } | null } & ({ id: string, additionalDocuments: Array<
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { id: string, image: unknown }
> } | { id?: never, additionalDocuments?: never }) & ({ id: string, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> } | { id?: never, additionalDocuments?: never }) & ({ id: string, ledger: { __typename: 'Ledger', records: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> } & ({ validate:
| ({ matches: Array<string> } | { matches?: never }) & ({ differences: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> } | { differences?: never })
| Record<PropertyKey, never>
} | { validate?: never }) } | { id?: never, ledger?: never }) & ({ id: string, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
> } | { id?: never, transactions?: never }) & ({ __typename: 'CommonCharge', id: string } | { __typename: 'CommonCharge', id?: never }) & ({ __typename: 'CommonCharge', id: string } | { __typename: 'CommonCharge', id?: never }) & ({ __typename: 'CommonCharge', id: string } | { __typename: 'CommonCharge', id?: never }) & ({ id: string, errorsLedger: { validate: { errors: Array<string> } } } | { id?: never, errorsLedger?: never }) & ({ id: string, miscExpenses: Array<{ id: string, description: string | null, invoiceDate: unknown, valueDate: unknown, chargeId: string, amount: { raw: number, formatted: string, currency: Currency }, creditor:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
, debtor:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
}> } | { id?: never, miscExpenses?: never }) & ({ __typename: 'CommonCharge', id: string } | { __typename: 'CommonCharge', id?: never });
type ChargeExpansionFields_ConversionCharge_Fragment = { __typename: 'ConversionCharge', id: string, metadata: { transactionsCount: number, documentsCount: number, receiptsCount: number, invoicesCount: number, ledgerCount: number, miscExpensesCount: number, isLedgerLocked: boolean, openDocuments: boolean } | null, totalAmount: { raw: number } | null } & ({ id: string, additionalDocuments: Array<
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { id: string, image: unknown }
> } | { id?: never, additionalDocuments?: never }) & ({ id: string, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> } | { id?: never, additionalDocuments?: never }) & ({ id: string, ledger: { __typename: 'Ledger', records: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> } & ({ validate:
| ({ matches: Array<string> } | { matches?: never }) & ({ differences: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> } | { differences?: never })
| Record<PropertyKey, never>
} | { validate?: never }) } | { id?: never, ledger?: never }) & ({ id: string, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
> } | { id?: never, transactions?: never }) & ({ __typename: 'ConversionCharge', id: string, eventRate: { from: Currency, to: Currency, rate: number } | null, officialRate: { from: Currency, to: Currency, rate: number } | null } | { __typename: 'ConversionCharge', id?: never, eventRate?: never, officialRate?: never }) & ({ __typename: 'ConversionCharge', id: string } | { __typename: 'ConversionCharge', id?: never }) & ({ __typename: 'ConversionCharge', id: string } | { __typename: 'ConversionCharge', id?: never }) & ({ id: string, errorsLedger: { validate: { errors: Array<string> } } } | { id?: never, errorsLedger?: never }) & ({ id: string, miscExpenses: Array<{ id: string, description: string | null, invoiceDate: unknown, valueDate: unknown, chargeId: string, amount: { raw: number, formatted: string, currency: Currency }, creditor:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
, debtor:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
}> } | { id?: never, miscExpenses?: never }) & ({ __typename: 'ConversionCharge', id: string } | { __typename: 'ConversionCharge', id?: never });
type ChargeExpansionFields_CreditcardBankCharge_Fragment = { __typename: 'CreditcardBankCharge', id: string, metadata: { transactionsCount: number, documentsCount: number, receiptsCount: number, invoicesCount: number, ledgerCount: number, miscExpensesCount: number, isLedgerLocked: boolean, openDocuments: boolean } | null, totalAmount: { raw: number } | null } & ({ id: string, additionalDocuments: Array<
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { id: string, image: unknown }
> } | { id?: never, additionalDocuments?: never }) & ({ id: string, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> } | { id?: never, additionalDocuments?: never }) & ({ id: string, ledger: { __typename: 'Ledger', records: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> } & ({ validate:
| ({ matches: Array<string> } | { matches?: never }) & ({ differences: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> } | { differences?: never })
| Record<PropertyKey, never>
} | { validate?: never }) } | { id?: never, ledger?: never }) & ({ id: string, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
> } | { id?: never, transactions?: never }) & ({ __typename: 'CreditcardBankCharge', id: string } | { __typename: 'CreditcardBankCharge', id?: never }) & ({ __typename: 'CreditcardBankCharge', id: string, creditCardTransactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
> } | { __typename: 'CreditcardBankCharge', id?: never, creditCardTransactions?: never }) & ({ __typename: 'CreditcardBankCharge', id: string } | { __typename: 'CreditcardBankCharge', id?: never }) & ({ id: string, errorsLedger: { validate: { errors: Array<string> } } } | { id?: never, errorsLedger?: never }) & ({ id: string, miscExpenses: Array<{ id: string, description: string | null, invoiceDate: unknown, valueDate: unknown, chargeId: string, amount: { raw: number, formatted: string, currency: Currency }, creditor:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
, debtor:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
}> } | { id?: never, miscExpenses?: never }) & ({ __typename: 'CreditcardBankCharge', id: string } | { __typename: 'CreditcardBankCharge', id?: never });
type ChargeExpansionFields_DividendCharge_Fragment = { __typename: 'DividendCharge', id: string, metadata: { transactionsCount: number, documentsCount: number, receiptsCount: number, invoicesCount: number, ledgerCount: number, miscExpensesCount: number, isLedgerLocked: boolean, openDocuments: boolean } | null, totalAmount: { raw: number } | null } & ({ id: string, additionalDocuments: Array<
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { id: string, image: unknown }
> } | { id?: never, additionalDocuments?: never }) & ({ id: string, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> } | { id?: never, additionalDocuments?: never }) & ({ id: string, ledger: { __typename: 'Ledger', records: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> } & ({ validate:
| ({ matches: Array<string> } | { matches?: never }) & ({ differences: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> } | { differences?: never })
| Record<PropertyKey, never>
} | { validate?: never }) } | { id?: never, ledger?: never }) & ({ id: string, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
> } | { id?: never, transactions?: never }) & ({ __typename: 'DividendCharge', id: string } | { __typename: 'DividendCharge', id?: never }) & ({ __typename: 'DividendCharge', id: string } | { __typename: 'DividendCharge', id?: never }) & ({ __typename: 'DividendCharge', id: string } | { __typename: 'DividendCharge', id?: never }) & ({ id: string, errorsLedger: { validate: { errors: Array<string> } } } | { id?: never, errorsLedger?: never }) & ({ id: string, miscExpenses: Array<{ id: string, description: string | null, invoiceDate: unknown, valueDate: unknown, chargeId: string, amount: { raw: number, formatted: string, currency: Currency }, creditor:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
, debtor:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
}> } | { id?: never, miscExpenses?: never }) & ({ __typename: 'DividendCharge', id: string } | { __typename: 'DividendCharge', id?: never });
type ChargeExpansionFields_FinancialCharge_Fragment = { __typename: 'FinancialCharge', id: string, metadata: { transactionsCount: number, documentsCount: number, receiptsCount: number, invoicesCount: number, ledgerCount: number, miscExpensesCount: number, isLedgerLocked: boolean, openDocuments: boolean } | null, totalAmount: { raw: number } | null } & ({ id: string, additionalDocuments: Array<
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { id: string, image: unknown }
> } | { id?: never, additionalDocuments?: never }) & ({ id: string, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> } | { id?: never, additionalDocuments?: never }) & ({ id: string, ledger: { __typename: 'Ledger', records: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> } & ({ validate:
| ({ matches: Array<string> } | { matches?: never }) & ({ differences: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> } | { differences?: never })
| Record<PropertyKey, never>
} | { validate?: never }) } | { id?: never, ledger?: never }) & ({ id: string, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
> } | { id?: never, transactions?: never }) & ({ __typename: 'FinancialCharge', id: string } | { __typename: 'FinancialCharge', id?: never }) & ({ __typename: 'FinancialCharge', id: string } | { __typename: 'FinancialCharge', id?: never }) & ({ __typename: 'FinancialCharge', id: string } | { __typename: 'FinancialCharge', id?: never }) & ({ id: string, errorsLedger: { validate: { errors: Array<string> } } } | { id?: never, errorsLedger?: never }) & ({ id: string, miscExpenses: Array<{ id: string, description: string | null, invoiceDate: unknown, valueDate: unknown, chargeId: string, amount: { raw: number, formatted: string, currency: Currency }, creditor:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
, debtor:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
}> } | { id?: never, miscExpenses?: never }) & ({ __typename: 'FinancialCharge', id: string, exchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, ils: number | null, jpy: number | null, sek: number | null, usd: number | null, eth: number | null, grt: number | null, usdc: number | null } | null } | { __typename: 'FinancialCharge', id?: never, exchangeRates?: never });
type ChargeExpansionFields_ForeignSecuritiesCharge_Fragment = { __typename: 'ForeignSecuritiesCharge', id: string, metadata: { transactionsCount: number, documentsCount: number, receiptsCount: number, invoicesCount: number, ledgerCount: number, miscExpensesCount: number, isLedgerLocked: boolean, openDocuments: boolean } | null, totalAmount: { raw: number } | null } & ({ id: string, additionalDocuments: Array<
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { id: string, image: unknown }
> } | { id?: never, additionalDocuments?: never }) & ({ id: string, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> } | { id?: never, additionalDocuments?: never }) & ({ id: string, ledger: { __typename: 'Ledger', records: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> } & ({ validate:
| ({ matches: Array<string> } | { matches?: never }) & ({ differences: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> } | { differences?: never })
| Record<PropertyKey, never>
} | { validate?: never }) } | { id?: never, ledger?: never }) & ({ id: string, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
> } | { id?: never, transactions?: never }) & ({ __typename: 'ForeignSecuritiesCharge', id: string } | { __typename: 'ForeignSecuritiesCharge', id?: never }) & ({ __typename: 'ForeignSecuritiesCharge', id: string } | { __typename: 'ForeignSecuritiesCharge', id?: never }) & ({ __typename: 'ForeignSecuritiesCharge', id: string } | { __typename: 'ForeignSecuritiesCharge', id?: never }) & ({ id: string, errorsLedger: { validate: { errors: Array<string> } } } | { id?: never, errorsLedger?: never }) & ({ id: string, miscExpenses: Array<{ id: string, description: string | null, invoiceDate: unknown, valueDate: unknown, chargeId: string, amount: { raw: number, formatted: string, currency: Currency }, creditor:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
, debtor:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
}> } | { id?: never, miscExpenses?: never }) & ({ __typename: 'ForeignSecuritiesCharge', id: string } | { __typename: 'ForeignSecuritiesCharge', id?: never });
type ChargeExpansionFields_InternalTransferCharge_Fragment = { __typename: 'InternalTransferCharge', id: string, metadata: { transactionsCount: number, documentsCount: number, receiptsCount: number, invoicesCount: number, ledgerCount: number, miscExpensesCount: number, isLedgerLocked: boolean, openDocuments: boolean } | null, totalAmount: { raw: number } | null } & ({ id: string, additionalDocuments: Array<
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { id: string, image: unknown }
> } | { id?: never, additionalDocuments?: never }) & ({ id: string, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> } | { id?: never, additionalDocuments?: never }) & ({ id: string, ledger: { __typename: 'Ledger', records: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> } & ({ validate:
| ({ matches: Array<string> } | { matches?: never }) & ({ differences: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> } | { differences?: never })
| Record<PropertyKey, never>
} | { validate?: never }) } | { id?: never, ledger?: never }) & ({ id: string, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
> } | { id?: never, transactions?: never }) & ({ __typename: 'InternalTransferCharge', id: string } | { __typename: 'InternalTransferCharge', id?: never }) & ({ __typename: 'InternalTransferCharge', id: string } | { __typename: 'InternalTransferCharge', id?: never }) & ({ __typename: 'InternalTransferCharge', id: string } | { __typename: 'InternalTransferCharge', id?: never }) & ({ id: string, errorsLedger: { validate: { errors: Array<string> } } } | { id?: never, errorsLedger?: never }) & ({ id: string, miscExpenses: Array<{ id: string, description: string | null, invoiceDate: unknown, valueDate: unknown, chargeId: string, amount: { raw: number, formatted: string, currency: Currency }, creditor:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
, debtor:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
}> } | { id?: never, miscExpenses?: never }) & ({ __typename: 'InternalTransferCharge', id: string } | { __typename: 'InternalTransferCharge', id?: never });
type ChargeExpansionFields_MonthlyVatCharge_Fragment = { __typename: 'MonthlyVatCharge', id: string, metadata: { transactionsCount: number, documentsCount: number, receiptsCount: number, invoicesCount: number, ledgerCount: number, miscExpensesCount: number, isLedgerLocked: boolean, openDocuments: boolean } | null, totalAmount: { raw: number } | null } & ({ id: string, additionalDocuments: Array<
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { id: string, image: unknown }
> } | { id?: never, additionalDocuments?: never }) & ({ id: string, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> } | { id?: never, additionalDocuments?: never }) & ({ id: string, ledger: { __typename: 'Ledger', records: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> } & ({ validate:
| ({ matches: Array<string> } | { matches?: never }) & ({ differences: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> } | { differences?: never })
| Record<PropertyKey, never>
} | { validate?: never }) } | { id?: never, ledger?: never }) & ({ id: string, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
> } | { id?: never, transactions?: never }) & ({ __typename: 'MonthlyVatCharge', id: string } | { __typename: 'MonthlyVatCharge', id?: never }) & ({ __typename: 'MonthlyVatCharge', id: string } | { __typename: 'MonthlyVatCharge', id?: never }) & ({ __typename: 'MonthlyVatCharge', id: string } | { __typename: 'MonthlyVatCharge', id?: never }) & ({ id: string, errorsLedger: { validate: { errors: Array<string> } } } | { id?: never, errorsLedger?: never }) & ({ id: string, miscExpenses: Array<{ id: string, description: string | null, invoiceDate: unknown, valueDate: unknown, chargeId: string, amount: { raw: number, formatted: string, currency: Currency }, creditor:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
, debtor:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
}> } | { id?: never, miscExpenses?: never }) & ({ __typename: 'MonthlyVatCharge', id: string } | { __typename: 'MonthlyVatCharge', id?: never });
type ChargeExpansionFields_SalaryCharge_Fragment = { __typename: 'SalaryCharge', id: string, metadata: { transactionsCount: number, documentsCount: number, receiptsCount: number, invoicesCount: number, ledgerCount: number, miscExpensesCount: number, isLedgerLocked: boolean, openDocuments: boolean } | null, totalAmount: { raw: number } | null } & ({ id: string, additionalDocuments: Array<
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { id: string, image: unknown }
> } | { id?: never, additionalDocuments?: never }) & ({ id: string, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> } | { id?: never, additionalDocuments?: never }) & ({ id: string, ledger: { __typename: 'Ledger', records: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> } & ({ validate:
| ({ matches: Array<string> } | { matches?: never }) & ({ differences: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> } | { differences?: never })
| Record<PropertyKey, never>
} | { validate?: never }) } | { id?: never, ledger?: never }) & ({ id: string, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
> } | { id?: never, transactions?: never }) & ({ __typename: 'SalaryCharge', id: string } | { __typename: 'SalaryCharge', id?: never }) & ({ __typename: 'SalaryCharge', id: string } | { __typename: 'SalaryCharge', id?: never }) & ({ __typename: 'SalaryCharge', id: string, salaryRecords: Array<{ directAmount: { formatted: string }, baseAmount: { formatted: string } | null, employee: { id: string, name: string } | null, pensionFund: { id: string, name: string } | null, pensionEmployeeAmount: { formatted: string } | null, pensionEmployerAmount: { formatted: string } | null, compensationsAmount: { formatted: string } | null, trainingFund: { id: string, name: string } | null, trainingFundEmployeeAmount: { formatted: string } | null, trainingFundEmployerAmount: { formatted: string } | null, socialSecurityEmployeeAmount: { formatted: string } | null, socialSecurityEmployerAmount: { formatted: string } | null, incomeTaxAmount: { formatted: string } | null, healthInsuranceAmount: { formatted: string } | null }> } | { __typename: 'SalaryCharge', id?: never, salaryRecords?: never }) & ({ id: string, errorsLedger: { validate: { errors: Array<string> } } } | { id?: never, errorsLedger?: never }) & ({ id: string, miscExpenses: Array<{ id: string, description: string | null, invoiceDate: unknown, valueDate: unknown, chargeId: string, amount: { raw: number, formatted: string, currency: Currency }, creditor:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
, debtor:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
}> } | { id?: never, miscExpenses?: never }) & ({ __typename: 'SalaryCharge', id: string } | { __typename: 'SalaryCharge', id?: never });
export type ChargeExpansionFieldsFragment =
| ChargeExpansionFields_BankDepositCharge_Fragment
| ChargeExpansionFields_BusinessTripCharge_Fragment
| ChargeExpansionFields_CommonCharge_Fragment
| ChargeExpansionFields_ConversionCharge_Fragment
| ChargeExpansionFields_CreditcardBankCharge_Fragment
| ChargeExpansionFields_DividendCharge_Fragment
| ChargeExpansionFields_FinancialCharge_Fragment
| ChargeExpansionFields_ForeignSecuritiesCharge_Fragment
| ChargeExpansionFields_InternalTransferCharge_Fragment
| ChargeExpansionFields_MonthlyVatCharge_Fragment
| ChargeExpansionFields_SalaryCharge_Fragment
;
type TableDocumentsFields_BankDepositCharge_Fragment = { id: string, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> };
type TableDocumentsFields_BusinessTripCharge_Fragment = { id: string, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> };
type TableDocumentsFields_CommonCharge_Fragment = { id: string, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> };
type TableDocumentsFields_ConversionCharge_Fragment = { id: string, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> };
type TableDocumentsFields_CreditcardBankCharge_Fragment = { id: string, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> };
type TableDocumentsFields_DividendCharge_Fragment = { id: string, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> };
type TableDocumentsFields_FinancialCharge_Fragment = { id: string, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> };
type TableDocumentsFields_ForeignSecuritiesCharge_Fragment = { id: string, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> };
type TableDocumentsFields_InternalTransferCharge_Fragment = { id: string, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> };
type TableDocumentsFields_MonthlyVatCharge_Fragment = { id: string, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> };
type TableDocumentsFields_SalaryCharge_Fragment = { id: string, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> };
export type TableDocumentsFieldsFragment =
| TableDocumentsFields_BankDepositCharge_Fragment
| TableDocumentsFields_BusinessTripCharge_Fragment
| TableDocumentsFields_CommonCharge_Fragment
| TableDocumentsFields_ConversionCharge_Fragment
| TableDocumentsFields_CreditcardBankCharge_Fragment
| TableDocumentsFields_DividendCharge_Fragment
| TableDocumentsFields_FinancialCharge_Fragment
| TableDocumentsFields_ForeignSecuritiesCharge_Fragment
| TableDocumentsFields_InternalTransferCharge_Fragment
| TableDocumentsFields_MonthlyVatCharge_Fragment
| TableDocumentsFields_SalaryCharge_Fragment
;
type ChargeLedgerRecordsTableFields_BankDepositCharge_Fragment = { id: string, ledger: { __typename: 'Ledger', records: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> } & ({ validate:
| ({ matches: Array<string> } | { matches?: never }) & ({ differences: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> } | { differences?: never })
| Record<PropertyKey, never>
} | { validate?: never }) };
type ChargeLedgerRecordsTableFields_BusinessTripCharge_Fragment = { id: string, ledger: { __typename: 'Ledger', records: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> } & ({ validate:
| ({ matches: Array<string> } | { matches?: never }) & ({ differences: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> } | { differences?: never })
| Record<PropertyKey, never>
} | { validate?: never }) };
type ChargeLedgerRecordsTableFields_CommonCharge_Fragment = { id: string, ledger: { __typename: 'Ledger', records: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> } & ({ validate:
| ({ matches: Array<string> } | { matches?: never }) & ({ differences: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> } | { differences?: never })
| Record<PropertyKey, never>
} | { validate?: never }) };
type ChargeLedgerRecordsTableFields_ConversionCharge_Fragment = { id: string, ledger: { __typename: 'Ledger', records: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> } & ({ validate:
| ({ matches: Array<string> } | { matches?: never }) & ({ differences: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> } | { differences?: never })
| Record<PropertyKey, never>
} | { validate?: never }) };
type ChargeLedgerRecordsTableFields_CreditcardBankCharge_Fragment = { id: string, ledger: { __typename: 'Ledger', records: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> } & ({ validate:
| ({ matches: Array<string> } | { matches?: never }) & ({ differences: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> } | { differences?: never })
| Record<PropertyKey, never>
} | { validate?: never }) };
type ChargeLedgerRecordsTableFields_DividendCharge_Fragment = { id: string, ledger: { __typename: 'Ledger', records: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> } & ({ validate:
| ({ matches: Array<string> } | { matches?: never }) & ({ differences: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> } | { differences?: never })
| Record<PropertyKey, never>
} | { validate?: never }) };
type ChargeLedgerRecordsTableFields_FinancialCharge_Fragment = { id: string, ledger: { __typename: 'Ledger', records: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> } & ({ validate:
| ({ matches: Array<string> } | { matches?: never }) & ({ differences: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> } | { differences?: never })
| Record<PropertyKey, never>
} | { validate?: never }) };
type ChargeLedgerRecordsTableFields_ForeignSecuritiesCharge_Fragment = { id: string, ledger: { __typename: 'Ledger', records: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> } & ({ validate:
| ({ matches: Array<string> } | { matches?: never }) & ({ differences: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> } | { differences?: never })
| Record<PropertyKey, never>
} | { validate?: never }) };
type ChargeLedgerRecordsTableFields_InternalTransferCharge_Fragment = { id: string, ledger: { __typename: 'Ledger', records: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> } & ({ validate:
| ({ matches: Array<string> } | { matches?: never }) & ({ differences: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> } | { differences?: never })
| Record<PropertyKey, never>
} | { validate?: never }) };
type ChargeLedgerRecordsTableFields_MonthlyVatCharge_Fragment = { id: string, ledger: { __typename: 'Ledger', records: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> } & ({ validate:
| ({ matches: Array<string> } | { matches?: never }) & ({ differences: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> } | { differences?: never })
| Record<PropertyKey, never>
} | { validate?: never }) };
type ChargeLedgerRecordsTableFields_SalaryCharge_Fragment = { id: string, ledger: { __typename: 'Ledger', records: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> } & ({ validate:
| ({ matches: Array<string> } | { matches?: never }) & ({ differences: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> } | { differences?: never })
| Record<PropertyKey, never>
} | { validate?: never }) };
export type ChargeLedgerRecordsTableFieldsFragment =
| ChargeLedgerRecordsTableFields_BankDepositCharge_Fragment
| ChargeLedgerRecordsTableFields_BusinessTripCharge_Fragment
| ChargeLedgerRecordsTableFields_CommonCharge_Fragment
| ChargeLedgerRecordsTableFields_ConversionCharge_Fragment
| ChargeLedgerRecordsTableFields_CreditcardBankCharge_Fragment
| ChargeLedgerRecordsTableFields_DividendCharge_Fragment
| ChargeLedgerRecordsTableFields_FinancialCharge_Fragment
| ChargeLedgerRecordsTableFields_ForeignSecuritiesCharge_Fragment
| ChargeLedgerRecordsTableFields_InternalTransferCharge_Fragment
| ChargeLedgerRecordsTableFields_MonthlyVatCharge_Fragment
| ChargeLedgerRecordsTableFields_SalaryCharge_Fragment
;
type ChargeTableTransactionsFields_BankDepositCharge_Fragment = { id: string, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
> };
type ChargeTableTransactionsFields_BusinessTripCharge_Fragment = { id: string, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
> };
type ChargeTableTransactionsFields_CommonCharge_Fragment = { id: string, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
> };
type ChargeTableTransactionsFields_ConversionCharge_Fragment = { id: string, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
> };
type ChargeTableTransactionsFields_CreditcardBankCharge_Fragment = { id: string, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
> };
type ChargeTableTransactionsFields_DividendCharge_Fragment = { id: string, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
> };
type ChargeTableTransactionsFields_FinancialCharge_Fragment = { id: string, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
> };
type ChargeTableTransactionsFields_ForeignSecuritiesCharge_Fragment = { id: string, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
> };
type ChargeTableTransactionsFields_InternalTransferCharge_Fragment = { id: string, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
> };
type ChargeTableTransactionsFields_MonthlyVatCharge_Fragment = { id: string, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
> };
type ChargeTableTransactionsFields_SalaryCharge_Fragment = { id: string, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
> };
export type ChargeTableTransactionsFieldsFragment =
| ChargeTableTransactionsFields_BankDepositCharge_Fragment
| ChargeTableTransactionsFields_BusinessTripCharge_Fragment
| ChargeTableTransactionsFields_CommonCharge_Fragment
| ChargeTableTransactionsFields_ConversionCharge_Fragment
| ChargeTableTransactionsFields_CreditcardBankCharge_Fragment
| ChargeTableTransactionsFields_DividendCharge_Fragment
| ChargeTableTransactionsFields_FinancialCharge_Fragment
| ChargeTableTransactionsFields_ForeignSecuritiesCharge_Fragment
| ChargeTableTransactionsFields_InternalTransferCharge_Fragment
| ChargeTableTransactionsFields_MonthlyVatCharge_Fragment
| ChargeTableTransactionsFields_SalaryCharge_Fragment
;
export type ChargesExtendedInfoBatchQueryVariables = Exact<{
chargeIDs: Array<string> | string;
}>;
export type ChargesExtendedInfoBatchQuery = { chargesByIDs: Array<
| { __typename: 'BankDepositCharge', id: string, metadata: { transactionsCount: number, documentsCount: number, receiptsCount: number, invoicesCount: number, ledgerCount: number, miscExpensesCount: number, isLedgerLocked: boolean, openDocuments: boolean } | null, totalAmount: { raw: number } | null }
| { __typename: 'BusinessTripCharge', id: string, businessTrip: { id: string, name: string, purpose: string | null, accountantApproval: AccountantStatus, dates: { start: unknown, end: unknown } | null, destination: { id: string, name: string } | null } | null, metadata: { transactionsCount: number, documentsCount: number, receiptsCount: number, invoicesCount: number, ledgerCount: number, miscExpensesCount: number, isLedgerLocked: boolean, openDocuments: boolean } | null, totalAmount: { raw: number } | null }
| { __typename: 'CommonCharge', id: string, metadata: { transactionsCount: number, documentsCount: number, receiptsCount: number, invoicesCount: number, ledgerCount: number, miscExpensesCount: number, isLedgerLocked: boolean, openDocuments: boolean } | null, totalAmount: { raw: number } | null }
| { __typename: 'ConversionCharge', id: string, metadata: { transactionsCount: number, documentsCount: number, receiptsCount: number, invoicesCount: number, ledgerCount: number, miscExpensesCount: number, isLedgerLocked: boolean, openDocuments: boolean } | null, totalAmount: { raw: number } | null }
| { __typename: 'CreditcardBankCharge', id: string, metadata: { transactionsCount: number, documentsCount: number, receiptsCount: number, invoicesCount: number, ledgerCount: number, miscExpensesCount: number, isLedgerLocked: boolean, openDocuments: boolean } | null, totalAmount: { raw: number } | null }
| { __typename: 'DividendCharge', id: string, metadata: { transactionsCount: number, documentsCount: number, receiptsCount: number, invoicesCount: number, ledgerCount: number, miscExpensesCount: number, isLedgerLocked: boolean, openDocuments: boolean } | null, totalAmount: { raw: number } | null }
| { __typename: 'FinancialCharge', id: string, metadata: { transactionsCount: number, documentsCount: number, receiptsCount: number, invoicesCount: number, ledgerCount: number, miscExpensesCount: number, isLedgerLocked: boolean, openDocuments: boolean } | null, totalAmount: { raw: number } | null }
| { __typename: 'ForeignSecuritiesCharge', id: string, metadata: { transactionsCount: number, documentsCount: number, receiptsCount: number, invoicesCount: number, ledgerCount: number, miscExpensesCount: number, isLedgerLocked: boolean, openDocuments: boolean } | null, totalAmount: { raw: number } | null }
| { __typename: 'InternalTransferCharge', id: string, metadata: { transactionsCount: number, documentsCount: number, receiptsCount: number, invoicesCount: number, ledgerCount: number, miscExpensesCount: number, isLedgerLocked: boolean, openDocuments: boolean } | null, totalAmount: { raw: number } | null }
| { __typename: 'MonthlyVatCharge', id: string, metadata: { transactionsCount: number, documentsCount: number, receiptsCount: number, invoicesCount: number, ledgerCount: number, miscExpensesCount: number, isLedgerLocked: boolean, openDocuments: boolean } | null, totalAmount: { raw: number } | null }
| { __typename: 'SalaryCharge', id: string, metadata: { transactionsCount: number, documentsCount: number, receiptsCount: number, invoicesCount: number, ledgerCount: number, miscExpensesCount: number, isLedgerLocked: boolean, openDocuments: boolean } | null, totalAmount: { raw: number } | null }
> };
export type RefetchChargeForChargesTableQueryVariables = Exact<{
chargeId: string;
}>;
export type RefetchChargeForChargesTableQuery = { charge:
| { __typename: 'BankDepositCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'BusinessTripCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, businessTrip: { id: string, name: string } | null, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'CommonCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'ConversionCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'CreditcardBankCharge', id: string, validCreditCardAmount: boolean, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'DividendCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'FinancialCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'ForeignSecuritiesCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'InternalTransferCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'MonthlyVatCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'SalaryCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
};
type ChargesTableSuggestionsFields_BankDepositCharge_Fragment = { id: string, missingInfoSuggestions: { description: string | null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }> } | null };
type ChargesTableSuggestionsFields_BusinessTripCharge_Fragment = { id: string, missingInfoSuggestions: { description: string | null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }> } | null };
type ChargesTableSuggestionsFields_CommonCharge_Fragment = { id: string, missingInfoSuggestions: { description: string | null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }> } | null };
type ChargesTableSuggestionsFields_ConversionCharge_Fragment = { id: string, missingInfoSuggestions: { description: string | null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }> } | null };
type ChargesTableSuggestionsFields_CreditcardBankCharge_Fragment = { id: string, missingInfoSuggestions: { description: string | null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }> } | null };
type ChargesTableSuggestionsFields_DividendCharge_Fragment = { id: string, missingInfoSuggestions: { description: string | null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }> } | null };
type ChargesTableSuggestionsFields_FinancialCharge_Fragment = { id: string, missingInfoSuggestions: { description: string | null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }> } | null };
type ChargesTableSuggestionsFields_ForeignSecuritiesCharge_Fragment = { id: string, missingInfoSuggestions: { description: string | null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }> } | null };
type ChargesTableSuggestionsFields_InternalTransferCharge_Fragment = { id: string, missingInfoSuggestions: { description: string | null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }> } | null };
type ChargesTableSuggestionsFields_MonthlyVatCharge_Fragment = { id: string, missingInfoSuggestions: { description: string | null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }> } | null };
type ChargesTableSuggestionsFields_SalaryCharge_Fragment = { id: string, missingInfoSuggestions: { description: string | null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }> } | null };
export type ChargesTableSuggestionsFieldsFragment =
| ChargesTableSuggestionsFields_BankDepositCharge_Fragment
| ChargesTableSuggestionsFields_BusinessTripCharge_Fragment
| ChargesTableSuggestionsFields_CommonCharge_Fragment
| ChargesTableSuggestionsFields_ConversionCharge_Fragment
| ChargesTableSuggestionsFields_CreditcardBankCharge_Fragment
| ChargesTableSuggestionsFields_DividendCharge_Fragment
| ChargesTableSuggestionsFields_FinancialCharge_Fragment
| ChargesTableSuggestionsFields_ForeignSecuritiesCharge_Fragment
| ChargesTableSuggestionsFields_InternalTransferCharge_Fragment
| ChargesTableSuggestionsFields_MonthlyVatCharge_Fragment
| ChargesTableSuggestionsFields_SalaryCharge_Fragment
;
type ChargeForChargesTableFields_BankDepositCharge_Fragment = { __typename: 'BankDepositCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null } & ({ id: string, missingInfoSuggestions: { description: string | null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }> } | null } | { id?: never, missingInfoSuggestions?: never });
type ChargeForChargesTableFields_BusinessTripCharge_Fragment = { __typename: 'BusinessTripCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, businessTrip: { id: string, name: string } | null, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null } & ({ id: string, missingInfoSuggestions: { description: string | null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }> } | null } | { id?: never, missingInfoSuggestions?: never });
type ChargeForChargesTableFields_CommonCharge_Fragment = { __typename: 'CommonCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null } & ({ id: string, missingInfoSuggestions: { description: string | null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }> } | null } | { id?: never, missingInfoSuggestions?: never });
type ChargeForChargesTableFields_ConversionCharge_Fragment = { __typename: 'ConversionCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null } & ({ id: string, missingInfoSuggestions: { description: string | null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }> } | null } | { id?: never, missingInfoSuggestions?: never });
type ChargeForChargesTableFields_CreditcardBankCharge_Fragment = { __typename: 'CreditcardBankCharge', validCreditCardAmount: boolean, id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null } & ({ id: string, missingInfoSuggestions: { description: string | null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }> } | null } | { id?: never, missingInfoSuggestions?: never });
type ChargeForChargesTableFields_DividendCharge_Fragment = { __typename: 'DividendCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null } & ({ id: string, missingInfoSuggestions: { description: string | null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }> } | null } | { id?: never, missingInfoSuggestions?: never });
type ChargeForChargesTableFields_FinancialCharge_Fragment = { __typename: 'FinancialCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null } & ({ id: string, missingInfoSuggestions: { description: string | null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }> } | null } | { id?: never, missingInfoSuggestions?: never });
type ChargeForChargesTableFields_ForeignSecuritiesCharge_Fragment = { __typename: 'ForeignSecuritiesCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null } & ({ id: string, missingInfoSuggestions: { description: string | null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }> } | null } | { id?: never, missingInfoSuggestions?: never });
type ChargeForChargesTableFields_InternalTransferCharge_Fragment = { __typename: 'InternalTransferCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null } & ({ id: string, missingInfoSuggestions: { description: string | null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }> } | null } | { id?: never, missingInfoSuggestions?: never });
type ChargeForChargesTableFields_MonthlyVatCharge_Fragment = { __typename: 'MonthlyVatCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null } & ({ id: string, missingInfoSuggestions: { description: string | null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }> } | null } | { id?: never, missingInfoSuggestions?: never });
type ChargeForChargesTableFields_SalaryCharge_Fragment = { __typename: 'SalaryCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null } & ({ id: string, missingInfoSuggestions: { description: string | null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }> } | null } | { id?: never, missingInfoSuggestions?: never });
export type ChargeForChargesTableFieldsFragment =
| ChargeForChargesTableFields_BankDepositCharge_Fragment
| ChargeForChargesTableFields_BusinessTripCharge_Fragment
| ChargeForChargesTableFields_CommonCharge_Fragment
| ChargeForChargesTableFields_ConversionCharge_Fragment
| ChargeForChargesTableFields_CreditcardBankCharge_Fragment
| ChargeForChargesTableFields_DividendCharge_Fragment
| ChargeForChargesTableFields_FinancialCharge_Fragment
| ChargeForChargesTableFields_ForeignSecuritiesCharge_Fragment
| ChargeForChargesTableFields_InternalTransferCharge_Fragment
| ChargeForChargesTableFields_MonthlyVatCharge_Fragment
| ChargeForChargesTableFields_SalaryCharge_Fragment
;
type ChargeForCsvExportFields_BankDepositCharge_Fragment = { __typename: 'BankDepositCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, validationData: { isValid: boolean, missingInfo: Array<MissingChargeInfo> } | null, missingInfoSuggestions: { description: string | null, tags: Array<{ id: string, name: string }> } | null, metadata: { transactionsCount: number, documentsCount: number, invoicesCount: number, receiptsCount: number, ledgerCount: number, miscExpensesCount: number, openDocuments: boolean, invalidLedger: LedgerValidationStatus } | null, ledger: { balance: { isBalanced: boolean } | null, validate: { isValid: boolean, errors: Array<string> } }, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
>, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> };
type ChargeForCsvExportFields_BusinessTripCharge_Fragment = { __typename: 'BusinessTripCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, businessTrip: { id: string, name: string } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, validationData: { isValid: boolean, missingInfo: Array<MissingChargeInfo> } | null, missingInfoSuggestions: { description: string | null, tags: Array<{ id: string, name: string }> } | null, metadata: { transactionsCount: number, documentsCount: number, invoicesCount: number, receiptsCount: number, ledgerCount: number, miscExpensesCount: number, openDocuments: boolean, invalidLedger: LedgerValidationStatus } | null, ledger: { balance: { isBalanced: boolean } | null, validate: { isValid: boolean, errors: Array<string> } }, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
>, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> };
type ChargeForCsvExportFields_CommonCharge_Fragment = { __typename: 'CommonCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, validationData: { isValid: boolean, missingInfo: Array<MissingChargeInfo> } | null, missingInfoSuggestions: { description: string | null, tags: Array<{ id: string, name: string }> } | null, metadata: { transactionsCount: number, documentsCount: number, invoicesCount: number, receiptsCount: number, ledgerCount: number, miscExpensesCount: number, openDocuments: boolean, invalidLedger: LedgerValidationStatus } | null, ledger: { balance: { isBalanced: boolean } | null, validate: { isValid: boolean, errors: Array<string> } }, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
>, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> };
type ChargeForCsvExportFields_ConversionCharge_Fragment = { __typename: 'ConversionCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, validationData: { isValid: boolean, missingInfo: Array<MissingChargeInfo> } | null, missingInfoSuggestions: { description: string | null, tags: Array<{ id: string, name: string }> } | null, metadata: { transactionsCount: number, documentsCount: number, invoicesCount: number, receiptsCount: number, ledgerCount: number, miscExpensesCount: number, openDocuments: boolean, invalidLedger: LedgerValidationStatus } | null, ledger: { balance: { isBalanced: boolean } | null, validate: { isValid: boolean, errors: Array<string> } }, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
>, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> };
type ChargeForCsvExportFields_CreditcardBankCharge_Fragment = { __typename: 'CreditcardBankCharge', validCreditCardAmount: boolean, id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, validationData: { isValid: boolean, missingInfo: Array<MissingChargeInfo> } | null, missingInfoSuggestions: { description: string | null, tags: Array<{ id: string, name: string }> } | null, metadata: { transactionsCount: number, documentsCount: number, invoicesCount: number, receiptsCount: number, ledgerCount: number, miscExpensesCount: number, openDocuments: boolean, invalidLedger: LedgerValidationStatus } | null, ledger: { balance: { isBalanced: boolean } | null, validate: { isValid: boolean, errors: Array<string> } }, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
>, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> };
type ChargeForCsvExportFields_DividendCharge_Fragment = { __typename: 'DividendCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, validationData: { isValid: boolean, missingInfo: Array<MissingChargeInfo> } | null, missingInfoSuggestions: { description: string | null, tags: Array<{ id: string, name: string }> } | null, metadata: { transactionsCount: number, documentsCount: number, invoicesCount: number, receiptsCount: number, ledgerCount: number, miscExpensesCount: number, openDocuments: boolean, invalidLedger: LedgerValidationStatus } | null, ledger: { balance: { isBalanced: boolean } | null, validate: { isValid: boolean, errors: Array<string> } }, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
>, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> };
type ChargeForCsvExportFields_FinancialCharge_Fragment = { __typename: 'FinancialCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, validationData: { isValid: boolean, missingInfo: Array<MissingChargeInfo> } | null, missingInfoSuggestions: { description: string | null, tags: Array<{ id: string, name: string }> } | null, metadata: { transactionsCount: number, documentsCount: number, invoicesCount: number, receiptsCount: number, ledgerCount: number, miscExpensesCount: number, openDocuments: boolean, invalidLedger: LedgerValidationStatus } | null, ledger: { balance: { isBalanced: boolean } | null, validate: { isValid: boolean, errors: Array<string> } }, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
>, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> };
type ChargeForCsvExportFields_ForeignSecuritiesCharge_Fragment = { __typename: 'ForeignSecuritiesCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, validationData: { isValid: boolean, missingInfo: Array<MissingChargeInfo> } | null, missingInfoSuggestions: { description: string | null, tags: Array<{ id: string, name: string }> } | null, metadata: { transactionsCount: number, documentsCount: number, invoicesCount: number, receiptsCount: number, ledgerCount: number, miscExpensesCount: number, openDocuments: boolean, invalidLedger: LedgerValidationStatus } | null, ledger: { balance: { isBalanced: boolean } | null, validate: { isValid: boolean, errors: Array<string> } }, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
>, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> };
type ChargeForCsvExportFields_InternalTransferCharge_Fragment = { __typename: 'InternalTransferCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, validationData: { isValid: boolean, missingInfo: Array<MissingChargeInfo> } | null, missingInfoSuggestions: { description: string | null, tags: Array<{ id: string, name: string }> } | null, metadata: { transactionsCount: number, documentsCount: number, invoicesCount: number, receiptsCount: number, ledgerCount: number, miscExpensesCount: number, openDocuments: boolean, invalidLedger: LedgerValidationStatus } | null, ledger: { balance: { isBalanced: boolean } | null, validate: { isValid: boolean, errors: Array<string> } }, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
>, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> };
type ChargeForCsvExportFields_MonthlyVatCharge_Fragment = { __typename: 'MonthlyVatCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, validationData: { isValid: boolean, missingInfo: Array<MissingChargeInfo> } | null, missingInfoSuggestions: { description: string | null, tags: Array<{ id: string, name: string }> } | null, metadata: { transactionsCount: number, documentsCount: number, invoicesCount: number, receiptsCount: number, ledgerCount: number, miscExpensesCount: number, openDocuments: boolean, invalidLedger: LedgerValidationStatus } | null, ledger: { balance: { isBalanced: boolean } | null, validate: { isValid: boolean, errors: Array<string> } }, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
>, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> };
type ChargeForCsvExportFields_SalaryCharge_Fragment = { __typename: 'SalaryCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, validationData: { isValid: boolean, missingInfo: Array<MissingChargeInfo> } | null, missingInfoSuggestions: { description: string | null, tags: Array<{ id: string, name: string }> } | null, metadata: { transactionsCount: number, documentsCount: number, invoicesCount: number, receiptsCount: number, ledgerCount: number, miscExpensesCount: number, openDocuments: boolean, invalidLedger: LedgerValidationStatus } | null, ledger: { balance: { isBalanced: boolean } | null, validate: { isValid: boolean, errors: Array<string> } }, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
>, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> };
export type ChargeForCsvExportFieldsFragment =
| ChargeForCsvExportFields_BankDepositCharge_Fragment
| ChargeForCsvExportFields_BusinessTripCharge_Fragment
| ChargeForCsvExportFields_CommonCharge_Fragment
| ChargeForCsvExportFields_ConversionCharge_Fragment
| ChargeForCsvExportFields_CreditcardBankCharge_Fragment
| ChargeForCsvExportFields_DividendCharge_Fragment
| ChargeForCsvExportFields_FinancialCharge_Fragment
| ChargeForCsvExportFields_ForeignSecuritiesCharge_Fragment
| ChargeForCsvExportFields_InternalTransferCharge_Fragment
| ChargeForCsvExportFields_MonthlyVatCharge_Fragment
| ChargeForCsvExportFields_SalaryCharge_Fragment
;
export type ChargesForCsvExportQueryVariables = Exact<{
chargeIDs: Array<string> | string;
}>;
export type ChargesForCsvExportQuery = { chargesByIDs: Array<
| { __typename: 'BankDepositCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, validationData: { isValid: boolean, missingInfo: Array<MissingChargeInfo> } | null, missingInfoSuggestions: { description: string | null, tags: Array<{ id: string, name: string }> } | null, metadata: { transactionsCount: number, documentsCount: number, invoicesCount: number, receiptsCount: number, ledgerCount: number, miscExpensesCount: number, openDocuments: boolean, invalidLedger: LedgerValidationStatus } | null, ledger: { balance: { isBalanced: boolean } | null, validate: { isValid: boolean, errors: Array<string> } }, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
>, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> }
| { __typename: 'BusinessTripCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, businessTrip: { id: string, name: string } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, validationData: { isValid: boolean, missingInfo: Array<MissingChargeInfo> } | null, missingInfoSuggestions: { description: string | null, tags: Array<{ id: string, name: string }> } | null, metadata: { transactionsCount: number, documentsCount: number, invoicesCount: number, receiptsCount: number, ledgerCount: number, miscExpensesCount: number, openDocuments: boolean, invalidLedger: LedgerValidationStatus } | null, ledger: { balance: { isBalanced: boolean } | null, validate: { isValid: boolean, errors: Array<string> } }, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
>, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> }
| { __typename: 'CommonCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, validationData: { isValid: boolean, missingInfo: Array<MissingChargeInfo> } | null, missingInfoSuggestions: { description: string | null, tags: Array<{ id: string, name: string }> } | null, metadata: { transactionsCount: number, documentsCount: number, invoicesCount: number, receiptsCount: number, ledgerCount: number, miscExpensesCount: number, openDocuments: boolean, invalidLedger: LedgerValidationStatus } | null, ledger: { balance: { isBalanced: boolean } | null, validate: { isValid: boolean, errors: Array<string> } }, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
>, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> }
| { __typename: 'ConversionCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, validationData: { isValid: boolean, missingInfo: Array<MissingChargeInfo> } | null, missingInfoSuggestions: { description: string | null, tags: Array<{ id: string, name: string }> } | null, metadata: { transactionsCount: number, documentsCount: number, invoicesCount: number, receiptsCount: number, ledgerCount: number, miscExpensesCount: number, openDocuments: boolean, invalidLedger: LedgerValidationStatus } | null, ledger: { balance: { isBalanced: boolean } | null, validate: { isValid: boolean, errors: Array<string> } }, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
>, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> }
| { __typename: 'CreditcardBankCharge', id: string, validCreditCardAmount: boolean, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, validationData: { isValid: boolean, missingInfo: Array<MissingChargeInfo> } | null, missingInfoSuggestions: { description: string | null, tags: Array<{ id: string, name: string }> } | null, metadata: { transactionsCount: number, documentsCount: number, invoicesCount: number, receiptsCount: number, ledgerCount: number, miscExpensesCount: number, openDocuments: boolean, invalidLedger: LedgerValidationStatus } | null, ledger: { balance: { isBalanced: boolean } | null, validate: { isValid: boolean, errors: Array<string> } }, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
>, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> }
| { __typename: 'DividendCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, validationData: { isValid: boolean, missingInfo: Array<MissingChargeInfo> } | null, missingInfoSuggestions: { description: string | null, tags: Array<{ id: string, name: string }> } | null, metadata: { transactionsCount: number, documentsCount: number, invoicesCount: number, receiptsCount: number, ledgerCount: number, miscExpensesCount: number, openDocuments: boolean, invalidLedger: LedgerValidationStatus } | null, ledger: { balance: { isBalanced: boolean } | null, validate: { isValid: boolean, errors: Array<string> } }, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
>, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> }
| { __typename: 'FinancialCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, validationData: { isValid: boolean, missingInfo: Array<MissingChargeInfo> } | null, missingInfoSuggestions: { description: string | null, tags: Array<{ id: string, name: string }> } | null, metadata: { transactionsCount: number, documentsCount: number, invoicesCount: number, receiptsCount: number, ledgerCount: number, miscExpensesCount: number, openDocuments: boolean, invalidLedger: LedgerValidationStatus } | null, ledger: { balance: { isBalanced: boolean } | null, validate: { isValid: boolean, errors: Array<string> } }, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
>, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> }
| { __typename: 'ForeignSecuritiesCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, validationData: { isValid: boolean, missingInfo: Array<MissingChargeInfo> } | null, missingInfoSuggestions: { description: string | null, tags: Array<{ id: string, name: string }> } | null, metadata: { transactionsCount: number, documentsCount: number, invoicesCount: number, receiptsCount: number, ledgerCount: number, miscExpensesCount: number, openDocuments: boolean, invalidLedger: LedgerValidationStatus } | null, ledger: { balance: { isBalanced: boolean } | null, validate: { isValid: boolean, errors: Array<string> } }, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
>, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> }
| { __typename: 'InternalTransferCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, validationData: { isValid: boolean, missingInfo: Array<MissingChargeInfo> } | null, missingInfoSuggestions: { description: string | null, tags: Array<{ id: string, name: string }> } | null, metadata: { transactionsCount: number, documentsCount: number, invoicesCount: number, receiptsCount: number, ledgerCount: number, miscExpensesCount: number, openDocuments: boolean, invalidLedger: LedgerValidationStatus } | null, ledger: { balance: { isBalanced: boolean } | null, validate: { isValid: boolean, errors: Array<string> } }, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
>, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> }
| { __typename: 'MonthlyVatCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, validationData: { isValid: boolean, missingInfo: Array<MissingChargeInfo> } | null, missingInfoSuggestions: { description: string | null, tags: Array<{ id: string, name: string }> } | null, metadata: { transactionsCount: number, documentsCount: number, invoicesCount: number, receiptsCount: number, ledgerCount: number, miscExpensesCount: number, openDocuments: boolean, invalidLedger: LedgerValidationStatus } | null, ledger: { balance: { isBalanced: boolean } | null, validate: { isValid: boolean, errors: Array<string> } }, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
>, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> }
| { __typename: 'SalaryCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, validationData: { isValid: boolean, missingInfo: Array<MissingChargeInfo> } | null, missingInfoSuggestions: { description: string | null, tags: Array<{ id: string, name: string }> } | null, metadata: { transactionsCount: number, documentsCount: number, invoicesCount: number, receiptsCount: number, ledgerCount: number, miscExpensesCount: number, openDocuments: boolean, invalidLedger: LedgerValidationStatus } | null, ledger: { balance: { isBalanced: boolean } | null, validate: { isValid: boolean, errors: Array<string> } }, transactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
>, additionalDocuments: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> }
> };
export type BankDepositInfoQueryVariables = Exact<{
chargeId: string;
}>;
export type BankDepositInfoQuery = { depositByCharge: { id: string, name: string, isOpen: boolean, metadata: { id: string, currentBalance: { formatted: string }, transactions: Array<
| { id: string, chargeId: string, isFee: boolean | null, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, chargeId: string, isFee: boolean | null, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
> } } | null };
export type ChargeMatchesQueryVariables = Exact<{
chargeId: string;
}>;
export type ChargeMatchesQuery = { findChargeMatches: { matches: Array<{ chargeId: string, confidenceScore: number, charge:
| { __typename: 'BankDepositCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null }
| { __typename: 'BusinessTripCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null }
| { __typename: 'CommonCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null }
| { __typename: 'ConversionCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null }
| { __typename: 'CreditcardBankCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null }
| { __typename: 'DividendCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null }
| { __typename: 'FinancialCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null }
| { __typename: 'ForeignSecuritiesCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null }
| { __typename: 'InternalTransferCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null }
| { __typename: 'MonthlyVatCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null }
| { __typename: 'SalaryCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null }
}> } };
type ConversionChargeInfo_BankDepositCharge_Fragment = { __typename: 'BankDepositCharge', id: string };
type ConversionChargeInfo_BusinessTripCharge_Fragment = { __typename: 'BusinessTripCharge', id: string };
type ConversionChargeInfo_CommonCharge_Fragment = { __typename: 'CommonCharge', id: string };
type ConversionChargeInfo_ConversionCharge_Fragment = { __typename: 'ConversionCharge', id: string, eventRate: { from: Currency, to: Currency, rate: number } | null, officialRate: { from: Currency, to: Currency, rate: number } | null };
type ConversionChargeInfo_CreditcardBankCharge_Fragment = { __typename: 'CreditcardBankCharge', id: string };
type ConversionChargeInfo_DividendCharge_Fragment = { __typename: 'DividendCharge', id: string };
type ConversionChargeInfo_FinancialCharge_Fragment = { __typename: 'FinancialCharge', id: string };
type ConversionChargeInfo_ForeignSecuritiesCharge_Fragment = { __typename: 'ForeignSecuritiesCharge', id: string };
type ConversionChargeInfo_InternalTransferCharge_Fragment = { __typename: 'InternalTransferCharge', id: string };
type ConversionChargeInfo_MonthlyVatCharge_Fragment = { __typename: 'MonthlyVatCharge', id: string };
type ConversionChargeInfo_SalaryCharge_Fragment = { __typename: 'SalaryCharge', id: string };
export type ConversionChargeInfoFragment =
| ConversionChargeInfo_BankDepositCharge_Fragment
| ConversionChargeInfo_BusinessTripCharge_Fragment
| ConversionChargeInfo_CommonCharge_Fragment
| ConversionChargeInfo_ConversionCharge_Fragment
| ConversionChargeInfo_CreditcardBankCharge_Fragment
| ConversionChargeInfo_DividendCharge_Fragment
| ConversionChargeInfo_FinancialCharge_Fragment
| ConversionChargeInfo_ForeignSecuritiesCharge_Fragment
| ConversionChargeInfo_InternalTransferCharge_Fragment
| ConversionChargeInfo_MonthlyVatCharge_Fragment
| ConversionChargeInfo_SalaryCharge_Fragment
;
type CreditcardBankChargeInfo_BankDepositCharge_Fragment = { __typename: 'BankDepositCharge', id: string };
type CreditcardBankChargeInfo_BusinessTripCharge_Fragment = { __typename: 'BusinessTripCharge', id: string };
type CreditcardBankChargeInfo_CommonCharge_Fragment = { __typename: 'CommonCharge', id: string };
type CreditcardBankChargeInfo_ConversionCharge_Fragment = { __typename: 'ConversionCharge', id: string };
type CreditcardBankChargeInfo_CreditcardBankCharge_Fragment = { __typename: 'CreditcardBankCharge', id: string, creditCardTransactions: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
> };
type CreditcardBankChargeInfo_DividendCharge_Fragment = { __typename: 'DividendCharge', id: string };
type CreditcardBankChargeInfo_FinancialCharge_Fragment = { __typename: 'FinancialCharge', id: string };
type CreditcardBankChargeInfo_ForeignSecuritiesCharge_Fragment = { __typename: 'ForeignSecuritiesCharge', id: string };
type CreditcardBankChargeInfo_InternalTransferCharge_Fragment = { __typename: 'InternalTransferCharge', id: string };
type CreditcardBankChargeInfo_MonthlyVatCharge_Fragment = { __typename: 'MonthlyVatCharge', id: string };
type CreditcardBankChargeInfo_SalaryCharge_Fragment = { __typename: 'SalaryCharge', id: string };
export type CreditcardBankChargeInfoFragment =
| CreditcardBankChargeInfo_BankDepositCharge_Fragment
| CreditcardBankChargeInfo_BusinessTripCharge_Fragment
| CreditcardBankChargeInfo_CommonCharge_Fragment
| CreditcardBankChargeInfo_ConversionCharge_Fragment
| CreditcardBankChargeInfo_CreditcardBankCharge_Fragment
| CreditcardBankChargeInfo_DividendCharge_Fragment
| CreditcardBankChargeInfo_FinancialCharge_Fragment
| CreditcardBankChargeInfo_ForeignSecuritiesCharge_Fragment
| CreditcardBankChargeInfo_InternalTransferCharge_Fragment
| CreditcardBankChargeInfo_MonthlyVatCharge_Fragment
| CreditcardBankChargeInfo_SalaryCharge_Fragment
;
type ExchangeRatesInfo_BankDepositCharge_Fragment = { __typename: 'BankDepositCharge', id: string };
type ExchangeRatesInfo_BusinessTripCharge_Fragment = { __typename: 'BusinessTripCharge', id: string };
type ExchangeRatesInfo_CommonCharge_Fragment = { __typename: 'CommonCharge', id: string };
type ExchangeRatesInfo_ConversionCharge_Fragment = { __typename: 'ConversionCharge', id: string };
type ExchangeRatesInfo_CreditcardBankCharge_Fragment = { __typename: 'CreditcardBankCharge', id: string };
type ExchangeRatesInfo_DividendCharge_Fragment = { __typename: 'DividendCharge', id: string };
type ExchangeRatesInfo_FinancialCharge_Fragment = { __typename: 'FinancialCharge', id: string, exchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, ils: number | null, jpy: number | null, sek: number | null, usd: number | null, eth: number | null, grt: number | null, usdc: number | null } | null };
type ExchangeRatesInfo_ForeignSecuritiesCharge_Fragment = { __typename: 'ForeignSecuritiesCharge', id: string };
type ExchangeRatesInfo_InternalTransferCharge_Fragment = { __typename: 'InternalTransferCharge', id: string };
type ExchangeRatesInfo_MonthlyVatCharge_Fragment = { __typename: 'MonthlyVatCharge', id: string };
type ExchangeRatesInfo_SalaryCharge_Fragment = { __typename: 'SalaryCharge', id: string };
export type ExchangeRatesInfoFragment =
| ExchangeRatesInfo_BankDepositCharge_Fragment
| ExchangeRatesInfo_BusinessTripCharge_Fragment
| ExchangeRatesInfo_CommonCharge_Fragment
| ExchangeRatesInfo_ConversionCharge_Fragment
| ExchangeRatesInfo_CreditcardBankCharge_Fragment
| ExchangeRatesInfo_DividendCharge_Fragment
| ExchangeRatesInfo_FinancialCharge_Fragment
| ExchangeRatesInfo_ForeignSecuritiesCharge_Fragment
| ExchangeRatesInfo_InternalTransferCharge_Fragment
| ExchangeRatesInfo_MonthlyVatCharge_Fragment
| ExchangeRatesInfo_SalaryCharge_Fragment
;
type TableMiscExpensesFields_BankDepositCharge_Fragment = { id: string, miscExpenses: Array<{ id: string, description: string | null, invoiceDate: unknown, valueDate: unknown, chargeId: string, amount: { raw: number, formatted: string, currency: Currency }, creditor:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
, debtor:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
}> };
type TableMiscExpensesFields_BusinessTripCharge_Fragment = { id: string, miscExpenses: Array<{ id: string, description: string | null, invoiceDate: unknown, valueDate: unknown, chargeId: string, amount: { raw: number, formatted: string, currency: Currency }, creditor:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
, debtor:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
}> };
type TableMiscExpensesFields_CommonCharge_Fragment = { id: string, miscExpenses: Array<{ id: string, description: string | null, invoiceDate: unknown, valueDate: unknown, chargeId: string, amount: { raw: number, formatted: string, currency: Currency }, creditor:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
, debtor:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
}> };
type TableMiscExpensesFields_ConversionCharge_Fragment = { id: string, miscExpenses: Array<{ id: string, description: string | null, invoiceDate: unknown, valueDate: unknown, chargeId: string, amount: { raw: number, formatted: string, currency: Currency }, creditor:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
, debtor:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
}> };
type TableMiscExpensesFields_CreditcardBankCharge_Fragment = { id: string, miscExpenses: Array<{ id: string, description: string | null, invoiceDate: unknown, valueDate: unknown, chargeId: string, amount: { raw: number, formatted: string, currency: Currency }, creditor:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
, debtor:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
}> };
type TableMiscExpensesFields_DividendCharge_Fragment = { id: string, miscExpenses: Array<{ id: string, description: string | null, invoiceDate: unknown, valueDate: unknown, chargeId: string, amount: { raw: number, formatted: string, currency: Currency }, creditor:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
, debtor:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
}> };
type TableMiscExpensesFields_FinancialCharge_Fragment = { id: string, miscExpenses: Array<{ id: string, description: string | null, invoiceDate: unknown, valueDate: unknown, chargeId: string, amount: { raw: number, formatted: string, currency: Currency }, creditor:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
, debtor:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
}> };
type TableMiscExpensesFields_ForeignSecuritiesCharge_Fragment = { id: string, miscExpenses: Array<{ id: string, description: string | null, invoiceDate: unknown, valueDate: unknown, chargeId: string, amount: { raw: number, formatted: string, currency: Currency }, creditor:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
, debtor:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
}> };
type TableMiscExpensesFields_InternalTransferCharge_Fragment = { id: string, miscExpenses: Array<{ id: string, description: string | null, invoiceDate: unknown, valueDate: unknown, chargeId: string, amount: { raw: number, formatted: string, currency: Currency }, creditor:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
, debtor:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
}> };
type TableMiscExpensesFields_MonthlyVatCharge_Fragment = { id: string, miscExpenses: Array<{ id: string, description: string | null, invoiceDate: unknown, valueDate: unknown, chargeId: string, amount: { raw: number, formatted: string, currency: Currency }, creditor:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
, debtor:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
}> };
type TableMiscExpensesFields_SalaryCharge_Fragment = { id: string, miscExpenses: Array<{ id: string, description: string | null, invoiceDate: unknown, valueDate: unknown, chargeId: string, amount: { raw: number, formatted: string, currency: Currency }, creditor:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
, debtor:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
}> };
export type TableMiscExpensesFieldsFragment =
| TableMiscExpensesFields_BankDepositCharge_Fragment
| TableMiscExpensesFields_BusinessTripCharge_Fragment
| TableMiscExpensesFields_CommonCharge_Fragment
| TableMiscExpensesFields_ConversionCharge_Fragment
| TableMiscExpensesFields_CreditcardBankCharge_Fragment
| TableMiscExpensesFields_DividendCharge_Fragment
| TableMiscExpensesFields_FinancialCharge_Fragment
| TableMiscExpensesFields_ForeignSecuritiesCharge_Fragment
| TableMiscExpensesFields_InternalTransferCharge_Fragment
| TableMiscExpensesFields_MonthlyVatCharge_Fragment
| TableMiscExpensesFields_SalaryCharge_Fragment
;
type TableSalariesFields_BankDepositCharge_Fragment = { __typename: 'BankDepositCharge', id: string };
type TableSalariesFields_BusinessTripCharge_Fragment = { __typename: 'BusinessTripCharge', id: string };
type TableSalariesFields_CommonCharge_Fragment = { __typename: 'CommonCharge', id: string };
type TableSalariesFields_ConversionCharge_Fragment = { __typename: 'ConversionCharge', id: string };
type TableSalariesFields_CreditcardBankCharge_Fragment = { __typename: 'CreditcardBankCharge', id: string };
type TableSalariesFields_DividendCharge_Fragment = { __typename: 'DividendCharge', id: string };
type TableSalariesFields_FinancialCharge_Fragment = { __typename: 'FinancialCharge', id: string };
type TableSalariesFields_ForeignSecuritiesCharge_Fragment = { __typename: 'ForeignSecuritiesCharge', id: string };
type TableSalariesFields_InternalTransferCharge_Fragment = { __typename: 'InternalTransferCharge', id: string };
type TableSalariesFields_MonthlyVatCharge_Fragment = { __typename: 'MonthlyVatCharge', id: string };
type TableSalariesFields_SalaryCharge_Fragment = { __typename: 'SalaryCharge', id: string, salaryRecords: Array<{ directAmount: { formatted: string }, baseAmount: { formatted: string } | null, employee: { id: string, name: string } | null, pensionFund: { id: string, name: string } | null, pensionEmployeeAmount: { formatted: string } | null, pensionEmployerAmount: { formatted: string } | null, compensationsAmount: { formatted: string } | null, trainingFund: { id: string, name: string } | null, trainingFundEmployeeAmount: { formatted: string } | null, trainingFundEmployerAmount: { formatted: string } | null, socialSecurityEmployeeAmount: { formatted: string } | null, socialSecurityEmployerAmount: { formatted: string } | null, incomeTaxAmount: { formatted: string } | null, healthInsuranceAmount: { formatted: string } | null }> };
export type TableSalariesFieldsFragment =
| TableSalariesFields_BankDepositCharge_Fragment
| TableSalariesFields_BusinessTripCharge_Fragment
| TableSalariesFields_CommonCharge_Fragment
| TableSalariesFields_ConversionCharge_Fragment
| TableSalariesFields_CreditcardBankCharge_Fragment
| TableSalariesFields_DividendCharge_Fragment
| TableSalariesFields_FinancialCharge_Fragment
| TableSalariesFields_ForeignSecuritiesCharge_Fragment
| TableSalariesFields_InternalTransferCharge_Fragment
| TableSalariesFields_MonthlyVatCharge_Fragment
| TableSalariesFields_SalaryCharge_Fragment
;
export type IncomeChargesChartQueryVariables = Exact<{
filters?: ChargeFilter | null | undefined;
}>;
export type IncomeChargesChartQuery = { allCharges: { nodes: Array<
| { id: string, transactions: Array<
| { id: string, eventDate: unknown, effectiveDate: unknown, amount: { currency: Currency, formatted: string, raw: number }, eventExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null, debitExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null }
| { id: string, eventDate: unknown, effectiveDate: unknown, amount: { currency: Currency, formatted: string, raw: number }, eventExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null, debitExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null }
> }
| { id: string, transactions: Array<
| { id: string, eventDate: unknown, effectiveDate: unknown, amount: { currency: Currency, formatted: string, raw: number }, eventExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null, debitExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null }
| { id: string, eventDate: unknown, effectiveDate: unknown, amount: { currency: Currency, formatted: string, raw: number }, eventExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null, debitExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null }
> }
| { id: string, transactions: Array<
| { id: string, eventDate: unknown, effectiveDate: unknown, amount: { currency: Currency, formatted: string, raw: number }, eventExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null, debitExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null }
| { id: string, eventDate: unknown, effectiveDate: unknown, amount: { currency: Currency, formatted: string, raw: number }, eventExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null, debitExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null }
> }
| { id: string, transactions: Array<
| { id: string, eventDate: unknown, effectiveDate: unknown, amount: { currency: Currency, formatted: string, raw: number }, eventExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null, debitExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null }
| { id: string, eventDate: unknown, effectiveDate: unknown, amount: { currency: Currency, formatted: string, raw: number }, eventExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null, debitExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null }
> }
| { id: string, transactions: Array<
| { id: string, eventDate: unknown, effectiveDate: unknown, amount: { currency: Currency, formatted: string, raw: number }, eventExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null, debitExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null }
| { id: string, eventDate: unknown, effectiveDate: unknown, amount: { currency: Currency, formatted: string, raw: number }, eventExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null, debitExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null }
> }
| { id: string, transactions: Array<
| { id: string, eventDate: unknown, effectiveDate: unknown, amount: { currency: Currency, formatted: string, raw: number }, eventExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null, debitExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null }
| { id: string, eventDate: unknown, effectiveDate: unknown, amount: { currency: Currency, formatted: string, raw: number }, eventExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null, debitExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null }
> }
| { id: string, transactions: Array<
| { id: string, eventDate: unknown, effectiveDate: unknown, amount: { currency: Currency, formatted: string, raw: number }, eventExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null, debitExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null }
| { id: string, eventDate: unknown, effectiveDate: unknown, amount: { currency: Currency, formatted: string, raw: number }, eventExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null, debitExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null }
> }
| { id: string, transactions: Array<
| { id: string, eventDate: unknown, effectiveDate: unknown, amount: { currency: Currency, formatted: string, raw: number }, eventExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null, debitExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null }
| { id: string, eventDate: unknown, effectiveDate: unknown, amount: { currency: Currency, formatted: string, raw: number }, eventExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null, debitExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null }
> }
| { id: string, transactions: Array<
| { id: string, eventDate: unknown, effectiveDate: unknown, amount: { currency: Currency, formatted: string, raw: number }, eventExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null, debitExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null }
| { id: string, eventDate: unknown, effectiveDate: unknown, amount: { currency: Currency, formatted: string, raw: number }, eventExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null, debitExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null }
> }
| { id: string, transactions: Array<
| { id: string, eventDate: unknown, effectiveDate: unknown, amount: { currency: Currency, formatted: string, raw: number }, eventExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null, debitExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null }
| { id: string, eventDate: unknown, effectiveDate: unknown, amount: { currency: Currency, formatted: string, raw: number }, eventExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null, debitExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null }
> }
| { id: string, transactions: Array<
| { id: string, eventDate: unknown, effectiveDate: unknown, amount: { currency: Currency, formatted: string, raw: number }, eventExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null, debitExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null }
| { id: string, eventDate: unknown, effectiveDate: unknown, amount: { currency: Currency, formatted: string, raw: number }, eventExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null, debitExchangeRates: { aud: number | null, cad: number | null, eur: number | null, gbp: number | null, jpy: number | null, sek: number | null, usd: number | null, date: unknown } | null }
> }
> } };
export type MonthlyIncomeExpenseChartInfoFragment = { monthlyData: Array<{ date: unknown, income: { formatted: string, raw: number }, expense: { formatted: string, raw: number }, balance: { formatted: string, raw: number } }> };
export type MonthlyIncomeExpenseChartQueryVariables = Exact<{
filters: IncomeExpenseChartFilters;
}>;
export type MonthlyIncomeExpenseChartQuery = { incomeExpenseChart: { fromDate: unknown, toDate: unknown, currency: Currency, monthlyData: Array<{ date: unknown, income: { formatted: string, raw: number }, expense: { formatted: string, raw: number }, balance: { formatted: string, raw: number } }> } };
export type ContractsEditModalQueryVariables = Exact<{
contractId: string;
}>;
export type ContractsEditModalQuery = { contractsById: { id: string, startDate: unknown, endDate: unknown, purchaseOrders: Array<string>, product: Product | null, msCloud: unknown, billingCycle: BillingCycle, plan: SubscriptionPlan | null, isActive: boolean, remarks: string | null, documentType: DocumentType, operationsLimit: unknown, amount: { raw: number, currency: Currency } } };
export type BusinessTripReportFieldsFragment = { id: string, name: string, purpose: string | null, accountantApproval: AccountantStatus, dates: { start: unknown, end: unknown } | null, destination: { id: string, name: string } | null };
export type BusinessTripAccountantApprovalFieldsFragment = { id: string, accountantApproval: AccountantStatus };
export type UncategorizedTransactionsByBusinessTripQueryVariables = Exact<{
businessTripId: string;
}>;
export type UncategorizedTransactionsByBusinessTripQuery = { businessTrip: { id: string, uncategorizedTransactions: Array<{ transaction:
| { id: string, eventDate: unknown, sourceDescription: string, referenceKey: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, amount: { formatted: string, raw: number } }
| { id: string, eventDate: unknown, sourceDescription: string, referenceKey: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, amount: { formatted: string, raw: number } }
} | null> } | null };
export type BusinessTripReportAccommodationsRowFieldsFragment = { id: string, payedByEmployee: boolean | null, nightsCount: number | null, date: unknown, valueDate: unknown, country: { id: string, name: string } | null, attendeesStay: Array<{ id: string, nightsCount: number, attendee: { id: string, name: string } }>, amount: { formatted: string, raw: number, currency: Currency } | null, employee:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, charges: Array<
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
> | null };
export type BusinessTripReportAccommodationsTableFieldsFragment = { id: string, date: unknown, payedByEmployee: boolean | null, nightsCount: number | null, valueDate: unknown, country: { id: string, name: string } | null, attendeesStay: Array<{ id: string, nightsCount: number, attendee: { id: string, name: string } }>, amount: { formatted: string, raw: number, currency: Currency } | null, employee:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, charges: Array<
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
> | null };
export type BusinessTripReportAccommodationsFieldsFragment = { id: string, accommodationExpenses: Array<{ id: string, date: unknown, payedByEmployee: boolean | null, nightsCount: number | null, valueDate: unknown, country: { id: string, name: string } | null, attendeesStay: Array<{ id: string, nightsCount: number, attendee: { id: string, name: string } }>, amount: { formatted: string, raw: number, currency: Currency } | null, employee:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, charges: Array<
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
> | null }> };
export type BusinessTripReportAttendeeRowFieldsFragment = { id: string, name: string, arrivalDate: unknown, departureDate: unknown, flights: Array<{ id: string, date: unknown, payedByEmployee: boolean | null, path: Array<string> | null, class: string | null, valueDate: unknown, attendees: Array<{ id: string, name: string }>, amount: { formatted: string, raw: number, currency: Currency } | null, employee:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, charges: Array<
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
> | null }>, accommodations: Array<{ id: string, date: unknown, payedByEmployee: boolean | null, nightsCount: number | null, valueDate: unknown, country: { id: string, name: string } | null, attendeesStay: Array<{ id: string, nightsCount: number, attendee: { id: string, name: string } }>, amount: { formatted: string, raw: number, currency: Currency } | null, employee:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, charges: Array<
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
> | null }> };
export type BusinessTripReportAttendeesFieldsFragment = { id: string, attendees: Array<{ id: string, name: string, arrivalDate: unknown, departureDate: unknown, flights: Array<{ id: string, date: unknown, payedByEmployee: boolean | null, path: Array<string> | null, class: string | null, valueDate: unknown, attendees: Array<{ id: string, name: string }>, amount: { formatted: string, raw: number, currency: Currency } | null, employee:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, charges: Array<
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
> | null }>, accommodations: Array<{ id: string, date: unknown, payedByEmployee: boolean | null, nightsCount: number | null, valueDate: unknown, country: { id: string, name: string } | null, attendeesStay: Array<{ id: string, nightsCount: number, attendee: { id: string, name: string } }>, amount: { formatted: string, raw: number, currency: Currency } | null, employee:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, charges: Array<
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
> | null }> }> };
export type BusinessTripReportCarRentalRowFieldsFragment = { id: string, payedByEmployee: boolean | null, days: number, isFuelExpense: boolean, date: unknown, valueDate: unknown, amount: { formatted: string, raw: number, currency: Currency } | null, employee:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, charges: Array<
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
> | null };
export type BusinessTripReportCarRentalFieldsFragment = { id: string, carRentalExpenses: Array<{ id: string, date: unknown, payedByEmployee: boolean | null, days: number, isFuelExpense: boolean, valueDate: unknown, amount: { formatted: string, raw: number, currency: Currency } | null, employee:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, charges: Array<
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
> | null }> };
type BusinessTripReportCoreExpenseRowFields_BusinessTripAccommodationExpense_Fragment = { id: string, date: unknown, valueDate: unknown, payedByEmployee: boolean | null, amount: { formatted: string, raw: number, currency: Currency } | null, employee:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, charges: Array<
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
> | null };
type BusinessTripReportCoreExpenseRowFields_BusinessTripCarRentalExpense_Fragment = { id: string, date: unknown, valueDate: unknown, payedByEmployee: boolean | null, amount: { formatted: string, raw: number, currency: Currency } | null, employee:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, charges: Array<
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
> | null };
type BusinessTripReportCoreExpenseRowFields_BusinessTripFlightExpense_Fragment = { id: string, date: unknown, valueDate: unknown, payedByEmployee: boolean | null, amount: { formatted: string, raw: number, currency: Currency } | null, employee:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, charges: Array<
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
> | null };
type BusinessTripReportCoreExpenseRowFields_BusinessTripOtherExpense_Fragment = { id: string, date: unknown, valueDate: unknown, payedByEmployee: boolean | null, amount: { formatted: string, raw: number, currency: Currency } | null, employee:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, charges: Array<
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
> | null };
type BusinessTripReportCoreExpenseRowFields_BusinessTripTravelAndSubsistenceExpense_Fragment = { id: string, date: unknown, valueDate: unknown, payedByEmployee: boolean | null, amount: { formatted: string, raw: number, currency: Currency } | null, employee:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, charges: Array<
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
> | null };
export type BusinessTripReportCoreExpenseRowFieldsFragment =
| BusinessTripReportCoreExpenseRowFields_BusinessTripAccommodationExpense_Fragment
| BusinessTripReportCoreExpenseRowFields_BusinessTripCarRentalExpense_Fragment
| BusinessTripReportCoreExpenseRowFields_BusinessTripFlightExpense_Fragment
| BusinessTripReportCoreExpenseRowFields_BusinessTripOtherExpense_Fragment
| BusinessTripReportCoreExpenseRowFields_BusinessTripTravelAndSubsistenceExpense_Fragment
;
export type BusinessTripReportFlightsRowFieldsFragment = { id: string, payedByEmployee: boolean | null, path: Array<string> | null, class: string | null, date: unknown, valueDate: unknown, attendees: Array<{ id: string, name: string }>, amount: { formatted: string, raw: number, currency: Currency } | null, employee:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, charges: Array<
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
> | null };
export type BusinessTripReportFlightsTableFieldsFragment = { id: string, date: unknown, payedByEmployee: boolean | null, path: Array<string> | null, class: string | null, valueDate: unknown, attendees: Array<{ id: string, name: string }>, amount: { formatted: string, raw: number, currency: Currency } | null, employee:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, charges: Array<
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
> | null };
export type BusinessTripReportFlightsFieldsFragment = { id: string, flightExpenses: Array<{ id: string, date: unknown, payedByEmployee: boolean | null, path: Array<string> | null, class: string | null, valueDate: unknown, attendees: Array<{ id: string, name: string }>, amount: { formatted: string, raw: number, currency: Currency } | null, employee:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, charges: Array<
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
> | null }>, attendees: Array<{ id: string, name: string }> };
export type BusinessTripReportOtherRowFieldsFragment = { id: string, payedByEmployee: boolean | null, description: string | null, deductibleExpense: boolean | null, date: unknown, valueDate: unknown, amount: { formatted: string, raw: number, currency: Currency } | null, employee:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, charges: Array<
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
> | null };
export type BusinessTripReportOtherFieldsFragment = { id: string, otherExpenses: Array<{ id: string, date: unknown, payedByEmployee: boolean | null, description: string | null, deductibleExpense: boolean | null, valueDate: unknown, amount: { formatted: string, raw: number, currency: Currency } | null, employee:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, charges: Array<
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
> | null }> };
export type BusinessTripReportHeaderFieldsFragment = { id: string, name: string, purpose: string | null, accountantApproval: AccountantStatus, dates: { start: unknown, end: unknown } | null, destination: { id: string, name: string } | null };
export type BusinessTripReportSummaryFieldsFragment = { id: string } & ({ summary: { excessTax: number | null, errors: Array<string> | null, excessExpenditure: { formatted: string } | null, rows: Array<{ type: BusinessTripSummaryCategories, totalForeignCurrency: { formatted: string }, totalLocalCurrency: { formatted: string } | null, taxableForeignCurrency: { formatted: string }, taxableLocalCurrency: { formatted: string } | null, maxTaxableForeignCurrency: { formatted: string }, maxTaxableLocalCurrency: { formatted: string } | null, excessExpenditure: { formatted: string } | null }> } } | { summary?: never });
export type BusinessTripReportTravelAndSubsistenceRowFieldsFragment = { id: string, payedByEmployee: boolean | null, expenseType: string | null, date: unknown, valueDate: unknown, amount: { formatted: string, raw: number, currency: Currency } | null, employee:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, charges: Array<
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
> | null };
export type BusinessTripReportTravelAndSubsistenceFieldsFragment = { id: string, travelAndSubsistenceExpenses: Array<{ id: string, date: unknown, payedByEmployee: boolean | null, expenseType: string | null, valueDate: unknown, amount: { formatted: string, raw: number, currency: Currency } | null, employee:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, charges: Array<
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
> | null }> };
export type BusinessTripUncategorizedTransactionsFieldsFragment = { id: string, uncategorizedTransactions: Array<{ errors: Array<string>, transaction:
| { id: string, eventDate: unknown, chargeId: string, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, eventDate: unknown, chargeId: string, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
, categorizedAmount: { raw: number, formatted: string } } | null> };
export type UncategorizedTransactionsTableAmountFieldsFragment = { errors: Array<string>, transaction:
| { id: string, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null }
| { id: string, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null }
, categorizedAmount: { raw: number, formatted: string } };
export type DepreciationRecordRowFieldsFragment = { id: string, activationDate: unknown, type: DepreciationType | null, amount: { currency: Currency, formatted: string, raw: number }, category: { id: string, name: string, percentage: number }, charge:
| { id: string, totalAmount: { currency: Currency, formatted: string, raw: number } | null }
| { id: string, totalAmount: { currency: Currency, formatted: string, raw: number } | null }
| { id: string, totalAmount: { currency: Currency, formatted: string, raw: number } | null }
| { id: string, totalAmount: { currency: Currency, formatted: string, raw: number } | null }
| { id: string, totalAmount: { currency: Currency, formatted: string, raw: number } | null }
| { id: string, totalAmount: { currency: Currency, formatted: string, raw: number } | null }
| { id: string, totalAmount: { currency: Currency, formatted: string, raw: number } | null }
| { id: string, totalAmount: { currency: Currency, formatted: string, raw: number } | null }
| { id: string, totalAmount: { currency: Currency, formatted: string, raw: number } | null }
| { id: string, totalAmount: { currency: Currency, formatted: string, raw: number } | null }
| { id: string, totalAmount: { currency: Currency, formatted: string, raw: number } | null }
};
export type ChargeDepreciationQueryVariables = Exact<{
chargeId: string;
}>;
export type ChargeDepreciationQuery = { depreciationRecordsByCharge: Array<{ id: string, activationDate: unknown, type: DepreciationType | null, amount: { currency: Currency, formatted: string, raw: number }, category: { id: string, name: string, percentage: number }, charge:
| { id: string, totalAmount: { currency: Currency, formatted: string, raw: number } | null }
| { id: string, totalAmount: { currency: Currency, formatted: string, raw: number } | null }
| { id: string, totalAmount: { currency: Currency, formatted: string, raw: number } | null }
| { id: string, totalAmount: { currency: Currency, formatted: string, raw: number } | null }
| { id: string, totalAmount: { currency: Currency, formatted: string, raw: number } | null }
| { id: string, totalAmount: { currency: Currency, formatted: string, raw: number } | null }
| { id: string, totalAmount: { currency: Currency, formatted: string, raw: number } | null }
| { id: string, totalAmount: { currency: Currency, formatted: string, raw: number } | null }
| { id: string, totalAmount: { currency: Currency, formatted: string, raw: number } | null }
| { id: string, totalAmount: { currency: Currency, formatted: string, raw: number } | null }
| { id: string, totalAmount: { currency: Currency, formatted: string, raw: number } | null }
}> };
export type RecentBusinessIssuedDocumentsQueryVariables = Exact<{
businessId: string;
limit?: number | null | undefined;
}>;
export type RecentBusinessIssuedDocumentsQuery = { recentDocumentsByBusiness: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, issuedDocumentInfo: { id: string, status: DocumentStatus, externalId: string, originalDocument: { income: Array<{ description: string }> | null } | null } | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, issuedDocumentInfo: { id: string, status: DocumentStatus, externalId: string, originalDocument: { income: Array<{ description: string }> | null } | null } | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, issuedDocumentInfo: { id: string, status: DocumentStatus, externalId: string, originalDocument: { income: Array<{ description: string }> | null } | null } | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, issuedDocumentInfo: { id: string, status: DocumentStatus, externalId: string, originalDocument: { income: Array<{ description: string }> | null } | null } | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, issuedDocumentInfo: { id: string, status: DocumentStatus, externalId: string, originalDocument: { income: Array<{ description: string }> | null } | null } | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> };
export type RecentIssuedDocumentsOfSameTypeQueryVariables = Exact<{
documentType: DocumentType;
}>;
export type RecentIssuedDocumentsOfSameTypeQuery = { recentIssuedDocumentsByType: Array<
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, date: unknown, serialNumber: string | null, allocationNumber: string | null, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
> };
export type EditDocumentQueryVariables = Exact<{
documentId: string;
}>;
export type EditDocumentQuery = { documentById:
| { __typename: 'CreditInvoice', serialNumber: string | null, date: unknown, vatReportDateOverride: unknown, noVatAmount: number | null, allocationNumber: string | null, exchangeRateOverride: number | null, id: string, image: unknown, file: unknown, documentType: DocumentType | null, description: string | null, remarks: string | null, vat: { raw: number, currency: Currency } | null, amount: { raw: number, currency: Currency } | null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { __typename: 'Invoice', serialNumber: string | null, date: unknown, vatReportDateOverride: unknown, noVatAmount: number | null, allocationNumber: string | null, exchangeRateOverride: number | null, id: string, image: unknown, file: unknown, documentType: DocumentType | null, description: string | null, remarks: string | null, vat: { raw: number, currency: Currency } | null, amount: { raw: number, currency: Currency } | null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { __typename: 'InvoiceReceipt', serialNumber: string | null, date: unknown, vatReportDateOverride: unknown, noVatAmount: number | null, allocationNumber: string | null, exchangeRateOverride: number | null, id: string, image: unknown, file: unknown, documentType: DocumentType | null, description: string | null, remarks: string | null, vat: { raw: number, currency: Currency } | null, amount: { raw: number, currency: Currency } | null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { __typename: 'OtherDocument', serialNumber: string | null, date: unknown, vatReportDateOverride: unknown, noVatAmount: number | null, allocationNumber: string | null, exchangeRateOverride: number | null, id: string, image: unknown, file: unknown, documentType: DocumentType | null, description: string | null, remarks: string | null, vat: { raw: number, currency: Currency } | null, amount: { raw: number, currency: Currency } | null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { __typename: 'Proforma', serialNumber: string | null, date: unknown, vatReportDateOverride: unknown, noVatAmount: number | null, allocationNumber: string | null, exchangeRateOverride: number | null, id: string, image: unknown, file: unknown, documentType: DocumentType | null, description: string | null, remarks: string | null, vat: { raw: number, currency: Currency } | null, amount: { raw: number, currency: Currency } | null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { __typename: 'Receipt', serialNumber: string | null, date: unknown, vatReportDateOverride: unknown, noVatAmount: number | null, allocationNumber: string | null, exchangeRateOverride: number | null, id: string, image: unknown, file: unknown, documentType: DocumentType | null, description: string | null, remarks: string | null, vat: { raw: number, currency: Currency } | null, amount: { raw: number, currency: Currency } | null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { __typename: 'Unprocessed', serialNumber: string | null, date: unknown, vatReportDateOverride: unknown, noVatAmount: number | null, allocationNumber: string | null, exchangeRateOverride: number | null, id: string, image: unknown, file: unknown, documentType: DocumentType | null, description: string | null, remarks: string | null, vat: { raw: number, currency: Currency } | null, amount: { raw: number, currency: Currency } | null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| null };
export type EditMiscExpenseFieldsFragment = { id: string, description: string | null, invoiceDate: unknown, valueDate: unknown, amount: { raw: number, currency: Currency }, creditor:
| { id: string }
| { id: string }
| { id: string }
, debtor:
| { id: string }
| { id: string }
| { id: string }
};
export type EditTagFieldsFragment = { id: string, name: string, parent: { id: string, name: string } | null };
export type EditTransactionQueryVariables = Exact<{
transactionIDs: Array<string> | string;
}>;
export type EditTransactionQuery = { transactionsByIDs: Array<
| { id: string, effectiveDate: unknown, isFee: boolean | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, account:
| { type: FinancialAccountType, id: string }
| { type: FinancialAccountType, id: string }
| { type: FinancialAccountType, id: string }
| { type: FinancialAccountType, id: string }
| { type: FinancialAccountType, id: string }
}
| { id: string, effectiveDate: unknown, isFee: boolean | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, account:
| { type: FinancialAccountType, id: string }
| { type: FinancialAccountType, id: string }
| { type: FinancialAccountType, id: string }
| { type: FinancialAccountType, id: string }
| { type: FinancialAccountType, id: string }
}
> };
export type ClientInfoForDocumentIssuingQueryVariables = Exact<{
businessId: string;
}>;
export type ClientInfoForDocumentIssuingQuery = { client: { id: string, emails: Array<string>, integrations: { id: string, greenInvoiceInfo: { greenInvoiceId: string | null, businessId: string, name: string | null } | null }, originalBusiness: { id: string, address: string | null, city: string | null, zipCode: string | null, governmentId: string | null, name: string, phoneNumber: string | null, country: { id: string, code: unknown } } } };
export type AllBusinessTripsQueryVariables = Exact<{ [key: string]: never; }>;
export type AllBusinessTripsQuery = { allBusinessTrips: Array<{ id: string, name: string }> };
export type AllDepreciationCategoriesQueryVariables = Exact<{ [key: string]: never; }>;
export type AllDepreciationCategoriesQuery = { depreciationCategories: Array<{ id: string, name: string, percentage: number }> };
export type AllEmployeesByEmployerQueryVariables = Exact<{
employerId: string;
}>;
export type AllEmployeesByEmployerQuery = { employeesByEmployerId: Array<{ id: string, name: string }> };
export type AllPensionFundsQueryVariables = Exact<{ [key: string]: never; }>;
export type AllPensionFundsQuery = { allPensionFunds: Array<{ id: string, name: string }> };
export type AllTrainingFundsQueryVariables = Exact<{ [key: string]: never; }>;
export type AllTrainingFundsQuery = { allTrainingFunds: Array<{ id: string, name: string }> };
export type AttendeesByBusinessTripQueryVariables = Exact<{
businessTripId: string;
}>;
export type AttendeesByBusinessTripQuery = { businessTrip: { id: string, attendees: Array<{ id: string, name: string }> } | null };
export type FetchMultipleBusinessesQueryVariables = Exact<{
businessIds: Array<string> | string;
}>;
export type FetchMultipleBusinessesQuery = { businesses: Array<
| { id: string, name: string }
| { id: string, name: string }
> };
export type FetchMultipleChargesQueryVariables = Exact<{
chargeIds: Array<string> | string;
}>;
export type FetchMultipleChargesQuery = { chargesByIDs: Array<
| { __typename: 'BankDepositCharge', id: string, decreasedVAT: boolean | null, property: boolean | null, isInvoicePaymentDifferentCurrency: boolean | null, userDescription: string | null, optionalVAT: boolean | null, optionalDocuments: boolean | null, metadata: { transactionsCount: number, invoicesCount: number } | null, owner:
| { id: string, name: string }
| { id: string, name: string }
, tags: Array<{ id: string, name: string, namePath: Array<string> | null }> }
| { __typename: 'BusinessTripCharge', id: string, decreasedVAT: boolean | null, property: boolean | null, isInvoicePaymentDifferentCurrency: boolean | null, userDescription: string | null, optionalVAT: boolean | null, optionalDocuments: boolean | null, metadata: { transactionsCount: number, invoicesCount: number } | null, owner:
| { id: string, name: string }
| { id: string, name: string }
, tags: Array<{ id: string, name: string, namePath: Array<string> | null }> }
| { __typename: 'CommonCharge', id: string, decreasedVAT: boolean | null, property: boolean | null, isInvoicePaymentDifferentCurrency: boolean | null, userDescription: string | null, optionalVAT: boolean | null, optionalDocuments: boolean | null, metadata: { transactionsCount: number, invoicesCount: number } | null, owner:
| { id: string, name: string }
| { id: string, name: string }
, tags: Array<{ id: string, name: string, namePath: Array<string> | null }> }
| { __typename: 'ConversionCharge', id: string, decreasedVAT: boolean | null, property: boolean | null, isInvoicePaymentDifferentCurrency: boolean | null, userDescription: string | null, optionalVAT: boolean | null, optionalDocuments: boolean | null, metadata: { transactionsCount: number, invoicesCount: number } | null, owner:
| { id: string, name: string }
| { id: string, name: string }
, tags: Array<{ id: string, name: string, namePath: Array<string> | null }> }
| { __typename: 'CreditcardBankCharge', id: string, decreasedVAT: boolean | null, property: boolean | null, isInvoicePaymentDifferentCurrency: boolean | null, userDescription: string | null, optionalVAT: boolean | null, optionalDocuments: boolean | null, metadata: { transactionsCount: number, invoicesCount: number } | null, owner:
| { id: string, name: string }
| { id: string, name: string }
, tags: Array<{ id: string, name: string, namePath: Array<string> | null }> }
| { __typename: 'DividendCharge', id: string, decreasedVAT: boolean | null, property: boolean | null, isInvoicePaymentDifferentCurrency: boolean | null, userDescription: string | null, optionalVAT: boolean | null, optionalDocuments: boolean | null, metadata: { transactionsCount: number, invoicesCount: number } | null, owner:
| { id: string, name: string }
| { id: string, name: string }
, tags: Array<{ id: string, name: string, namePath: Array<string> | null }> }
| { __typename: 'FinancialCharge', id: string, decreasedVAT: boolean | null, property: boolean | null, isInvoicePaymentDifferentCurrency: boolean | null, userDescription: string | null, optionalVAT: boolean | null, optionalDocuments: boolean | null, metadata: { transactionsCount: number, invoicesCount: number } | null, owner:
| { id: string, name: string }
| { id: string, name: string }
, tags: Array<{ id: string, name: string, namePath: Array<string> | null }> }
| { __typename: 'ForeignSecuritiesCharge', id: string, decreasedVAT: boolean | null, property: boolean | null, isInvoicePaymentDifferentCurrency: boolean | null, userDescription: string | null, optionalVAT: boolean | null, optionalDocuments: boolean | null, metadata: { transactionsCount: number, invoicesCount: number } | null, owner:
| { id: string, name: string }
| { id: string, name: string }
, tags: Array<{ id: string, name: string, namePath: Array<string> | null }> }
| { __typename: 'InternalTransferCharge', id: string, decreasedVAT: boolean | null, property: boolean | null, isInvoicePaymentDifferentCurrency: boolean | null, userDescription: string | null, optionalVAT: boolean | null, optionalDocuments: boolean | null, metadata: { transactionsCount: number, invoicesCount: number } | null, owner:
| { id: string, name: string }
| { id: string, name: string }
, tags: Array<{ id: string, name: string, namePath: Array<string> | null }> }
| { __typename: 'MonthlyVatCharge', id: string, decreasedVAT: boolean | null, property: boolean | null, isInvoicePaymentDifferentCurrency: boolean | null, userDescription: string | null, optionalVAT: boolean | null, optionalDocuments: boolean | null, metadata: { transactionsCount: number, invoicesCount: number } | null, owner:
| { id: string, name: string }
| { id: string, name: string }
, tags: Array<{ id: string, name: string, namePath: Array<string> | null }> }
| { __typename: 'SalaryCharge', id: string, decreasedVAT: boolean | null, property: boolean | null, isInvoicePaymentDifferentCurrency: boolean | null, userDescription: string | null, optionalVAT: boolean | null, optionalDocuments: boolean | null, metadata: { transactionsCount: number, invoicesCount: number } | null, owner:
| { id: string, name: string }
| { id: string, name: string }
, tags: Array<{ id: string, name: string, namePath: Array<string> | null }> }
> };
export type EditChargeQueryVariables = Exact<{
chargeId: string;
}>;
export type EditChargeQuery = { charge:
| { __typename: 'BankDepositCharge', id: string, property: boolean | null, decreasedVAT: boolean | null, isInvoicePaymentDifferentCurrency: boolean | null, userDescription: string | null, optionalVAT: boolean | null, optionalDocuments: boolean | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
, taxCategory: { id: string, name: string } | null, tags: Array<{ id: string }>, missingInfoSuggestions: { tags: Array<{ id: string }> } | null, yearsOfRelevance: Array<{ year: string, amount: number | null }> | null }
| { __typename: 'BusinessTripCharge', id: string, property: boolean | null, decreasedVAT: boolean | null, isInvoicePaymentDifferentCurrency: boolean | null, userDescription: string | null, optionalVAT: boolean | null, optionalDocuments: boolean | null, businessTrip: { id: string, name: string } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
, taxCategory: { id: string, name: string } | null, tags: Array<{ id: string }>, missingInfoSuggestions: { tags: Array<{ id: string }> } | null, yearsOfRelevance: Array<{ year: string, amount: number | null }> | null }
| { __typename: 'CommonCharge', id: string, property: boolean | null, decreasedVAT: boolean | null, isInvoicePaymentDifferentCurrency: boolean | null, userDescription: string | null, optionalVAT: boolean | null, optionalDocuments: boolean | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
, taxCategory: { id: string, name: string } | null, tags: Array<{ id: string }>, missingInfoSuggestions: { tags: Array<{ id: string }> } | null, yearsOfRelevance: Array<{ year: string, amount: number | null }> | null }
| { __typename: 'ConversionCharge', id: string, property: boolean | null, decreasedVAT: boolean | null, isInvoicePaymentDifferentCurrency: boolean | null, userDescription: string | null, optionalVAT: boolean | null, optionalDocuments: boolean | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
, taxCategory: { id: string, name: string } | null, tags: Array<{ id: string }>, missingInfoSuggestions: { tags: Array<{ id: string }> } | null, yearsOfRelevance: Array<{ year: string, amount: number | null }> | null }
| { __typename: 'CreditcardBankCharge', id: string, property: boolean | null, decreasedVAT: boolean | null, isInvoicePaymentDifferentCurrency: boolean | null, userDescription: string | null, optionalVAT: boolean | null, optionalDocuments: boolean | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
, taxCategory: { id: string, name: string } | null, tags: Array<{ id: string }>, missingInfoSuggestions: { tags: Array<{ id: string }> } | null, yearsOfRelevance: Array<{ year: string, amount: number | null }> | null }
| { __typename: 'DividendCharge', id: string, property: boolean | null, decreasedVAT: boolean | null, isInvoicePaymentDifferentCurrency: boolean | null, userDescription: string | null, optionalVAT: boolean | null, optionalDocuments: boolean | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
, taxCategory: { id: string, name: string } | null, tags: Array<{ id: string }>, missingInfoSuggestions: { tags: Array<{ id: string }> } | null, yearsOfRelevance: Array<{ year: string, amount: number | null }> | null }
| { __typename: 'FinancialCharge', id: string, property: boolean | null, decreasedVAT: boolean | null, isInvoicePaymentDifferentCurrency: boolean | null, userDescription: string | null, optionalVAT: boolean | null, optionalDocuments: boolean | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
, taxCategory: { id: string, name: string } | null, tags: Array<{ id: string }>, missingInfoSuggestions: { tags: Array<{ id: string }> } | null, yearsOfRelevance: Array<{ year: string, amount: number | null }> | null }
| { __typename: 'ForeignSecuritiesCharge', id: string, property: boolean | null, decreasedVAT: boolean | null, isInvoicePaymentDifferentCurrency: boolean | null, userDescription: string | null, optionalVAT: boolean | null, optionalDocuments: boolean | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
, taxCategory: { id: string, name: string } | null, tags: Array<{ id: string }>, missingInfoSuggestions: { tags: Array<{ id: string }> } | null, yearsOfRelevance: Array<{ year: string, amount: number | null }> | null }
| { __typename: 'InternalTransferCharge', id: string, property: boolean | null, decreasedVAT: boolean | null, isInvoicePaymentDifferentCurrency: boolean | null, userDescription: string | null, optionalVAT: boolean | null, optionalDocuments: boolean | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
, taxCategory: { id: string, name: string } | null, tags: Array<{ id: string }>, missingInfoSuggestions: { tags: Array<{ id: string }> } | null, yearsOfRelevance: Array<{ year: string, amount: number | null }> | null }
| { __typename: 'MonthlyVatCharge', id: string, property: boolean | null, decreasedVAT: boolean | null, isInvoicePaymentDifferentCurrency: boolean | null, userDescription: string | null, optionalVAT: boolean | null, optionalDocuments: boolean | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
, taxCategory: { id: string, name: string } | null, tags: Array<{ id: string }>, missingInfoSuggestions: { tags: Array<{ id: string }> } | null, yearsOfRelevance: Array<{ year: string, amount: number | null }> | null }
| { __typename: 'SalaryCharge', id: string, property: boolean | null, decreasedVAT: boolean | null, isInvoicePaymentDifferentCurrency: boolean | null, userDescription: string | null, optionalVAT: boolean | null, optionalDocuments: boolean | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
, taxCategory: { id: string, name: string } | null, tags: Array<{ id: string }>, missingInfoSuggestions: { tags: Array<{ id: string }> } | null, yearsOfRelevance: Array<{ year: string, amount: number | null }> | null }
};
export type EditSalaryRecordQueryVariables = Exact<{
month: unknown;
employeeIDs: Array<string> | string;
}>;
export type EditSalaryRecordQuery = { salaryRecordsByDates: Array<{ month: string, pensionEmployeePercentage: number | null, pensionEmployerPercentage: number | null, compensationsPercentage: number | null, trainingFundEmployeePercentage: number | null, trainingFundEmployerPercentage: number | null, workDays: number | null, charge: { id: string } | null, directAmount: { raw: number }, baseAmount: { raw: number } | null, employee: { id: string, name: string } | null, employer: { id: string, name: string } | null, pensionFund: { id: string, name: string } | null, pensionEmployeeAmount: { raw: number } | null, pensionEmployerAmount: { raw: number } | null, compensationsAmount: { raw: number } | null, trainingFund: { id: string, name: string } | null, trainingFundEmployeeAmount: { raw: number } | null, trainingFundEmployerAmount: { raw: number } | null, socialSecurityEmployeeAmount: { raw: number } | null, socialSecurityEmployerAmount: { raw: number } | null, incomeTaxAmount: { raw: number } | null, healthInsuranceAmount: { raw: number } | null, globalAdditionalHoursAmount: { raw: number } | null, bonus: { raw: number } | null, gift: { raw: number } | null, travelAndSubsistence: { raw: number } | null, recovery: { raw: number } | null, notionalExpense: { raw: number } | null, vacationDays: { added: number | null, balance: number | null } | null, vacationTakeout: { raw: number } | null, sicknessDays: { balance: number | null } | null }> };
export type SortCodeToUpdateQueryVariables = Exact<{
key: number;
ownerId: string;
}>;
export type SortCodeToUpdateQuery = { sortCode: { id: string, key: number, name: string | null, defaultIrsCode: number | null } | null };
export type TaxCategoryToUpdateQueryVariables = Exact<{
id: string;
}>;
export type TaxCategoryToUpdateQuery = { taxCategory: { id: string, ownerId: string | null, name: string, irsCode: number | null, sortCode: { id: string, key: number, name: string | null } | null } };
export type MiscExpenseTransactionFieldsQueryVariables = Exact<{
transactionId: string;
}>;
export type MiscExpenseTransactionFieldsQuery = { transactionsByIDs: Array<
| { id: string, chargeId: string, eventDate: unknown, effectiveDate: unknown, exactEffectiveDate: unknown, amount: { raw: number, currency: Currency }, counterparty:
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, chargeId: string, eventDate: unknown, effectiveDate: unknown, exactEffectiveDate: unknown, amount: { raw: number, currency: Currency }, counterparty:
| { id: string }
| { id: string }
| { id: string }
| null }
> };
export type IssueDocumentClientFieldsFragment = { id: string, emails: Array<string>, originalBusiness: { id: string, address: string | null, city: string | null, zipCode: string | null, governmentId: string | null, name: string, phoneNumber: string | null, country: { id: string, code: unknown } } };
export type NewDocumentDraftByChargeQueryVariables = Exact<{
chargeId: string;
}>;
export type NewDocumentDraftByChargeQuery = { newDocumentDraftByCharge: { description: string | null, remarks: string | null, footer: string | null, type: DocumentType, date: string | null, dueDate: string | null, language: DocumentLanguage, currency: Currency, vatType: DocumentVatType, rounding: boolean | null, signed: boolean | null, maxPayments: number | null, linkedDocumentIds: Array<string> | null, linkedPaymentId: string | null, discount: { amount: number, type: DocumentDiscountType } | null, client: { id: string, emails: Array<string>, originalBusiness: { id: string, name: string, address: string | null, city: string | null, zipCode: string | null, governmentId: string | null, phoneNumber: string | null, country: { id: string, code: unknown } }, integrations: { id: string } } | null, income: Array<{ currency: Currency, currencyRate: number | null, description: string, itemId: string | null, price: number, quantity: number, vatRate: number | null, vatType: DocumentVatType }> | null, payment: Array<{ currency: Currency, currencyRate: number | null, date: string | null, price: number, type: PaymentType, bankName: string | null, bankBranch: string | null, bankAccount: string | null, chequeNum: string | null, accountId: string | null, transactionId: string | null, cardType: DocumentPaymentRecordCardType | null, cardNum: string | null, numPayments: number | null, firstPayment: number | null }> | null } };
export type NewDocumentDraftByDocumentQueryVariables = Exact<{
documentId: string;
}>;
export type NewDocumentDraftByDocumentQuery = { newDocumentDraftByDocument: { description: string | null, remarks: string | null, footer: string | null, type: DocumentType, date: string | null, dueDate: string | null, language: DocumentLanguage, currency: Currency, vatType: DocumentVatType, rounding: boolean | null, signed: boolean | null, maxPayments: number | null, linkedDocumentIds: Array<string> | null, linkedPaymentId: string | null, discount: { amount: number, type: DocumentDiscountType } | null, client: { id: string, emails: Array<string>, originalBusiness: { id: string, name: string, address: string | null, city: string | null, zipCode: string | null, governmentId: string | null, phoneNumber: string | null, country: { id: string, code: unknown } }, integrations: { id: string } } | null, income: Array<{ currency: Currency, currencyRate: number | null, description: string, itemId: string | null, price: number, quantity: number, vatRate: number | null, vatType: DocumentVatType }> | null, payment: Array<{ currency: Currency, currencyRate: number | null, date: string | null, price: number, type: PaymentType, bankName: string | null, bankBranch: string | null, bankAccount: string | null, chequeNum: string | null, accountId: string | null, transactionId: string | null, cardType: DocumentPaymentRecordCardType | null, cardNum: string | null, numPayments: number | null, firstPayment: number | null }> | null } };
export type NewDocumentDraftFragment = { description: string | null, remarks: string | null, footer: string | null, type: DocumentType, date: string | null, dueDate: string | null, language: DocumentLanguage, currency: Currency, vatType: DocumentVatType, rounding: boolean | null, signed: boolean | null, maxPayments: number | null, linkedDocumentIds: Array<string> | null, linkedPaymentId: string | null, discount: { amount: number, type: DocumentDiscountType } | null, client: { id: string, emails: Array<string>, originalBusiness: { id: string, name: string, address: string | null, city: string | null, zipCode: string | null, governmentId: string | null, phoneNumber: string | null, country: { id: string, code: unknown } }, integrations: { id: string } } | null, income: Array<{ currency: Currency, currencyRate: number | null, description: string, itemId: string | null, price: number, quantity: number, vatRate: number | null, vatType: DocumentVatType }> | null, payment: Array<{ currency: Currency, currencyRate: number | null, date: string | null, price: number, type: PaymentType, bankName: string | null, bankBranch: string | null, bankAccount: string | null, chequeNum: string | null, accountId: string | null, transactionId: string | null, cardType: DocumentPaymentRecordCardType | null, cardNum: string | null, numPayments: number | null, firstPayment: number | null }> | null };
export type SimilarChargesByBusinessQueryVariables = Exact<{
businessId: string;
tagsDifferentThan?: Array<string> | string | null | undefined;
descriptionDifferentThan?: string | null | undefined;
}>;
export type SimilarChargesByBusinessQuery = { similarChargesByBusiness: Array<
| { __typename: 'BankDepositCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } | null }
| { __typename: 'BusinessTripCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, businessTrip: { id: string, name: string } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } | null }
| { __typename: 'CommonCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } | null }
| { __typename: 'ConversionCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } | null }
| { __typename: 'CreditcardBankCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } | null }
| { __typename: 'DividendCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } | null }
| { __typename: 'FinancialCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } | null }
| { __typename: 'ForeignSecuritiesCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } | null }
| { __typename: 'InternalTransferCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } | null }
| { __typename: 'MonthlyVatCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } | null }
| { __typename: 'SalaryCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } | null }
> };
export type SimilarChargesQueryVariables = Exact<{
chargeId: string;
withMissingTags: boolean;
withMissingDescription: boolean;
tagsDifferentThan?: Array<string> | string | null | undefined;
descriptionDifferentThan?: string | null | undefined;
}>;
export type SimilarChargesQuery = { similarCharges: Array<
| { __typename: 'BankDepositCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } | null }
| { __typename: 'BusinessTripCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, businessTrip: { id: string, name: string } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } | null }
| { __typename: 'CommonCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } | null }
| { __typename: 'ConversionCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } | null }
| { __typename: 'CreditcardBankCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } | null }
| { __typename: 'DividendCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } | null }
| { __typename: 'FinancialCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } | null }
| { __typename: 'ForeignSecuritiesCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } | null }
| { __typename: 'InternalTransferCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } | null }
| { __typename: 'MonthlyVatCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } | null }
| { __typename: 'SalaryCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } | null }
> };
type SimilarChargesTable_BankDepositCharge_Fragment = { __typename: 'BankDepositCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } | null };
type SimilarChargesTable_BusinessTripCharge_Fragment = { __typename: 'BusinessTripCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, businessTrip: { id: string, name: string } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } | null };
type SimilarChargesTable_CommonCharge_Fragment = { __typename: 'CommonCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } | null };
type SimilarChargesTable_ConversionCharge_Fragment = { __typename: 'ConversionCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } | null };
type SimilarChargesTable_CreditcardBankCharge_Fragment = { __typename: 'CreditcardBankCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } | null };
type SimilarChargesTable_DividendCharge_Fragment = { __typename: 'DividendCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } | null };
type SimilarChargesTable_FinancialCharge_Fragment = { __typename: 'FinancialCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } | null };
type SimilarChargesTable_ForeignSecuritiesCharge_Fragment = { __typename: 'ForeignSecuritiesCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } | null };
type SimilarChargesTable_InternalTransferCharge_Fragment = { __typename: 'InternalTransferCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } | null };
type SimilarChargesTable_MonthlyVatCharge_Fragment = { __typename: 'MonthlyVatCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } | null };
type SimilarChargesTable_SalaryCharge_Fragment = { __typename: 'SalaryCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, userDescription: string | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, totalAmount: { raw: number, formatted: string } | null, vat: { raw: number, formatted: string } | null, tags: Array<{ id: string, name: string }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } | null };
export type SimilarChargesTableFragment =
| SimilarChargesTable_BankDepositCharge_Fragment
| SimilarChargesTable_BusinessTripCharge_Fragment
| SimilarChargesTable_CommonCharge_Fragment
| SimilarChargesTable_ConversionCharge_Fragment
| SimilarChargesTable_CreditcardBankCharge_Fragment
| SimilarChargesTable_DividendCharge_Fragment
| SimilarChargesTable_FinancialCharge_Fragment
| SimilarChargesTable_ForeignSecuritiesCharge_Fragment
| SimilarChargesTable_InternalTransferCharge_Fragment
| SimilarChargesTable_MonthlyVatCharge_Fragment
| SimilarChargesTable_SalaryCharge_Fragment
;
export type SimilarTransactionsQueryVariables = Exact<{
transactionId: string;
withMissingInfo: boolean;
}>;
export type SimilarTransactionsQuery = { similarTransactions: Array<
| { id: string, effectiveDate: unknown, eventDate: unknown, sourceDescription: string, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, amount: { formatted: string, raw: number } }
| { id: string, effectiveDate: unknown, eventDate: unknown, sourceDescription: string, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, amount: { formatted: string, raw: number } }
> };
export type UniformFormatQueryVariables = Exact<{
fromDate: unknown;
toDate: unknown;
}>;
export type UniformFormatQuery = { uniformFormat: { bkmvdata: string, ini: string } | null };
type NewFetchedDocumentFields_CreditInvoice_Fragment = { id: string, documentType: DocumentType | null, charge:
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| null };
type NewFetchedDocumentFields_Invoice_Fragment = { id: string, documentType: DocumentType | null, charge:
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| null };
type NewFetchedDocumentFields_InvoiceReceipt_Fragment = { id: string, documentType: DocumentType | null, charge:
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| null };
type NewFetchedDocumentFields_OtherDocument_Fragment = { id: string, documentType: DocumentType | null, charge:
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| null };
type NewFetchedDocumentFields_Proforma_Fragment = { id: string, documentType: DocumentType | null, charge:
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| null };
type NewFetchedDocumentFields_Receipt_Fragment = { id: string, documentType: DocumentType | null, charge:
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| null };
type NewFetchedDocumentFields_Unprocessed_Fragment = { id: string, documentType: DocumentType | null, charge:
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| null };
export type NewFetchedDocumentFieldsFragment =
| NewFetchedDocumentFields_CreditInvoice_Fragment
| NewFetchedDocumentFields_Invoice_Fragment
| NewFetchedDocumentFields_InvoiceReceipt_Fragment
| NewFetchedDocumentFields_OtherDocument_Fragment
| NewFetchedDocumentFields_Proforma_Fragment
| NewFetchedDocumentFields_Receipt_Fragment
| NewFetchedDocumentFields_Unprocessed_Fragment
;
export type ContractForContractsTableFieldsFragment = { id: string, isActive: boolean, purchaseOrders: Array<string>, startDate: unknown, endDate: unknown, billingCycle: BillingCycle, product: Product | null, plan: SubscriptionPlan | null, operationsLimit: unknown, msCloud: unknown, client: { id: string, originalBusiness: { id: string, name: string } }, amount: { raw: number, formatted: string } };
export type ContractBasedDocumentDraftsQueryVariables = Exact<{
issueMonth: unknown;
contractIds: Array<string> | string;
}>;
export type ContractBasedDocumentDraftsQuery = { periodicalDocumentDraftsByContracts: Array<{ description: string | null, remarks: string | null, footer: string | null, type: DocumentType, date: string | null, dueDate: string | null, language: DocumentLanguage, currency: Currency, vatType: DocumentVatType, rounding: boolean | null, signed: boolean | null, maxPayments: number | null, linkedDocumentIds: Array<string> | null, linkedPaymentId: string | null, discount: { amount: number, type: DocumentDiscountType } | null, client: { id: string, emails: Array<string>, originalBusiness: { id: string, name: string, address: string | null, city: string | null, zipCode: string | null, governmentId: string | null, phoneNumber: string | null, country: { id: string, code: unknown } }, integrations: { id: string } } | null, income: Array<{ currency: Currency, currencyRate: number | null, description: string, itemId: string | null, price: number, quantity: number, vatRate: number | null, vatType: DocumentVatType }> | null, payment: Array<{ currency: Currency, currencyRate: number | null, date: string | null, price: number, type: PaymentType, bankName: string | null, bankBranch: string | null, bankAccount: string | null, chequeNum: string | null, accountId: string | null, transactionId: string | null, cardType: DocumentPaymentRecordCardType | null, cardNum: string | null, numPayments: number | null, firstPayment: number | null }> | null }> };
type TableDocumentsRowFields_CreditInvoice_Fragment = { date: unknown, serialNumber: string | null, allocationNumber: string | null, id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null };
type TableDocumentsRowFields_Invoice_Fragment = { date: unknown, serialNumber: string | null, allocationNumber: string | null, id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null };
type TableDocumentsRowFields_InvoiceReceipt_Fragment = { date: unknown, serialNumber: string | null, allocationNumber: string | null, id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null };
type TableDocumentsRowFields_OtherDocument_Fragment = { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null };
type TableDocumentsRowFields_Proforma_Fragment = { date: unknown, serialNumber: string | null, allocationNumber: string | null, id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null };
type TableDocumentsRowFields_Receipt_Fragment = { date: unknown, serialNumber: string | null, allocationNumber: string | null, id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, amount: { raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions: { isIncome: boolean | null, amount: { raw: number, formatted: string, currency: Currency } | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, owner:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null } | null, vat: { raw: number, formatted: string, currency: Currency } | null, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, issuedDocumentInfo: { id: string, status: DocumentStatus, originalDocument: { income: Array<{ description: string }> | null } | null } | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null };
type TableDocumentsRowFields_Unprocessed_Fragment = { id: string, documentType: DocumentType | null, image: unknown, file: unknown, description: string | null, remarks: string | null, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null };
export type TableDocumentsRowFieldsFragment =
| TableDocumentsRowFields_CreditInvoice_Fragment
| TableDocumentsRowFields_Invoice_Fragment
| TableDocumentsRowFields_InvoiceReceipt_Fragment
| TableDocumentsRowFields_OtherDocument_Fragment
| TableDocumentsRowFields_Proforma_Fragment
| TableDocumentsRowFields_Receipt_Fragment
| TableDocumentsRowFields_Unprocessed_Fragment
;
type DocumentsGalleryFields_BankDepositCharge_Fragment = { id: string, additionalDocuments: Array<
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { id: string, image: unknown }
> };
type DocumentsGalleryFields_BusinessTripCharge_Fragment = { id: string, additionalDocuments: Array<
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { id: string, image: unknown }
> };
type DocumentsGalleryFields_CommonCharge_Fragment = { id: string, additionalDocuments: Array<
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { id: string, image: unknown }
> };
type DocumentsGalleryFields_ConversionCharge_Fragment = { id: string, additionalDocuments: Array<
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { id: string, image: unknown }
> };
type DocumentsGalleryFields_CreditcardBankCharge_Fragment = { id: string, additionalDocuments: Array<
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { id: string, image: unknown }
> };
type DocumentsGalleryFields_DividendCharge_Fragment = { id: string, additionalDocuments: Array<
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { id: string, image: unknown }
> };
type DocumentsGalleryFields_FinancialCharge_Fragment = { id: string, additionalDocuments: Array<
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { id: string, image: unknown }
> };
type DocumentsGalleryFields_ForeignSecuritiesCharge_Fragment = { id: string, additionalDocuments: Array<
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { id: string, image: unknown }
> };
type DocumentsGalleryFields_InternalTransferCharge_Fragment = { id: string, additionalDocuments: Array<
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { id: string, image: unknown }
> };
type DocumentsGalleryFields_MonthlyVatCharge_Fragment = { id: string, additionalDocuments: Array<
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { id: string, image: unknown }
> };
type DocumentsGalleryFields_SalaryCharge_Fragment = { id: string, additionalDocuments: Array<
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { documentType: DocumentType | null, id: string, image: unknown }
| { id: string, image: unknown }
> };
export type DocumentsGalleryFieldsFragment =
| DocumentsGalleryFields_BankDepositCharge_Fragment
| DocumentsGalleryFields_BusinessTripCharge_Fragment
| DocumentsGalleryFields_CommonCharge_Fragment
| DocumentsGalleryFields_ConversionCharge_Fragment
| DocumentsGalleryFields_CreditcardBankCharge_Fragment
| DocumentsGalleryFields_DividendCharge_Fragment
| DocumentsGalleryFields_FinancialCharge_Fragment
| DocumentsGalleryFields_ForeignSecuritiesCharge_Fragment
| DocumentsGalleryFields_InternalTransferCharge_Fragment
| DocumentsGalleryFields_MonthlyVatCharge_Fragment
| DocumentsGalleryFields_SalaryCharge_Fragment
;
export type LedgerRecordsTableFieldsFragment = { id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null };
export type AccountantApprovalsChargesTableQueryVariables = Exact<{
page?: number | null | undefined;
limit?: number | null | undefined;
filters?: ChargeFilter | null | undefined;
}>;
export type AccountantApprovalsChargesTableQuery = { allCharges: { nodes: Array<
| { id: string, accountantApproval: AccountantStatus }
| { id: string, accountantApproval: AccountantStatus }
| { id: string, accountantApproval: AccountantStatus }
| { id: string, accountantApproval: AccountantStatus }
| { id: string, accountantApproval: AccountantStatus }
| { id: string, accountantApproval: AccountantStatus }
| { id: string, accountantApproval: AccountantStatus }
| { id: string, accountantApproval: AccountantStatus }
| { id: string, accountantApproval: AccountantStatus }
| { id: string, accountantApproval: AccountantStatus }
| { id: string, accountantApproval: AccountantStatus }
> } };
export type CorporateTaxRulingComplianceReportQueryVariables = Exact<{
years: Array<number> | number;
}>;
export type CorporateTaxRulingComplianceReportQuery = { corporateTaxRulingComplianceReport: Array<{ id: string, year: number, totalIncome: { formatted: string, raw: number, currency: Currency }, researchAndDevelopmentExpenses: { formatted: string, raw: number, currency: Currency }, rndRelativeToIncome: { rule: string, id: string, isCompliant: boolean, percentage: { formatted: string } }, localDevelopmentExpenses: { formatted: string, raw: number, currency: Currency }, localDevelopmentRelativeToRnd: { rule: string, id: string, isCompliant: boolean, percentage: { formatted: string } }, foreignDevelopmentExpenses: { formatted: string, raw: number, currency: Currency }, foreignDevelopmentRelativeToRnd: { rule: string, id: string, isCompliant: boolean, percentage: { formatted: string } }, businessTripRndExpenses: { formatted: string, raw: number, currency: Currency } } & ({ differences: { id: string, totalIncome: { formatted: string, raw: number, currency: Currency } | null, researchAndDevelopmentExpenses: { formatted: string, raw: number, currency: Currency } | null, rndRelativeToIncome: { id: string, rule: string, isCompliant: boolean, percentage: { formatted: string } } | null, localDevelopmentExpenses: { formatted: string, raw: number, currency: Currency } | null, localDevelopmentRelativeToRnd: { id: string, rule: string, isCompliant: boolean, percentage: { formatted: string } } | null, foreignDevelopmentExpenses: { formatted: string, raw: number, currency: Currency } | null, foreignDevelopmentRelativeToRnd: { id: string, rule: string, isCompliant: boolean, percentage: { formatted: string } } | null, businessTripRndExpenses: { formatted: string, raw: number, currency: Currency } | null } } | { differences?: never })> };
export type CorporateTaxRulingReportRuleCellFieldsFragment = { id: string, rule: string, isCompliant: boolean, percentage: { formatted: string } };
export type AllDynamicReportsQueryVariables = Exact<{ [key: string]: never; }>;
export type AllDynamicReportsQuery = { allDynamicReports: Array<{ id: string, name: string, isLocked: boolean, updated: unknown }> };
export type DynamicReportQueryVariables = Exact<{
filters?: BusinessTransactionsFilter | null | undefined;
}>;
export type DynamicReportQuery = { businessTransactionsSumFromLedgerRecords:
| { __typename: 'BusinessTransactionsSumFromLedgerRecordsSuccessfulResult', businessTransactionsSum: Array<{ business:
| { id: string, name: string, sortCode: { id: string, key: number, name: string | null } | null }
| { id: string, name: string, sortCode: { id: string, key: number, name: string | null } | null }
| { id: string, name: string, sortCode: { id: string, key: number, name: string | null } | null }
, credit: { formatted: string, raw: number }, debit: { formatted: string, raw: number }, total: { formatted: string, raw: number } }> }
| { __typename: 'CommonError' }
};
export type DynamicReportTemplateQueryVariables = Exact<{
name: string;
}>;
export type DynamicReportTemplateQuery = { dynamicReport: { id: string, name: string, isLocked: boolean, updated: unknown, template: Array<{ id: string, parent: string, text: string, droppable: boolean, data: { nodeType: string, isOpen: boolean, hebrewText: string | null, sortCode: number | null } }> } };
export type ProfitAndLossReportQueryVariables = Exact<{
reportYear: number;
referenceYears: Array<number> | number;
}>;
export type ProfitAndLossReportQuery = { profitAndLossReport: { id: string, report: { id: string, year: number, revenue: { amount: { formatted: string }, records: Array<{ sortCode: { id: string, key: number, name: string | null }, amount: { formatted: string }, records: Array<{ financialEntity:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
, amount: { formatted: string }, ledgerRecords: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> }> }> }, costOfSales: { amount: { formatted: string }, records: Array<{ sortCode: { id: string, key: number, name: string | null }, amount: { formatted: string }, records: Array<{ financialEntity:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
, amount: { formatted: string }, ledgerRecords: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> }> }> }, grossProfit: { formatted: string }, researchAndDevelopmentExpenses: { amount: { formatted: string }, records: Array<{ sortCode: { id: string, key: number, name: string | null }, amount: { formatted: string }, records: Array<{ financialEntity:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
, amount: { formatted: string }, ledgerRecords: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> }> }> }, marketingExpenses: { amount: { formatted: string }, records: Array<{ sortCode: { id: string, key: number, name: string | null }, amount: { formatted: string }, records: Array<{ financialEntity:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
, amount: { formatted: string }, ledgerRecords: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> }> }> }, managementAndGeneralExpenses: { amount: { formatted: string }, records: Array<{ sortCode: { id: string, key: number, name: string | null }, amount: { formatted: string }, records: Array<{ financialEntity:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
, amount: { formatted: string }, ledgerRecords: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> }> }> }, operatingProfit: { formatted: string }, financialExpenses: { amount: { formatted: string }, records: Array<{ sortCode: { id: string, key: number, name: string | null }, amount: { formatted: string }, records: Array<{ financialEntity:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
, amount: { formatted: string }, ledgerRecords: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> }> }> }, otherIncome: { amount: { formatted: string }, records: Array<{ sortCode: { id: string, key: number, name: string | null }, amount: { formatted: string }, records: Array<{ financialEntity:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
, amount: { formatted: string }, ledgerRecords: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> }> }> }, profitBeforeTax: { formatted: string }, tax: { formatted: string }, netProfit: { formatted: string } }, reference: Array<{ id: string, year: number, revenue: { amount: { formatted: string } }, costOfSales: { amount: { formatted: string } }, grossProfit: { formatted: string }, researchAndDevelopmentExpenses: { amount: { formatted: string } }, marketingExpenses: { amount: { formatted: string } }, managementAndGeneralExpenses: { amount: { formatted: string } }, operatingProfit: { formatted: string }, financialExpenses: { amount: { formatted: string } }, otherIncome: { amount: { formatted: string } }, profitBeforeTax: { formatted: string }, tax: { formatted: string }, netProfit: { formatted: string } }> } };
export type ReportCommentaryTableFieldsFragment = { records: Array<{ sortCode: { id: string, key: number, name: string | null }, amount: { formatted: string }, records: Array<{ financialEntity:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
, amount: { formatted: string }, ledgerRecords: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> }> }> };
export type ReportSubCommentaryTableFieldsFragment = { financialEntity:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
, amount: { formatted: string }, ledgerRecords: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> };
export type TaxReportQueryVariables = Exact<{
reportYear: number;
referenceYears: Array<number> | number;
}>;
export type TaxReportQuery = { taxReport: { id: string, report: { id: string, year: number, taxRate: number, specialTaxRate: number, profitBeforeTax: { amount: { formatted: string }, records: Array<{ sortCode: { id: string, key: number, name: string | null }, amount: { formatted: string }, records: Array<{ financialEntity:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
, amount: { formatted: string }, ledgerRecords: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> }> }> }, researchAndDevelopmentExpensesByRecords: { amount: { formatted: string }, records: Array<{ sortCode: { id: string, key: number, name: string | null }, amount: { formatted: string }, records: Array<{ financialEntity:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
, amount: { formatted: string }, ledgerRecords: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> }> }> }, researchAndDevelopmentExpensesForTax: { formatted: string }, fines: { amount: { formatted: string }, records: Array<{ sortCode: { id: string, key: number, name: string | null }, amount: { formatted: string }, records: Array<{ financialEntity:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
, amount: { formatted: string }, ledgerRecords: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> }> }> }, untaxableGifts: { amount: { formatted: string }, records: Array<{ sortCode: { id: string, key: number, name: string | null }, amount: { formatted: string }, records: Array<{ financialEntity:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
, amount: { formatted: string }, ledgerRecords: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> }> }> }, businessTripsExcessExpensesAmount: { formatted: string }, salaryExcessExpensesAmount: { formatted: string }, reserves: { amount: { formatted: string }, records: Array<{ sortCode: { id: string, key: number, name: string | null }, amount: { formatted: string }, records: Array<{ financialEntity:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
, amount: { formatted: string }, ledgerRecords: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> }> }> }, nontaxableLinkage: { amount: { formatted: string }, records: Array<{ sortCode: { id: string, key: number, name: string | null }, amount: { formatted: string }, records: Array<{ financialEntity:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
, amount: { formatted: string }, ledgerRecords: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> }> }> }, taxableIncome: { formatted: string }, specialTaxableIncome: { amount: { formatted: string }, records: Array<{ sortCode: { id: string, key: number, name: string | null }, amount: { formatted: string }, records: Array<{ financialEntity:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
, amount: { formatted: string }, ledgerRecords: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> }> }> }, annualTaxExpense: { formatted: string } }, reference: Array<{ id: string, year: number, taxRate: number, specialTaxRate: number, profitBeforeTax: { amount: { formatted: string } }, researchAndDevelopmentExpensesByRecords: { amount: { formatted: string } }, researchAndDevelopmentExpensesForTax: { formatted: string }, fines: { amount: { formatted: string } }, untaxableGifts: { amount: { formatted: string } }, businessTripsExcessExpensesAmount: { formatted: string }, salaryExcessExpensesAmount: { formatted: string }, reserves: { amount: { formatted: string } }, nontaxableLinkage: { amount: { formatted: string } }, taxableIncome: { formatted: string }, specialTaxableIncome: { amount: { formatted: string }, records: Array<{ sortCode: { id: string, key: number, name: string | null }, amount: { formatted: string }, records: Array<{ financialEntity:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
, amount: { formatted: string }, ledgerRecords: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, creditAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount1:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, debitAccount2:
| { __typename: 'LtdFinancialEntity', id: string, name: string }
| { __typename: 'PersonalFinancialEntity', id: string, name: string }
| { __typename: 'TaxCategory', id: string, name: string }
| null, creditAmount1: { formatted: string, currency: Currency } | null, creditAmount2: { formatted: string, currency: Currency } | null, debitAmount1: { formatted: string, currency: Currency } | null, debitAmount2: { formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { formatted: string, raw: number }, localCurrencyCreditAmount2: { formatted: string, raw: number } | null, localCurrencyDebitAmount1: { formatted: string, raw: number }, localCurrencyDebitAmount2: { formatted: string, raw: number } | null }> }> }> }, annualTaxExpense: { formatted: string } }> } };
export type TrialBalanceReportQueryVariables = Exact<{
filters?: BusinessTransactionsFilter | null | undefined;
}>;
export type TrialBalanceReportQuery = { businessTransactionsSumFromLedgerRecords:
| { __typename: 'BusinessTransactionsSumFromLedgerRecordsSuccessfulResult', businessTransactionsSum: Array<{ business:
| { id: string, name: string, sortCode: { id: string, key: number, name: string | null } | null }
| { id: string, name: string, sortCode: { id: string, key: number, name: string | null } | null }
| { id: string, name: string, sortCode: { id: string, key: number, name: string | null } | null }
, credit: { formatted: string, raw: number }, debit: { formatted: string, raw: number }, total: { formatted: string, raw: number } }> }
| { __typename: 'CommonError' }
};
export type TrialBalanceTableFieldsFragment = { businessTransactionsSum: Array<{ business:
| { id: string, name: string, sortCode: { id: string, key: number, name: string | null } | null }
| { id: string, name: string, sortCode: { id: string, key: number, name: string | null } | null }
| { id: string, name: string, sortCode: { id: string, key: number, name: string | null } | null }
, credit: { formatted: string, raw: number }, debit: { formatted: string, raw: number }, total: { formatted: string, raw: number } }> };
export type ValidatePcn874ReportsQueryVariables = Exact<{
businessId?: string | null | undefined;
fromMonthDate: unknown;
toMonthDate: unknown;
}>;
export type ValidatePcn874ReportsQuery = { pcnByDate: Array<{ id: string, date: unknown, content: string, diffContent: string | null, business:
| { id: string, name: string }
| { id: string, name: string }
}> };
export type VatReportBusinessTripsFieldsFragment = { businessTrips: Array<
| { __typename: 'BankDepositCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'BusinessTripCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, businessTrip: { id: string, name: string } | null, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'CommonCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'ConversionCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'CreditcardBankCharge', id: string, validCreditCardAmount: boolean, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'DividendCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'FinancialCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'ForeignSecuritiesCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'InternalTransferCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'MonthlyVatCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'SalaryCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
> };
export type VatReportAccountantApprovalFieldsFragment = { chargeId: string, chargeAccountantStatus: AccountantStatus | null };
export type VatReportExpensesRowFieldsFragment = { vatNumber: string | null, image: string | null, allocationNumber: string | null, documentSerial: string | null, documentDate: unknown, chargeDate: unknown, chargeId: string, recordType: Pcn874RecordType, chargeAccountantStatus: AccountantStatus | null, business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, amount: { formatted: string, raw: number }, localAmount: { formatted: string, raw: number } | null, localVat: { formatted: string, raw: number } | null, foreignVatAfterDeduction: { formatted: string, raw: number } | null, localVatAfterDeduction: { formatted: string, raw: number } | null, roundedLocalVatAfterDeduction: { formatted: string, raw: number } | null, taxReducedLocalAmount: { formatted: string, raw: number } | null };
export type VatReportExpensesFieldsFragment = { expenses: Array<{ recordType: Pcn874RecordType, vatNumber: string | null, image: string | null, allocationNumber: string | null, documentSerial: string | null, documentDate: unknown, chargeDate: unknown, chargeId: string, chargeAccountantStatus: AccountantStatus | null, roundedLocalVatAfterDeduction: { raw: number, formatted: string } | null, taxReducedLocalAmount: { raw: number, formatted: string } | null, business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, amount: { formatted: string, raw: number }, localAmount: { formatted: string, raw: number } | null, localVat: { formatted: string, raw: number } | null, foreignVatAfterDeduction: { formatted: string, raw: number } | null, localVatAfterDeduction: { formatted: string, raw: number } | null }> };
export type VatReportIncomeRowFieldsFragment = { chargeId: string, vatNumber: string | null, image: string | null, allocationNumber: string | null, documentSerial: string | null, documentDate: unknown, chargeDate: unknown, recordType: Pcn874RecordType, chargeAccountantStatus: AccountantStatus | null, business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, taxReducedForeignAmount: { formatted: string, raw: number } | null, taxReducedLocalAmount: { formatted: string, raw: number } | null };
export type VatReportIncomeFieldsFragment = { income: Array<{ recordType: Pcn874RecordType, chargeId: string, vatNumber: string | null, image: string | null, allocationNumber: string | null, documentSerial: string | null, documentDate: unknown, chargeDate: unknown, chargeAccountantStatus: AccountantStatus | null, taxReducedLocalAmount: { raw: number, formatted: string } | null, business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, taxReducedForeignAmount: { formatted: string, raw: number } | null }> };
export type VatMonthlyReportQueryVariables = Exact<{
filters?: VatReportFilter | null | undefined;
}>;
export type VatMonthlyReportQuery = { vatReport: { expenses: Array<{ recordType: Pcn874RecordType, isProperty: boolean, vatNumber: string | null, image: string | null, allocationNumber: string | null, documentSerial: string | null, documentDate: unknown, chargeDate: unknown, chargeId: string, chargeAccountantStatus: AccountantStatus | null, roundedLocalVatAfterDeduction: { raw: number, formatted: string } | null, taxReducedLocalAmount: { raw: number, formatted: string } | null, business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, amount: { formatted: string, raw: number }, localAmount: { formatted: string, raw: number } | null, localVat: { formatted: string, raw: number } | null, foreignVatAfterDeduction: { formatted: string, raw: number } | null, localVatAfterDeduction: { formatted: string, raw: number } | null }>, income: Array<{ recordType: Pcn874RecordType, chargeId: string, vatNumber: string | null, image: string | null, allocationNumber: string | null, documentSerial: string | null, documentDate: unknown, chargeDate: unknown, chargeAccountantStatus: AccountantStatus | null, roundedLocalVatAfterDeduction: { raw: number } | null, taxReducedLocalAmount: { raw: number, formatted: string } | null, business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, taxReducedForeignAmount: { formatted: string, raw: number } | null }>, missingInfo: Array<
| { __typename: 'BankDepositCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'BusinessTripCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, businessTrip: { id: string, name: string } | null, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'CommonCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'ConversionCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'CreditcardBankCharge', id: string, validCreditCardAmount: boolean, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'DividendCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'FinancialCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'ForeignSecuritiesCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'InternalTransferCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'MonthlyVatCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'SalaryCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
>, differentMonthDoc: Array<
| { __typename: 'BankDepositCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'BusinessTripCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, businessTrip: { id: string, name: string } | null, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'CommonCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'ConversionCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'CreditcardBankCharge', id: string, validCreditCardAmount: boolean, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'DividendCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'FinancialCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'ForeignSecuritiesCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'InternalTransferCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'MonthlyVatCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'SalaryCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
>, businessTrips: Array<
| { __typename: 'BankDepositCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'BusinessTripCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, businessTrip: { id: string, name: string } | null, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'CommonCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'ConversionCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'CreditcardBankCharge', id: string, validCreditCardAmount: boolean, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'DividendCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'FinancialCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'ForeignSecuritiesCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'InternalTransferCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'MonthlyVatCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'SalaryCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
> } };
export type VatReportMiscTableFieldsFragment = { differentMonthDoc: Array<
| { __typename: 'BankDepositCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'BusinessTripCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, businessTrip: { id: string, name: string } | null, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'CommonCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'ConversionCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'CreditcardBankCharge', id: string, validCreditCardAmount: boolean, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'DividendCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'FinancialCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'ForeignSecuritiesCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'InternalTransferCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'MonthlyVatCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'SalaryCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
> };
export type VatReportMissingInfoFieldsFragment = { missingInfo: Array<
| { __typename: 'BankDepositCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'BusinessTripCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, businessTrip: { id: string, name: string } | null, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'CommonCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'ConversionCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'CreditcardBankCharge', id: string, validCreditCardAmount: boolean, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'DividendCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'FinancialCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'ForeignSecuritiesCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'InternalTransferCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'MonthlyVatCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'SalaryCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
> };
export type GeneratePcnQueryVariables = Exact<{
monthDate: unknown;
financialEntityId: string;
}>;
export type GeneratePcnQuery = { pcnFile: { reportContent: string, fileName: string } };
export type VatReportSummaryFieldsFragment = { expenses: Array<{ recordType: Pcn874RecordType, isProperty: boolean, roundedLocalVatAfterDeduction: { raw: number } | null, taxReducedLocalAmount: { raw: number } | null }>, income: Array<{ recordType: Pcn874RecordType, roundedLocalVatAfterDeduction: { raw: number } | null, taxReducedLocalAmount: { raw: number } | null }> };
export type LedgerCsvFieldsFragment = { id: string, year: number, financialEntitiesInfo: Array<{ entity:
| { id: string, name: string, sortCode: { id: string, key: number } | null }
| { id: string, name: string, sortCode: { id: string, key: number } | null }
| { id: string, name: string, sortCode: { id: string, key: number } | null }
, openingBalance: { raw: number }, totalCredit: { raw: number }, totalDebit: { raw: number }, closingBalance: { raw: number }, records: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, balance: number, amount: { raw: number, formatted: string }, counterParty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }> }> };
export type YearlyLedgerQueryVariables = Exact<{
year: number;
}>;
export type YearlyLedgerQuery = { yearlyLedgerReport: { id: string, year: number, financialEntitiesInfo: Array<{ entity:
| { id: string, name: string, sortCode: { id: string, key: number } | null }
| { id: string, name: string, sortCode: { id: string, key: number } | null }
| { id: string, name: string, sortCode: { id: string, key: number } | null }
, openingBalance: { raw: number }, totalCredit: { raw: number }, totalDebit: { raw: number }, closingBalance: { raw: number }, records: Array<{ id: string, invoiceDate: unknown, valueDate: unknown, description: string | null, reference: string | null, balance: number, amount: { raw: number, formatted: string }, counterParty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null }> }> } };
export type SalaryScreenRecordsQueryVariables = Exact<{
fromDate: unknown;
toDate: unknown;
employeeIDs?: Array<string> | string | null | undefined;
}>;
export type SalaryScreenRecordsQuery = { salaryRecordsByDates: Array<{ month: string, pensionEmployeePercentage: number | null, pensionEmployerPercentage: number | null, compensationsPercentage: number | null, trainingFundEmployeePercentage: number | null, trainingFundEmployerPercentage: number | null, workDays: number | null, employee: { id: string, name: string } | null, baseAmount: { formatted: string } | null, directAmount: { formatted: string }, globalAdditionalHoursAmount: { formatted: string } | null, bonus: { formatted: string, raw: number } | null, gift: { formatted: string, raw: number } | null, recovery: { formatted: string, raw: number } | null, vacationTakeout: { formatted: string, raw: number } | null, pensionFund: { id: string, name: string } | null, pensionEmployeeAmount: { formatted: string, raw: number } | null, pensionEmployerAmount: { formatted: string, raw: number } | null, compensationsAmount: { formatted: string, raw: number } | null, trainingFund: { id: string, name: string } | null, trainingFundEmployeeAmount: { formatted: string, raw: number } | null, trainingFundEmployerAmount: { formatted: string, raw: number } | null, healthInsuranceAmount: { formatted: string, raw: number } | null, socialSecurityEmployeeAmount: { formatted: string, raw: number } | null, socialSecurityEmployerAmount: { formatted: string, raw: number } | null, incomeTaxAmount: { formatted: string, raw: number } | null, notionalExpense: { formatted: string, raw: number } | null, vacationDays: { added: number | null, taken: number | null, balance: number | null } | null, sicknessDays: { balance: number | null } | null }> };
export type SalariesRecordEmployeeFieldsFragment = { month: string, employee: { id: string, name: string } | null };
export type SalariesRecordFundsFieldsFragment = { month: string, pensionEmployeePercentage: number | null, pensionEmployerPercentage: number | null, compensationsPercentage: number | null, trainingFundEmployeePercentage: number | null, trainingFundEmployerPercentage: number | null, employee: { id: string } | null, pensionFund: { id: string, name: string } | null, pensionEmployeeAmount: { formatted: string, raw: number } | null, pensionEmployerAmount: { formatted: string, raw: number } | null, compensationsAmount: { formatted: string, raw: number } | null, trainingFund: { id: string, name: string } | null, trainingFundEmployeeAmount: { formatted: string, raw: number } | null, trainingFundEmployerAmount: { formatted: string, raw: number } | null };
export type SalariesRecordInsurancesAndTaxesFieldsFragment = { month: string, employee: { id: string } | null, healthInsuranceAmount: { formatted: string, raw: number } | null, socialSecurityEmployeeAmount: { formatted: string, raw: number } | null, socialSecurityEmployerAmount: { formatted: string, raw: number } | null, incomeTaxAmount: { formatted: string, raw: number } | null, notionalExpense: { formatted: string, raw: number } | null };
export type SalariesRecordMainSalaryFieldsFragment = { month: string, employee: { id: string } | null, baseAmount: { formatted: string } | null, directAmount: { formatted: string }, globalAdditionalHoursAmount: { formatted: string } | null, bonus: { formatted: string, raw: number } | null, gift: { formatted: string, raw: number } | null, recovery: { formatted: string, raw: number } | null, vacationTakeout: { formatted: string, raw: number } | null };
export type SalariesRecordWorkFrameFieldsFragment = { month: string, workDays: number | null, employee: { id: string } | null, vacationDays: { added: number | null, taken: number | null, balance: number | null } | null, sicknessDays: { balance: number | null } | null };
export type SalariesMonthFieldsFragment = { month: string, pensionEmployeePercentage: number | null, pensionEmployerPercentage: number | null, compensationsPercentage: number | null, trainingFundEmployeePercentage: number | null, trainingFundEmployerPercentage: number | null, workDays: number | null, employee: { id: string, name: string } | null, baseAmount: { formatted: string } | null, directAmount: { formatted: string }, globalAdditionalHoursAmount: { formatted: string } | null, bonus: { formatted: string, raw: number } | null, gift: { formatted: string, raw: number } | null, recovery: { formatted: string, raw: number } | null, vacationTakeout: { formatted: string, raw: number } | null, pensionFund: { id: string, name: string } | null, pensionEmployeeAmount: { formatted: string, raw: number } | null, pensionEmployerAmount: { formatted: string, raw: number } | null, compensationsAmount: { formatted: string, raw: number } | null, trainingFund: { id: string, name: string } | null, trainingFundEmployeeAmount: { formatted: string, raw: number } | null, trainingFundEmployerAmount: { formatted: string, raw: number } | null, healthInsuranceAmount: { formatted: string, raw: number } | null, socialSecurityEmployeeAmount: { formatted: string, raw: number } | null, socialSecurityEmployerAmount: { formatted: string, raw: number } | null, incomeTaxAmount: { formatted: string, raw: number } | null, notionalExpense: { formatted: string, raw: number } | null, vacationDays: { added: number | null, taken: number | null, balance: number | null } | null, sicknessDays: { balance: number | null } | null };
export type SalariesTableFieldsFragment = { month: string, pensionEmployeePercentage: number | null, pensionEmployerPercentage: number | null, compensationsPercentage: number | null, trainingFundEmployeePercentage: number | null, trainingFundEmployerPercentage: number | null, workDays: number | null, employee: { id: string, name: string } | null, baseAmount: { formatted: string } | null, directAmount: { formatted: string }, globalAdditionalHoursAmount: { formatted: string } | null, bonus: { formatted: string, raw: number } | null, gift: { formatted: string, raw: number } | null, recovery: { formatted: string, raw: number } | null, vacationTakeout: { formatted: string, raw: number } | null, pensionFund: { id: string, name: string } | null, pensionEmployeeAmount: { formatted: string, raw: number } | null, pensionEmployerAmount: { formatted: string, raw: number } | null, compensationsAmount: { formatted: string, raw: number } | null, trainingFund: { id: string, name: string } | null, trainingFundEmployeeAmount: { formatted: string, raw: number } | null, trainingFundEmployerAmount: { formatted: string, raw: number } | null, healthInsuranceAmount: { formatted: string, raw: number } | null, socialSecurityEmployeeAmount: { formatted: string, raw: number } | null, socialSecurityEmployerAmount: { formatted: string, raw: number } | null, incomeTaxAmount: { formatted: string, raw: number } | null, notionalExpense: { formatted: string, raw: number } | null, vacationDays: { added: number | null, taken: number | null, balance: number | null } | null, sicknessDays: { balance: number | null } | null };
export type SalariesRecordFieldsFragment = { month: string, pensionEmployeePercentage: number | null, pensionEmployerPercentage: number | null, compensationsPercentage: number | null, trainingFundEmployeePercentage: number | null, trainingFundEmployerPercentage: number | null, workDays: number | null, employee: { id: string, name: string } | null, baseAmount: { formatted: string } | null, directAmount: { formatted: string }, globalAdditionalHoursAmount: { formatted: string } | null, bonus: { formatted: string, raw: number } | null, gift: { formatted: string, raw: number } | null, recovery: { formatted: string, raw: number } | null, vacationTakeout: { formatted: string, raw: number } | null, pensionFund: { id: string, name: string } | null, pensionEmployeeAmount: { formatted: string, raw: number } | null, pensionEmployerAmount: { formatted: string, raw: number } | null, compensationsAmount: { formatted: string, raw: number } | null, trainingFund: { id: string, name: string } | null, trainingFundEmployeeAmount: { formatted: string, raw: number } | null, trainingFundEmployerAmount: { formatted: string, raw: number } | null, healthInsuranceAmount: { formatted: string, raw: number } | null, socialSecurityEmployeeAmount: { formatted: string, raw: number } | null, socialSecurityEmployerAmount: { formatted: string, raw: number } | null, incomeTaxAmount: { formatted: string, raw: number } | null, notionalExpense: { formatted: string, raw: number } | null, vacationDays: { added: number | null, taken: number | null, balance: number | null } | null, sicknessDays: { balance: number | null } | null };
export type AllDepositsQueryVariables = Exact<{ [key: string]: never; }>;
export type AllDepositsQuery = { allDeposits: Array<{ id: string, name: string, currency: Currency | null, openDate: unknown, closeDate: unknown, isOpen: boolean, metadata: { id: string, currentBalance: { raw: number, formatted: string }, totalDeposit: { raw: number, formatted: string }, totalInterest: { raw: number, formatted: string } } }> };
export type BusinessScreenQueryVariables = Exact<{
businessId: string;
}>;
export type BusinessScreenQuery = { business:
| { __typename: 'LtdFinancialEntity', id: string, governmentId: string | null, name: string, createdAt: unknown, isActive: boolean, hebrewName: string | null, address: string | null, city: string | null, zipCode: string | null, email: string | null, phoneNumber: string | null, website: string | null, optionalVAT: boolean | null, exemptDealer: boolean | null, isReceiptEnough: boolean | null, isDocumentsOptional: boolean | null, pcn874RecordType: Pcn874RecordType | null, irsCode: number | null, ownerId: string | null, clientInfo: { id: string, emails: Array<string>, integrations: { id: string, hiveId: string | null, linearId: string | null, slackChannelKey: string | null, notionId: string | null, workflowyUrl: string | null, greenInvoiceInfo: { businessId: string, greenInvoiceId: string | null } | null } } | null, adminInfo: { id: string, registrationDate: unknown, withholdingTaxCompanyId: string | null, socialSecurityDeductionsId: string | null, withholdingTaxAnnualIds: Array<{ id: string, year: number }>, socialSecurityEmployerIds: Array<{ id: string, year: number }>, taxAdvancesAnnualIds: Array<{ id: string, year: number }>, taxAdvancesRates: Array<{ date: unknown, rate: number }> } | null, country: { id: string, code: unknown }, sortCode: { id: string, key: number, defaultIrsCode: number | null } | null, taxCategory: { id: string } | null, suggestions: { phrases: Array<string>, emails: Array<string> | null, description: string | null, tags: Array<{ id: string }>, emailListener: { internalEmailLinks: Array<string> | null, emailBody: boolean | null, attachments: Array<EmailAttachmentType> | null } | null } | null }
| { __typename: 'PersonalFinancialEntity', id: string, name: string, createdAt: unknown, isActive: boolean, pcn874RecordType: Pcn874RecordType | null, irsCode: number | null, ownerId: string | null }
};
export type ContractsScreenQueryVariables = Exact<{
adminId: string;
}>;
export type ContractsScreenQuery = { contractsByAdmin: Array<{ id: string, isActive: boolean, purchaseOrders: Array<string>, startDate: unknown, endDate: unknown, billingCycle: BillingCycle, product: Product | null, plan: SubscriptionPlan | null, operationsLimit: unknown, msCloud: unknown, client: { id: string, originalBusiness: { id: string, name: string } }, amount: { raw: number, formatted: string } }> };
export type AllChargesQueryVariables = Exact<{
page?: number | null | undefined;
limit?: number | null | undefined;
filters?: ChargeFilter | null | undefined;
}>;
export type AllChargesQuery = { allCharges: { nodes: Array<
| { __typename: 'BankDepositCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'BusinessTripCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, businessTrip: { id: string, name: string } | null, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'CommonCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'ConversionCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'CreditcardBankCharge', id: string, validCreditCardAmount: boolean, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'DividendCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'FinancialCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'ForeignSecuritiesCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'InternalTransferCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'MonthlyVatCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'SalaryCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
>, pageInfo: { totalPages: number } } };
export type ChargeScreenQueryVariables = Exact<{
chargeId: string;
}>;
export type ChargeScreenQuery = { charge:
| { __typename: 'BankDepositCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'BusinessTripCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, businessTrip: { id: string, name: string } | null, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'CommonCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'ConversionCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'CreditcardBankCharge', id: string, validCreditCardAmount: boolean, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'DividendCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'FinancialCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'ForeignSecuritiesCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'InternalTransferCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'MonthlyVatCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'SalaryCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
};
export type MissingInfoChargesQueryVariables = Exact<{
page?: number | null | undefined;
limit?: number | null | undefined;
}>;
export type MissingInfoChargesQuery = { chargesWithMissingRequiredInfo: { nodes: Array<
| { __typename: 'BankDepositCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'BusinessTripCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, businessTrip: { id: string, name: string } | null, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'CommonCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'ConversionCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'CreditcardBankCharge', id: string, validCreditCardAmount: boolean, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'DividendCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'FinancialCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'ForeignSecuritiesCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'InternalTransferCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'MonthlyVatCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
| { __typename: 'SalaryCharge', id: string, minEventDate: unknown, minDebitDate: unknown, minDocumentsDate: unknown, maxDebitDate: unknown, maxEventDate: unknown, maxDocumentsDate: unknown, userDescription: string | null, accountantApproval: AccountantStatus, validationData: { missingInfo: Array<MissingChargeInfo> } | null, totalAmount: { raw: number, currency: Currency } | null, vat: { raw: number } | null, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, tags: Array<{ id: string, name: string, namePath: Array<string> | null }>, taxCategory: { id: string, name: string } | null, metadata: { transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } & ({ invalidLedger: LedgerValidationStatus } | { invalidLedger?: never }) | null }
>, pageInfo: { totalPages: number } } };
export type DocumentsScreenQueryVariables = Exact<{
filters: DocumentsFilters;
}>;
export type DocumentsScreenQuery = { documentsByFilters: Array<
| { __typename: 'CreditInvoice', serialNumber: string | null, date: unknown, id: string, image: unknown, file: unknown, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, vat: { raw: number, formatted: string, currency: Currency } | null, amount: { raw: number, formatted: string, currency: Currency } | null, charge:
| { __typename: 'BankDepositCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'BusinessTripCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'CommonCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'ConversionCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'CreditcardBankCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'DividendCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'FinancialCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'ForeignSecuritiesCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'InternalTransferCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'MonthlyVatCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'SalaryCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| null }
| { __typename: 'Invoice', serialNumber: string | null, date: unknown, id: string, image: unknown, file: unknown, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, vat: { raw: number, formatted: string, currency: Currency } | null, amount: { raw: number, formatted: string, currency: Currency } | null, charge:
| { __typename: 'BankDepositCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'BusinessTripCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'CommonCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'ConversionCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'CreditcardBankCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'DividendCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'FinancialCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'ForeignSecuritiesCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'InternalTransferCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'MonthlyVatCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'SalaryCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| null }
| { __typename: 'InvoiceReceipt', serialNumber: string | null, date: unknown, id: string, image: unknown, file: unknown, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, vat: { raw: number, formatted: string, currency: Currency } | null, amount: { raw: number, formatted: string, currency: Currency } | null, charge:
| { __typename: 'BankDepositCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'BusinessTripCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'CommonCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'ConversionCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'CreditcardBankCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'DividendCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'FinancialCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'ForeignSecuritiesCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'InternalTransferCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'MonthlyVatCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'SalaryCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| null }
| { __typename: 'OtherDocument', id: string, image: unknown, file: unknown, charge:
| { __typename: 'BankDepositCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'BusinessTripCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'CommonCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'ConversionCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'CreditcardBankCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'DividendCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'FinancialCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'ForeignSecuritiesCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'InternalTransferCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'MonthlyVatCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'SalaryCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| null }
| { __typename: 'Proforma', serialNumber: string | null, date: unknown, id: string, image: unknown, file: unknown, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, vat: { raw: number, formatted: string, currency: Currency } | null, amount: { raw: number, formatted: string, currency: Currency } | null, charge:
| { __typename: 'BankDepositCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'BusinessTripCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'CommonCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'ConversionCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'CreditcardBankCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'DividendCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'FinancialCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'ForeignSecuritiesCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'InternalTransferCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'MonthlyVatCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'SalaryCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| null }
| { __typename: 'Receipt', serialNumber: string | null, date: unknown, id: string, image: unknown, file: unknown, creditor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, debtor:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null, vat: { raw: number, formatted: string, currency: Currency } | null, amount: { raw: number, formatted: string, currency: Currency } | null, charge:
| { __typename: 'BankDepositCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'BusinessTripCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'CommonCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'ConversionCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'CreditcardBankCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'DividendCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'FinancialCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'ForeignSecuritiesCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'InternalTransferCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'MonthlyVatCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'SalaryCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| null }
| { __typename: 'Unprocessed', id: string, image: unknown, file: unknown, charge:
| { __typename: 'BankDepositCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'BusinessTripCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'CommonCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'ConversionCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'CreditcardBankCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'DividendCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'FinancialCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'ForeignSecuritiesCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'InternalTransferCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'MonthlyVatCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| { __typename: 'SalaryCharge', id: string, userDescription: string | null, vat: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
| { id: string, eventDate: unknown, sourceDescription: string, effectiveDate: unknown, amount: { __typename: 'FinancialAmount', formatted: string } }
> }
| null }
> };
export type MonthlyDocumentDraftByClientQueryVariables = Exact<{
clientId: string;
issueMonth: unknown;
}>;
export type MonthlyDocumentDraftByClientQuery = { clientMonthlyChargeDraft: { description: string | null, remarks: string | null, footer: string | null, type: DocumentType, date: string | null, dueDate: string | null, language: DocumentLanguage, currency: Currency, vatType: DocumentVatType, rounding: boolean | null, signed: boolean | null, maxPayments: number | null, linkedDocumentIds: Array<string> | null, linkedPaymentId: string | null, discount: { amount: number, type: DocumentDiscountType } | null, client: { id: string, emails: Array<string>, originalBusiness: { id: string, name: string, address: string | null, city: string | null, zipCode: string | null, governmentId: string | null, phoneNumber: string | null, country: { id: string, code: unknown } }, integrations: { id: string } } | null, income: Array<{ currency: Currency, currencyRate: number | null, description: string, itemId: string | null, price: number, quantity: number, vatRate: number | null, vatType: DocumentVatType }> | null, payment: Array<{ currency: Currency, currencyRate: number | null, date: string | null, price: number, type: PaymentType, bankName: string | null, bankBranch: string | null, bankAccount: string | null, chequeNum: string | null, accountId: string | null, transactionId: string | null, cardType: DocumentPaymentRecordCardType | null, cardNum: string | null, numPayments: number | null, firstPayment: number | null }> | null } };
export type MonthlyDocumentsDraftsQueryVariables = Exact<{
issueMonth: unknown;
}>;
export type MonthlyDocumentsDraftsQuery = { periodicalDocumentDrafts: Array<{ description: string | null, remarks: string | null, footer: string | null, type: DocumentType, date: string | null, dueDate: string | null, language: DocumentLanguage, currency: Currency, vatType: DocumentVatType, rounding: boolean | null, signed: boolean | null, maxPayments: number | null, linkedDocumentIds: Array<string> | null, linkedPaymentId: string | null, discount: { amount: number, type: DocumentDiscountType } | null, client: { id: string, emails: Array<string>, originalBusiness: { id: string, name: string, address: string | null, city: string | null, zipCode: string | null, governmentId: string | null, phoneNumber: string | null, country: { id: string, code: unknown } }, integrations: { id: string } } | null, income: Array<{ currency: Currency, currencyRate: number | null, description: string, itemId: string | null, price: number, quantity: number, vatRate: number | null, vatType: DocumentVatType }> | null, payment: Array<{ currency: Currency, currencyRate: number | null, date: string | null, price: number, type: PaymentType, bankName: string | null, bankBranch: string | null, bankAccount: string | null, chequeNum: string | null, accountId: string | null, transactionId: string | null, cardType: DocumentPaymentRecordCardType | null, cardNum: string | null, numPayments: number | null, firstPayment: number | null }> | null }> };
export type AllOpenContractsQueryVariables = Exact<{ [key: string]: never; }>;
export type AllOpenContractsQuery = { allOpenContracts: Array<{ id: string, billingCycle: BillingCycle, client: { id: string, originalBusiness: { id: string, name: string } } }> };
export type AnnualAuditStepsStatusQueryVariables = Exact<{
ownerId: string;
year: number;
}>;
export type AnnualAuditStepsStatusQuery = { annualAuditStepStatuses: Array<{ id: string, stepId: string, status: AnnualAuditStepStatus, notes: string | null }> };
export type AccountantApprovalStatusQueryVariables = Exact<{
fromDate: unknown;
toDate: unknown;
}>;
export type AccountantApprovalStatusQuery = { accountantApprovalStatus: { totalCharges: number, approvedCount: number, pendingCount: number, unapprovedCount: number } };
export type LedgerValidationStatusQueryVariables = Exact<{
limit?: number | null | undefined;
filters?: ChargeFilter | null | undefined;
}>;
export type LedgerValidationStatusQuery = { chargesWithLedgerChanges: Array<{ charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }> };
export type AnnualAuditOpeningBalanceStatusQueryVariables = Exact<{
ownerId: string;
year: number;
}>;
export type AnnualAuditOpeningBalanceStatusQuery = { annualAuditOpeningBalanceStatus: { id: string, userType: AnnualAuditOpeningBalanceUserType, balanceChargeId: string | null, derivedStatus: AnnualAuditStepStatus, errorMessage: string | null } };
export type AnnualFinancialChargesQueryVariables = Exact<{
ownerId?: string | null | undefined;
year: unknown;
}>;
export type AnnualFinancialChargesQuery = { annualFinancialCharges: { id: string, revaluationCharge: { id: string } | null, taxExpensesCharge: { id: string } | null, depreciationCharge: { id: string } | null, recoveryReserveCharge: { id: string } | null, vacationReserveCharge: { id: string } | null, bankDepositsRevaluationCharge: { id: string } | null } };
export type Step05PrevYearTemplateQueryVariables = Exact<{
ownerId: string;
year: number;
}>;
export type Step05PrevYearTemplateQuery = { annualAuditStepStatuses: Array<{ id: string, stepId: string, status: AnnualAuditStepStatus, evidence: string | null }> };
export type AdminLedgerLockDateQueryVariables = Exact<{
ownerId?: string | null | undefined;
}>;
export type AdminLedgerLockDateQuery = { adminContext: { id: string, ledgerLock: unknown } };
export type Step09SaveTemplateStatusQueryVariables = Exact<{
ownerId: string;
year: number;
}>;
export type Step09SaveTemplateStatusQuery = { annualAuditStepStatuses: Array<{ id: string, stepId: string, status: AnnualAuditStepStatus, evidence: string | null }> };
export type AnnualRevenueReportClientFragment = { id: string, name: string, revenueLocal: { raw: number, formatted: string, currency: Currency }, revenueDefaultForeign: { raw: number, formatted: string, currency: Currency }, records: Array<{ id: string, date: unknown, chargeId: string, description: string | null, reference: string | null, revenueLocal: { raw: number, formatted: string, currency: Currency }, revenueDefaultForeign: { raw: number, formatted: string, currency: Currency }, revenueOriginal: { raw: number, formatted: string, currency: Currency } }> };
export type AnnualRevenueReportCountryFragment = { id: string, code: string, name: string, revenueLocal: { raw: number, formatted: string, currency: Currency }, revenueDefaultForeign: { raw: number, formatted: string, currency: Currency }, clients: Array<{ id: string, name: string, revenueDefaultForeign: { raw: number, formatted: string, currency: Currency }, revenueLocal: { raw: number, formatted: string, currency: Currency }, records: Array<{ id: string, date: unknown, chargeId: string, description: string | null, reference: string | null, revenueLocal: { raw: number, formatted: string, currency: Currency }, revenueDefaultForeign: { raw: number, formatted: string, currency: Currency }, revenueOriginal: { raw: number, formatted: string, currency: Currency } }> }> };
export type AnnualRevenueReportScreenQueryVariables = Exact<{
filters: AnnualRevenueReportFilter;
}>;
export type AnnualRevenueReportScreenQuery = { annualRevenueReport: { id: string, year: number, countries: Array<{ id: string, name: string, code: string, revenueLocal: { raw: number, formatted: string, currency: Currency }, revenueDefaultForeign: { raw: number, formatted: string, currency: Currency }, clients: Array<{ id: string, name: string, revenueLocal: { raw: number, formatted: string, currency: Currency }, revenueDefaultForeign: { raw: number, formatted: string, currency: Currency }, records: Array<{ id: string, date: unknown, description: string | null, reference: string | null, chargeId: string, revenueLocal: { raw: number, formatted: string, currency: Currency }, revenueDefaultForeign: { raw: number, formatted: string, currency: Currency }, revenueOriginal: { raw: number, formatted: string, currency: Currency } }> }> }> } };
export type AnnualRevenueReportRecordFragment = { id: string, chargeId: string, date: unknown, description: string | null, reference: string | null, revenueLocal: { raw: number, formatted: string, currency: Currency }, revenueDefaultForeign: { raw: number, formatted: string, currency: Currency }, revenueOriginal: { raw: number, formatted: string, currency: Currency } };
export type BalanceReportExtendedTransactionsQueryVariables = Exact<{
transactionIDs: Array<string> | string;
}>;
export type BalanceReportExtendedTransactionsQuery = { transactionsByIDs: Array<
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string, currency: Currency }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
| { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string, currency: Currency }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null }
> };
export type BalanceReportScreenQueryVariables = Exact<{
fromDate: unknown;
toDate: unknown;
ownerId?: string | null | undefined;
}>;
export type BalanceReportScreenQuery = { transactionsForBalanceReport: Array<{ id: string, date: unknown, month: number, year: number, isFee: boolean, description: string | null, amountUsd: { formatted: string, raw: number }, amount: { currency: Currency, raw: number }, counterparty:
| { id: string }
| { id: string }
| { id: string }
| null, account:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
, charge:
| { id: string, tags: Array<{ id: string, name: string }> }
| { id: string, tags: Array<{ id: string, name: string }> }
| { id: string, tags: Array<{ id: string, name: string }> }
| { id: string, tags: Array<{ id: string, name: string }> }
| { id: string, tags: Array<{ id: string, name: string }> }
| { id: string, tags: Array<{ id: string, name: string }> }
| { id: string, tags: Array<{ id: string, name: string }> }
| { id: string, tags: Array<{ id: string, name: string }> }
| { id: string, tags: Array<{ id: string, name: string }> }
| { id: string, tags: Array<{ id: string, name: string }> }
| { id: string, tags: Array<{ id: string, name: string }> }
}> };
type DepreciationReportRecordCore_DepreciationReportRecord_Fragment = { id: string, originalCost: number | null, reportYearDelta: number | null, totalDepreciableCosts: number, reportYearClaimedDepreciation: number, pastYearsAccumulatedDepreciation: number, totalDepreciation: number, netValue: number };
type DepreciationReportRecordCore_DepreciationReportSummaryRecord_Fragment = { id: string, originalCost: number | null, reportYearDelta: number | null, totalDepreciableCosts: number, reportYearClaimedDepreciation: number, pastYearsAccumulatedDepreciation: number, totalDepreciation: number, netValue: number };
export type DepreciationReportRecordCoreFragment =
| DepreciationReportRecordCore_DepreciationReportRecord_Fragment
| DepreciationReportRecordCore_DepreciationReportSummaryRecord_Fragment
;
export type DepreciationReportScreenQueryVariables = Exact<{
filters: DepreciationReportFilter;
}>;
export type DepreciationReportScreenQuery = { depreciationReport: { id: string, year: number, categories: Array<{ id: string, category: { id: string, name: string, percentage: number }, records: Array<{ id: string, chargeId: string, description: string | null, purchaseDate: unknown, activationDate: unknown, statutoryDepreciationRate: number, claimedDepreciationRate: number | null, originalCost: number | null, reportYearDelta: number | null, totalDepreciableCosts: number, reportYearClaimedDepreciation: number, pastYearsAccumulatedDepreciation: number, totalDepreciation: number, netValue: number }>, summary: { id: string, originalCost: number | null, reportYearDelta: number | null, totalDepreciableCosts: number, reportYearClaimedDepreciation: number, pastYearsAccumulatedDepreciation: number, totalDepreciation: number, netValue: number } }>, summary: { id: string, originalCost: number | null, reportYearDelta: number | null, totalDepreciableCosts: number, reportYearClaimedDepreciation: number, pastYearsAccumulatedDepreciation: number, totalDepreciation: number, netValue: number } } };
export type Shaam6111DataContentBalanceSheetFragment = { id: string, balanceSheet: Array<{ code: number, amount: number, label: string }> | null };
export type Shaam6111DataContentHeaderFragment = { id: string, header: { taxYear: string, businessDescription: string | null, taxFileNumber: string, idNumber: string, vatFileNumber: string | null, withholdingTaxFileNumber: string | null, businessType: BusinessType, reportingMethod: ReportingMethod, currencyType: CurrencyType, amountsInThousands: boolean, accountingMethod: AccountingMethod, accountingSystem: AccountingSystem, softwareRegistrationNumber: string | null, isPartnership: boolean | null, partnershipCount: number | null, partnershipProfitShare: number | null, ifrsImplementationYear: string | null, ifrsReportingOption: IfrsReportingOption | null, includesProfitLoss: boolean, includesTaxAdjustment: boolean, includesBalanceSheet: boolean, industryCode: string, auditOpinionType: AuditOpinionType | null } };
type Shaam6111DataContentHeaderBusiness_LtdFinancialEntity_Fragment = { id: string, name: string };
type Shaam6111DataContentHeaderBusiness_PersonalFinancialEntity_Fragment = { id: string, name: string };
export type Shaam6111DataContentHeaderBusinessFragment =
| Shaam6111DataContentHeaderBusiness_LtdFinancialEntity_Fragment
| Shaam6111DataContentHeaderBusiness_PersonalFinancialEntity_Fragment
;
export type Shaam6111ReportScreenQueryVariables = Exact<{
year: number;
businessId?: string | null | undefined;
}>;
export type Shaam6111ReportScreenQuery = { shaam6111: { id: string, year: number, data: { id: string, header: { taxYear: string, businessDescription: string | null, taxFileNumber: string, idNumber: string, vatFileNumber: string | null, withholdingTaxFileNumber: string | null, businessType: BusinessType, reportingMethod: ReportingMethod, currencyType: CurrencyType, amountsInThousands: boolean, accountingMethod: AccountingMethod, accountingSystem: AccountingSystem, softwareRegistrationNumber: string | null, isPartnership: boolean | null, partnershipCount: number | null, partnershipProfitShare: number | null, ifrsImplementationYear: string | null, ifrsReportingOption: IfrsReportingOption | null, includesProfitLoss: boolean, includesTaxAdjustment: boolean, includesBalanceSheet: boolean, industryCode: string, auditOpinionType: AuditOpinionType | null }, profitAndLoss: Array<{ code: number, amount: number, label: string }>, taxAdjustment: Array<{ code: number, amount: number, label: string }>, balanceSheet: Array<{ code: number, amount: number, label: string }> | null }, business:
| { id: string, name: string }
| { id: string, name: string }
} };
export type Shaam6111DataContentProfitLossFragment = { id: string, profitAndLoss: Array<{ code: number, amount: number, label: string }> };
export type Shaam6111DataContentFragment = { id: string, header: { taxYear: string, businessDescription: string | null, taxFileNumber: string, idNumber: string, vatFileNumber: string | null, withholdingTaxFileNumber: string | null, businessType: BusinessType, reportingMethod: ReportingMethod, currencyType: CurrencyType, amountsInThousands: boolean, accountingMethod: AccountingMethod, accountingSystem: AccountingSystem, softwareRegistrationNumber: string | null, isPartnership: boolean | null, partnershipCount: number | null, partnershipProfitShare: number | null, ifrsImplementationYear: string | null, ifrsReportingOption: IfrsReportingOption | null, includesProfitLoss: boolean, includesTaxAdjustment: boolean, includesBalanceSheet: boolean, industryCode: string, auditOpinionType: AuditOpinionType | null }, profitAndLoss: Array<{ code: number, amount: number, label: string }>, taxAdjustment: Array<{ code: number, amount: number, label: string }>, balanceSheet: Array<{ code: number, amount: number, label: string }> | null };
export type Shaam6111DataContentTaxAdjustmentFragment = { id: string, taxAdjustment: Array<{ code: number, amount: number, label: string }> };
export type AllSortCodesForScreenQueryVariables = Exact<{ [key: string]: never; }>;
export type AllSortCodesForScreenQuery = { allSortCodes: Array<{ id: string, ownerId: string, key: number, name: string | null, defaultIrsCode: number | null }> };
export type AllTagsScreenQueryVariables = Exact<{ [key: string]: never; }>;
export type AllTagsScreenQuery = { allTags: Array<{ id: string, name: string, namePath: Array<string> | null, parent: { id: string, name: string } | null }> };
export type AllTaxCategoriesForScreenQueryVariables = Exact<{ [key: string]: never; }>;
export type AllTaxCategoriesForScreenQuery = { taxCategories: Array<{ id: string, name: string, sortCode: { id: string, key: number, name: string | null } | null }> };
type TransactionsTableAccountFields_CommonTransaction_Fragment = { id: string, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
};
type TransactionsTableAccountFields_ConversionTransaction_Fragment = { id: string, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
};
export type TransactionsTableAccountFieldsFragment =
| TransactionsTableAccountFields_CommonTransaction_Fragment
| TransactionsTableAccountFields_ConversionTransaction_Fragment
;
type TransactionsTableEntityFields_CommonTransaction_Fragment = { id: string, sourceDescription: string, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null };
type TransactionsTableEntityFields_ConversionTransaction_Fragment = { id: string, sourceDescription: string, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null };
export type TransactionsTableEntityFieldsFragment =
| TransactionsTableEntityFields_CommonTransaction_Fragment
| TransactionsTableEntityFields_ConversionTransaction_Fragment
;
type TransactionsTableDebitDateFields_CommonTransaction_Fragment = { id: string, effectiveDate: unknown, sourceEffectiveDate: unknown };
type TransactionsTableDebitDateFields_ConversionTransaction_Fragment = { id: string, effectiveDate: unknown, sourceEffectiveDate: unknown };
export type TransactionsTableDebitDateFieldsFragment =
| TransactionsTableDebitDateFields_CommonTransaction_Fragment
| TransactionsTableDebitDateFields_ConversionTransaction_Fragment
;
type TransactionsTableDescriptionFields_CommonTransaction_Fragment = { id: string, sourceDescription: string };
type TransactionsTableDescriptionFields_ConversionTransaction_Fragment = { id: string, sourceDescription: string };
export type TransactionsTableDescriptionFieldsFragment =
| TransactionsTableDescriptionFields_CommonTransaction_Fragment
| TransactionsTableDescriptionFields_ConversionTransaction_Fragment
;
type TransactionsTableEventDateFields_CommonTransaction_Fragment = { id: string, eventDate: unknown };
type TransactionsTableEventDateFields_ConversionTransaction_Fragment = { id: string, eventDate: unknown };
export type TransactionsTableEventDateFieldsFragment =
| TransactionsTableEventDateFields_CommonTransaction_Fragment
| TransactionsTableEventDateFields_ConversionTransaction_Fragment
;
type TransactionsTableSourceIdFields_CommonTransaction_Fragment = { id: string, referenceKey: string | null };
type TransactionsTableSourceIdFields_ConversionTransaction_Fragment = { id: string, referenceKey: string | null };
export type TransactionsTableSourceIdFieldsFragment =
| TransactionsTableSourceIdFields_CommonTransaction_Fragment
| TransactionsTableSourceIdFields_ConversionTransaction_Fragment
;
type TransactionForTransactionsTableFields_CommonTransaction_Fragment = { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null };
type TransactionForTransactionsTableFields_ConversionTransaction_Fragment = { id: string, isFee: boolean | null, chargeId: string, eventDate: unknown, effectiveDate: unknown, sourceEffectiveDate: unknown, sourceDescription: string, referenceKey: string | null, amount: { raw: number, formatted: string }, cryptoExchangeRate: { rate: number } | null, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, counterparty:
| { name: string, id: string }
| { name: string, id: string }
| { name: string, id: string }
| null, missingInfoSuggestions: { business:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
} | null };
export type TransactionForTransactionsTableFieldsFragment =
| TransactionForTransactionsTableFields_CommonTransaction_Fragment
| TransactionForTransactionsTableFields_ConversionTransaction_Fragment
;
type TransactionToDownloadForTransactionsTableFields_CommonTransaction_Fragment = { id: string, effectiveDate: unknown, eventDate: unknown, referenceKey: string | null, sourceDescription: string, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, amount: { currency: Currency, raw: number }, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null };
type TransactionToDownloadForTransactionsTableFields_ConversionTransaction_Fragment = { id: string, effectiveDate: unknown, eventDate: unknown, referenceKey: string | null, sourceDescription: string, account:
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
| { id: string, name: string, type: FinancialAccountType }
, amount: { currency: Currency, raw: number }, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null };
export type TransactionToDownloadForTransactionsTableFieldsFragment =
| TransactionToDownloadForTransactionsTableFields_CommonTransaction_Fragment
| TransactionToDownloadForTransactionsTableFields_ConversionTransaction_Fragment
;
export type AcceptInvitationMutationVariables = Exact<{
token: string;
}>;
export type AcceptInvitationMutation = { acceptInvitation: { success: boolean, businessId: string, roleId: string } };
export type AddBusinessTripAccommodationsExpenseMutationVariables = Exact<{
fields: AddBusinessTripAccommodationsExpenseInput;
}>;
export type AddBusinessTripAccommodationsExpenseMutation = { addBusinessTripAccommodationsExpense: string };
export type AddBusinessTripCarRentalExpenseMutationVariables = Exact<{
fields: AddBusinessTripCarRentalExpenseInput;
}>;
export type AddBusinessTripCarRentalExpenseMutation = { addBusinessTripCarRentalExpense: string };
export type AddBusinessTripFlightsExpenseMutationVariables = Exact<{
fields: AddBusinessTripFlightsExpenseInput;
}>;
export type AddBusinessTripFlightsExpenseMutation = { addBusinessTripFlightsExpense: string };
export type AddBusinessTripOtherExpenseMutationVariables = Exact<{
fields: AddBusinessTripOtherExpenseInput;
}>;
export type AddBusinessTripOtherExpenseMutation = { addBusinessTripOtherExpense: string };
export type AddBusinessTripTravelAndSubsistenceExpenseMutationVariables = Exact<{
fields: AddBusinessTripTravelAndSubsistenceExpenseInput;
}>;
export type AddBusinessTripTravelAndSubsistenceExpenseMutation = { addBusinessTripTravelAndSubsistenceExpense: string };
export type AddDepreciationRecordMutationVariables = Exact<{
fields: InsertDepreciationRecordInput;
}>;
export type AddDepreciationRecordMutation = { insertDepreciationRecord:
| { __typename: 'CommonError', message: string }
| { __typename: 'DepreciationRecord', id: string }
};
export type AddSortCodeMutationVariables = Exact<{
key: number;
name: string;
defaultIrsCode?: number | null | undefined;
}>;
export type AddSortCodeMutation = { addSortCode: boolean };
export type AddTagMutationVariables = Exact<{
tagName: string;
parentTag?: string | null | undefined;
}>;
export type AddTagMutation = { addTag: boolean };
export type AnnualAuditStepStatusQueryVariables = Exact<{
ownerId: string;
year: number;
}>;
export type AnnualAuditStepStatusQuery = { annualAuditStepStatuses: Array<{ id: string, stepId: string, status: AnnualAuditStepStatus }> };
export type AssignChargeToDepositMutationVariables = Exact<{
chargeId: string;
depositId: string;
}>;
export type AssignChargeToDepositMutation = { assignChargeToDeposit: { id: string } };
export type GenerateBalanceChargeMutationVariables = Exact<{
description: string;
balanceRecords: Array<InsertMiscExpenseInput> | InsertMiscExpenseInput;
}>;
export type GenerateBalanceChargeMutation = { generateBalanceCharge: { id: string } };
export type BatchUpdateBusinessesMutationVariables = Exact<{
businessIds: Array<string> | string;
fields: BatchUpdateBusinessInput;
}>;
export type BatchUpdateBusinessesMutation = { batchUpdateBusinesses: Array<
| { id: string }
| { id: string }
> };
export type BatchUpdateChargesMutationVariables = Exact<{
chargeIds: Array<string> | string;
fields: UpdateChargeInput;
}>;
export type BatchUpdateChargesMutation = { batchUpdateCharges:
| { __typename: 'BatchUpdateChargesSuccessfulResult', charges: Array<
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
> }
| { __typename: 'CommonError', message: string }
};
export type CategorizeBusinessTripExpenseMutationVariables = Exact<{
fields: CategorizeBusinessTripExpenseInput;
}>;
export type CategorizeBusinessTripExpenseMutation = { categorizeBusinessTripExpense: string };
export type CategorizeIntoExistingBusinessTripExpenseMutationVariables = Exact<{
fields: CategorizeIntoExistingBusinessTripExpenseInput;
}>;
export type CategorizeIntoExistingBusinessTripExpenseMutation = { categorizeIntoExistingBusinessTripExpense: string };
export type CloseDocumentMutationVariables = Exact<{
documentId: string;
}>;
export type CloseDocumentMutation = { closeDocument: boolean };
export type CreateContractMutationVariables = Exact<{
input: CreateContractInput;
}>;
export type CreateContractMutation = { createContract: { id: string } };
export type CreateDepositFromChargeMutationVariables = Exact<{
chargeId: string;
name: string;
}>;
export type CreateDepositFromChargeMutation = { createDepositFromCharge: { id: string, name: string, currency: Currency | null, isOpen: boolean } };
export type CreateDepositMutationVariables = Exact<{
name: string;
currency: Currency;
openDate: unknown;
accountId?: string | null | undefined;
}>;
export type CreateDepositMutation = { createDeposit: { id: string, currency: Currency | null, isOpen: boolean } };
export type CreateFinancialAccountMutationVariables = Exact<{
input: CreateFinancialAccountInput;
}>;
export type CreateFinancialAccountMutation = { createFinancialAccount:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
};
export type CreateInvitationMutationVariables = Exact<{
email: string;
roleId: string;
}>;
export type CreateInvitationMutation = { createInvitation: { id: string, email: string, roleId: string, expiresAt: unknown } };
export type CreditShareholdersBusinessTripTravelAndSubsistenceMutationVariables = Exact<{
businessTripId: string;
}>;
export type CreditShareholdersBusinessTripTravelAndSubsistenceMutation = { creditShareholdersBusinessTripTravelAndSubsistence: Array<string> };
export type FlagForeignFeeTransactionsMutationVariables = Exact<{ [key: string]: never; }>;
export type FlagForeignFeeTransactionsMutation = { flagForeignFeeTransactions: { success: boolean, errors: Array<string> | null } };
export type MergeChargesByTransactionReferenceMutationVariables = Exact<{
dryRun?: boolean | null | undefined;
}>;
export type MergeChargesByTransactionReferenceMutation = { mergeChargesByTransactionReference: { success: boolean, errors: Array<string> | null } };
export type CalculateCreditcardTransactionsDebitDateMutationVariables = Exact<{ [key: string]: never; }>;
export type CalculateCreditcardTransactionsDebitDateMutation = { calculateCreditcardTransactionsDebitDate: boolean };
export type DeleteBusinessTripAttendeeMutationVariables = Exact<{
fields: DeleteBusinessTripAttendeeInput;
}>;
export type DeleteBusinessTripAttendeeMutation = { deleteBusinessTripAttendee: boolean };
export type DeleteBusinessTripExpenseMutationVariables = Exact<{
businessTripExpenseId: string;
}>;
export type DeleteBusinessTripExpenseMutation = { deleteBusinessTripExpense: boolean };
export type DeleteBusinessMutationVariables = Exact<{
businessId: string;
}>;
export type DeleteBusinessMutation = { deleteBusiness: boolean };
export type DeleteChargeMutationVariables = Exact<{
chargeId: string;
}>;
export type DeleteChargeMutation = { deleteCharge: boolean };
export type DeleteContractMutationVariables = Exact<{
contractId: string;
}>;
export type DeleteContractMutation = { deleteContract: boolean };
export type DeleteDepreciationRecordMutationVariables = Exact<{
depreciationRecordId: string;
}>;
export type DeleteDepreciationRecordMutation = { deleteDepreciationRecord: boolean };
export type DeleteDocumentMutationVariables = Exact<{
documentId: string;
}>;
export type DeleteDocumentMutation = { deleteDocument: boolean };
export type DeleteDynamicReportTemplateMutationVariables = Exact<{
name: string;
}>;
export type DeleteDynamicReportTemplateMutation = { deleteDynamicReportTemplate: string };
export type DeleteMiscExpenseMutationVariables = Exact<{
id: string;
}>;
export type DeleteMiscExpenseMutation = { deleteMiscExpense: boolean };
export type DeleteProviderCredentialsMutationVariables = Exact<{
provider: ProviderKey;
}>;
export type DeleteProviderCredentialsMutation = { deleteProviderCredentials:
| { message: string }
| { id: string, provider: ProviderKey, success: boolean }
};
export type DeleteTagMutationVariables = Exact<{
tagId: string;
}>;
export type DeleteTagMutation = { deleteTag: boolean };
export type FetchDeelDocumentsMutationVariables = Exact<{ [key: string]: never; }>;
export type FetchDeelDocumentsMutation = { fetchDeelDocuments: Array<
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
> };
export type GenerateApiKeyMutationVariables = Exact<{
name: string;
roleId: string;
}>;
export type GenerateApiKeyMutation = { generateApiKey: { apiKey: string, record: { id: string, name: string, roleId: string, lastUsedAt: unknown, createdAt: unknown } } };
export type GenerateRevaluationChargeMutationVariables = Exact<{
ownerId: string;
date: unknown;
}>;
export type GenerateRevaluationChargeMutation = { generateRevaluationCharge: { id: string } };
export type GenerateBankDepositsRevaluationChargeMutationVariables = Exact<{
ownerId: string;
date: unknown;
}>;
export type GenerateBankDepositsRevaluationChargeMutation = { generateBankDepositsRevaluationCharge: { id: string } };
export type GenerateTaxExpensesChargeMutationVariables = Exact<{
ownerId: string;
date: unknown;
}>;
export type GenerateTaxExpensesChargeMutation = { generateTaxExpensesCharge: { id: string } };
export type GenerateDepreciationChargeMutationVariables = Exact<{
ownerId: string;
date: unknown;
}>;
export type GenerateDepreciationChargeMutation = { generateDepreciationCharge: { id: string } };
export type GenerateRecoveryReserveChargeMutationVariables = Exact<{
ownerId: string;
date: unknown;
}>;
export type GenerateRecoveryReserveChargeMutation = { generateRecoveryReserveCharge: { id: string } };
export type GenerateVacationReserveChargeMutationVariables = Exact<{
ownerId: string;
date: unknown;
}>;
export type GenerateVacationReserveChargeMutation = { generateVacationReserveCharge: { id: string } };
export type AllAdminBusinessesQueryVariables = Exact<{ [key: string]: never; }>;
export type AllAdminBusinessesQuery = { allAdminBusinesses: Array<{ id: string, name: string, governmentId: string }> };
export type AllClientsQueryVariables = Exact<{ [key: string]: never; }>;
export type AllClientsQuery = { allClients: Array<{ id: string, originalBusiness: { id: string, name: string } }> };
export type AllBusinessesQueryVariables = Exact<{ [key: string]: never; }>;
export type AllBusinessesQuery = { allBusinesses: { nodes: Array<
| { id: string, name: string }
| { id: string, name: string }
> } | null };
export type AllCountriesQueryVariables = Exact<{ [key: string]: never; }>;
export type AllCountriesQuery = { allCountries: Array<{ id: string, name: string, code: unknown }> };
export type AllFinancialAccountsQueryVariables = Exact<{ [key: string]: never; }>;
export type AllFinancialAccountsQuery = { allFinancialAccounts: Array<
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
> };
export type AllFinancialEntitiesQueryVariables = Exact<{ [key: string]: never; }>;
export type AllFinancialEntitiesQuery = { allFinancialEntities: { nodes: Array<
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
> } | null };
export type AllSortCodesQueryVariables = Exact<{
ownerId: string;
}>;
export type AllSortCodesQuery = { allSortCodesByBusiness: Array<{ id: string, key: number, name: string | null, defaultIrsCode: number | null }> };
export type AllTagsQueryVariables = Exact<{ [key: string]: never; }>;
export type AllTagsQuery = { allTags: Array<{ id: string, name: string, namePath: Array<string> | null }> };
export type AllTaxCategoriesQueryVariables = Exact<{ [key: string]: never; }>;
export type AllTaxCategoriesQuery = { taxCategories: Array<{ id: string, name: string }> };
export type InsertBusinessTripAttendeeMutationVariables = Exact<{
fields: InsertBusinessTripAttendeeInput;
}>;
export type InsertBusinessTripAttendeeMutation = { insertBusinessTripAttendee: string };
export type InsertBusinessTripMutationVariables = Exact<{
fields: InsertBusinessTripInput;
}>;
export type InsertBusinessTripMutation = { insertBusinessTrip: string };
export type InsertBusinessMutationVariables = Exact<{
fields: InsertNewBusinessInput;
}>;
export type InsertBusinessMutation = { insertNewBusiness:
| { __typename: 'CommonError', message: string }
| { __typename: 'LtdFinancialEntity', id: string }
};
export type InsertClientMutationVariables = Exact<{
fields: ClientInsertInput;
}>;
export type InsertClientMutation = { insertClient:
| { __typename: 'Client', id: string }
| { __typename: 'CommonError', message: string }
};
export type InsertDocumentMutationVariables = Exact<{
record: InsertDocumentInput;
}>;
export type InsertDocumentMutation = { insertDocument:
| { __typename: 'CommonError', message: string }
| { __typename: 'InsertDocumentSuccessfulResult', document:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
};
export type InsertDynamicReportTemplateMutationVariables = Exact<{
name: string;
template: string;
}>;
export type InsertDynamicReportTemplateMutation = { insertDynamicReportTemplate: { id: string, name: string } };
export type InsertMiscExpenseMutationVariables = Exact<{
chargeId: string;
fields: InsertMiscExpenseInput;
}>;
export type InsertMiscExpenseMutation = { insertMiscExpense: { id: string } };
export type InsertMiscExpensesMutationVariables = Exact<{
chargeId: string;
expenses: Array<InsertMiscExpenseInput> | InsertMiscExpenseInput;
}>;
export type InsertMiscExpensesMutation = { insertMiscExpenses:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
};
export type InsertSalaryRecordMutationVariables = Exact<{
salaryRecords: Array<SalaryRecordInput> | SalaryRecordInput;
}>;
export type InsertSalaryRecordMutation = { insertSalaryRecords:
| { __typename: 'CommonError', message: string }
| { __typename: 'InsertSalaryRecordsSuccessfulResult', salaryRecords: Array<{ month: string, employee: { id: string } | null }> }
};
export type InsertTaxCategoryMutationVariables = Exact<{
fields: InsertTaxCategoryInput;
}>;
export type InsertTaxCategoryMutation = { insertTaxCategory: { id: string, name: string } };
export type IssueGreenInvoiceDocumentMutationVariables = Exact<{
input: DocumentIssueInput;
emailContent?: string | null | undefined;
attachment?: boolean | null | undefined;
chargeId?: string | null | undefined;
}>;
export type IssueGreenInvoiceDocumentMutation = { issueGreenInvoiceDocument:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
};
export type IssueMonthlyDocumentsMutationVariables = Exact<{
generateDocumentsInfo: Array<DocumentIssueInput> | DocumentIssueInput;
}>;
export type IssueMonthlyDocumentsMutation = { issueGreenInvoiceDocuments: { success: boolean, errors: Array<string> | null } };
export type LedgerLockMutationVariables = Exact<{
date: unknown;
}>;
export type LedgerLockMutation = { lockLedgerRecords: boolean };
export type LockDynamicReportTemplateMutationVariables = Exact<{
name: string;
}>;
export type LockDynamicReportTemplateMutation = { lockDynamicReportTemplate: { id: string, name: string, isLocked: boolean, updated: unknown } };
export type MergeBusinessesMutationVariables = Exact<{
targetBusinessId: string;
businessIdsToMerge: Array<string> | string;
}>;
export type MergeBusinessesMutation = { mergeBusinesses:
| { __typename: 'LtdFinancialEntity', id: string }
| { __typename: 'PersonalFinancialEntity', id: string }
};
export type MergeChargesMutationVariables = Exact<{
baseChargeID: string;
chargeIdsToMerge: Array<string> | string;
fields?: UpdateChargeInput | null | undefined;
}>;
export type MergeChargesMutation = { mergeCharges:
| { __typename: 'CommonError', message: string }
| { __typename: 'MergeChargeSuccessfulResult', charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
}
};
export type PreviewDocumentMutationVariables = Exact<{
input: DocumentIssueInput;
}>;
export type PreviewDocumentMutation = { previewDocument: string };
export type ProviderCredentialsQueryVariables = Exact<{ [key: string]: never; }>;
export type ProviderCredentialsQuery = { providerCredentials: Array<{ id: string, provider: ProviderKey, configuredAt: unknown }> };
export type RegenerateLedgerMutationVariables = Exact<{
chargeId: string;
}>;
export type RegenerateLedgerMutation = { regenerateLedgerRecords:
| { __typename: 'CommonError', message: string }
| { __typename: 'Ledger', records: Array<{ id: string }> }
};
export type RelevantDepositsForChargeQueryVariables = Exact<{
chargeId: string;
}>;
export type RelevantDepositsForChargeQuery = { relevantDepositsForCharge: { id: string, error: string | null, deposits: Array<{ id: string, name: string, currency: Currency | null, isOpen: boolean }> } };
export type RemoveBusinessUserMutationVariables = Exact<{
userId: string | number;
}>;
export type RemoveBusinessUserMutation = { removeBusinessUser: boolean };
export type RevokeApiKeyMutationVariables = Exact<{
id: string | number;
}>;
export type RevokeApiKeyMutation = { revokeApiKey: boolean };
export type RevokeInvitationMutationVariables = Exact<{
id: string | number;
}>;
export type RevokeInvitationMutation = { revokeInvitation: boolean };
export type SetAnnualAuditStepStatusMutationVariables = Exact<{
input: SetAnnualAuditStepStatusInput;
}>;
export type SetAnnualAuditStepStatusMutation = { setAnnualAuditStepStatus: { id: string, ownerId: string, year: number, stepId: string, status: AnnualAuditStepStatus, notes: string | null, evidence: string | null, updatedAt: unknown, completedAt: unknown } };
export type SetAnnualAuditStep03StatusMutationVariables = Exact<{
input: SetAnnualAuditStep03StatusInput;
}>;
export type SetAnnualAuditStep03StatusMutation = { setAnnualAuditStep03Status: { id: string, ownerId: string, year: number, stepId: string, status: AnnualAuditStepStatus, notes: string | null, updatedAt: unknown, completedAt: unknown } };
export type SetAnnualAuditStep09StatusMutationVariables = Exact<{
input: SetAnnualAuditStep09StatusInput;
}>;
export type SetAnnualAuditStep09StatusMutation = { setAnnualAuditStep09Status: { id: string, ownerId: string, year: number, stepId: string, status: AnnualAuditStepStatus, notes: string | null, evidence: string | null, updatedAt: unknown, completedAt: unknown } };
export type SetDeelCredentialsMutationVariables = Exact<{
apiToken: string;
}>;
export type SetDeelCredentialsMutation = { setDeelCredentials:
| { message: string }
| { id: string, provider: ProviderKey, configuredAt: unknown }
};
export type SetGreenInvoiceCredentialsMutationVariables = Exact<{
id: string;
secret: string;
}>;
export type SetGreenInvoiceCredentialsMutation = { setGreenInvoiceCredentials:
| { message: string }
| { id: string, provider: ProviderKey, configuredAt: unknown }
};
export type SyncGreenInvoiceDocumentsMutationVariables = Exact<{
ownerId: string;
}>;
export type SyncGreenInvoiceDocumentsMutation = { syncGreenInvoiceDocuments: Array<
| { id: string, documentType: DocumentType | null, charge:
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| null }
| { id: string, documentType: DocumentType | null, charge:
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| null }
| { id: string, documentType: DocumentType | null, charge:
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| null }
| { id: string, documentType: DocumentType | null, charge:
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| null }
| { id: string, documentType: DocumentType | null, charge:
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| null }
| { id: string, documentType: DocumentType | null, charge:
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| null }
| { id: string, documentType: DocumentType | null, charge:
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| null }
> };
export type UnlockDynamicReportTemplateMutationVariables = Exact<{
name: string;
}>;
export type UnlockDynamicReportTemplateMutation = { unlockDynamicReportTemplate: { id: string, name: string, isLocked: boolean, updated: unknown } };
export type UpdateAdminBusinessMutationVariables = Exact<{
adminBusinessId: string;
fields: UpdateAdminBusinessInput;
}>;
export type UpdateAdminBusinessMutation = { updateAdminBusiness: { id: string } };
export type UpdateBusinessTripAccommodationsExpenseMutationVariables = Exact<{
fields: UpdateBusinessTripAccommodationsExpenseInput;
}>;
export type UpdateBusinessTripAccommodationsExpenseMutation = { updateBusinessTripAccommodationsExpense: string };
export type UpdateBusinessTripAccountantApprovalMutationVariables = Exact<{
businessTripId: string;
status: AccountantStatus;
}>;
export type UpdateBusinessTripAccountantApprovalMutation = { updateBusinessTripAccountantApproval: AccountantStatus };
export type UpdateBusinessTripAttendeeMutationVariables = Exact<{
fields: BusinessTripAttendeeUpdateInput;
}>;
export type UpdateBusinessTripAttendeeMutation = { updateBusinessTripAttendee: string };
export type UpdateBusinessTripCarRentalExpenseMutationVariables = Exact<{
fields: UpdateBusinessTripCarRentalExpenseInput;
}>;
export type UpdateBusinessTripCarRentalExpenseMutation = { updateBusinessTripCarRentalExpense: string };
export type UpdateBusinessTripFlightsExpenseMutationVariables = Exact<{
fields: UpdateBusinessTripFlightsExpenseInput;
}>;
export type UpdateBusinessTripFlightsExpenseMutation = { updateBusinessTripFlightsExpense: string };
export type UpdateBusinessTripOtherExpenseMutationVariables = Exact<{
fields: UpdateBusinessTripOtherExpenseInput;
}>;
export type UpdateBusinessTripOtherExpenseMutation = { updateBusinessTripOtherExpense: string };
export type UpdateBusinessTripTravelAndSubsistenceExpenseMutationVariables = Exact<{
fields: UpdateBusinessTripTravelAndSubsistenceExpenseInput;
}>;
export type UpdateBusinessTripTravelAndSubsistenceExpenseMutation = { updateBusinessTripTravelAndSubsistenceExpense: string };
export type UpdateBusinessMutationVariables = Exact<{
businessId: string;
ownerId: string;
fields: UpdateBusinessInput;
}>;
export type UpdateBusinessMutation = { updateBusiness:
| { __typename: 'CommonError', message: string }
| { __typename: 'LtdFinancialEntity', id: string, name: string }
};
export type UpdateChargeAccountantApprovalMutationVariables = Exact<{
chargeId: string;
status: AccountantStatus;
}>;
export type UpdateChargeAccountantApprovalMutation = { updateChargeAccountantApproval: AccountantStatus };
export type UpdateChargeMutationVariables = Exact<{
chargeId: string;
fields: UpdateChargeInput;
}>;
export type UpdateChargeMutation = { updateCharge:
| { __typename: 'CommonError', message: string }
| { __typename: 'UpdateChargeSuccessfulResult', charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
}
};
export type UpdateClientMutationVariables = Exact<{
businessId: string;
fields: ClientUpdateInput;
}>;
export type UpdateClientMutation = { updateClient:
| { __typename: 'Client', id: string }
| { __typename: 'CommonError', message: string }
};
export type UpdateContractMutationVariables = Exact<{
contractId: string;
input: UpdateContractInput;
}>;
export type UpdateContractMutation = { updateContract: { id: string } };
export type UpdateDepositMutationVariables = Exact<{
id: string;
name?: string | null | undefined;
openDate?: unknown;
closeDate?: unknown;
}>;
export type UpdateDepositMutation = { updateDeposit: { id: string, name: string, openDate: unknown, closeDate: unknown, isOpen: boolean } };
export type UpdateDepreciationRecordMutationVariables = Exact<{
fields: UpdateDepreciationRecordInput;
}>;
export type UpdateDepreciationRecordMutation = { updateDepreciationRecord:
| { __typename: 'CommonError', message: string }
| { __typename: 'DepreciationRecord', id: string }
};
export type UpdateDocumentMutationVariables = Exact<{
documentId: string;
fields: UpdateDocumentFieldsInput;
}>;
export type UpdateDocumentMutation = { updateDocument:
| { __typename: 'CommonError', message: string }
| { __typename: 'UpdateDocumentSuccessfulResult', document:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
};
export type UpdateDynamicReportTemplateNameMutationVariables = Exact<{
name: string;
newName: string;
}>;
export type UpdateDynamicReportTemplateNameMutation = { updateDynamicReportTemplateName: { id: string, name: string } };
export type UpdateDynamicReportTemplateMutationVariables = Exact<{
name: string;
template: string;
}>;
export type UpdateDynamicReportTemplateMutation = { updateDynamicReportTemplate: { id: string, name: string } };
export type UpdateFinancialAccountMutationVariables = Exact<{
financialAccountId: string;
fields: UpdateFinancialAccountInput;
}>;
export type UpdateFinancialAccountMutation = { updateFinancialAccount:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
};
export type UpdateMiscExpenseMutationVariables = Exact<{
id: string;
fields: UpdateMiscExpenseInput;
}>;
export type UpdateMiscExpenseMutation = { updateMiscExpense: { id: string } };
export type UpdateOrInsertSalaryRecordsMutationVariables = Exact<{
salaryRecords: Array<SalaryRecordInput> | SalaryRecordInput;
}>;
export type UpdateOrInsertSalaryRecordsMutation = { insertOrUpdateSalaryRecords:
| { __typename: 'CommonError', message: string }
| { __typename: 'InsertSalaryRecordsSuccessfulResult', salaryRecords: Array<{ month: string, employee: { id: string } | null }> }
};
export type UpdateSalaryRecordMutationVariables = Exact<{
salaryRecord: SalaryRecordEditInput;
}>;
export type UpdateSalaryRecordMutation = { updateSalaryRecord:
| { __typename: 'CommonError', message: string }
| { __typename: 'UpdateSalaryRecordSuccessfulResult', salaryRecord: { month: string, employee: { id: string } | null } }
};
export type UpdateSortCodeMutationVariables = Exact<{
key: number;
fields: UpdateSortCodeFieldsInput;
}>;
export type UpdateSortCodeMutation = { updateSortCode: boolean };
export type UpdateTagMutationVariables = Exact<{
tagId: string;
fields: UpdateTagFieldsInput;
}>;
export type UpdateTagMutation = { updateTag: boolean };
export type UpdateTaxCategoryMutationVariables = Exact<{
taxCategoryId: string;
fields: UpdateTaxCategoryInput;
}>;
export type UpdateTaxCategoryMutation = { updateTaxCategory:
| { __typename: 'CommonError', message: string }
| { __typename: 'TaxCategory', id: string, name: string }
};
export type UpdateTransactionMutationVariables = Exact<{
transactionId: string;
fields: UpdateTransactionInput;
}>;
export type UpdateTransactionMutation = { updateTransaction:
| { __typename: 'CommonError', message: string }
| { __typename: 'CommonTransaction', id: string }
| { __typename: 'ConversionTransaction', id: string }
};
export type UpdateTransactionsMutationVariables = Exact<{
transactionIds: Array<string> | string;
fields: UpdateTransactionInput;
}>;
export type UpdateTransactionsMutation = { updateTransactions:
| { __typename: 'CommonError', message: string }
| { __typename: 'UpdatedTransactionsSuccessfulResult', transactions: Array<
| { id: string }
| { id: string }
> }
};
export type UploadDocumentMutationVariables = Exact<{
file: File;
chargeId?: string | null | undefined;
}>;
export type UploadDocumentMutation = { uploadDocument:
| { __typename: 'CommonError', message: string }
| { __typename: 'UploadDocumentSuccessfulResult', document:
| { id: string, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| { id: string, charge:
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| { id: string }
| null }
| null }
};
export type UploadDocumentsFromGoogleDriveMutationVariables = Exact<{
sharedFolderUrl: string;
chargeId?: string | null | undefined;
isSensitive?: boolean | null | undefined;
}>;
export type UploadDocumentsFromGoogleDriveMutation = { batchUploadDocumentsFromGoogleDrive: Array<
| { message: string }
| { document:
| { id: string, documentType: DocumentType | null, charge:
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| null }
| { id: string, documentType: DocumentType | null, charge:
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| null }
| { id: string, documentType: DocumentType | null, charge:
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| null }
| { id: string, documentType: DocumentType | null, charge:
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| null }
| { id: string, documentType: DocumentType | null, charge:
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| null }
| { id: string, documentType: DocumentType | null, charge:
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| null }
| { id: string, documentType: DocumentType | null, charge:
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| null }
| null }
> };
export type UploadMultipleDocumentsMutationVariables = Exact<{
documents: Array<File> | File;
chargeId?: string | null | undefined;
isSensitive?: boolean | null | undefined;
}>;
export type UploadMultipleDocumentsMutation = { batchUploadDocuments: Array<
| { message: string }
| { document:
| { id: string, documentType: DocumentType | null, charge:
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| null }
| { id: string, documentType: DocumentType | null, charge:
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| null }
| { id: string, documentType: DocumentType | null, charge:
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| null }
| { id: string, documentType: DocumentType | null, charge:
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| null }
| { id: string, documentType: DocumentType | null, charge:
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| null }
| { id: string, documentType: DocumentType | null, charge:
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| null }
| { id: string, documentType: DocumentType | null, charge:
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| { id: string, userDescription: string | null, counterparty:
| { id: string, name: string }
| { id: string, name: string }
| { id: string, name: string }
| null }
| null }
| null }
> };
export type UploadPayrollFileMutationVariables = Exact<{
file: File;
chargeId: string;
}>;
export type UploadPayrollFileMutation = { insertSalaryRecordsFromFile: boolean };
export type UserContextQueryVariables = Exact<{ [key: string]: never; }>;
export type UserContextQuery = { userContext: { activeReadScope: Array<string>, defaultLocalCurrency: Currency | null, defaultCryptoConversionFiatCurrency: Currency | null, ledgerLock: unknown, financialAccountsBusinessesIds: Array<string> | null, locality: string | null, memberships: Array<{ businessId: string, role: string, businessName: string | null }> } | null };
export type RequestIngestControlMutationVariables = Exact<{
input: IngestControlInput;
}>;
export type RequestIngestControlMutation = { requestIngestControl:
| { __typename: 'CommonError', message: string }
| { __typename: 'IngestControlDecision', id: string, tenantId: string, decisionId: string, auditId: string, grant: { id: string, jti: string, tenantId: string, action: string, expiresAt: string }, businessEmailConfig: { businessId: string, internalEmailLinks: Array<string> | null, emailBody: boolean | null, attachments: Array<EmailAttachmentType> | null } | null }
};
export type IngestEmailMutationVariables = Exact<{
input: IngestEmailInput;
}>;
export type IngestEmailMutation = { ingestEmail:
| { __typename: 'CommonError', message: string }
| { __typename: 'IngestEmailSuccess', outcome: IngestOutcome, ingestId: string | null, existingIngestId: string | null, auditId: string, reasonCode: string | null }
};
export type BusinessEmailConfigQueryVariables = Exact<{
email: string;
}>;
export type BusinessEmailConfigQuery = { businessEmailConfig: { businessId: string, internalEmailLinks: Array<string> | null, emailBody: boolean | null, attachments: Array<EmailAttachmentType> | null } | null };
export type InsertEmailDocumentsMutationVariables = Exact<{
documents: Array<File> | File;
userDescription: string;
messageId?: string | null | undefined;
businessId?: string | null | undefined;
}>;
export type InsertEmailDocumentsMutation = { insertEmailDocuments: boolean };
export type UploadPoalimIlsTransactionsMutationVariables = Exact<{
transactions: Array<PoalimIlsTransactionInput> | PoalimIlsTransactionInput;
}>;
export type UploadPoalimIlsTransactionsMutation = { uploadPoalimIlsTransactions: { inserted: number, skipped: number, insertedIds: Array<string>, insertedTransactions: Array<{ id: string, date: string | null, description: string | null, amount: string | null, account: string | null }>, changedTransactions: Array<{ id: string, changedFields: Array<{ field: string, oldValue: string | null, newValue: string | null }> }> } };
export type UploadPoalimForeignTransactionsMutationVariables = Exact<{
transactions: Array<PoalimForeignTransactionInput> | PoalimForeignTransactionInput;
}>;
export type UploadPoalimForeignTransactionsMutation = { uploadPoalimForeignTransactions: { inserted: number, skipped: number, insertedIds: Array<string>, insertedTransactions: Array<{ id: string, date: string | null, description: string | null, amount: string | null, account: string | null }>, changedTransactions: Array<{ id: string, changedFields: Array<{ field: string, oldValue: string | null, newValue: string | null }> }> } };
export type UploadPoalimSwiftTransactionsMutationVariables = Exact<{
swifts: Array<PoalimSwiftTransactionInput> | PoalimSwiftTransactionInput;
}>;
export type UploadPoalimSwiftTransactionsMutation = { uploadPoalimSwiftTransactions: { inserted: number, skipped: number, insertedIds: Array<string>, insertedTransactions: Array<{ id: string, date: string | null, description: string | null, amount: string | null, account: string | null }>, changedTransactions: Array<{ id: string, changedFields: Array<{ field: string, oldValue: string | null, newValue: string | null }> }> } };
export type UploadIsracardTransactionsMutationVariables = Exact<{
transactions: Array<IsracardTransactionInput> | IsracardTransactionInput;
}>;
export type UploadIsracardTransactionsMutation = { uploadIsracardTransactions: { inserted: number, skipped: number, insertedIds: Array<string>, insertedTransactions: Array<{ id: string, date: string | null, description: string | null, amount: string | null, account: string | null }>, changedTransactions: Array<{ id: string, changedFields: Array<{ field: string, oldValue: string | null, newValue: string | null }> }> } };
export type UploadAmexTransactionsMutationVariables = Exact<{
transactions: Array<AmexTransactionInput> | AmexTransactionInput;
}>;
export type UploadAmexTransactionsMutation = { uploadAmexTransactions: { inserted: number, skipped: number, insertedIds: Array<string>, insertedTransactions: Array<{ id: string, date: string | null, description: string | null, amount: string | null, account: string | null }>, changedTransactions: Array<{ id: string, changedFields: Array<{ field: string, oldValue: string | null, newValue: string | null }> }> } };
export type UploadCalTransactionsMutationVariables = Exact<{
transactions: Array<CalTransactionInput> | CalTransactionInput;
}>;
export type UploadCalTransactionsMutation = { uploadCalTransactions: { inserted: number, skipped: number, insertedIds: Array<string>, insertedTransactions: Array<{ id: string, date: string | null, description: string | null, amount: string | null, account: string | null }>, changedTransactions: Array<{ id: string, changedFields: Array<{ field: string, oldValue: string | null, newValue: string | null }> }> } };
export type UploadDiscountTransactionsMutationVariables = Exact<{
transactions: Array<DiscountTransactionInput> | DiscountTransactionInput;
}>;
export type UploadDiscountTransactionsMutation = { uploadDiscountTransactions: { inserted: number, skipped: number, insertedIds: Array<string>, insertedTransactions: Array<{ id: string, date: string | null, description: string | null, amount: string | null, account: string | null }>, changedTransactions: Array<{ id: string, changedFields: Array<{ field: string, oldValue: string | null, newValue: string | null }> }> } };
export type UploadMaxTransactionsMutationVariables = Exact<{
transactions: Array<MaxTransactionInput> | MaxTransactionInput;
}>;
export type UploadMaxTransactionsMutation = { uploadMaxTransactions: { inserted: number, skipped: number, insertedIds: Array<string>, insertedTransactions: Array<{ id: string, date: string | null, description: string | null, amount: string | null, account: string | null }>, changedTransactions: Array<{ id: string, changedFields: Array<{ field: string, oldValue: string | null, newValue: string | null }> }> } };
export type UploadCurrencyRatesMutationVariables = Exact<{
rates: Array<CurrencyRateInput> | CurrencyRateInput;
}>;
export type UploadCurrencyRatesMutation = { uploadCurrencyRates: { inserted: number, skipped: number, insertedIds: Array<string>, insertedTransactions: Array<{ id: string, date: string | null, description: string | null, amount: string | null, account: string | null }>, changedTransactions: Array<{ id: string, changedFields: Array<{ field: string, oldValue: string | null, newValue: string | null }> }> } };
export type UploadOtsarHahayalIlsTransactionsMutationVariables = Exact<{
transactions: Array<OtsarHahayalIlsTransactionInput> | OtsarHahayalIlsTransactionInput;
}>;
export type UploadOtsarHahayalIlsTransactionsMutation = { uploadOtsarHahayalIlsTransactions: { inserted: number, skipped: number, insertedIds: Array<string>, insertedTransactions: Array<{ id: string, date: string | null, description: string | null, amount: string | null, account: string | null }>, changedTransactions: Array<{ id: string, changedFields: Array<{ field: string, oldValue: string | null, newValue: string | null }> }> } };
export type UploadOtsarHahayalForeignTransactionsMutationVariables = Exact<{
transactions: Array<OtsarHahayalForeignTransactionInput> | OtsarHahayalForeignTransactionInput;
}>;
export type UploadOtsarHahayalForeignTransactionsMutation = { uploadOtsarHahayalForeignTransactions: { inserted: number, skipped: number, insertedIds: Array<string>, insertedTransactions: Array<{ id: string, date: string | null, description: string | null, amount: string | null, account: string | null }>, changedTransactions: Array<{ id: string, changedFields: Array<{ field: string, oldValue: string | null, newValue: string | null }> }> } };
export type UploadOtsarHahayalCreditCardTransactionsMutationVariables = Exact<{
transactions: Array<OtsarHahayalCreditCardTransactionInput> | OtsarHahayalCreditCardTransactionInput;
}>;
export type UploadOtsarHahayalCreditCardTransactionsMutation = { uploadOtsarHahayalCreditCardTransactions: { inserted: number, skipped: number, insertedIds: Array<string>, insertedTransactions: Array<{ id: string, date: string | null, description: string | null, amount: string | null, account: string | null }>, changedTransactions: Array<{ id: string, changedFields: Array<{ field: string, oldValue: string | null, newValue: string | null }> }> } };
export const DepositTransactionFieldsFragmentDoc = gql`
fragment DepositTransactionFields on Transaction {
id
eventDate
chargeId
amount {
raw
formatted
currency
}
debitExchangeRates {
aud
cad
eur
gbp
jpy
sek
usd
date
}
eventExchangeRates {
aud
cad
eur
gbp
jpy
sek
usd
date
}
}
`;
export const BusinessTripsRowFieldsFragmentDoc = gql`
fragment BusinessTripsRowFields on BusinessTrip {
id
name
accountantApproval
}
`;
export const ClientIntegrationsSectionFragmentDoc = gql`
fragment ClientIntegrationsSection on LtdFinancialEntity {
id
clientInfo {
id
integrations {
id
greenInvoiceInfo {
businessId
greenInvoiceId
}
hiveId
linearId
slackChannelKey
notionId
workflowyUrl
}
}
}
`;
export const BusinessHeaderFragmentDoc = gql`
fragment BusinessHeader on Business {
__typename
id
name
createdAt
isActive
... on LtdFinancialEntity {
governmentId
adminInfo {
id
}
clientInfo {
id
}
}
}
`;
export const BusinessContactSectionFragmentDoc = gql`
fragment BusinessContactSection on Business {
__typename
id
... on LtdFinancialEntity {
name
hebrewName
country {
id
code
}
governmentId
address
city
zipCode
email
phoneNumber
website
clientInfo {
id
emails
}
}
}
`;
export const BusinessConfigurationSectionFragmentDoc = gql`
fragment BusinessConfigurationSection on Business {
__typename
id
pcn874RecordType
irsCode
isActive
ownerId
... on LtdFinancialEntity {
optionalVAT
exemptDealer
isReceiptEnough
isDocumentsOptional
sortCode {
id
key
defaultIrsCode
}
taxCategory {
id
}
suggestions {
phrases
emails
tags {
id
}
description
emailListener {
internalEmailLinks
emailBody
attachments
}
}
clientInfo {
id
}
}
}
`;
export const BusinessAdminSectionFragmentDoc = gql`
fragment BusinessAdminSection on Business {
__typename
id
... on LtdFinancialEntity {
adminInfo {
id
registrationDate
withholdingTaxAnnualIds {
id
year
}
withholdingTaxCompanyId
socialSecurityEmployerIds {
id
year
}
socialSecurityDeductionsId
taxAdvancesAnnualIds {
id
year
}
taxAdvancesRates {
date
rate
}
}
}
}
`;
export const BusinessPageFragmentDoc = gql`
fragment BusinessPage on Business {
id
... on LtdFinancialEntity {
clientInfo {
id
}
adminInfo {
id
}
}
...ClientIntegrationsSection
...BusinessHeader
...BusinessContactSection
...BusinessConfigurationSection
...BusinessAdminSection
}
${ClientIntegrationsSectionFragmentDoc}
${BusinessHeaderFragmentDoc}
${BusinessContactSectionFragmentDoc}
${BusinessConfigurationSectionFragmentDoc}
${BusinessAdminSectionFragmentDoc}`;
export const ChargeMatchesTableFieldsFragmentDoc = gql`
fragment ChargeMatchesTableFields on ChargeMatch {
charge {
id
__typename
minEventDate
minDebitDate
minDocumentsDate
totalAmount {
raw
formatted
}
vat {
raw
formatted
}
counterparty {
name
id
}
userDescription
tags {
id
name
namePath
}
taxCategory {
id
name
}
}
confidenceScore
}
`;
export const ChargeMatchCardFieldsFragmentDoc = gql`
fragment ChargeMatchCardFields on Charge {
__typename
id
minEventDate
minDebitDate
minDocumentsDate
totalAmount {
raw
formatted
currency
}
counterparty {
id
name
}
userDescription
additionalDocuments {
id
documentType
image
file
}
transactions {
id
eventDate
sourceDescription
amount {
raw
formatted
}
}
miscExpenses {
id
description
amount {
formatted
}
}
}
`;
export const DocumentsGalleryFieldsFragmentDoc = gql`
fragment DocumentsGalleryFields on Charge {
id
additionalDocuments {
id
image
... on FinancialDocument {
documentType
}
}
}
`;
export const TableDocumentsRowFieldsFragmentDoc = gql`
fragment TableDocumentsRowFields on Document {
id
documentType
image
file
description
remarks
charge {
id
}
... on FinancialDocument {
amount {
raw
formatted
currency
}
missingInfoSuggestions {
amount {
raw
formatted
currency
}
isIncome
counterparty {
id
name
}
owner {
id
name
}
}
date
vat {
raw
formatted
currency
}
serialNumber
allocationNumber
creditor {
id
name
}
debtor {
id
name
}
issuedDocumentInfo {
id
status
originalDocument {
income {
description
}
}
}
}
}
`;
export const TableDocumentsFieldsFragmentDoc = gql`
fragment TableDocumentsFields on Charge {
id
additionalDocuments {
id
...TableDocumentsRowFields
}
}
${TableDocumentsRowFieldsFragmentDoc}`;
export const LedgerRecordsTableFieldsFragmentDoc = gql`
fragment LedgerRecordsTableFields on LedgerRecord {
id
creditAccount1 {
__typename
id
name
}
creditAccount2 {
__typename
id
name
}
debitAccount1 {
__typename
id
name
}
debitAccount2 {
__typename
id
name
}
creditAmount1 {
formatted
currency
}
creditAmount2 {
formatted
currency
}
debitAmount1 {
formatted
currency
}
debitAmount2 {
formatted
currency
}
localCurrencyCreditAmount1 {
formatted
raw
}
localCurrencyCreditAmount2 {
formatted
raw
}
localCurrencyDebitAmount1 {
formatted
raw
}
localCurrencyDebitAmount2 {
formatted
raw
}
invoiceDate
valueDate
description
reference
}
`;
export const ChargeLedgerRecordsTableFieldsFragmentDoc = gql`
fragment ChargeLedgerRecordsTableFields on Charge {
id
ledger {
__typename
records {
id
...LedgerRecordsTableFields
}
... on Ledger @defer {
validate {
... on LedgerValidation @defer {
matches
differences {
id
...LedgerRecordsTableFields
}
}
}
}
}
}
${LedgerRecordsTableFieldsFragmentDoc}`;
export const TransactionForTransactionsTableFieldsFragmentDoc = gql`
fragment TransactionForTransactionsTableFields on Transaction {
id
isFee
chargeId
eventDate
effectiveDate
sourceEffectiveDate
amount {
raw
formatted
}
cryptoExchangeRate {
rate
}
account {
id
name
type
}
sourceDescription
referenceKey
counterparty {
name
id
}
missingInfoSuggestions {
business {
id
name
}
}
}
`;
export const ChargeTableTransactionsFieldsFragmentDoc = gql`
fragment ChargeTableTransactionsFields on Charge {
id
transactions {
id
...TransactionForTransactionsTableFields
}
}
${TransactionForTransactionsTableFieldsFragmentDoc}`;
export const ConversionChargeInfoFragmentDoc = gql`
fragment ConversionChargeInfo on Charge {
id
__typename
... on ConversionCharge {
eventRate {
from
to
rate
}
officialRate {
from
to
rate
}
}
}
`;
export const CreditcardBankChargeInfoFragmentDoc = gql`
fragment CreditcardBankChargeInfo on Charge {
id
__typename
... on CreditcardBankCharge {
creditCardTransactions {
id
...TransactionForTransactionsTableFields
}
}
}
${TransactionForTransactionsTableFieldsFragmentDoc}`;
export const TableSalariesFieldsFragmentDoc = gql`
fragment TableSalariesFields on Charge {
id
__typename
... on SalaryCharge {
salaryRecords {
directAmount {
formatted
}
baseAmount {
formatted
}
employee {
id
name
}
pensionFund {
id
name
}
pensionEmployeeAmount {
formatted
}
pensionEmployerAmount {
formatted
}
compensationsAmount {
formatted
}
trainingFund {
id
name
}
trainingFundEmployeeAmount {
formatted
}
trainingFundEmployerAmount {
formatted
}
socialSecurityEmployeeAmount {
formatted
}
socialSecurityEmployerAmount {
formatted
}
incomeTaxAmount {
formatted
}
healthInsuranceAmount {
formatted
}
}
}
}
`;
export const BusinessTripAccountantApprovalFieldsFragmentDoc = gql`
fragment BusinessTripAccountantApprovalFields on BusinessTrip {
id
accountantApproval
}
`;
export const BusinessTripReportHeaderFieldsFragmentDoc = gql`
fragment BusinessTripReportHeaderFields on BusinessTrip {
id
name
dates {
start
end
}
purpose
destination {
id
name
}
...BusinessTripAccountantApprovalFields
}
${BusinessTripAccountantApprovalFieldsFragmentDoc}`;
export const BusinessTripReportSummaryFieldsFragmentDoc = gql`
fragment BusinessTripReportSummaryFields on BusinessTrip {
id
... on BusinessTrip @defer {
summary {
excessExpenditure {
formatted
}
excessTax
rows {
type
totalForeignCurrency {
formatted
}
totalLocalCurrency {
formatted
}
taxableForeignCurrency {
formatted
}
taxableLocalCurrency {
formatted
}
maxTaxableForeignCurrency {
formatted
}
maxTaxableLocalCurrency {
formatted
}
excessExpenditure {
formatted
}
}
errors
}
}
}
`;
export const BusinessTripReportFieldsFragmentDoc = gql`
fragment BusinessTripReportFields on BusinessTrip {
id
...BusinessTripReportHeaderFields
...BusinessTripReportSummaryFields
}
${BusinessTripReportHeaderFieldsFragmentDoc}
${BusinessTripReportSummaryFieldsFragmentDoc}`;
export const ChargesTableErrorsFieldsFragmentDoc = gql`
fragment ChargesTableErrorsFields on Charge {
id
errorsLedger: ledger {
validate {
errors
}
}
}
`;
export const EditMiscExpenseFieldsFragmentDoc = gql`
fragment EditMiscExpenseFields on MiscExpense {
id
amount {
raw
currency
}
description
invoiceDate
valueDate
creditor {
id
}
debtor {
id
}
}
`;
export const TableMiscExpensesFieldsFragmentDoc = gql`
fragment TableMiscExpensesFields on Charge {
id
miscExpenses {
id
amount {
formatted
}
description
invoiceDate
valueDate
creditor {
id
name
}
debtor {
id
name
}
chargeId
...EditMiscExpenseFields
}
}
${EditMiscExpenseFieldsFragmentDoc}`;
export const ExchangeRatesInfoFragmentDoc = gql`
fragment ExchangeRatesInfo on Charge {
id
__typename
... on FinancialCharge {
exchangeRates {
aud
cad
eur
gbp
ils
jpy
sek
usd
eth
grt
usdc
}
}
}
`;
export const ChargeExpansionFieldsFragmentDoc = gql`
fragment ChargeExpansionFields on Charge {
id
__typename
metadata {
transactionsCount
documentsCount
receiptsCount
invoicesCount
ledgerCount
miscExpensesCount
isLedgerLocked
openDocuments
}
totalAmount {
raw
}
...DocumentsGalleryFields @defer
...TableDocumentsFields @defer
...ChargeLedgerRecordsTableFields @defer
...ChargeTableTransactionsFields @defer
...ConversionChargeInfo @defer
...CreditcardBankChargeInfo @defer
...TableSalariesFields @defer
... on BusinessTripCharge {
businessTrip {
id
...BusinessTripReportFields
}
}
...ChargesTableErrorsFields @defer
...TableMiscExpensesFields @defer
...ExchangeRatesInfo @defer
}
${DocumentsGalleryFieldsFragmentDoc}
${TableDocumentsFieldsFragmentDoc}
${ChargeLedgerRecordsTableFieldsFragmentDoc}
${ChargeTableTransactionsFieldsFragmentDoc}
${ConversionChargeInfoFragmentDoc}
${CreditcardBankChargeInfoFragmentDoc}
${TableSalariesFieldsFragmentDoc}
${BusinessTripReportFieldsFragmentDoc}
${ChargesTableErrorsFieldsFragmentDoc}
${TableMiscExpensesFieldsFragmentDoc}
${ExchangeRatesInfoFragmentDoc}`;
export const ChargeForCsvExportFieldsFragmentDoc = gql`
fragment ChargeForCsvExportFields on Charge {
id
__typename
minEventDate
minDebitDate
minDocumentsDate
totalAmount {
raw
currency
}
vat {
raw
}
counterparty {
id
name
}
userDescription
tags {
id
name
}
taxCategory {
id
name
}
accountantApproval
validationData {
isValid
missingInfo
}
missingInfoSuggestions {
description
tags {
id
name
}
}
metadata {
transactionsCount
documentsCount
invoicesCount
receiptsCount
ledgerCount
miscExpensesCount
openDocuments
invalidLedger
}
ledger {
balance {
isBalanced
}
validate {
isValid
errors
}
}
transactions {
id
...TransactionForTransactionsTableFields
}
additionalDocuments {
id
...TableDocumentsRowFields
}
... on BusinessTripCharge {
businessTrip {
id
name
}
}
... on CreditcardBankCharge {
validCreditCardAmount
}
}
${TransactionForTransactionsTableFieldsFragmentDoc}
${TableDocumentsRowFieldsFragmentDoc}`;
export const MonthlyIncomeExpenseChartInfoFragmentDoc = gql`
fragment MonthlyIncomeExpenseChartInfo on IncomeExpenseChart {
monthlyData {
income {
formatted
raw
}
expense {
formatted
raw
}
balance {
formatted
raw
}
date
}
}
`;
export const BusinessTripReportCoreExpenseRowFieldsFragmentDoc = gql`
fragment BusinessTripReportCoreExpenseRowFields on BusinessTripExpense {
id
date
valueDate
amount {
formatted
raw
currency
}
employee {
id
name
}
payedByEmployee
charges {
id
}
}
`;
export const BusinessTripReportAccommodationsRowFieldsFragmentDoc = gql`
fragment BusinessTripReportAccommodationsRowFields on BusinessTripAccommodationExpense {
id
...BusinessTripReportCoreExpenseRowFields
payedByEmployee
country {
id
name
}
nightsCount
attendeesStay {
id
attendee {
id
name
}
nightsCount
}
}
${BusinessTripReportCoreExpenseRowFieldsFragmentDoc}`;
export const BusinessTripReportAccommodationsTableFieldsFragmentDoc = gql`
fragment BusinessTripReportAccommodationsTableFields on BusinessTripAccommodationExpense {
id
date
...BusinessTripReportAccommodationsRowFields
}
${BusinessTripReportAccommodationsRowFieldsFragmentDoc}`;
export const BusinessTripReportAccommodationsFieldsFragmentDoc = gql`
fragment BusinessTripReportAccommodationsFields on BusinessTrip {
id
accommodationExpenses {
id
...BusinessTripReportAccommodationsTableFields
}
}
${BusinessTripReportAccommodationsTableFieldsFragmentDoc}`;
export const BusinessTripReportFlightsRowFieldsFragmentDoc = gql`
fragment BusinessTripReportFlightsRowFields on BusinessTripFlightExpense {
id
payedByEmployee
...BusinessTripReportCoreExpenseRowFields
path
class
attendees {
id
name
}
}
${BusinessTripReportCoreExpenseRowFieldsFragmentDoc}`;
export const BusinessTripReportFlightsTableFieldsFragmentDoc = gql`
fragment BusinessTripReportFlightsTableFields on BusinessTripFlightExpense {
id
date
...BusinessTripReportFlightsRowFields
}
${BusinessTripReportFlightsRowFieldsFragmentDoc}`;
export const BusinessTripReportAttendeeRowFieldsFragmentDoc = gql`
fragment BusinessTripReportAttendeeRowFields on BusinessTripAttendee {
id
name
arrivalDate
departureDate
flights {
id
...BusinessTripReportFlightsTableFields
}
accommodations {
id
...BusinessTripReportAccommodationsTableFields
}
}
${BusinessTripReportFlightsTableFieldsFragmentDoc}
${BusinessTripReportAccommodationsTableFieldsFragmentDoc}`;
export const BusinessTripReportAttendeesFieldsFragmentDoc = gql`
fragment BusinessTripReportAttendeesFields on BusinessTrip {
id
attendees {
id
name
...BusinessTripReportAttendeeRowFields
}
}
${BusinessTripReportAttendeeRowFieldsFragmentDoc}`;
export const BusinessTripReportCarRentalRowFieldsFragmentDoc = gql`
fragment BusinessTripReportCarRentalRowFields on BusinessTripCarRentalExpense {
id
payedByEmployee
...BusinessTripReportCoreExpenseRowFields
days
isFuelExpense
}
${BusinessTripReportCoreExpenseRowFieldsFragmentDoc}`;
export const BusinessTripReportCarRentalFieldsFragmentDoc = gql`
fragment BusinessTripReportCarRentalFields on BusinessTrip {
id
carRentalExpenses {
id
date
...BusinessTripReportCarRentalRowFields
}
}
${BusinessTripReportCarRentalRowFieldsFragmentDoc}`;
export const BusinessTripReportFlightsFieldsFragmentDoc = gql`
fragment BusinessTripReportFlightsFields on BusinessTrip {
id
flightExpenses {
id
...BusinessTripReportFlightsTableFields
}
attendees {
id
name
}
}
${BusinessTripReportFlightsTableFieldsFragmentDoc}`;
export const BusinessTripReportOtherRowFieldsFragmentDoc = gql`
fragment BusinessTripReportOtherRowFields on BusinessTripOtherExpense {
id
...BusinessTripReportCoreExpenseRowFields
payedByEmployee
description
deductibleExpense
}
${BusinessTripReportCoreExpenseRowFieldsFragmentDoc}`;
export const BusinessTripReportOtherFieldsFragmentDoc = gql`
fragment BusinessTripReportOtherFields on BusinessTrip {
id
otherExpenses {
id
date
...BusinessTripReportOtherRowFields
}
}
${BusinessTripReportOtherRowFieldsFragmentDoc}`;
export const BusinessTripReportTravelAndSubsistenceRowFieldsFragmentDoc = gql`
fragment BusinessTripReportTravelAndSubsistenceRowFields on BusinessTripTravelAndSubsistenceExpense {
id
...BusinessTripReportCoreExpenseRowFields
payedByEmployee
expenseType
}
${BusinessTripReportCoreExpenseRowFieldsFragmentDoc}`;
export const BusinessTripReportTravelAndSubsistenceFieldsFragmentDoc = gql`
fragment BusinessTripReportTravelAndSubsistenceFields on BusinessTrip {
id
travelAndSubsistenceExpenses {
id
date
...BusinessTripReportTravelAndSubsistenceRowFields
}
}
${BusinessTripReportTravelAndSubsistenceRowFieldsFragmentDoc}`;
export const TransactionsTableEventDateFieldsFragmentDoc = gql`
fragment TransactionsTableEventDateFields on Transaction {
id
eventDate
}
`;
export const TransactionsTableDebitDateFieldsFragmentDoc = gql`
fragment TransactionsTableDebitDateFields on Transaction {
id
effectiveDate
sourceEffectiveDate
}
`;
export const TransactionsTableAccountFieldsFragmentDoc = gql`
fragment TransactionsTableAccountFields on Transaction {
id
account {
id
name
type
}
}
`;
export const TransactionsTableDescriptionFieldsFragmentDoc = gql`
fragment TransactionsTableDescriptionFields on Transaction {
id
sourceDescription
}
`;
export const TransactionsTableSourceIdFieldsFragmentDoc = gql`
fragment TransactionsTableSourceIDFields on Transaction {
id
referenceKey
}
`;
export const TransactionsTableEntityFieldsFragmentDoc = gql`
fragment TransactionsTableEntityFields on Transaction {
id
counterparty {
name
id
}
sourceDescription
missingInfoSuggestions {
business {
id
name
}
}
}
`;
export const UncategorizedTransactionsTableAmountFieldsFragmentDoc = gql`
fragment UncategorizedTransactionsTableAmountFields on UncategorizedTransaction {
transaction {
id
amount {
raw
formatted
}
cryptoExchangeRate {
rate
}
}
categorizedAmount {
raw
formatted
}
errors
}
`;
export const BusinessTripUncategorizedTransactionsFieldsFragmentDoc = gql`
fragment BusinessTripUncategorizedTransactionsFields on BusinessTrip {
id
uncategorizedTransactions {
transaction {
id
eventDate
chargeId
amount {
raw
}
...TransactionsTableEventDateFields
...TransactionsTableDebitDateFields
...TransactionsTableAccountFields
...TransactionsTableDescriptionFields
...TransactionsTableSourceIDFields
...TransactionsTableEntityFields
}
...UncategorizedTransactionsTableAmountFields
}
}
${TransactionsTableEventDateFieldsFragmentDoc}
${TransactionsTableDebitDateFieldsFragmentDoc}
${TransactionsTableAccountFieldsFragmentDoc}
${TransactionsTableDescriptionFieldsFragmentDoc}
${TransactionsTableSourceIdFieldsFragmentDoc}
${TransactionsTableEntityFieldsFragmentDoc}
${UncategorizedTransactionsTableAmountFieldsFragmentDoc}`;
export const DepreciationRecordRowFieldsFragmentDoc = gql`
fragment DepreciationRecordRowFields on DepreciationRecord {
id
amount {
currency
formatted
raw
}
activationDate
category {
id
name
percentage
}
type
charge {
id
totalAmount {
currency
formatted
raw
}
}
}
`;
export const EditTagFieldsFragmentDoc = gql`
fragment EditTagFields on Tag {
id
name
parent {
id
name
}
}
`;
export const IssueDocumentClientFieldsFragmentDoc = gql`
fragment IssueDocumentClientFields on Client {
id
originalBusiness {
id
address
city
zipCode
country {
id
code
}
governmentId
name
phoneNumber
}
emails
}
`;
export const NewDocumentDraftFragmentDoc = gql`
fragment NewDocumentDraft on DocumentDraft {
description
remarks
footer
type
date
dueDate
language
currency
vatType
discount {
amount
type
}
rounding
signed
maxPayments
client {
id
originalBusiness {
id
name
}
integrations {
id
}
emails
...IssueDocumentClientFields
}
income {
currency
currencyRate
description
itemId
price
quantity
vatRate
vatType
}
payment {
currency
currencyRate
date
price
type
bankName
bankBranch
bankAccount
chequeNum
accountId
transactionId
cardType
cardNum
numPayments
firstPayment
}
linkedDocumentIds
linkedPaymentId
}
${IssueDocumentClientFieldsFragmentDoc}`;
export const SimilarChargesTableFragmentDoc = gql`
fragment SimilarChargesTable on Charge {
id
__typename
counterparty {
name
id
}
minEventDate
minDebitDate
minDocumentsDate
totalAmount {
raw
formatted
}
vat {
raw
formatted
}
userDescription
tags {
id
name
}
taxCategory {
id
name
}
... on BusinessTripCharge {
businessTrip {
id
name
}
}
metadata {
transactionsCount
documentsCount
ledgerCount
miscExpensesCount
}
}
`;
export const NewFetchedDocumentFieldsFragmentDoc = gql`
fragment NewFetchedDocumentFields on Document {
id
documentType
charge {
id
userDescription
counterparty {
id
name
}
}
}
`;
export const ContractForContractsTableFieldsFragmentDoc = gql`
fragment ContractForContractsTableFields on Contract {
id
isActive
client {
id
originalBusiness {
id
name
}
}
purchaseOrders
startDate
endDate
amount {
raw
formatted
}
billingCycle
product
plan
operationsLimit
msCloud
}
`;
export const CorporateTaxRulingReportRuleCellFieldsFragmentDoc = gql`
fragment CorporateTaxRulingReportRuleCellFields on CorporateTaxRule {
id
rule
percentage {
formatted
}
isCompliant
}
`;
export const ReportSubCommentaryTableFieldsFragmentDoc = gql`
fragment ReportSubCommentaryTableFields on ReportCommentarySubRecord {
financialEntity {
id
name
}
amount {
formatted
}
ledgerRecords {
...LedgerRecordsTableFields
}
}
${LedgerRecordsTableFieldsFragmentDoc}`;
export const ReportCommentaryTableFieldsFragmentDoc = gql`
fragment ReportCommentaryTableFields on ReportCommentary {
records {
sortCode {
id
key
name
}
amount {
formatted
}
records {
...ReportSubCommentaryTableFields
}
}
}
${ReportSubCommentaryTableFieldsFragmentDoc}`;
export const TrialBalanceTableFieldsFragmentDoc = gql`
fragment TrialBalanceTableFields on BusinessTransactionsSumFromLedgerRecordsSuccessfulResult {
businessTransactionsSum {
business {
id
name
sortCode {
id
key
name
}
}
credit {
formatted
raw
}
debit {
formatted
raw
}
total {
formatted
raw
}
}
}
`;
export const ChargesTableSuggestionsFieldsFragmentDoc = gql`
fragment ChargesTableSuggestionsFields on Charge {
id
missingInfoSuggestions {
description
tags {
id
name
namePath
}
}
}
`;
export const ChargeForChargesTableFieldsFragmentDoc = gql`
fragment ChargeForChargesTableFields on Charge {
id
__typename
minEventDate
minDebitDate
minDocumentsDate
maxDebitDate
maxEventDate
maxDocumentsDate
totalAmount {
raw
currency
}
vat {
raw
}
counterparty {
name
id
}
userDescription
tags {
id
name
namePath
}
taxCategory {
id
name
}
... on BusinessTripCharge {
businessTrip {
id
name
}
}
metadata {
transactionsCount
documentsCount
ledgerCount
miscExpensesCount
... on ChargeMetadata @defer {
invalidLedger
}
}
accountantApproval
... on CreditcardBankCharge {
validCreditCardAmount
}
... on Charge {
validationData {
missingInfo
}
}
...ChargesTableSuggestionsFields @defer
}
${ChargesTableSuggestionsFieldsFragmentDoc}`;
export const VatReportBusinessTripsFieldsFragmentDoc = gql`
fragment VatReportBusinessTripsFields on VatReportResult {
businessTrips {
id
...ChargeForChargesTableFields
}
}
${ChargeForChargesTableFieldsFragmentDoc}`;
export const VatReportAccountantApprovalFieldsFragmentDoc = gql`
fragment VatReportAccountantApprovalFields on VatReportRecord {
chargeId
chargeAccountantStatus
}
`;
export const VatReportExpensesRowFieldsFragmentDoc = gql`
fragment VatReportExpensesRowFields on VatReportRecord {
...VatReportAccountantApprovalFields
business {
id
name
}
vatNumber
image
allocationNumber
documentSerial
documentDate
chargeDate
chargeId
amount {
formatted
raw
}
localAmount {
formatted
raw
}
localVat {
formatted
raw
}
foreignVatAfterDeduction {
formatted
raw
}
localVatAfterDeduction {
formatted
raw
}
roundedLocalVatAfterDeduction {
formatted
raw
}
taxReducedLocalAmount {
formatted
raw
}
recordType
}
${VatReportAccountantApprovalFieldsFragmentDoc}`;
export const VatReportExpensesFieldsFragmentDoc = gql`
fragment VatReportExpensesFields on VatReportResult {
expenses {
...VatReportExpensesRowFields
roundedLocalVatAfterDeduction {
raw
}
taxReducedLocalAmount {
raw
}
recordType
}
}
${VatReportExpensesRowFieldsFragmentDoc}`;
export const VatReportIncomeRowFieldsFragmentDoc = gql`
fragment VatReportIncomeRowFields on VatReportRecord {
...VatReportAccountantApprovalFields
chargeId
business {
id
name
}
vatNumber
image
allocationNumber
documentSerial
documentDate
chargeDate
taxReducedForeignAmount {
formatted
raw
}
taxReducedLocalAmount {
formatted
raw
}
recordType
}
${VatReportAccountantApprovalFieldsFragmentDoc}`;
export const VatReportIncomeFieldsFragmentDoc = gql`
fragment VatReportIncomeFields on VatReportResult {
income {
...VatReportIncomeRowFields
taxReducedLocalAmount {
raw
}
recordType
}
}
${VatReportIncomeRowFieldsFragmentDoc}`;
export const VatReportMiscTableFieldsFragmentDoc = gql`
fragment VatReportMiscTableFields on VatReportResult {
differentMonthDoc {
id
...ChargeForChargesTableFields
}
}
${ChargeForChargesTableFieldsFragmentDoc}`;
export const VatReportMissingInfoFieldsFragmentDoc = gql`
fragment VatReportMissingInfoFields on VatReportResult {
missingInfo {
id
...ChargeForChargesTableFields
}
}
${ChargeForChargesTableFieldsFragmentDoc}`;
export const VatReportSummaryFieldsFragmentDoc = gql`
fragment VatReportSummaryFields on VatReportResult {
expenses {
roundedLocalVatAfterDeduction {
raw
}
taxReducedLocalAmount {
raw
}
recordType
isProperty
}
income {
roundedLocalVatAfterDeduction {
raw
}
taxReducedLocalAmount {
raw
}
recordType
}
}
`;
export const LedgerCsvFieldsFragmentDoc = gql`
fragment LedgerCsvFields on YearlyLedgerReport {
id
year
financialEntitiesInfo {
entity {
id
name
sortCode {
id
key
}
}
openingBalance {
raw
}
totalCredit {
raw
}
totalDebit {
raw
}
closingBalance {
raw
}
records {
id
amount {
raw
formatted
}
invoiceDate
valueDate
description
reference
counterParty {
id
name
}
balance
}
}
}
`;
export const SalariesRecordEmployeeFieldsFragmentDoc = gql`
fragment SalariesRecordEmployeeFields on Salary {
month
employee {
id
name
}
}
`;
export const SalariesRecordMainSalaryFieldsFragmentDoc = gql`
fragment SalariesRecordMainSalaryFields on Salary {
month
employee {
id
}
baseAmount {
formatted
}
directAmount {
formatted
}
globalAdditionalHoursAmount {
formatted
}
bonus {
formatted
raw
}
gift {
formatted
raw
}
recovery {
formatted
raw
}
vacationTakeout {
formatted
raw
}
}
`;
export const SalariesRecordFundsFieldsFragmentDoc = gql`
fragment SalariesRecordFundsFields on Salary {
month
employee {
id
}
pensionFund {
id
name
}
pensionEmployeeAmount {
formatted
raw
}
pensionEmployeePercentage
pensionEmployerAmount {
formatted
raw
}
pensionEmployerPercentage
compensationsAmount {
formatted
raw
}
compensationsPercentage
trainingFund {
id
name
}
trainingFundEmployeeAmount {
formatted
raw
}
trainingFundEmployeePercentage
trainingFundEmployerAmount {
formatted
raw
}
trainingFundEmployerPercentage
}
`;
export const SalariesRecordInsurancesAndTaxesFieldsFragmentDoc = gql`
fragment SalariesRecordInsurancesAndTaxesFields on Salary {
month
employee {
id
}
healthInsuranceAmount {
formatted
raw
}
socialSecurityEmployeeAmount {
formatted
raw
}
socialSecurityEmployerAmount {
formatted
raw
}
incomeTaxAmount {
formatted
raw
}
notionalExpense {
formatted
raw
}
}
`;
export const SalariesRecordWorkFrameFieldsFragmentDoc = gql`
fragment SalariesRecordWorkFrameFields on Salary {
month
employee {
id
}
vacationDays {
added
taken
balance
}
workDays
sicknessDays {
balance
}
}
`;
export const SalariesRecordFieldsFragmentDoc = gql`
fragment SalariesRecordFields on Salary {
month
employee {
id
}
...SalariesRecordEmployeeFields
...SalariesRecordMainSalaryFields
...SalariesRecordFundsFields
...SalariesRecordInsurancesAndTaxesFields
...SalariesRecordWorkFrameFields
}
${SalariesRecordEmployeeFieldsFragmentDoc}
${SalariesRecordMainSalaryFieldsFragmentDoc}
${SalariesRecordFundsFieldsFragmentDoc}
${SalariesRecordInsurancesAndTaxesFieldsFragmentDoc}
${SalariesRecordWorkFrameFieldsFragmentDoc}`;
export const SalariesMonthFieldsFragmentDoc = gql`
fragment SalariesMonthFields on Salary {
month
employee {
id
}
...SalariesRecordFields
}
${SalariesRecordFieldsFragmentDoc}`;
export const SalariesTableFieldsFragmentDoc = gql`
fragment SalariesTableFields on Salary {
month
employee {
id
}
...SalariesMonthFields
}
${SalariesMonthFieldsFragmentDoc}`;
export const AnnualRevenueReportRecordFragmentDoc = gql`
fragment AnnualRevenueReportRecord on AnnualRevenueReportClientRecord {
id
revenueLocal {
raw
formatted
currency
}
revenueDefaultForeign {
raw
formatted
currency
}
revenueOriginal {
raw
formatted
currency
}
chargeId
date
description
reference
}
`;
export const AnnualRevenueReportClientFragmentDoc = gql`
fragment AnnualRevenueReportClient on AnnualRevenueReportCountryClient {
id
name
revenueLocal {
raw
formatted
currency
}
revenueDefaultForeign {
raw
formatted
currency
}
records {
id
date
...AnnualRevenueReportRecord
}
}
${AnnualRevenueReportRecordFragmentDoc}`;
export const AnnualRevenueReportCountryFragmentDoc = gql`
fragment AnnualRevenueReportCountry on AnnualRevenueReportCountry {
id
code
name
revenueLocal {
raw
formatted
currency
}
revenueDefaultForeign {
raw
formatted
currency
}
clients {
id
revenueDefaultForeign {
raw
}
...AnnualRevenueReportClient
}
}
${AnnualRevenueReportClientFragmentDoc}`;
export const DepreciationReportRecordCoreFragmentDoc = gql`
fragment DepreciationReportRecordCore on DepreciationCoreRecord {
id
originalCost
reportYearDelta
totalDepreciableCosts
reportYearClaimedDepreciation
pastYearsAccumulatedDepreciation
totalDepreciation
netValue
}
`;
export const Shaam6111DataContentHeaderBusinessFragmentDoc = gql`
fragment Shaam6111DataContentHeaderBusiness on Business {
id
name
}
`;
export const Shaam6111DataContentHeaderFragmentDoc = gql`
fragment Shaam6111DataContentHeader on Shaam6111Data {
id
header {
taxYear
businessDescription
taxFileNumber
idNumber
vatFileNumber
withholdingTaxFileNumber
businessType
reportingMethod
currencyType
amountsInThousands
accountingMethod
accountingSystem
softwareRegistrationNumber
isPartnership
partnershipCount
partnershipProfitShare
ifrsImplementationYear
ifrsReportingOption
includesProfitLoss
includesTaxAdjustment
includesBalanceSheet
industryCode
auditOpinionType
}
}
`;
export const Shaam6111DataContentProfitLossFragmentDoc = gql`
fragment Shaam6111DataContentProfitLoss on Shaam6111Data {
id
profitAndLoss {
code
amount
label
}
}
`;
export const Shaam6111DataContentTaxAdjustmentFragmentDoc = gql`
fragment Shaam6111DataContentTaxAdjustment on Shaam6111Data {
id
taxAdjustment {
code
amount
label
}
}
`;
export const Shaam6111DataContentBalanceSheetFragmentDoc = gql`
fragment Shaam6111DataContentBalanceSheet on Shaam6111Data {
id
balanceSheet {
code
amount
label
}
}
`;
export const Shaam6111DataContentFragmentDoc = gql`
fragment Shaam6111DataContent on Shaam6111Data {
id
...Shaam6111DataContentHeader
...Shaam6111DataContentProfitLoss
...Shaam6111DataContentTaxAdjustment
...Shaam6111DataContentBalanceSheet
}
${Shaam6111DataContentHeaderFragmentDoc}
${Shaam6111DataContentProfitLossFragmentDoc}
${Shaam6111DataContentTaxAdjustmentFragmentDoc}
${Shaam6111DataContentBalanceSheetFragmentDoc}`;
export const TransactionToDownloadForTransactionsTableFieldsFragmentDoc = gql`
fragment TransactionToDownloadForTransactionsTableFields on Transaction {
id
account {
id
name
type
}
amount {
currency
raw
}
counterparty {
id
name
}
effectiveDate
eventDate
referenceKey
sourceDescription
}
`;
export const ListApiKeysDocument = gql`
query ListApiKeys {
listApiKeys {
id
name
roleId
lastUsedAt
createdAt
}
}
`;
export const ListBusinessUsersDocument = gql`
query ListBusinessUsers {
listBusinessUsers {
id
email
name
roleId
createdAt
}
}
`;
export const ListInvitationsDocument = gql`
query ListInvitations {
listInvitations {
id
email
roleId
expiresAt
}
}
`;
export const SharedDepositTransactionsDocument = gql`
query SharedDepositTransactions($depositId: UUID!) {
deposit(id: $depositId) {
id
currency
metadata {
id
transactions {
id
...DepositTransactionFields
}
}
}
}
${DepositTransactionFieldsFragmentDoc}`;
export const BusinessLedgerInfoDocument = gql`
query BusinessLedgerInfo($filters: BusinessTransactionsFilter) {
businessTransactionsFromLedgerRecords(filters: $filters) {
... on BusinessTransactionsFromLedgerRecordsSuccessfulResult {
__typename
businessTransactions {
amount {
formatted
raw
}
business {
id
name
}
foreignAmount {
formatted
raw
currency
}
invoiceDate
reference
details
counterAccount {
__typename
id
name
}
chargeId
}
}
... on CommonError {
__typename
message
}
}
}
`;
export const BusinessLedgerRecordsSummeryDocument = gql`
query BusinessLedgerRecordsSummery($filters: BusinessTransactionsFilter) {
businessTransactionsSumFromLedgerRecords(filters: $filters) {
... on BusinessTransactionsSumFromLedgerRecordsSuccessfulResult {
__typename
businessTransactionsSum {
business {
id
name
}
credit {
formatted
}
debit {
formatted
}
total {
formatted
raw
}
foreignCurrenciesSum {
currency
credit {
formatted
}
debit {
formatted
}
total {
formatted
raw
}
}
}
}
... on CommonError {
__typename
message
}
}
}
`;
export const BusinessTripScreenDocument = gql`
query BusinessTripScreen($businessTripId: UUID!) {
businessTrip(id: $businessTripId) {
id
name
dates {
start
}
}
}
`;
export const BusinessTripsRowValidationDocument = gql`
query BusinessTripsRowValidation($id: UUID!) {
businessTrip(id: $id) {
id
uncategorizedTransactions {
transaction {
... on Transaction @defer {
id
}
}
}
summary {
... on BusinessTripSummary @defer {
errors
}
}
}
}
`;
export const EditableBusinessTripDocument = gql`
query EditableBusinessTrip($businessTripId: UUID!) {
businessTrip(id: $businessTripId) {
id
...BusinessTripReportHeaderFields
...BusinessTripReportAttendeesFields
...BusinessTripUncategorizedTransactionsFields
...BusinessTripReportFlightsFields
...BusinessTripReportAccommodationsFields
...BusinessTripReportTravelAndSubsistenceFields
...BusinessTripReportCarRentalFields
...BusinessTripReportOtherFields
...BusinessTripReportSummaryFields
... on BusinessTrip {
uncategorizedTransactions {
transaction {
id
}
}
}
}
}
${BusinessTripReportHeaderFieldsFragmentDoc}
${BusinessTripReportAttendeesFieldsFragmentDoc}
${BusinessTripUncategorizedTransactionsFieldsFragmentDoc}
${BusinessTripReportFlightsFieldsFragmentDoc}
${BusinessTripReportAccommodationsFieldsFragmentDoc}
${BusinessTripReportTravelAndSubsistenceFieldsFragmentDoc}
${BusinessTripReportCarRentalFieldsFragmentDoc}
${BusinessTripReportOtherFieldsFragmentDoc}
${BusinessTripReportSummaryFieldsFragmentDoc}`;
export const BusinessTripsScreenDocument = gql`
query BusinessTripsScreen {
allBusinessTrips {
id
name
dates {
start
}
...BusinessTripsRowFields
}
}
${BusinessTripsRowFieldsFragmentDoc}`;
export const AdminFinancialAccountsSectionDocument = gql`
query AdminFinancialAccountsSection($adminId: UUID!) {
financialAccountsByOwner(ownerId: $adminId) {
id
__typename
name
number
type
privateOrBusiness
accountTaxCategories {
id
currency
taxCategory {
id
name
}
}
... on BankFinancialAccount {
bankNumber
branchNumber
iban
swiftCode
extendedBankNumber
partyPreferredIndication
partyAccountInvolvementCode
accountDealDate
accountUpdateDate
metegDoarNet
kodHarshaatPeilut
accountClosingReasonCode
accountAgreementOpeningDate
serviceAuthorizationDesc
branchTypeCode
mymailEntitlementSwitch
productLabel
}
}
}
`;
export const BusinessChargesSectionDocument = gql`
query BusinessChargesSection($page: Int, $limit: Int, $filters: ChargeFilter) {
allCharges(page: $page, limit: $limit, filters: $filters) {
nodes {
id
...ChargeForChargesTableFields
}
pageInfo {
totalPages
}
}
}
${ChargeForChargesTableFieldsFragmentDoc}`;
export const ClientContractsSectionDocument = gql`
query ClientContractsSection($clientId: UUID!) {
contractsByClient(clientId: $clientId) {
id
purchaseOrders
startDate
endDate
amount {
raw
currency
}
billingCycle
isActive
product
documentType
remarks
plan
msCloud
operationsLimit
}
}
`;
export const ClientIntegrationsSectionGreenInvoiceDocument = gql`
query ClientIntegrationsSectionGreenInvoice($clientId: UUID!) {
greenInvoiceClient(clientId: $clientId) {
businessId
greenInvoiceId
country {
id
name
}
emails
name
phone
taxId
address
city
zip
fax
mobile
}
}
`;
export const ContractBasedDocumentDraftDocument = gql`
query ContractBasedDocumentDraft($issueMonth: TimelessDate!, $contractId: UUID!) {
periodicalDocumentDraftsByContracts(
issueMonth: $issueMonth
contractIds: [$contractId]
) {
...NewDocumentDraft
}
}
${NewDocumentDraftFragmentDoc}`;
export const BusinessLedgerSectionDocument = gql`
query BusinessLedgerSection($businessId: UUID!) {
ledgerRecordsByFinancialEntity(financialEntityId: $businessId) {
id
...LedgerRecordsTableFields
}
}
${LedgerRecordsTableFieldsFragmentDoc}`;
export const BusinessTransactionsSectionDocument = gql`
query BusinessTransactionsSection($businessId: UUID!) {
transactionsByFinancialEntity(financialEntityID: $businessId) {
id
...TransactionForTransactionsTableFields
...TransactionToDownloadForTransactionsTableFields
}
}
${TransactionForTransactionsTableFieldsFragmentDoc}
${TransactionToDownloadForTransactionsTableFieldsFragmentDoc}`;
export const AllBusinessesForScreenDocument = gql`
query AllBusinessesForScreen {
allBusinesses {
nodes {
__typename
id
name
... on LtdFinancialEntity {
hebrewName
governmentId
country {
id
code
}
city
zipCode
createdAt
updatedAt
sortCode {
id
key
name
}
taxCategory {
id
name
}
irsCode
pcn874RecordType
isClient
isAdmin
isActive
suggestions {
description
tags {
id
name
}
}
}
}
}
}
`;
export const BusinessesUsageDocument = gql`
query BusinessesUsage($ids: [UUID!]!) {
businessesUsage(ids: $ids) {
id
businessId
totalTransactions
totalDocuments
totalMiscExpenses
totalLedgerRecords
}
}
`;
export const ChargeExtendedInfoForChargeMatchesDocument = gql`
query ChargeExtendedInfoForChargeMatches($chargeId: UUID!) {
charge(chargeId: $chargeId) {
id
transactions {
id
...TransactionForTransactionsTableFields
}
additionalDocuments {
id
...TableDocumentsRowFields
}
}
}
${TransactionForTransactionsTableFieldsFragmentDoc}
${TableDocumentsRowFieldsFragmentDoc}`;
export const ChargesAwaitingMatchQueueDocument = gql`
query ChargesAwaitingMatchQueue($limit: Int, $offset: Int, $businessId: UUID, $fromDate: TimelessDate, $toDate: TimelessDate, $mode: ChargeMatchQueueMode, $sortBy: ChargeMatchQueueSortBy) {
chargesAwaitingMatchQueue(
limit: $limit
offset: $offset
businessId: $businessId
fromDate: $fromDate
toDate: $toDate
mode: $mode
sortBy: $sortBy
) {
totalCount
baseCharges {
id
baseCharge {
...ChargeMatchCardFields
}
suggestions {
chargeId
confidenceScore
charge {
...ChargeMatchCardFields
}
}
}
}
}
${ChargeMatchCardFieldsFragmentDoc}`;
export const ChargesLedgerValidationDocument = gql`
query ChargesLedgerValidation($limit: Int, $filters: ChargeFilter) {
chargesWithLedgerChanges(limit: $limit, filters: $filters) @stream {
progress
charge {
id
...ChargeForChargesTableFields
}
}
}
${ChargeForChargesTableFieldsFragmentDoc}`;
export const FetchChargeDocument = gql`
query FetchCharge($chargeId: UUID!) {
charge(chargeId: $chargeId) {
id
...ChargeExpansionFields
}
}
${ChargeExpansionFieldsFragmentDoc}`;
export const ChargesExtendedInfoBatchDocument = gql`
query ChargesExtendedInfoBatch($chargeIDs: [UUID!]!) {
chargesByIDs(chargeIDs: $chargeIDs) {
id
...ChargeExpansionFields
}
}
${ChargeExpansionFieldsFragmentDoc}`;
export const RefetchChargeForChargesTableDocument = gql`
query RefetchChargeForChargesTable($chargeId: UUID!) {
charge(chargeId: $chargeId) {
id
...ChargeForChargesTableFields
}
}
${ChargeForChargesTableFieldsFragmentDoc}`;
export const ChargesForCsvExportDocument = gql`
query ChargesForCsvExport($chargeIDs: [UUID!]!) {
chargesByIDs(chargeIDs: $chargeIDs) {
id
...ChargeForCsvExportFields
}
}
${ChargeForCsvExportFieldsFragmentDoc}`;
export const BankDepositInfoDocument = gql`
query BankDepositInfo($chargeId: UUID!) {
depositByCharge(chargeId: $chargeId) {
id
name
metadata {
id
currentBalance {
formatted
}
transactions {
id
chargeId
...TransactionForTransactionsTableFields
}
}
isOpen
}
}
${TransactionForTransactionsTableFieldsFragmentDoc}`;
export const ChargeMatchesDocument = gql`
query ChargeMatches($chargeId: UUID!) {
findChargeMatches(chargeId: $chargeId) {
matches {
chargeId
...ChargeMatchesTableFields
}
}
}
${ChargeMatchesTableFieldsFragmentDoc}`;
export const IncomeChargesChartDocument = gql`
query IncomeChargesChart($filters: ChargeFilter) {
allCharges(filters: $filters) {
nodes {
id
transactions {
id
eventDate
effectiveDate
amount {
currency
formatted
raw
}
eventExchangeRates {
aud
cad
eur
gbp
jpy
sek
usd
date
}
debitExchangeRates {
aud
cad
eur
gbp
jpy
sek
usd
date
}
}
}
}
}
`;
export const MonthlyIncomeExpenseChartDocument = gql`
query MonthlyIncomeExpenseChart($filters: IncomeExpenseChartFilters!) {
incomeExpenseChart(filters: $filters) {
fromDate
toDate
currency
...MonthlyIncomeExpenseChartInfo
}
}
${MonthlyIncomeExpenseChartInfoFragmentDoc}`;
export const ContractsEditModalDocument = gql`
query ContractsEditModal($contractId: UUID!) {
contractsById(id: $contractId) {
id
startDate
endDate
purchaseOrders
amount {
raw
currency
}
product
msCloud
billingCycle
plan
isActive
remarks
documentType
operationsLimit
}
}
`;
export const UncategorizedTransactionsByBusinessTripDocument = gql`
query UncategorizedTransactionsByBusinessTrip($businessTripId: UUID!) {
businessTrip(id: $businessTripId) {
id
uncategorizedTransactions {
transaction {
id
eventDate
sourceDescription
referenceKey
counterparty {
id
name
}
amount {
formatted
raw
}
}
}
}
}
`;
export const ChargeDepreciationDocument = gql`
query ChargeDepreciation($chargeId: UUID!) {
depreciationRecordsByCharge(chargeId: $chargeId) {
id
...DepreciationRecordRowFields
}
}
${DepreciationRecordRowFieldsFragmentDoc}`;
export const RecentBusinessIssuedDocumentsDocument = gql`
query RecentBusinessIssuedDocuments($businessId: UUID!, $limit: Int) {
recentDocumentsByBusiness(businessId: $businessId, limit: $limit) {
id
... on FinancialDocument {
issuedDocumentInfo {
id
status
externalId
}
}
...TableDocumentsRowFields
}
}
${TableDocumentsRowFieldsFragmentDoc}`;
export const RecentIssuedDocumentsOfSameTypeDocument = gql`
query RecentIssuedDocumentsOfSameType($documentType: DocumentType!) {
recentIssuedDocumentsByType(documentType: $documentType) {
id
...TableDocumentsRowFields
}
}
${TableDocumentsRowFieldsFragmentDoc}`;
export const EditDocumentDocument = gql`
query EditDocument($documentId: UUID!) {
documentById(documentId: $documentId) {
id
image
file
documentType
description
remarks
__typename
... on FinancialDocument {
vat {
raw
currency
}
serialNumber
date
amount {
raw
currency
}
debtor {
id
name
}
creditor {
id
name
}
vatReportDateOverride
noVatAmount
allocationNumber
exchangeRateOverride
}
... on Unprocessed {
vat {
raw
currency
}
serialNumber
date
amount {
raw
currency
}
debtor {
id
name
}
creditor {
id
name
}
vatReportDateOverride
noVatAmount
allocationNumber
exchangeRateOverride
}
... on OtherDocument {
vat {
raw
currency
}
serialNumber
date
amount {
raw
currency
}
debtor {
id
name
}
creditor {
id
name
}
vatReportDateOverride
noVatAmount
allocationNumber
exchangeRateOverride
}
}
}
`;
export const EditTransactionDocument = gql`
query EditTransaction($transactionIDs: [UUID!]!) {
transactionsByIDs(transactionIDs: $transactionIDs) {
id
counterparty {
id
name
}
effectiveDate
isFee
account {
type
id
}
}
}
`;
export const ClientInfoForDocumentIssuingDocument = gql`
query ClientInfoForDocumentIssuing($businessId: UUID!) {
client(businessId: $businessId) {
id
integrations {
id
greenInvoiceInfo {
greenInvoiceId
businessId
name
}
}
...IssueDocumentClientFields
}
}
${IssueDocumentClientFieldsFragmentDoc}`;
export const AllBusinessTripsDocument = gql`
query AllBusinessTrips {
allBusinessTrips {
id
name
}
}
`;
export const AllDepreciationCategoriesDocument = gql`
query AllDepreciationCategories {
depreciationCategories {
id
name
percentage
}
}
`;
export const AllEmployeesByEmployerDocument = gql`
query AllEmployeesByEmployer($employerId: UUID!) {
employeesByEmployerId(employerId: $employerId) {
id
name
}
}
`;
export const AllPensionFundsDocument = gql`
query AllPensionFunds {
allPensionFunds {
id
name
}
}
`;
export const AllTrainingFundsDocument = gql`
query AllTrainingFunds {
allTrainingFunds {
id
name
}
}
`;
export const AttendeesByBusinessTripDocument = gql`
query AttendeesByBusinessTrip($businessTripId: UUID!) {
businessTrip(id: $businessTripId) {
id
attendees {
id
name
}
}
}
`;
export const FetchMultipleBusinessesDocument = gql`
query FetchMultipleBusinesses($businessIds: [UUID!]!) {
businesses(ids: $businessIds) {
id
name
}
}
`;
export const FetchMultipleChargesDocument = gql`
query FetchMultipleCharges($chargeIds: [UUID!]!) {
chargesByIDs(chargeIDs: $chargeIds) {
id
__typename
metadata {
transactionsCount
invoicesCount
}
owner {
id
name
}
tags {
id
name
namePath
}
decreasedVAT
property
isInvoicePaymentDifferentCurrency
userDescription
optionalVAT
optionalDocuments
}
}
`;
export const EditChargeDocument = gql`
query EditCharge($chargeId: UUID!) {
charge(chargeId: $chargeId) {
id
__typename
counterparty {
id
name
}
owner {
id
name
}
property
decreasedVAT
isInvoicePaymentDifferentCurrency
userDescription
taxCategory {
id
name
}
tags {
id
}
missingInfoSuggestions {
... on ChargeSuggestions {
tags {
id
}
}
}
optionalVAT
optionalDocuments
... on BusinessTripCharge {
businessTrip {
id
name
}
}
yearsOfRelevance {
year
amount
}
}
}
`;
export const EditSalaryRecordDocument = gql`
query EditSalaryRecord($month: TimelessDate!, $employeeIDs: [UUID!]!) {
salaryRecordsByDates(
fromDate: $month
toDate: $month
employeeIDs: $employeeIDs
) {
month
charge {
id
}
directAmount {
raw
}
baseAmount {
raw
}
employee {
id
name
}
employer {
id
name
}
pensionFund {
id
name
}
pensionEmployeeAmount {
raw
}
pensionEmployeePercentage
pensionEmployerAmount {
raw
}
pensionEmployerPercentage
compensationsAmount {
raw
}
compensationsPercentage
trainingFund {
id
name
}
trainingFundEmployeeAmount {
raw
}
trainingFundEmployeePercentage
trainingFundEmployerAmount {
raw
}
trainingFundEmployerPercentage
socialSecurityEmployeeAmount {
raw
}
socialSecurityEmployerAmount {
raw
}
incomeTaxAmount {
raw
}
healthInsuranceAmount {
raw
}
globalAdditionalHoursAmount {
raw
}
bonus {
raw
}
gift {
raw
}
travelAndSubsistence {
raw
}
recovery {
raw
}
notionalExpense {
raw
}
vacationDays {
added
balance
}
vacationTakeout {
raw
}
workDays
sicknessDays {
balance
}
}
}
`;
export const SortCodeToUpdateDocument = gql`
query SortCodeToUpdate($key: Int!, $ownerId: String!) {
sortCode(key: $key, ownerId: $ownerId) {
id
key
name
defaultIrsCode
}
}
`;
export const TaxCategoryToUpdateDocument = gql`
query TaxCategoryToUpdate($id: UUID!) {
taxCategory(id: $id) {
id
ownerId
name
sortCode {
id
key
name
}
irsCode
}
}
`;
export const MiscExpenseTransactionFieldsDocument = gql`
query MiscExpenseTransactionFields($transactionId: UUID!) {
transactionsByIDs(transactionIDs: [$transactionId]) {
id
chargeId
amount {
raw
currency
}
eventDate
effectiveDate
exactEffectiveDate
counterparty {
id
}
}
}
`;
export const NewDocumentDraftByChargeDocument = gql`
query NewDocumentDraftByCharge($chargeId: UUID!) {
newDocumentDraftByCharge(chargeId: $chargeId) {
...NewDocumentDraft
}
}
${NewDocumentDraftFragmentDoc}`;
export const NewDocumentDraftByDocumentDocument = gql`
query NewDocumentDraftByDocument($documentId: UUID!) {
newDocumentDraftByDocument(documentId: $documentId) {
...NewDocumentDraft
}
}
${NewDocumentDraftFragmentDoc}`;
export const SimilarChargesByBusinessDocument = gql`
query SimilarChargesByBusiness($businessId: UUID!, $tagsDifferentThan: [String!], $descriptionDifferentThan: String) {
similarChargesByBusiness(
businessId: $businessId
tagsDifferentThan: $tagsDifferentThan
descriptionDifferentThan: $descriptionDifferentThan
) {
id
...SimilarChargesTable
}
}
${SimilarChargesTableFragmentDoc}`;
export const SimilarChargesDocument = gql`
query SimilarCharges($chargeId: UUID!, $withMissingTags: Boolean!, $withMissingDescription: Boolean!, $tagsDifferentThan: [String!], $descriptionDifferentThan: String) {
similarCharges(
chargeId: $chargeId
withMissingTags: $withMissingTags
withMissingDescription: $withMissingDescription
tagsDifferentThan: $tagsDifferentThan
descriptionDifferentThan: $descriptionDifferentThan
) {
id
...SimilarChargesTable
}
}
${SimilarChargesTableFragmentDoc}`;
export const SimilarTransactionsDocument = gql`
query SimilarTransactions($transactionId: UUID!, $withMissingInfo: Boolean!) {
similarTransactions(
transactionId: $transactionId
withMissingInfo: $withMissingInfo
) {
id
account {
id
name
type
}
amount {
formatted
raw
}
effectiveDate
eventDate
sourceDescription
}
}
`;
export const UniformFormatDocument = gql`
query UniformFormat($fromDate: TimelessDate!, $toDate: TimelessDate!) {
uniformFormat(fromDate: $fromDate, toDate: $toDate) {
bkmvdata
ini
}
}
`;
export const ContractBasedDocumentDraftsDocument = gql`
query ContractBasedDocumentDrafts($issueMonth: TimelessDate!, $contractIds: [UUID!]!) {
periodicalDocumentDraftsByContracts(
issueMonth: $issueMonth
contractIds: $contractIds
) {
...NewDocumentDraft
}
}
${NewDocumentDraftFragmentDoc}`;
export const AccountantApprovalsChargesTableDocument = gql`
query AccountantApprovalsChargesTable($page: Int, $limit: Int, $filters: ChargeFilter) {
allCharges(page: $page, limit: $limit, filters: $filters) {
nodes {
id
accountantApproval
}
}
}
`;
export const CorporateTaxRulingComplianceReportDocument = gql`
query CorporateTaxRulingComplianceReport($years: [Int!]!) {
corporateTaxRulingComplianceReport(years: $years) {
id
year
totalIncome {
formatted
raw
currency
}
researchAndDevelopmentExpenses {
formatted
raw
currency
}
rndRelativeToIncome {
rule
...CorporateTaxRulingReportRuleCellFields
}
localDevelopmentExpenses {
formatted
raw
currency
}
localDevelopmentRelativeToRnd {
rule
...CorporateTaxRulingReportRuleCellFields
}
foreignDevelopmentExpenses {
formatted
raw
currency
}
foreignDevelopmentRelativeToRnd {
rule
...CorporateTaxRulingReportRuleCellFields
}
businessTripRndExpenses {
formatted
raw
currency
}
... on CorporateTaxRulingComplianceReport @defer {
differences {
id
totalIncome {
formatted
raw
currency
}
researchAndDevelopmentExpenses {
formatted
raw
currency
}
rndRelativeToIncome {
...CorporateTaxRulingReportRuleCellFields
}
localDevelopmentExpenses {
formatted
raw
currency
}
localDevelopmentRelativeToRnd {
...CorporateTaxRulingReportRuleCellFields
}
foreignDevelopmentExpenses {
formatted
raw
currency
}
foreignDevelopmentRelativeToRnd {
...CorporateTaxRulingReportRuleCellFields
}
businessTripRndExpenses {
formatted
raw
currency
}
}
}
}
}
${CorporateTaxRulingReportRuleCellFieldsFragmentDoc}`;
export const AllDynamicReportsDocument = gql`
query AllDynamicReports {
allDynamicReports {
id
name
isLocked
updated
}
}
`;
export const DynamicReportDocument = gql`
query DynamicReport($filters: BusinessTransactionsFilter) {
businessTransactionsSumFromLedgerRecords(filters: $filters) {
__typename
... on BusinessTransactionsSumFromLedgerRecordsSuccessfulResult {
businessTransactionsSum {
business {
id
name
sortCode {
id
key
name
}
}
credit {
formatted
raw
}
debit {
formatted
raw
}
total {
formatted
raw
}
}
}
... on CommonError {
__typename
}
}
}
`;
export const DynamicReportTemplateDocument = gql`
query DynamicReportTemplate($name: String!) {
dynamicReport(name: $name) {
id
name
isLocked
updated
template {
id
parent
text
droppable
data {
nodeType
isOpen
hebrewText
sortCode
}
}
}
}
`;
export const ProfitAndLossReportDocument = gql`
query ProfitAndLossReport($reportYear: Int!, $referenceYears: [Int!]!) {
profitAndLossReport(reportYear: $reportYear, referenceYears: $referenceYears) {
id
report {
id
year
revenue {
amount {
formatted
}
...ReportCommentaryTableFields
}
costOfSales {
amount {
formatted
}
...ReportCommentaryTableFields
}
grossProfit {
formatted
}
researchAndDevelopmentExpenses {
amount {
formatted
}
...ReportCommentaryTableFields
}
marketingExpenses {
amount {
formatted
}
...ReportCommentaryTableFields
}
managementAndGeneralExpenses {
amount {
formatted
}
...ReportCommentaryTableFields
}
operatingProfit {
formatted
}
financialExpenses {
amount {
formatted
}
...ReportCommentaryTableFields
}
otherIncome {
amount {
formatted
}
...ReportCommentaryTableFields
}
profitBeforeTax {
formatted
}
tax {
formatted
}
netProfit {
formatted
}
}
reference {
id
year
revenue {
amount {
formatted
}
}
costOfSales {
amount {
formatted
}
}
grossProfit {
formatted
}
researchAndDevelopmentExpenses {
amount {
formatted
}
}
marketingExpenses {
amount {
formatted
}
}
managementAndGeneralExpenses {
amount {
formatted
}
}
operatingProfit {
formatted
}
financialExpenses {
amount {
formatted
}
}
otherIncome {
amount {
formatted
}
}
profitBeforeTax {
formatted
}
tax {
formatted
}
netProfit {
formatted
}
}
}
}
${ReportCommentaryTableFieldsFragmentDoc}`;
export const TaxReportDocument = gql`
query TaxReport($reportYear: Int!, $referenceYears: [Int!]!) {
taxReport(reportYear: $reportYear, referenceYears: $referenceYears) {
id
report {
id
year
profitBeforeTax {
amount {
formatted
}
...ReportCommentaryTableFields
}
researchAndDevelopmentExpensesByRecords {
amount {
formatted
}
...ReportCommentaryTableFields
}
researchAndDevelopmentExpensesForTax {
formatted
}
fines {
amount {
formatted
}
...ReportCommentaryTableFields
}
untaxableGifts {
amount {
formatted
}
...ReportCommentaryTableFields
}
businessTripsExcessExpensesAmount {
formatted
}
salaryExcessExpensesAmount {
formatted
}
reserves {
amount {
formatted
}
...ReportCommentaryTableFields
}
nontaxableLinkage {
amount {
formatted
}
...ReportCommentaryTableFields
}
taxableIncome {
formatted
}
taxRate
specialTaxableIncome {
amount {
formatted
}
...ReportCommentaryTableFields
}
specialTaxRate
annualTaxExpense {
formatted
}
}
reference {
id
year
profitBeforeTax {
amount {
formatted
}
}
researchAndDevelopmentExpensesByRecords {
amount {
formatted
}
}
researchAndDevelopmentExpensesForTax {
formatted
}
fines {
amount {
formatted
}
}
untaxableGifts {
amount {
formatted
}
}
businessTripsExcessExpensesAmount {
formatted
}
salaryExcessExpensesAmount {
formatted
}
reserves {
amount {
formatted
}
}
nontaxableLinkage {
amount {
formatted
}
}
taxableIncome {
formatted
}
taxRate
specialTaxableIncome {
amount {
formatted
}
...ReportCommentaryTableFields
}
specialTaxRate
annualTaxExpense {
formatted
}
}
}
}
${ReportCommentaryTableFieldsFragmentDoc}`;
export const TrialBalanceReportDocument = gql`
query TrialBalanceReport($filters: BusinessTransactionsFilter) {
businessTransactionsSumFromLedgerRecords(filters: $filters) {
... on BusinessTransactionsSumFromLedgerRecordsSuccessfulResult {
__typename
...TrialBalanceTableFields
}
... on CommonError {
__typename
}
}
}
${TrialBalanceTableFieldsFragmentDoc}`;
export const ValidatePcn874ReportsDocument = gql`
query ValidatePcn874Reports($businessId: UUID, $fromMonthDate: TimelessDate!, $toMonthDate: TimelessDate!) {
pcnByDate(
businessId: $businessId
fromMonthDate: $fromMonthDate
toMonthDate: $toMonthDate
) @stream {
id
business {
id
name
}
date
content
diffContent
}
}
`;
export const VatMonthlyReportDocument = gql`
query VatMonthlyReport($filters: VatReportFilter) {
vatReport(filters: $filters) {
...VatReportSummaryFields
...VatReportIncomeFields
...VatReportExpensesFields
...VatReportMissingInfoFields
...VatReportMiscTableFields
...VatReportBusinessTripsFields
}
}
${VatReportSummaryFieldsFragmentDoc}
${VatReportIncomeFieldsFragmentDoc}
${VatReportExpensesFieldsFragmentDoc}
${VatReportMissingInfoFieldsFragmentDoc}
${VatReportMiscTableFieldsFragmentDoc}
${VatReportBusinessTripsFieldsFragmentDoc}`;
export const GeneratePcnDocument = gql`
query GeneratePCN($monthDate: TimelessDate!, $financialEntityId: UUID!) {
pcnFile(monthDate: $monthDate, financialEntityId: $financialEntityId) {
reportContent
fileName
}
}
`;
export const YearlyLedgerDocument = gql`
query YearlyLedger($year: Int!) {
yearlyLedgerReport(year: $year) {
id
year
financialEntitiesInfo {
entity {
id
name
sortCode {
id
key
}
}
openingBalance {
raw
}
totalCredit {
raw
}
totalDebit {
raw
}
closingBalance {
raw
}
records {
id
amount {
raw
formatted
}
invoiceDate
valueDate
description
reference
counterParty {
id
name
}
balance
}
}
...LedgerCsvFields
}
}
${LedgerCsvFieldsFragmentDoc}`;
export const SalaryScreenRecordsDocument = gql`
query SalaryScreenRecords($fromDate: TimelessDate!, $toDate: TimelessDate!, $employeeIDs: [UUID!]) {
salaryRecordsByDates(
fromDate: $fromDate
toDate: $toDate
employeeIDs: $employeeIDs
) {
month
employee {
id
}
...SalariesTableFields
}
}
${SalariesTableFieldsFragmentDoc}`;
export const AllDepositsDocument = gql`
query AllDeposits {
allDeposits {
id
name
currency
openDate
closeDate
isOpen
metadata {
id
currentBalance {
raw
formatted
}
totalDeposit {
raw
formatted
}
totalInterest {
raw
formatted
}
}
}
}
`;
export const BusinessScreenDocument = gql`
query BusinessScreen($businessId: UUID!) {
business(id: $businessId) {
id
...BusinessPage
}
}
${BusinessPageFragmentDoc}`;
export const ContractsScreenDocument = gql`
query ContractsScreen($adminId: UUID!) {
contractsByAdmin(adminId: $adminId) {
id
...ContractForContractsTableFields
}
}
${ContractForContractsTableFieldsFragmentDoc}`;
export const AllChargesDocument = gql`
query AllCharges($page: Int, $limit: Int, $filters: ChargeFilter) {
allCharges(page: $page, limit: $limit, filters: $filters) {
nodes {
id
...ChargeForChargesTableFields
}
pageInfo {
totalPages
}
}
}
${ChargeForChargesTableFieldsFragmentDoc}`;
export const ChargeScreenDocument = gql`
query ChargeScreen($chargeId: UUID!) {
charge(chargeId: $chargeId) {
id
...ChargeForChargesTableFields
}
}
${ChargeForChargesTableFieldsFragmentDoc}`;
export const MissingInfoChargesDocument = gql`
query MissingInfoCharges($page: Int, $limit: Int) {
chargesWithMissingRequiredInfo(page: $page, limit: $limit) {
nodes {
id
...ChargeForChargesTableFields
}
pageInfo {
totalPages
}
}
}
${ChargeForChargesTableFieldsFragmentDoc}`;
export const DocumentsScreenDocument = gql`
query DocumentsScreen($filters: DocumentsFilters!) {
documentsByFilters(filters: $filters) {
id
image
file
charge {
id
userDescription
__typename
vat {
formatted
__typename
}
transactions {
id
eventDate
sourceDescription
effectiveDate
amount {
formatted
__typename
}
}
}
__typename
... on FinancialDocument {
creditor {
id
name
}
debtor {
id
name
}
vat {
raw
formatted
currency
}
serialNumber
date
amount {
raw
formatted
currency
}
}
}
}
`;
export const MonthlyDocumentDraftByClientDocument = gql`
query MonthlyDocumentDraftByClient($clientId: UUID!, $issueMonth: TimelessDate!) {
clientMonthlyChargeDraft(clientId: $clientId, issueMonth: $issueMonth) {
...NewDocumentDraft
}
}
${NewDocumentDraftFragmentDoc}`;
export const MonthlyDocumentsDraftsDocument = gql`
query MonthlyDocumentsDrafts($issueMonth: TimelessDate!) {
periodicalDocumentDrafts(issueMonth: $issueMonth) {
...NewDocumentDraft
}
}
${NewDocumentDraftFragmentDoc}`;
export const AllOpenContractsDocument = gql`
query AllOpenContracts {
allOpenContracts {
id
client {
id
originalBusiness {
id
name
}
}
billingCycle
}
}
`;
export const AnnualAuditStepsStatusDocument = gql`
query AnnualAuditStepsStatus($ownerId: UUID!, $year: Int!) {
annualAuditStepStatuses(ownerId: $ownerId, year: $year) {
id
stepId
status
notes
}
}
`;
export const AccountantApprovalStatusDocument = gql`
query AccountantApprovalStatus($fromDate: TimelessDate!, $toDate: TimelessDate!) {
accountantApprovalStatus(from: $fromDate, to: $toDate) {
totalCharges
approvedCount
pendingCount
unapprovedCount
}
}
`;
export const LedgerValidationStatusDocument = gql`
query LedgerValidationStatus($limit: Int, $filters: ChargeFilter) {
chargesWithLedgerChanges(limit: $limit, filters: $filters) {
charge {
id
}
}
}
`;
export const AnnualAuditOpeningBalanceStatusDocument = gql`
query AnnualAuditOpeningBalanceStatus($ownerId: UUID!, $year: Int!) {
annualAuditOpeningBalanceStatus(ownerId: $ownerId, year: $year) {
id
userType
balanceChargeId
derivedStatus
errorMessage
}
}
`;
export const AnnualFinancialChargesDocument = gql`
query AnnualFinancialCharges($ownerId: UUID, $year: TimelessDate!) {
annualFinancialCharges(ownerId: $ownerId, year: $year) {
id
revaluationCharge {
id
}
taxExpensesCharge {
id
}
depreciationCharge {
id
}
recoveryReserveCharge {
id
}
vacationReserveCharge {
id
}
bankDepositsRevaluationCharge {
id
}
}
}
`;
export const Step05PrevYearTemplateDocument = gql`
query Step05PrevYearTemplate($ownerId: UUID!, $year: Int!) {
annualAuditStepStatuses(ownerId: $ownerId, year: $year) {
id
stepId
status
evidence
}
}
`;
export const AdminLedgerLockDateDocument = gql`
query AdminLedgerLockDate($ownerId: UUID) {
adminContext(ownerId: $ownerId) {
id
ledgerLock
}
}
`;
export const Step09SaveTemplateStatusDocument = gql`
query Step09SaveTemplateStatus($ownerId: UUID!, $year: Int!) {
annualAuditStepStatuses(ownerId: $ownerId, year: $year) {
id
stepId
status
evidence
}
}
`;
export const AnnualRevenueReportScreenDocument = gql`
query AnnualRevenueReportScreen($filters: AnnualRevenueReportFilter!) {
annualRevenueReport(filters: $filters) {
id
year
countries {
id
name
revenueLocal {
raw
currency
}
revenueDefaultForeign {
raw
currency
}
clients {
id
name
revenueLocal {
raw
}
revenueDefaultForeign {
raw
}
records {
id
date
description
reference
chargeId
revenueLocal {
raw
}
revenueDefaultForeign {
raw
}
}
}
...AnnualRevenueReportCountry
}
}
}
${AnnualRevenueReportCountryFragmentDoc}`;
export const BalanceReportExtendedTransactionsDocument = gql`
query BalanceReportExtendedTransactions($transactionIDs: [UUID!]!) {
transactionsByIDs(transactionIDs: $transactionIDs) {
id
...TransactionForTransactionsTableFields
...TransactionToDownloadForTransactionsTableFields
}
}
${TransactionForTransactionsTableFieldsFragmentDoc}
${TransactionToDownloadForTransactionsTableFieldsFragmentDoc}`;
export const BalanceReportScreenDocument = gql`
query BalanceReportScreen($fromDate: TimelessDate!, $toDate: TimelessDate!, $ownerId: UUID) {
transactionsForBalanceReport(
fromDate: $fromDate
toDate: $toDate
ownerId: $ownerId
) {
id
amountUsd {
formatted
raw
}
amount {
currency
raw
}
date
month
year
counterparty {
id
}
account {
id
name
}
isFee
description
charge {
id
tags {
id
name
}
}
}
}
`;
export const DepreciationReportScreenDocument = gql`
query DepreciationReportScreen($filters: DepreciationReportFilter!) {
depreciationReport(filters: $filters) {
id
year
categories {
id
category {
id
name
percentage
}
records {
id
chargeId
description
purchaseDate
activationDate
statutoryDepreciationRate
claimedDepreciationRate
...DepreciationReportRecordCore
}
summary {
id
...DepreciationReportRecordCore
}
}
summary {
id
...DepreciationReportRecordCore
}
}
}
${DepreciationReportRecordCoreFragmentDoc}`;
export const Shaam6111ReportScreenDocument = gql`
query Shaam6111ReportScreen($year: Int!, $businessId: UUID) {
shaam6111(year: $year, businessId: $businessId) {
id
year
data {
id
...Shaam6111DataContent
}
business {
id
...Shaam6111DataContentHeaderBusiness
}
}
}
${Shaam6111DataContentFragmentDoc}
${Shaam6111DataContentHeaderBusinessFragmentDoc}`;
export const AllSortCodesForScreenDocument = gql`
query AllSortCodesForScreen {
allSortCodes {
id
ownerId
key
name
defaultIrsCode
}
}
`;
export const AllTagsScreenDocument = gql`
query AllTagsScreen {
allTags {
id
name
namePath
parent {
id
}
...EditTagFields
}
}
${EditTagFieldsFragmentDoc}`;
export const AllTaxCategoriesForScreenDocument = gql`
query AllTaxCategoriesForScreen {
taxCategories {
id
name
sortCode {
id
key
name
}
}
}
`;
export const AcceptInvitationDocument = gql`
mutation AcceptInvitation($token: String!) {
acceptInvitation(token: $token) {
success
businessId
roleId
}
}
`;
export const AddBusinessTripAccommodationsExpenseDocument = gql`
mutation AddBusinessTripAccommodationsExpense($fields: AddBusinessTripAccommodationsExpenseInput!) {
addBusinessTripAccommodationsExpense(fields: $fields)
}
`;
export const AddBusinessTripCarRentalExpenseDocument = gql`
mutation AddBusinessTripCarRentalExpense($fields: AddBusinessTripCarRentalExpenseInput!) {
addBusinessTripCarRentalExpense(fields: $fields)
}
`;
export const AddBusinessTripFlightsExpenseDocument = gql`
mutation AddBusinessTripFlightsExpense($fields: AddBusinessTripFlightsExpenseInput!) {
addBusinessTripFlightsExpense(fields: $fields)
}
`;
export const AddBusinessTripOtherExpenseDocument = gql`
mutation AddBusinessTripOtherExpense($fields: AddBusinessTripOtherExpenseInput!) {
addBusinessTripOtherExpense(fields: $fields)
}
`;
export const AddBusinessTripTravelAndSubsistenceExpenseDocument = gql`
mutation AddBusinessTripTravelAndSubsistenceExpense($fields: AddBusinessTripTravelAndSubsistenceExpenseInput!) {
addBusinessTripTravelAndSubsistenceExpense(fields: $fields)
}
`;
export const AddDepreciationRecordDocument = gql`
mutation AddDepreciationRecord($fields: InsertDepreciationRecordInput!) {
insertDepreciationRecord(input: $fields) {
__typename
... on CommonError {
message
}
... on DepreciationRecord {
id
}
}
}
`;
export const AddSortCodeDocument = gql`
mutation AddSortCode($key: Int!, $name: String!, $defaultIrsCode: Int) {
addSortCode(key: $key, name: $name, defaultIrsCode: $defaultIrsCode)
}
`;
export const AddTagDocument = gql`
mutation AddTag($tagName: String!, $parentTag: UUID) {
addTag(name: $tagName, parentId: $parentTag)
}
`;
export const AnnualAuditStepStatusDocument = gql`
query AnnualAuditStepStatus($ownerId: UUID!, $year: Int!) {
annualAuditStepStatuses(ownerId: $ownerId, year: $year) {
id
stepId
status
}
}
`;
export const AssignChargeToDepositDocument = gql`
mutation AssignChargeToDeposit($chargeId: UUID!, $depositId: String!) {
assignChargeToDeposit(chargeId: $chargeId, depositId: $depositId) {
id
}
}
`;
export const GenerateBalanceChargeDocument = gql`
mutation GenerateBalanceCharge($description: String!, $balanceRecords: [InsertMiscExpenseInput!]!) {
generateBalanceCharge(
description: $description
balanceRecords: $balanceRecords
) {
id
}
}
`;
export const BatchUpdateBusinessesDocument = gql`
mutation BatchUpdateBusinesses($businessIds: [UUID!]!, $fields: BatchUpdateBusinessInput!) {
batchUpdateBusinesses(businessIds: $businessIds, fields: $fields) {
id
}
}
`;
export const BatchUpdateChargesDocument = gql`
mutation BatchUpdateCharges($chargeIds: [UUID!]!, $fields: UpdateChargeInput!) {
batchUpdateCharges(chargeIds: $chargeIds, fields: $fields) {
__typename
... on BatchUpdateChargesSuccessfulResult {
charges {
id
}
}
... on CommonError {
message
}
}
}
`;
export const CategorizeBusinessTripExpenseDocument = gql`
mutation CategorizeBusinessTripExpense($fields: CategorizeBusinessTripExpenseInput!) {
categorizeBusinessTripExpense(fields: $fields)
}
`;
export const CategorizeIntoExistingBusinessTripExpenseDocument = gql`
mutation CategorizeIntoExistingBusinessTripExpense($fields: CategorizeIntoExistingBusinessTripExpenseInput!) {
categorizeIntoExistingBusinessTripExpense(fields: $fields)
}
`;
export const CloseDocumentDocument = gql`
mutation CloseDocument($documentId: UUID!) {
closeDocument(id: $documentId)
}
`;
export const CreateContractDocument = gql`
mutation CreateContract($input: CreateContractInput!) {
createContract(input: $input) {
id
}
}
`;
export const CreateDepositFromChargeDocument = gql`
mutation CreateDepositFromCharge($chargeId: UUID!, $name: String!) {
createDepositFromCharge(chargeId: $chargeId, name: $name) {
id
name
currency
isOpen
}
}
`;
export const CreateDepositDocument = gql`
mutation CreateDeposit($name: String!, $currency: Currency!, $openDate: TimelessDate!, $accountId: UUID) {
createDeposit(
name: $name
currency: $currency
openDate: $openDate
accountId: $accountId
) {
id
currency
isOpen
}
}
`;
export const CreateFinancialAccountDocument = gql`
mutation CreateFinancialAccount($input: CreateFinancialAccountInput!) {
createFinancialAccount(input: $input) {
id
}
}
`;
export const CreateInvitationDocument = gql`
mutation CreateInvitation($email: String!, $roleId: String!) {
createInvitation(email: $email, roleId: $roleId) {
id
email
roleId
expiresAt
}
}
`;
export const CreditShareholdersBusinessTripTravelAndSubsistenceDocument = gql`
mutation CreditShareholdersBusinessTripTravelAndSubsistence($businessTripId: UUID!) {
creditShareholdersBusinessTripTravelAndSubsistence(
businessTripId: $businessTripId
)
}
`;
export const FlagForeignFeeTransactionsDocument = gql`
mutation FlagForeignFeeTransactions {
flagForeignFeeTransactions {
success
errors
}
}
`;
export const MergeChargesByTransactionReferenceDocument = gql`
mutation MergeChargesByTransactionReference($dryRun: Boolean) {
mergeChargesByTransactionReference(dryRun: $dryRun) {
success
errors
}
}
`;
export const CalculateCreditcardTransactionsDebitDateDocument = gql`
mutation CalculateCreditcardTransactionsDebitDate {
calculateCreditcardTransactionsDebitDate
}
`;
export const DeleteBusinessTripAttendeeDocument = gql`
mutation DeleteBusinessTripAttendee($fields: DeleteBusinessTripAttendeeInput!) {
deleteBusinessTripAttendee(fields: $fields)
}
`;
export const DeleteBusinessTripExpenseDocument = gql`
mutation DeleteBusinessTripExpense($businessTripExpenseId: UUID!) {
deleteBusinessTripExpense(businessTripExpenseId: $businessTripExpenseId)
}
`;
export const DeleteBusinessDocument = gql`
mutation DeleteBusiness($businessId: UUID!) {
deleteBusiness(businessId: $businessId)
}
`;
export const DeleteChargeDocument = gql`
mutation DeleteCharge($chargeId: UUID!) {
deleteCharge(chargeId: $chargeId)
}
`;
export const DeleteContractDocument = gql`
mutation DeleteContract($contractId: UUID!) {
deleteContract(id: $contractId)
}
`;
export const DeleteDepreciationRecordDocument = gql`
mutation DeleteDepreciationRecord($depreciationRecordId: UUID!) {
deleteDepreciationRecord(depreciationRecordId: $depreciationRecordId)
}
`;
export const DeleteDocumentDocument = gql`
mutation DeleteDocument($documentId: UUID!) {
deleteDocument(documentId: $documentId)
}
`;
export const DeleteDynamicReportTemplateDocument = gql`
mutation DeleteDynamicReportTemplate($name: String!) {
deleteDynamicReportTemplate(name: $name)
}
`;
export const DeleteMiscExpenseDocument = gql`
mutation DeleteMiscExpense($id: UUID!) {
deleteMiscExpense(id: $id)
}
`;
export const DeleteProviderCredentialsDocument = gql`
mutation DeleteProviderCredentials($provider: ProviderKey!) {
deleteProviderCredentials(provider: $provider) {
... on ProviderCredentialDeleteResult {
id
provider
success
}
... on CommonError {
message
}
}
}
`;
export const DeleteTagDocument = gql`
mutation DeleteTag($tagId: UUID!) {
deleteTag(id: $tagId)
}
`;
export const FetchDeelDocumentsDocument = gql`
mutation FetchDeelDocuments {
fetchDeelDocuments {
id
}
}
`;
export const GenerateApiKeyDocument = gql`
mutation GenerateApiKey($name: String!, $roleId: String!) {
generateApiKey(name: $name, roleId: $roleId) {
apiKey
record {
id
name
roleId
lastUsedAt
createdAt
}
}
}
`;
export const GenerateRevaluationChargeDocument = gql`
mutation GenerateRevaluationCharge($ownerId: UUID!, $date: TimelessDate!) {
generateRevaluationCharge(ownerId: $ownerId, date: $date) {
id
}
}
`;
export const GenerateBankDepositsRevaluationChargeDocument = gql`
mutation GenerateBankDepositsRevaluationCharge($ownerId: UUID!, $date: TimelessDate!) {
generateBankDepositsRevaluationCharge(ownerId: $ownerId, date: $date) {
id
}
}
`;
export const GenerateTaxExpensesChargeDocument = gql`
mutation GenerateTaxExpensesCharge($ownerId: UUID!, $date: TimelessDate!) {
generateTaxExpensesCharge(ownerId: $ownerId, year: $date) {
id
}
}
`;
export const GenerateDepreciationChargeDocument = gql`
mutation GenerateDepreciationCharge($ownerId: UUID!, $date: TimelessDate!) {
generateDepreciationCharge(ownerId: $ownerId, year: $date) {
id
}
}
`;
export const GenerateRecoveryReserveChargeDocument = gql`
mutation GenerateRecoveryReserveCharge($ownerId: UUID!, $date: TimelessDate!) {
generateRecoveryReserveCharge(ownerId: $ownerId, year: $date) {
id
}
}
`;
export const GenerateVacationReserveChargeDocument = gql`
mutation GenerateVacationReserveCharge($ownerId: UUID!, $date: TimelessDate!) {
generateVacationReserveCharge(ownerId: $ownerId, year: $date) {
id
}
}
`;
export const AllAdminBusinessesDocument = gql`
query AllAdminBusinesses {
allAdminBusinesses {
id
name
governmentId
}
}
`;
export const AllClientsDocument = gql`
query AllClients {
allClients {
id
originalBusiness {
id
name
}
}
}
`;
export const AllBusinessesDocument = gql`
query AllBusinesses {
allBusinesses {
nodes {
id
name
}
}
}
`;
export const AllCountriesDocument = gql`
query AllCountries {
allCountries {
id
name
code
}
}
`;
export const AllFinancialAccountsDocument = gql`
query AllFinancialAccounts {
allFinancialAccounts {
id
name
}
}
`;
export const AllFinancialEntitiesDocument = gql`
query AllFinancialEntities {
allFinancialEntities {
nodes {
id
name
}
}
}
`;
export const AllSortCodesDocument = gql`
query AllSortCodes($ownerId: String!) {
allSortCodesByBusiness(ownerId: $ownerId) {
id
key
name
defaultIrsCode
}
}
`;
export const AllTagsDocument = gql`
query AllTags {
allTags {
id
name
namePath
}
}
`;
export const AllTaxCategoriesDocument = gql`
query AllTaxCategories {
taxCategories {
id
name
}
}
`;
export const InsertBusinessTripAttendeeDocument = gql`
mutation InsertBusinessTripAttendee($fields: InsertBusinessTripAttendeeInput!) {
insertBusinessTripAttendee(fields: $fields)
}
`;
export const InsertBusinessTripDocument = gql`
mutation InsertBusinessTrip($fields: InsertBusinessTripInput!) {
insertBusinessTrip(fields: $fields)
}
`;
export const InsertBusinessDocument = gql`
mutation InsertBusiness($fields: InsertNewBusinessInput!) {
insertNewBusiness(fields: $fields) {
__typename
... on LtdFinancialEntity {
id
}
... on CommonError {
message
}
}
}
`;
export const InsertClientDocument = gql`
mutation InsertClient($fields: ClientInsertInput!) {
insertClient(fields: $fields) {
__typename
... on Client {
id
}
... on CommonError {
message
}
}
}
`;
export const InsertDocumentDocument = gql`
mutation InsertDocument($record: InsertDocumentInput!) {
insertDocument(record: $record) {
__typename
... on InsertDocumentSuccessfulResult {
document {
id
}
}
... on CommonError {
message
}
}
}
`;
export const InsertDynamicReportTemplateDocument = gql`
mutation InsertDynamicReportTemplate($name: String!, $template: String!) {
insertDynamicReportTemplate(name: $name, template: $template) {
id
name
}
}
`;
export const InsertMiscExpenseDocument = gql`
mutation InsertMiscExpense($chargeId: UUID!, $fields: InsertMiscExpenseInput!) {
insertMiscExpense(chargeId: $chargeId, fields: $fields) {
id
}
}
`;
export const InsertMiscExpensesDocument = gql`
mutation InsertMiscExpenses($chargeId: UUID!, $expenses: [InsertMiscExpenseInput!]!) {
insertMiscExpenses(chargeId: $chargeId, expenses: $expenses) {
id
}
}
`;
export const InsertSalaryRecordDocument = gql`
mutation InsertSalaryRecord($salaryRecords: [SalaryRecordInput!]!) {
insertSalaryRecords(salaryRecords: $salaryRecords) {
__typename
... on InsertSalaryRecordsSuccessfulResult {
salaryRecords {
month
employee {
id
}
}
}
... on CommonError {
message
}
}
}
`;
export const InsertTaxCategoryDocument = gql`
mutation InsertTaxCategory($fields: InsertTaxCategoryInput!) {
insertTaxCategory(fields: $fields) {
id
name
}
}
`;
export const IssueGreenInvoiceDocumentDocument = gql`
mutation IssueGreenInvoiceDocument($input: DocumentIssueInput!, $emailContent: String, $attachment: Boolean, $chargeId: UUID) {
issueGreenInvoiceDocument(
input: $input
emailContent: $emailContent
attachment: $attachment
chargeId: $chargeId
) {
id
}
}
`;
export const IssueMonthlyDocumentsDocument = gql`
mutation IssueMonthlyDocuments($generateDocumentsInfo: [DocumentIssueInput!]!) {
issueGreenInvoiceDocuments(generateDocumentsInfo: $generateDocumentsInfo) {
success
errors
}
}
`;
export const LedgerLockDocument = gql`
mutation LedgerLock($date: TimelessDate!) {
lockLedgerRecords(date: $date)
}
`;
export const LockDynamicReportTemplateDocument = gql`
mutation LockDynamicReportTemplate($name: String!) {
lockDynamicReportTemplate(name: $name) {
id
name
isLocked
updated
}
}
`;
export const MergeBusinessesDocument = gql`
mutation MergeBusinesses($targetBusinessId: UUID!, $businessIdsToMerge: [UUID!]!) {
mergeBusinesses(
targetBusinessId: $targetBusinessId
businessIdsToMerge: $businessIdsToMerge
) {
__typename
id
}
}
`;
export const MergeChargesDocument = gql`
mutation MergeCharges($baseChargeID: UUID!, $chargeIdsToMerge: [UUID!]!, $fields: UpdateChargeInput) {
mergeCharges(
baseChargeID: $baseChargeID
chargeIdsToMerge: $chargeIdsToMerge
fields: $fields
) {
__typename
... on MergeChargeSuccessfulResult {
charge {
id
}
}
... on CommonError {
message
}
}
}
`;
export const PreviewDocumentDocument = gql`
mutation PreviewDocument($input: DocumentIssueInput!) {
previewDocument(input: $input)
}
`;
export const ProviderCredentialsDocument = gql`
query ProviderCredentials {
providerCredentials {
id
provider
configuredAt
}
}
`;
export const RegenerateLedgerDocument = gql`
mutation RegenerateLedger($chargeId: UUID!) {
regenerateLedgerRecords(chargeId: $chargeId) {
__typename
... on Ledger {
records {
id
}
}
... on CommonError {
message
}
}
}
`;
export const RelevantDepositsForChargeDocument = gql`
query RelevantDepositsForCharge($chargeId: UUID!) {
relevantDepositsForCharge(chargeId: $chargeId) {
id
deposits {
id
name
currency
isOpen
}
error
}
}
`;
export const RemoveBusinessUserDocument = gql`
mutation RemoveBusinessUser($userId: ID!) {
removeBusinessUser(userId: $userId)
}
`;
export const RevokeApiKeyDocument = gql`
mutation RevokeApiKey($id: ID!) {
revokeApiKey(id: $id)
}
`;
export const RevokeInvitationDocument = gql`
mutation RevokeInvitation($id: ID!) {
revokeInvitation(id: $id)
}
`;
export const SetAnnualAuditStepStatusDocument = gql`
mutation SetAnnualAuditStepStatus($input: SetAnnualAuditStepStatusInput!) {
setAnnualAuditStepStatus(input: $input) {
id
ownerId
year
stepId
status
notes
evidence
updatedAt
completedAt
}
}
`;
export const SetAnnualAuditStep03StatusDocument = gql`
mutation SetAnnualAuditStep03Status($input: SetAnnualAuditStep03StatusInput!) {
setAnnualAuditStep03Status(input: $input) {
id
ownerId
year
stepId
status
notes
updatedAt
completedAt
}
}
`;
export const SetAnnualAuditStep09StatusDocument = gql`
mutation SetAnnualAuditStep09Status($input: SetAnnualAuditStep09StatusInput!) {
setAnnualAuditStep09Status(input: $input) {
id
ownerId
year
stepId
status
notes
evidence
updatedAt
completedAt
}
}
`;
export const SetDeelCredentialsDocument = gql`
mutation SetDeelCredentials($apiToken: String!) {
setDeelCredentials(apiToken: $apiToken) {
... on ProviderCredentialResult {
id
provider
configuredAt
}
... on CommonError {
message
}
}
}
`;
export const SetGreenInvoiceCredentialsDocument = gql`
mutation SetGreenInvoiceCredentials($id: String!, $secret: String!) {
setGreenInvoiceCredentials(id: $id, secret: $secret) {
... on ProviderCredentialResult {
id
provider
configuredAt
}
... on CommonError {
message
}
}
}
`;
export const SyncGreenInvoiceDocumentsDocument = gql`
mutation SyncGreenInvoiceDocuments($ownerId: UUID!) {
syncGreenInvoiceDocuments(ownerId: $ownerId) {
id
...NewFetchedDocumentFields
}
}
${NewFetchedDocumentFieldsFragmentDoc}`;
export const UnlockDynamicReportTemplateDocument = gql`
mutation UnlockDynamicReportTemplate($name: String!) {
unlockDynamicReportTemplate(name: $name) {
id
name
isLocked
updated
}
}
`;
export const UpdateAdminBusinessDocument = gql`
mutation UpdateAdminBusiness($adminBusinessId: UUID!, $fields: UpdateAdminBusinessInput!) {
updateAdminBusiness(businessId: $adminBusinessId, fields: $fields) {
id
}
}
`;
export const UpdateBusinessTripAccommodationsExpenseDocument = gql`
mutation UpdateBusinessTripAccommodationsExpense($fields: UpdateBusinessTripAccommodationsExpenseInput!) {
updateBusinessTripAccommodationsExpense(fields: $fields)
}
`;
export const UpdateBusinessTripAccountantApprovalDocument = gql`
mutation UpdateBusinessTripAccountantApproval($businessTripId: UUID!, $status: AccountantStatus!) {
updateBusinessTripAccountantApproval(
businessTripId: $businessTripId
approvalStatus: $status
)
}
`;
export const UpdateBusinessTripAttendeeDocument = gql`
mutation UpdateBusinessTripAttendee($fields: BusinessTripAttendeeUpdateInput!) {
updateBusinessTripAttendee(fields: $fields)
}
`;
export const UpdateBusinessTripCarRentalExpenseDocument = gql`
mutation UpdateBusinessTripCarRentalExpense($fields: UpdateBusinessTripCarRentalExpenseInput!) {
updateBusinessTripCarRentalExpense(fields: $fields)
}
`;
export const UpdateBusinessTripFlightsExpenseDocument = gql`
mutation UpdateBusinessTripFlightsExpense($fields: UpdateBusinessTripFlightsExpenseInput!) {
updateBusinessTripFlightsExpense(fields: $fields)
}
`;
export const UpdateBusinessTripOtherExpenseDocument = gql`
mutation UpdateBusinessTripOtherExpense($fields: UpdateBusinessTripOtherExpenseInput!) {
updateBusinessTripOtherExpense(fields: $fields)
}
`;
export const UpdateBusinessTripTravelAndSubsistenceExpenseDocument = gql`
mutation UpdateBusinessTripTravelAndSubsistenceExpense($fields: UpdateBusinessTripTravelAndSubsistenceExpenseInput!) {
updateBusinessTripTravelAndSubsistenceExpense(fields: $fields)
}
`;
export const UpdateBusinessDocument = gql`
mutation UpdateBusiness($businessId: UUID!, $ownerId: UUID!, $fields: UpdateBusinessInput!) {
updateBusiness(businessId: $businessId, ownerId: $ownerId, fields: $fields) {
__typename
... on LtdFinancialEntity {
id
name
}
... on CommonError {
message
}
}
}
`;
export const UpdateChargeAccountantApprovalDocument = gql`
mutation UpdateChargeAccountantApproval($chargeId: UUID!, $status: AccountantStatus!) {
updateChargeAccountantApproval(chargeId: $chargeId, approvalStatus: $status)
}
`;
export const UpdateChargeDocument = gql`
mutation UpdateCharge($chargeId: UUID!, $fields: UpdateChargeInput!) {
updateCharge(chargeId: $chargeId, fields: $fields) {
__typename
... on UpdateChargeSuccessfulResult {
charge {
id
}
}
... on CommonError {
message
}
}
}
`;
export const UpdateClientDocument = gql`
mutation UpdateClient($businessId: UUID!, $fields: ClientUpdateInput!) {
updateClient(businessId: $businessId, fields: $fields) {
__typename
... on Client {
id
}
... on CommonError {
message
}
}
}
`;
export const UpdateContractDocument = gql`
mutation UpdateContract($contractId: UUID!, $input: UpdateContractInput!) {
updateContract(contractId: $contractId, input: $input) {
id
}
}
`;
export const UpdateDepositDocument = gql`
mutation UpdateDeposit($id: UUID!, $name: String, $openDate: TimelessDate, $closeDate: TimelessDate) {
updateDeposit(id: $id, name: $name, openDate: $openDate, closeDate: $closeDate) {
id
name
openDate
closeDate
isOpen
}
}
`;
export const UpdateDepreciationRecordDocument = gql`
mutation UpdateDepreciationRecord($fields: UpdateDepreciationRecordInput!) {
updateDepreciationRecord(input: $fields) {
__typename
... on CommonError {
message
}
... on DepreciationRecord {
id
}
}
}
`;
export const UpdateDocumentDocument = gql`
mutation UpdateDocument($documentId: UUID!, $fields: UpdateDocumentFieldsInput!) {
updateDocument(documentId: $documentId, fields: $fields) {
__typename
... on CommonError {
message
}
... on UpdateDocumentSuccessfulResult {
document {
id
}
}
}
}
`;
export const UpdateDynamicReportTemplateNameDocument = gql`
mutation UpdateDynamicReportTemplateName($name: String!, $newName: String!) {
updateDynamicReportTemplateName(name: $name, newName: $newName) {
id
name
}
}
`;
export const UpdateDynamicReportTemplateDocument = gql`
mutation UpdateDynamicReportTemplate($name: String!, $template: String!) {
updateDynamicReportTemplate(name: $name, template: $template) {
id
name
}
}
`;
export const UpdateFinancialAccountDocument = gql`
mutation UpdateFinancialAccount($financialAccountId: UUID!, $fields: UpdateFinancialAccountInput!) {
updateFinancialAccount(id: $financialAccountId, fields: $fields) {
id
}
}
`;
export const UpdateMiscExpenseDocument = gql`
mutation UpdateMiscExpense($id: UUID!, $fields: UpdateMiscExpenseInput!) {
updateMiscExpense(id: $id, fields: $fields) {
id
}
}
`;
export const UpdateOrInsertSalaryRecordsDocument = gql`
mutation UpdateOrInsertSalaryRecords($salaryRecords: [SalaryRecordInput!]!) {
insertOrUpdateSalaryRecords(salaryRecords: $salaryRecords) {
__typename
... on InsertSalaryRecordsSuccessfulResult {
salaryRecords {
month
employee {
id
}
}
}
... on CommonError {
message
}
}
}
`;
export const UpdateSalaryRecordDocument = gql`
mutation UpdateSalaryRecord($salaryRecord: SalaryRecordEditInput!) {
updateSalaryRecord(salaryRecord: $salaryRecord) {
__typename
... on UpdateSalaryRecordSuccessfulResult {
salaryRecord {
month
employee {
id
}
}
}
... on CommonError {
message
}
}
}
`;
export const UpdateSortCodeDocument = gql`
mutation UpdateSortCode($key: Int!, $fields: UpdateSortCodeFieldsInput!) {
updateSortCode(key: $key, fields: $fields)
}
`;
export const UpdateTagDocument = gql`
mutation UpdateTag($tagId: UUID!, $fields: UpdateTagFieldsInput!) {
updateTag(id: $tagId, fields: $fields)
}
`;
export const UpdateTaxCategoryDocument = gql`
mutation UpdateTaxCategory($taxCategoryId: UUID!, $fields: UpdateTaxCategoryInput!) {
updateTaxCategory(taxCategoryId: $taxCategoryId, fields: $fields) {
__typename
... on TaxCategory {
id
name
}
... on CommonError {
message
}
}
}
`;
export const UpdateTransactionDocument = gql`
mutation UpdateTransaction($transactionId: UUID!, $fields: UpdateTransactionInput!) {
updateTransaction(transactionId: $transactionId, fields: $fields) {
__typename
... on Transaction {
id
}
... on CommonError {
message
}
}
}
`;
export const UpdateTransactionsDocument = gql`
mutation UpdateTransactions($transactionIds: [UUID!]!, $fields: UpdateTransactionInput!) {
updateTransactions(transactionIds: $transactionIds, fields: $fields) {
__typename
... on UpdatedTransactionsSuccessfulResult {
transactions {
... on Transaction {
id
}
}
}
... on CommonError {
message
}
}
}
`;
export const UploadDocumentDocument = gql`
mutation UploadDocument($file: FileScalar!, $chargeId: UUID) {
uploadDocument(file: $file, chargeId: $chargeId) {
__typename
... on UploadDocumentSuccessfulResult {
document {
id
charge {
id
}
}
}
... on CommonError {
message
}
}
}
`;
export const UploadDocumentsFromGoogleDriveDocument = gql`
mutation UploadDocumentsFromGoogleDrive($sharedFolderUrl: String!, $chargeId: UUID, $isSensitive: Boolean) {
batchUploadDocumentsFromGoogleDrive(
sharedFolderUrl: $sharedFolderUrl
chargeId: $chargeId
isSensitive: $isSensitive
) {
... on CommonError {
message
}
... on UploadDocumentSuccessfulResult {
document {
id
...NewFetchedDocumentFields
}
}
}
}
${NewFetchedDocumentFieldsFragmentDoc}`;
export const UploadMultipleDocumentsDocument = gql`
mutation UploadMultipleDocuments($documents: [FileScalar!]!, $chargeId: UUID, $isSensitive: Boolean) {
batchUploadDocuments(
documents: $documents
chargeId: $chargeId
isSensitive: $isSensitive
) {
... on CommonError {
message
}
... on UploadDocumentSuccessfulResult {
document {
id
...NewFetchedDocumentFields
}
}
}
}
${NewFetchedDocumentFieldsFragmentDoc}`;
export const UploadPayrollFileDocument = gql`
mutation UploadPayrollFile($file: FileScalar!, $chargeId: UUID!) {
insertSalaryRecordsFromFile(file: $file, chargeId: $chargeId)
}
`;
export const UserContextDocument = gql`
query UserContext {
userContext {
memberships {
businessId
role
businessName
}
activeReadScope
defaultLocalCurrency
defaultCryptoConversionFiatCurrency
ledgerLock
financialAccountsBusinessesIds
locality
}
}
`;
export const RequestIngestControlDocument = gql`
mutation RequestIngestControl($input: IngestControlInput!) {
requestIngestControl(input: $input) {
__typename
... on IngestControlDecision {
id
tenantId
decisionId
auditId
grant {
id
jti
tenantId
action
expiresAt
}
businessEmailConfig {
businessId
internalEmailLinks
emailBody
attachments
}
}
... on CommonError {
message
}
}
}
`;
export const IngestEmailDocument = gql`
mutation IngestEmail($input: IngestEmailInput!) {
ingestEmail(input: $input) {
__typename
... on IngestEmailSuccess {
outcome
ingestId
existingIngestId
auditId
reasonCode
}
... on CommonError {
message
}
}
}
`;
export const BusinessEmailConfigDocument = gql`
query BusinessEmailConfig($email: String!) {
businessEmailConfig(email: $email) {
businessId
internalEmailLinks
emailBody
attachments
}
}
`;
export const InsertEmailDocumentsDocument = gql`
mutation InsertEmailDocuments($documents: [FileScalar!]!, $userDescription: String!, $messageId: String, $businessId: UUID) {
insertEmailDocuments(
documents: $documents
userDescription: $userDescription
messageId: $messageId
businessId: $businessId
)
}
`;
export const UploadPoalimIlsTransactionsDocument = gql`
mutation UploadPoalimIlsTransactions($transactions: [PoalimIlsTransactionInput!]!) {
uploadPoalimIlsTransactions(transactions: $transactions) {
inserted
skipped
insertedIds
insertedTransactions {
id
date
description
amount
account
}
changedTransactions {
id
changedFields {
field
oldValue
newValue
}
}
}
}
`;
export const UploadPoalimForeignTransactionsDocument = gql`
mutation UploadPoalimForeignTransactions($transactions: [PoalimForeignTransactionInput!]!) {
uploadPoalimForeignTransactions(transactions: $transactions) {
inserted
skipped
insertedIds
insertedTransactions {
id
date
description
amount
account
}
changedTransactions {
id
changedFields {
field
oldValue
newValue
}
}
}
}
`;
export const UploadPoalimSwiftTransactionsDocument = gql`
mutation UploadPoalimSwiftTransactions($swifts: [PoalimSwiftTransactionInput!]!) {
uploadPoalimSwiftTransactions(swifts: $swifts) {
inserted
skipped
insertedIds
insertedTransactions {
id
date
description
amount
account
}
changedTransactions {
id
changedFields {
field
oldValue
newValue
}
}
}
}
`;
export const UploadIsracardTransactionsDocument = gql`
mutation UploadIsracardTransactions($transactions: [IsracardTransactionInput!]!) {
uploadIsracardTransactions(transactions: $transactions) {
inserted
skipped
insertedIds
insertedTransactions {
id
date
description
amount
account
}
changedTransactions {
id
changedFields {
field
oldValue
newValue
}
}
}
}
`;
export const UploadAmexTransactionsDocument = gql`
mutation UploadAmexTransactions($transactions: [AmexTransactionInput!]!) {
uploadAmexTransactions(transactions: $transactions) {
inserted
skipped
insertedIds
insertedTransactions {
id
date
description
amount
account
}
changedTransactions {
id
changedFields {
field
oldValue
newValue
}
}
}
}
`;
export const UploadCalTransactionsDocument = gql`
mutation UploadCalTransactions($transactions: [CalTransactionInput!]!) {
uploadCalTransactions(transactions: $transactions) {
inserted
skipped
insertedIds
insertedTransactions {
id
date
description
amount
account
}
changedTransactions {
id
changedFields {
field
oldValue
newValue
}
}
}
}
`;
export const UploadDiscountTransactionsDocument = gql`
mutation UploadDiscountTransactions($transactions: [DiscountTransactionInput!]!) {
uploadDiscountTransactions(transactions: $transactions) {
inserted
skipped
insertedIds
insertedTransactions {
id
date
description
amount
account
}
changedTransactions {
id
changedFields {
field
oldValue
newValue
}
}
}
}
`;
export const UploadMaxTransactionsDocument = gql`
mutation UploadMaxTransactions($transactions: [MaxTransactionInput!]!) {
uploadMaxTransactions(transactions: $transactions) {
inserted
skipped
insertedIds
insertedTransactions {
id
date
description
amount
account
}
changedTransactions {
id
changedFields {
field
oldValue
newValue
}
}
}
}
`;
export const UploadCurrencyRatesDocument = gql`
mutation UploadCurrencyRates($rates: [CurrencyRateInput!]!) {
uploadCurrencyRates(rates: $rates) {
inserted
skipped
insertedIds
insertedTransactions {
id
date
description
amount
account
}
changedTransactions {
id
changedFields {
field
oldValue
newValue
}
}
}
}
`;
export const UploadOtsarHahayalIlsTransactionsDocument = gql`
mutation UploadOtsarHahayalIlsTransactions($transactions: [OtsarHahayalIlsTransactionInput!]!) {
uploadOtsarHahayalIlsTransactions(transactions: $transactions) {
inserted
skipped
insertedIds
insertedTransactions {
id
date
description
amount
account
}
changedTransactions {
id
changedFields {
field
oldValue
newValue
}
}
}
}
`;
export const UploadOtsarHahayalForeignTransactionsDocument = gql`
mutation UploadOtsarHahayalForeignTransactions($transactions: [OtsarHahayalForeignTransactionInput!]!) {
uploadOtsarHahayalForeignTransactions(transactions: $transactions) {
inserted
skipped
insertedIds
insertedTransactions {
id
date
description
amount
account
}
changedTransactions {
id
changedFields {
field
oldValue
newValue
}
}
}
}
`;
export const UploadOtsarHahayalCreditCardTransactionsDocument = gql`
mutation UploadOtsarHahayalCreditCardTransactions($transactions: [OtsarHahayalCreditCardTransactionInput!]!) {
uploadOtsarHahayalCreditCardTransactions(transactions: $transactions) {
inserted
skipped
insertedIds
insertedTransactions {
id
date
description
amount
account
}
changedTransactions {
id
changedFields {
field
oldValue
newValue
}
}
}
}
`;
export type SdkFunctionWrapper = <T>(action: (requestHeaders?:Record<string, string>) => Promise<T>, operationName: string, operationType?: string, variables?: any) => Promise<T>;
const defaultWrapper: SdkFunctionWrapper = (action, _operationName, _operationType, _variables) => action();
const ListApiKeysDocumentString = print(ListApiKeysDocument);
const ListBusinessUsersDocumentString = print(ListBusinessUsersDocument);
const ListInvitationsDocumentString = print(ListInvitationsDocument);
const SharedDepositTransactionsDocumentString = print(SharedDepositTransactionsDocument);
const BusinessLedgerInfoDocumentString = print(BusinessLedgerInfoDocument);
const BusinessLedgerRecordsSummeryDocumentString = print(BusinessLedgerRecordsSummeryDocument);
const BusinessTripScreenDocumentString = print(BusinessTripScreenDocument);
const BusinessTripsRowValidationDocumentString = print(BusinessTripsRowValidationDocument);
const EditableBusinessTripDocumentString = print(EditableBusinessTripDocument);
const BusinessTripsScreenDocumentString = print(BusinessTripsScreenDocument);
const AdminFinancialAccountsSectionDocumentString = print(AdminFinancialAccountsSectionDocument);
const BusinessChargesSectionDocumentString = print(BusinessChargesSectionDocument);
const ClientContractsSectionDocumentString = print(ClientContractsSectionDocument);
const ClientIntegrationsSectionGreenInvoiceDocumentString = print(ClientIntegrationsSectionGreenInvoiceDocument);
const ContractBasedDocumentDraftDocumentString = print(ContractBasedDocumentDraftDocument);
const BusinessLedgerSectionDocumentString = print(BusinessLedgerSectionDocument);
const BusinessTransactionsSectionDocumentString = print(BusinessTransactionsSectionDocument);
const AllBusinessesForScreenDocumentString = print(AllBusinessesForScreenDocument);
const BusinessesUsageDocumentString = print(BusinessesUsageDocument);
const ChargeExtendedInfoForChargeMatchesDocumentString = print(ChargeExtendedInfoForChargeMatchesDocument);
const ChargesAwaitingMatchQueueDocumentString = print(ChargesAwaitingMatchQueueDocument);
const ChargesLedgerValidationDocumentString = print(ChargesLedgerValidationDocument);
const FetchChargeDocumentString = print(FetchChargeDocument);
const ChargesExtendedInfoBatchDocumentString = print(ChargesExtendedInfoBatchDocument);
const RefetchChargeForChargesTableDocumentString = print(RefetchChargeForChargesTableDocument);
const ChargesForCsvExportDocumentString = print(ChargesForCsvExportDocument);
const BankDepositInfoDocumentString = print(BankDepositInfoDocument);
const ChargeMatchesDocumentString = print(ChargeMatchesDocument);
const IncomeChargesChartDocumentString = print(IncomeChargesChartDocument);
const MonthlyIncomeExpenseChartDocumentString = print(MonthlyIncomeExpenseChartDocument);
const ContractsEditModalDocumentString = print(ContractsEditModalDocument);
const UncategorizedTransactionsByBusinessTripDocumentString = print(UncategorizedTransactionsByBusinessTripDocument);
const ChargeDepreciationDocumentString = print(ChargeDepreciationDocument);
const RecentBusinessIssuedDocumentsDocumentString = print(RecentBusinessIssuedDocumentsDocument);
const RecentIssuedDocumentsOfSameTypeDocumentString = print(RecentIssuedDocumentsOfSameTypeDocument);
const EditDocumentDocumentString = print(EditDocumentDocument);
const EditTransactionDocumentString = print(EditTransactionDocument);
const ClientInfoForDocumentIssuingDocumentString = print(ClientInfoForDocumentIssuingDocument);
const AllBusinessTripsDocumentString = print(AllBusinessTripsDocument);
const AllDepreciationCategoriesDocumentString = print(AllDepreciationCategoriesDocument);
const AllEmployeesByEmployerDocumentString = print(AllEmployeesByEmployerDocument);
const AllPensionFundsDocumentString = print(AllPensionFundsDocument);
const AllTrainingFundsDocumentString = print(AllTrainingFundsDocument);
const AttendeesByBusinessTripDocumentString = print(AttendeesByBusinessTripDocument);
const FetchMultipleBusinessesDocumentString = print(FetchMultipleBusinessesDocument);
const FetchMultipleChargesDocumentString = print(FetchMultipleChargesDocument);
const EditChargeDocumentString = print(EditChargeDocument);
const EditSalaryRecordDocumentString = print(EditSalaryRecordDocument);
const SortCodeToUpdateDocumentString = print(SortCodeToUpdateDocument);
const TaxCategoryToUpdateDocumentString = print(TaxCategoryToUpdateDocument);
const MiscExpenseTransactionFieldsDocumentString = print(MiscExpenseTransactionFieldsDocument);
const NewDocumentDraftByChargeDocumentString = print(NewDocumentDraftByChargeDocument);
const NewDocumentDraftByDocumentDocumentString = print(NewDocumentDraftByDocumentDocument);
const SimilarChargesByBusinessDocumentString = print(SimilarChargesByBusinessDocument);
const SimilarChargesDocumentString = print(SimilarChargesDocument);
const SimilarTransactionsDocumentString = print(SimilarTransactionsDocument);
const UniformFormatDocumentString = print(UniformFormatDocument);
const ContractBasedDocumentDraftsDocumentString = print(ContractBasedDocumentDraftsDocument);
const AccountantApprovalsChargesTableDocumentString = print(AccountantApprovalsChargesTableDocument);
const CorporateTaxRulingComplianceReportDocumentString = print(CorporateTaxRulingComplianceReportDocument);
const AllDynamicReportsDocumentString = print(AllDynamicReportsDocument);
const DynamicReportDocumentString = print(DynamicReportDocument);
const DynamicReportTemplateDocumentString = print(DynamicReportTemplateDocument);
const ProfitAndLossReportDocumentString = print(ProfitAndLossReportDocument);
const TaxReportDocumentString = print(TaxReportDocument);
const TrialBalanceReportDocumentString = print(TrialBalanceReportDocument);
const ValidatePcn874ReportsDocumentString = print(ValidatePcn874ReportsDocument);
const VatMonthlyReportDocumentString = print(VatMonthlyReportDocument);
const GeneratePcnDocumentString = print(GeneratePcnDocument);
const YearlyLedgerDocumentString = print(YearlyLedgerDocument);
const SalaryScreenRecordsDocumentString = print(SalaryScreenRecordsDocument);
const AllDepositsDocumentString = print(AllDepositsDocument);
const BusinessScreenDocumentString = print(BusinessScreenDocument);
const ContractsScreenDocumentString = print(ContractsScreenDocument);
const AllChargesDocumentString = print(AllChargesDocument);
const ChargeScreenDocumentString = print(ChargeScreenDocument);
const MissingInfoChargesDocumentString = print(MissingInfoChargesDocument);
const DocumentsScreenDocumentString = print(DocumentsScreenDocument);
const MonthlyDocumentDraftByClientDocumentString = print(MonthlyDocumentDraftByClientDocument);
const MonthlyDocumentsDraftsDocumentString = print(MonthlyDocumentsDraftsDocument);
const AllOpenContractsDocumentString = print(AllOpenContractsDocument);
const AnnualAuditStepsStatusDocumentString = print(AnnualAuditStepsStatusDocument);
const AccountantApprovalStatusDocumentString = print(AccountantApprovalStatusDocument);
const LedgerValidationStatusDocumentString = print(LedgerValidationStatusDocument);
const AnnualAuditOpeningBalanceStatusDocumentString = print(AnnualAuditOpeningBalanceStatusDocument);
const AnnualFinancialChargesDocumentString = print(AnnualFinancialChargesDocument);
const Step05PrevYearTemplateDocumentString = print(Step05PrevYearTemplateDocument);
const AdminLedgerLockDateDocumentString = print(AdminLedgerLockDateDocument);
const Step09SaveTemplateStatusDocumentString = print(Step09SaveTemplateStatusDocument);
const AnnualRevenueReportScreenDocumentString = print(AnnualRevenueReportScreenDocument);
const BalanceReportExtendedTransactionsDocumentString = print(BalanceReportExtendedTransactionsDocument);
const BalanceReportScreenDocumentString = print(BalanceReportScreenDocument);
const DepreciationReportScreenDocumentString = print(DepreciationReportScreenDocument);
const Shaam6111ReportScreenDocumentString = print(Shaam6111ReportScreenDocument);
const AllSortCodesForScreenDocumentString = print(AllSortCodesForScreenDocument);
const AllTagsScreenDocumentString = print(AllTagsScreenDocument);
const AllTaxCategoriesForScreenDocumentString = print(AllTaxCategoriesForScreenDocument);
const AcceptInvitationDocumentString = print(AcceptInvitationDocument);
const AddBusinessTripAccommodationsExpenseDocumentString = print(AddBusinessTripAccommodationsExpenseDocument);
const AddBusinessTripCarRentalExpenseDocumentString = print(AddBusinessTripCarRentalExpenseDocument);
const AddBusinessTripFlightsExpenseDocumentString = print(AddBusinessTripFlightsExpenseDocument);
const AddBusinessTripOtherExpenseDocumentString = print(AddBusinessTripOtherExpenseDocument);
const AddBusinessTripTravelAndSubsistenceExpenseDocumentString = print(AddBusinessTripTravelAndSubsistenceExpenseDocument);
const AddDepreciationRecordDocumentString = print(AddDepreciationRecordDocument);
const AddSortCodeDocumentString = print(AddSortCodeDocument);
const AddTagDocumentString = print(AddTagDocument);
const AnnualAuditStepStatusDocumentString = print(AnnualAuditStepStatusDocument);
const AssignChargeToDepositDocumentString = print(AssignChargeToDepositDocument);
const GenerateBalanceChargeDocumentString = print(GenerateBalanceChargeDocument);
const BatchUpdateBusinessesDocumentString = print(BatchUpdateBusinessesDocument);
const BatchUpdateChargesDocumentString = print(BatchUpdateChargesDocument);
const CategorizeBusinessTripExpenseDocumentString = print(CategorizeBusinessTripExpenseDocument);
const CategorizeIntoExistingBusinessTripExpenseDocumentString = print(CategorizeIntoExistingBusinessTripExpenseDocument);
const CloseDocumentDocumentString = print(CloseDocumentDocument);
const CreateContractDocumentString = print(CreateContractDocument);
const CreateDepositFromChargeDocumentString = print(CreateDepositFromChargeDocument);
const CreateDepositDocumentString = print(CreateDepositDocument);
const CreateFinancialAccountDocumentString = print(CreateFinancialAccountDocument);
const CreateInvitationDocumentString = print(CreateInvitationDocument);
const CreditShareholdersBusinessTripTravelAndSubsistenceDocumentString = print(CreditShareholdersBusinessTripTravelAndSubsistenceDocument);
const FlagForeignFeeTransactionsDocumentString = print(FlagForeignFeeTransactionsDocument);
const MergeChargesByTransactionReferenceDocumentString = print(MergeChargesByTransactionReferenceDocument);
const CalculateCreditcardTransactionsDebitDateDocumentString = print(CalculateCreditcardTransactionsDebitDateDocument);
const DeleteBusinessTripAttendeeDocumentString = print(DeleteBusinessTripAttendeeDocument);
const DeleteBusinessTripExpenseDocumentString = print(DeleteBusinessTripExpenseDocument);
const DeleteBusinessDocumentString = print(DeleteBusinessDocument);
const DeleteChargeDocumentString = print(DeleteChargeDocument);
const DeleteContractDocumentString = print(DeleteContractDocument);
const DeleteDepreciationRecordDocumentString = print(DeleteDepreciationRecordDocument);
const DeleteDocumentDocumentString = print(DeleteDocumentDocument);
const DeleteDynamicReportTemplateDocumentString = print(DeleteDynamicReportTemplateDocument);
const DeleteMiscExpenseDocumentString = print(DeleteMiscExpenseDocument);
const DeleteProviderCredentialsDocumentString = print(DeleteProviderCredentialsDocument);
const DeleteTagDocumentString = print(DeleteTagDocument);
const FetchDeelDocumentsDocumentString = print(FetchDeelDocumentsDocument);
const GenerateApiKeyDocumentString = print(GenerateApiKeyDocument);
const GenerateRevaluationChargeDocumentString = print(GenerateRevaluationChargeDocument);
const GenerateBankDepositsRevaluationChargeDocumentString = print(GenerateBankDepositsRevaluationChargeDocument);
const GenerateTaxExpensesChargeDocumentString = print(GenerateTaxExpensesChargeDocument);
const GenerateDepreciationChargeDocumentString = print(GenerateDepreciationChargeDocument);
const GenerateRecoveryReserveChargeDocumentString = print(GenerateRecoveryReserveChargeDocument);
const GenerateVacationReserveChargeDocumentString = print(GenerateVacationReserveChargeDocument);
const AllAdminBusinessesDocumentString = print(AllAdminBusinessesDocument);
const AllClientsDocumentString = print(AllClientsDocument);
const AllBusinessesDocumentString = print(AllBusinessesDocument);
const AllCountriesDocumentString = print(AllCountriesDocument);
const AllFinancialAccountsDocumentString = print(AllFinancialAccountsDocument);
const AllFinancialEntitiesDocumentString = print(AllFinancialEntitiesDocument);
const AllSortCodesDocumentString = print(AllSortCodesDocument);
const AllTagsDocumentString = print(AllTagsDocument);
const AllTaxCategoriesDocumentString = print(AllTaxCategoriesDocument);
const InsertBusinessTripAttendeeDocumentString = print(InsertBusinessTripAttendeeDocument);
const InsertBusinessTripDocumentString = print(InsertBusinessTripDocument);
const InsertBusinessDocumentString = print(InsertBusinessDocument);
const InsertClientDocumentString = print(InsertClientDocument);
const InsertDocumentDocumentString = print(InsertDocumentDocument);
const InsertDynamicReportTemplateDocumentString = print(InsertDynamicReportTemplateDocument);
const InsertMiscExpenseDocumentString = print(InsertMiscExpenseDocument);
const InsertMiscExpensesDocumentString = print(InsertMiscExpensesDocument);
const InsertSalaryRecordDocumentString = print(InsertSalaryRecordDocument);
const InsertTaxCategoryDocumentString = print(InsertTaxCategoryDocument);
const IssueGreenInvoiceDocumentDocumentString = print(IssueGreenInvoiceDocumentDocument);
const IssueMonthlyDocumentsDocumentString = print(IssueMonthlyDocumentsDocument);
const LedgerLockDocumentString = print(LedgerLockDocument);
const LockDynamicReportTemplateDocumentString = print(LockDynamicReportTemplateDocument);
const MergeBusinessesDocumentString = print(MergeBusinessesDocument);
const MergeChargesDocumentString = print(MergeChargesDocument);
const PreviewDocumentDocumentString = print(PreviewDocumentDocument);
const ProviderCredentialsDocumentString = print(ProviderCredentialsDocument);
const RegenerateLedgerDocumentString = print(RegenerateLedgerDocument);
const RelevantDepositsForChargeDocumentString = print(RelevantDepositsForChargeDocument);
const RemoveBusinessUserDocumentString = print(RemoveBusinessUserDocument);
const RevokeApiKeyDocumentString = print(RevokeApiKeyDocument);
const RevokeInvitationDocumentString = print(RevokeInvitationDocument);
const SetAnnualAuditStepStatusDocumentString = print(SetAnnualAuditStepStatusDocument);
const SetAnnualAuditStep03StatusDocumentString = print(SetAnnualAuditStep03StatusDocument);
const SetAnnualAuditStep09StatusDocumentString = print(SetAnnualAuditStep09StatusDocument);
const SetDeelCredentialsDocumentString = print(SetDeelCredentialsDocument);
const SetGreenInvoiceCredentialsDocumentString = print(SetGreenInvoiceCredentialsDocument);
const SyncGreenInvoiceDocumentsDocumentString = print(SyncGreenInvoiceDocumentsDocument);
const UnlockDynamicReportTemplateDocumentString = print(UnlockDynamicReportTemplateDocument);
const UpdateAdminBusinessDocumentString = print(UpdateAdminBusinessDocument);
const UpdateBusinessTripAccommodationsExpenseDocumentString = print(UpdateBusinessTripAccommodationsExpenseDocument);
const UpdateBusinessTripAccountantApprovalDocumentString = print(UpdateBusinessTripAccountantApprovalDocument);
const UpdateBusinessTripAttendeeDocumentString = print(UpdateBusinessTripAttendeeDocument);
const UpdateBusinessTripCarRentalExpenseDocumentString = print(UpdateBusinessTripCarRentalExpenseDocument);
const UpdateBusinessTripFlightsExpenseDocumentString = print(UpdateBusinessTripFlightsExpenseDocument);
const UpdateBusinessTripOtherExpenseDocumentString = print(UpdateBusinessTripOtherExpenseDocument);
const UpdateBusinessTripTravelAndSubsistenceExpenseDocumentString = print(UpdateBusinessTripTravelAndSubsistenceExpenseDocument);
const UpdateBusinessDocumentString = print(UpdateBusinessDocument);
const UpdateChargeAccountantApprovalDocumentString = print(UpdateChargeAccountantApprovalDocument);
const UpdateChargeDocumentString = print(UpdateChargeDocument);
const UpdateClientDocumentString = print(UpdateClientDocument);
const UpdateContractDocumentString = print(UpdateContractDocument);
const UpdateDepositDocumentString = print(UpdateDepositDocument);
const UpdateDepreciationRecordDocumentString = print(UpdateDepreciationRecordDocument);
const UpdateDocumentDocumentString = print(UpdateDocumentDocument);
const UpdateDynamicReportTemplateNameDocumentString = print(UpdateDynamicReportTemplateNameDocument);
const UpdateDynamicReportTemplateDocumentString = print(UpdateDynamicReportTemplateDocument);
const UpdateFinancialAccountDocumentString = print(UpdateFinancialAccountDocument);
const UpdateMiscExpenseDocumentString = print(UpdateMiscExpenseDocument);
const UpdateOrInsertSalaryRecordsDocumentString = print(UpdateOrInsertSalaryRecordsDocument);
const UpdateSalaryRecordDocumentString = print(UpdateSalaryRecordDocument);
const UpdateSortCodeDocumentString = print(UpdateSortCodeDocument);
const UpdateTagDocumentString = print(UpdateTagDocument);
const UpdateTaxCategoryDocumentString = print(UpdateTaxCategoryDocument);
const UpdateTransactionDocumentString = print(UpdateTransactionDocument);
const UpdateTransactionsDocumentString = print(UpdateTransactionsDocument);
const UploadDocumentDocumentString = print(UploadDocumentDocument);
const UploadDocumentsFromGoogleDriveDocumentString = print(UploadDocumentsFromGoogleDriveDocument);
const UploadMultipleDocumentsDocumentString = print(UploadMultipleDocumentsDocument);
const UploadPayrollFileDocumentString = print(UploadPayrollFileDocument);
const UserContextDocumentString = print(UserContextDocument);
const RequestIngestControlDocumentString = print(RequestIngestControlDocument);
const IngestEmailDocumentString = print(IngestEmailDocument);
const BusinessEmailConfigDocumentString = print(BusinessEmailConfigDocument);
const InsertEmailDocumentsDocumentString = print(InsertEmailDocumentsDocument);
const UploadPoalimIlsTransactionsDocumentString = print(UploadPoalimIlsTransactionsDocument);
const UploadPoalimForeignTransactionsDocumentString = print(UploadPoalimForeignTransactionsDocument);
const UploadPoalimSwiftTransactionsDocumentString = print(UploadPoalimSwiftTransactionsDocument);
const UploadIsracardTransactionsDocumentString = print(UploadIsracardTransactionsDocument);
const UploadAmexTransactionsDocumentString = print(UploadAmexTransactionsDocument);
const UploadCalTransactionsDocumentString = print(UploadCalTransactionsDocument);
const UploadDiscountTransactionsDocumentString = print(UploadDiscountTransactionsDocument);
const UploadMaxTransactionsDocumentString = print(UploadMaxTransactionsDocument);
const UploadCurrencyRatesDocumentString = print(UploadCurrencyRatesDocument);
const UploadOtsarHahayalIlsTransactionsDocumentString = print(UploadOtsarHahayalIlsTransactionsDocument);
const UploadOtsarHahayalForeignTransactionsDocumentString = print(UploadOtsarHahayalForeignTransactionsDocument);
const UploadOtsarHahayalCreditCardTransactionsDocumentString = print(UploadOtsarHahayalCreditCardTransactionsDocument);
export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) {
return {
ListApiKeys(variables?: ListApiKeysQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: ListApiKeysQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<ListApiKeysQuery>(ListApiKeysDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'ListApiKeys', 'query', variables);
},
ListBusinessUsers(variables?: ListBusinessUsersQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: ListBusinessUsersQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<ListBusinessUsersQuery>(ListBusinessUsersDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'ListBusinessUsers', 'query', variables);
},
ListInvitations(variables?: ListInvitationsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: ListInvitationsQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<ListInvitationsQuery>(ListInvitationsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'ListInvitations', 'query', variables);
},
SharedDepositTransactions(variables: SharedDepositTransactionsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: SharedDepositTransactionsQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<SharedDepositTransactionsQuery>(SharedDepositTransactionsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'SharedDepositTransactions', 'query', variables);
},
BusinessLedgerInfo(variables?: BusinessLedgerInfoQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: BusinessLedgerInfoQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<BusinessLedgerInfoQuery>(BusinessLedgerInfoDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'BusinessLedgerInfo', 'query', variables);
},
BusinessLedgerRecordsSummery(variables?: BusinessLedgerRecordsSummeryQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: BusinessLedgerRecordsSummeryQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<BusinessLedgerRecordsSummeryQuery>(BusinessLedgerRecordsSummeryDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'BusinessLedgerRecordsSummery', 'query', variables);
},
BusinessTripScreen(variables: BusinessTripScreenQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: BusinessTripScreenQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<BusinessTripScreenQuery>(BusinessTripScreenDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'BusinessTripScreen', 'query', variables);
},
BusinessTripsRowValidation(variables: BusinessTripsRowValidationQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: BusinessTripsRowValidationQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<BusinessTripsRowValidationQuery>(BusinessTripsRowValidationDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'BusinessTripsRowValidation', 'query', variables);
},
EditableBusinessTrip(variables: EditableBusinessTripQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: EditableBusinessTripQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<EditableBusinessTripQuery>(EditableBusinessTripDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'EditableBusinessTrip', 'query', variables);
},
BusinessTripsScreen(variables?: BusinessTripsScreenQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: BusinessTripsScreenQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<BusinessTripsScreenQuery>(BusinessTripsScreenDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'BusinessTripsScreen', 'query', variables);
},
AdminFinancialAccountsSection(variables: AdminFinancialAccountsSectionQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: AdminFinancialAccountsSectionQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<AdminFinancialAccountsSectionQuery>(AdminFinancialAccountsSectionDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'AdminFinancialAccountsSection', 'query', variables);
},
BusinessChargesSection(variables?: BusinessChargesSectionQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: BusinessChargesSectionQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<BusinessChargesSectionQuery>(BusinessChargesSectionDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'BusinessChargesSection', 'query', variables);
},
ClientContractsSection(variables: ClientContractsSectionQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: ClientContractsSectionQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<ClientContractsSectionQuery>(ClientContractsSectionDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'ClientContractsSection', 'query', variables);
},
ClientIntegrationsSectionGreenInvoice(variables: ClientIntegrationsSectionGreenInvoiceQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: ClientIntegrationsSectionGreenInvoiceQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<ClientIntegrationsSectionGreenInvoiceQuery>(ClientIntegrationsSectionGreenInvoiceDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'ClientIntegrationsSectionGreenInvoice', 'query', variables);
},
ContractBasedDocumentDraft(variables: ContractBasedDocumentDraftQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: ContractBasedDocumentDraftQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<ContractBasedDocumentDraftQuery>(ContractBasedDocumentDraftDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'ContractBasedDocumentDraft', 'query', variables);
},
BusinessLedgerSection(variables: BusinessLedgerSectionQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: BusinessLedgerSectionQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<BusinessLedgerSectionQuery>(BusinessLedgerSectionDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'BusinessLedgerSection', 'query', variables);
},
BusinessTransactionsSection(variables: BusinessTransactionsSectionQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: BusinessTransactionsSectionQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<BusinessTransactionsSectionQuery>(BusinessTransactionsSectionDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'BusinessTransactionsSection', 'query', variables);
},
AllBusinessesForScreen(variables?: AllBusinessesForScreenQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: AllBusinessesForScreenQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<AllBusinessesForScreenQuery>(AllBusinessesForScreenDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'AllBusinessesForScreen', 'query', variables);
},
BusinessesUsage(variables: BusinessesUsageQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: BusinessesUsageQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<BusinessesUsageQuery>(BusinessesUsageDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'BusinessesUsage', 'query', variables);
},
ChargeExtendedInfoForChargeMatches(variables: ChargeExtendedInfoForChargeMatchesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: ChargeExtendedInfoForChargeMatchesQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<ChargeExtendedInfoForChargeMatchesQuery>(ChargeExtendedInfoForChargeMatchesDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'ChargeExtendedInfoForChargeMatches', 'query', variables);
},
ChargesAwaitingMatchQueue(variables?: ChargesAwaitingMatchQueueQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: ChargesAwaitingMatchQueueQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<ChargesAwaitingMatchQueueQuery>(ChargesAwaitingMatchQueueDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'ChargesAwaitingMatchQueue', 'query', variables);
},
ChargesLedgerValidation(variables?: ChargesLedgerValidationQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: ChargesLedgerValidationQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<ChargesLedgerValidationQuery>(ChargesLedgerValidationDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'ChargesLedgerValidation', 'query', variables);
},
FetchCharge(variables: FetchChargeQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: FetchChargeQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<FetchChargeQuery>(FetchChargeDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'FetchCharge', 'query', variables);
},
ChargesExtendedInfoBatch(variables: ChargesExtendedInfoBatchQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: ChargesExtendedInfoBatchQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<ChargesExtendedInfoBatchQuery>(ChargesExtendedInfoBatchDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'ChargesExtendedInfoBatch', 'query', variables);
},
RefetchChargeForChargesTable(variables: RefetchChargeForChargesTableQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: RefetchChargeForChargesTableQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<RefetchChargeForChargesTableQuery>(RefetchChargeForChargesTableDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'RefetchChargeForChargesTable', 'query', variables);
},
ChargesForCsvExport(variables: ChargesForCsvExportQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: ChargesForCsvExportQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<ChargesForCsvExportQuery>(ChargesForCsvExportDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'ChargesForCsvExport', 'query', variables);
},
BankDepositInfo(variables: BankDepositInfoQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: BankDepositInfoQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<BankDepositInfoQuery>(BankDepositInfoDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'BankDepositInfo', 'query', variables);
},
ChargeMatches(variables: ChargeMatchesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: ChargeMatchesQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<ChargeMatchesQuery>(ChargeMatchesDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'ChargeMatches', 'query', variables);
},
IncomeChargesChart(variables?: IncomeChargesChartQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: IncomeChargesChartQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<IncomeChargesChartQuery>(IncomeChargesChartDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'IncomeChargesChart', 'query', variables);
},
MonthlyIncomeExpenseChart(variables: MonthlyIncomeExpenseChartQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: MonthlyIncomeExpenseChartQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<MonthlyIncomeExpenseChartQuery>(MonthlyIncomeExpenseChartDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'MonthlyIncomeExpenseChart', 'query', variables);
},
ContractsEditModal(variables: ContractsEditModalQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: ContractsEditModalQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<ContractsEditModalQuery>(ContractsEditModalDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'ContractsEditModal', 'query', variables);
},
UncategorizedTransactionsByBusinessTrip(variables: UncategorizedTransactionsByBusinessTripQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UncategorizedTransactionsByBusinessTripQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UncategorizedTransactionsByBusinessTripQuery>(UncategorizedTransactionsByBusinessTripDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UncategorizedTransactionsByBusinessTrip', 'query', variables);
},
ChargeDepreciation(variables: ChargeDepreciationQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: ChargeDepreciationQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<ChargeDepreciationQuery>(ChargeDepreciationDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'ChargeDepreciation', 'query', variables);
},
RecentBusinessIssuedDocuments(variables: RecentBusinessIssuedDocumentsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: RecentBusinessIssuedDocumentsQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<RecentBusinessIssuedDocumentsQuery>(RecentBusinessIssuedDocumentsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'RecentBusinessIssuedDocuments', 'query', variables);
},
RecentIssuedDocumentsOfSameType(variables: RecentIssuedDocumentsOfSameTypeQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: RecentIssuedDocumentsOfSameTypeQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<RecentIssuedDocumentsOfSameTypeQuery>(RecentIssuedDocumentsOfSameTypeDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'RecentIssuedDocumentsOfSameType', 'query', variables);
},
EditDocument(variables: EditDocumentQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: EditDocumentQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<EditDocumentQuery>(EditDocumentDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'EditDocument', 'query', variables);
},
EditTransaction(variables: EditTransactionQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: EditTransactionQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<EditTransactionQuery>(EditTransactionDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'EditTransaction', 'query', variables);
},
ClientInfoForDocumentIssuing(variables: ClientInfoForDocumentIssuingQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: ClientInfoForDocumentIssuingQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<ClientInfoForDocumentIssuingQuery>(ClientInfoForDocumentIssuingDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'ClientInfoForDocumentIssuing', 'query', variables);
},
AllBusinessTrips(variables?: AllBusinessTripsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: AllBusinessTripsQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<AllBusinessTripsQuery>(AllBusinessTripsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'AllBusinessTrips', 'query', variables);
},
AllDepreciationCategories(variables?: AllDepreciationCategoriesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: AllDepreciationCategoriesQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<AllDepreciationCategoriesQuery>(AllDepreciationCategoriesDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'AllDepreciationCategories', 'query', variables);
},
AllEmployeesByEmployer(variables: AllEmployeesByEmployerQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: AllEmployeesByEmployerQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<AllEmployeesByEmployerQuery>(AllEmployeesByEmployerDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'AllEmployeesByEmployer', 'query', variables);
},
AllPensionFunds(variables?: AllPensionFundsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: AllPensionFundsQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<AllPensionFundsQuery>(AllPensionFundsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'AllPensionFunds', 'query', variables);
},
AllTrainingFunds(variables?: AllTrainingFundsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: AllTrainingFundsQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<AllTrainingFundsQuery>(AllTrainingFundsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'AllTrainingFunds', 'query', variables);
},
AttendeesByBusinessTrip(variables: AttendeesByBusinessTripQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: AttendeesByBusinessTripQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<AttendeesByBusinessTripQuery>(AttendeesByBusinessTripDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'AttendeesByBusinessTrip', 'query', variables);
},
FetchMultipleBusinesses(variables: FetchMultipleBusinessesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: FetchMultipleBusinessesQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<FetchMultipleBusinessesQuery>(FetchMultipleBusinessesDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'FetchMultipleBusinesses', 'query', variables);
},
FetchMultipleCharges(variables: FetchMultipleChargesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: FetchMultipleChargesQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<FetchMultipleChargesQuery>(FetchMultipleChargesDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'FetchMultipleCharges', 'query', variables);
},
EditCharge(variables: EditChargeQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: EditChargeQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<EditChargeQuery>(EditChargeDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'EditCharge', 'query', variables);
},
EditSalaryRecord(variables: EditSalaryRecordQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: EditSalaryRecordQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<EditSalaryRecordQuery>(EditSalaryRecordDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'EditSalaryRecord', 'query', variables);
},
SortCodeToUpdate(variables: SortCodeToUpdateQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: SortCodeToUpdateQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<SortCodeToUpdateQuery>(SortCodeToUpdateDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'SortCodeToUpdate', 'query', variables);
},
TaxCategoryToUpdate(variables: TaxCategoryToUpdateQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: TaxCategoryToUpdateQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<TaxCategoryToUpdateQuery>(TaxCategoryToUpdateDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'TaxCategoryToUpdate', 'query', variables);
},
MiscExpenseTransactionFields(variables: MiscExpenseTransactionFieldsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: MiscExpenseTransactionFieldsQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<MiscExpenseTransactionFieldsQuery>(MiscExpenseTransactionFieldsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'MiscExpenseTransactionFields', 'query', variables);
},
NewDocumentDraftByCharge(variables: NewDocumentDraftByChargeQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: NewDocumentDraftByChargeQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<NewDocumentDraftByChargeQuery>(NewDocumentDraftByChargeDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'NewDocumentDraftByCharge', 'query', variables);
},
NewDocumentDraftByDocument(variables: NewDocumentDraftByDocumentQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: NewDocumentDraftByDocumentQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<NewDocumentDraftByDocumentQuery>(NewDocumentDraftByDocumentDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'NewDocumentDraftByDocument', 'query', variables);
},
SimilarChargesByBusiness(variables: SimilarChargesByBusinessQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: SimilarChargesByBusinessQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<SimilarChargesByBusinessQuery>(SimilarChargesByBusinessDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'SimilarChargesByBusiness', 'query', variables);
},
SimilarCharges(variables: SimilarChargesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: SimilarChargesQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<SimilarChargesQuery>(SimilarChargesDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'SimilarCharges', 'query', variables);
},
SimilarTransactions(variables: SimilarTransactionsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: SimilarTransactionsQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<SimilarTransactionsQuery>(SimilarTransactionsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'SimilarTransactions', 'query', variables);
},
UniformFormat(variables: UniformFormatQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UniformFormatQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UniformFormatQuery>(UniformFormatDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UniformFormat', 'query', variables);
},
ContractBasedDocumentDrafts(variables: ContractBasedDocumentDraftsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: ContractBasedDocumentDraftsQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<ContractBasedDocumentDraftsQuery>(ContractBasedDocumentDraftsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'ContractBasedDocumentDrafts', 'query', variables);
},
AccountantApprovalsChargesTable(variables?: AccountantApprovalsChargesTableQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: AccountantApprovalsChargesTableQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<AccountantApprovalsChargesTableQuery>(AccountantApprovalsChargesTableDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'AccountantApprovalsChargesTable', 'query', variables);
},
CorporateTaxRulingComplianceReport(variables: CorporateTaxRulingComplianceReportQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: CorporateTaxRulingComplianceReportQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<CorporateTaxRulingComplianceReportQuery>(CorporateTaxRulingComplianceReportDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'CorporateTaxRulingComplianceReport', 'query', variables);
},
AllDynamicReports(variables?: AllDynamicReportsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: AllDynamicReportsQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<AllDynamicReportsQuery>(AllDynamicReportsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'AllDynamicReports', 'query', variables);
},
DynamicReport(variables?: DynamicReportQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: DynamicReportQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<DynamicReportQuery>(DynamicReportDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'DynamicReport', 'query', variables);
},
DynamicReportTemplate(variables: DynamicReportTemplateQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: DynamicReportTemplateQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<DynamicReportTemplateQuery>(DynamicReportTemplateDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'DynamicReportTemplate', 'query', variables);
},
ProfitAndLossReport(variables: ProfitAndLossReportQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: ProfitAndLossReportQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<ProfitAndLossReportQuery>(ProfitAndLossReportDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'ProfitAndLossReport', 'query', variables);
},
TaxReport(variables: TaxReportQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: TaxReportQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<TaxReportQuery>(TaxReportDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'TaxReport', 'query', variables);
},
TrialBalanceReport(variables?: TrialBalanceReportQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: TrialBalanceReportQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<TrialBalanceReportQuery>(TrialBalanceReportDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'TrialBalanceReport', 'query', variables);
},
ValidatePcn874Reports(variables: ValidatePcn874ReportsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: ValidatePcn874ReportsQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<ValidatePcn874ReportsQuery>(ValidatePcn874ReportsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'ValidatePcn874Reports', 'query', variables);
},
VatMonthlyReport(variables?: VatMonthlyReportQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: VatMonthlyReportQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<VatMonthlyReportQuery>(VatMonthlyReportDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'VatMonthlyReport', 'query', variables);
},
GeneratePCN(variables: GeneratePcnQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GeneratePcnQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<GeneratePcnQuery>(GeneratePcnDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'GeneratePCN', 'query', variables);
},
YearlyLedger(variables: YearlyLedgerQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: YearlyLedgerQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<YearlyLedgerQuery>(YearlyLedgerDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'YearlyLedger', 'query', variables);
},
SalaryScreenRecords(variables: SalaryScreenRecordsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: SalaryScreenRecordsQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<SalaryScreenRecordsQuery>(SalaryScreenRecordsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'SalaryScreenRecords', 'query', variables);
},
AllDeposits(variables?: AllDepositsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: AllDepositsQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<AllDepositsQuery>(AllDepositsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'AllDeposits', 'query', variables);
},
BusinessScreen(variables: BusinessScreenQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: BusinessScreenQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<BusinessScreenQuery>(BusinessScreenDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'BusinessScreen', 'query', variables);
},
ContractsScreen(variables: ContractsScreenQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: ContractsScreenQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<ContractsScreenQuery>(ContractsScreenDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'ContractsScreen', 'query', variables);
},
AllCharges(variables?: AllChargesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: AllChargesQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<AllChargesQuery>(AllChargesDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'AllCharges', 'query', variables);
},
ChargeScreen(variables: ChargeScreenQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: ChargeScreenQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<ChargeScreenQuery>(ChargeScreenDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'ChargeScreen', 'query', variables);
},
MissingInfoCharges(variables?: MissingInfoChargesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: MissingInfoChargesQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<MissingInfoChargesQuery>(MissingInfoChargesDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'MissingInfoCharges', 'query', variables);
},
DocumentsScreen(variables: DocumentsScreenQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: DocumentsScreenQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<DocumentsScreenQuery>(DocumentsScreenDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'DocumentsScreen', 'query', variables);
},
MonthlyDocumentDraftByClient(variables: MonthlyDocumentDraftByClientQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: MonthlyDocumentDraftByClientQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<MonthlyDocumentDraftByClientQuery>(MonthlyDocumentDraftByClientDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'MonthlyDocumentDraftByClient', 'query', variables);
},
MonthlyDocumentsDrafts(variables: MonthlyDocumentsDraftsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: MonthlyDocumentsDraftsQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<MonthlyDocumentsDraftsQuery>(MonthlyDocumentsDraftsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'MonthlyDocumentsDrafts', 'query', variables);
},
AllOpenContracts(variables?: AllOpenContractsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: AllOpenContractsQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<AllOpenContractsQuery>(AllOpenContractsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'AllOpenContracts', 'query', variables);
},
AnnualAuditStepsStatus(variables: AnnualAuditStepsStatusQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: AnnualAuditStepsStatusQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<AnnualAuditStepsStatusQuery>(AnnualAuditStepsStatusDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'AnnualAuditStepsStatus', 'query', variables);
},
AccountantApprovalStatus(variables: AccountantApprovalStatusQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: AccountantApprovalStatusQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<AccountantApprovalStatusQuery>(AccountantApprovalStatusDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'AccountantApprovalStatus', 'query', variables);
},
LedgerValidationStatus(variables?: LedgerValidationStatusQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: LedgerValidationStatusQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<LedgerValidationStatusQuery>(LedgerValidationStatusDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'LedgerValidationStatus', 'query', variables);
},
AnnualAuditOpeningBalanceStatus(variables: AnnualAuditOpeningBalanceStatusQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: AnnualAuditOpeningBalanceStatusQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<AnnualAuditOpeningBalanceStatusQuery>(AnnualAuditOpeningBalanceStatusDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'AnnualAuditOpeningBalanceStatus', 'query', variables);
},
AnnualFinancialCharges(variables: AnnualFinancialChargesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: AnnualFinancialChargesQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<AnnualFinancialChargesQuery>(AnnualFinancialChargesDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'AnnualFinancialCharges', 'query', variables);
},
Step05PrevYearTemplate(variables: Step05PrevYearTemplateQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: Step05PrevYearTemplateQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<Step05PrevYearTemplateQuery>(Step05PrevYearTemplateDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'Step05PrevYearTemplate', 'query', variables);
},
AdminLedgerLockDate(variables?: AdminLedgerLockDateQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: AdminLedgerLockDateQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<AdminLedgerLockDateQuery>(AdminLedgerLockDateDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'AdminLedgerLockDate', 'query', variables);
},
Step09SaveTemplateStatus(variables: Step09SaveTemplateStatusQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: Step09SaveTemplateStatusQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<Step09SaveTemplateStatusQuery>(Step09SaveTemplateStatusDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'Step09SaveTemplateStatus', 'query', variables);
},
AnnualRevenueReportScreen(variables: AnnualRevenueReportScreenQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: AnnualRevenueReportScreenQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<AnnualRevenueReportScreenQuery>(AnnualRevenueReportScreenDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'AnnualRevenueReportScreen', 'query', variables);
},
BalanceReportExtendedTransactions(variables: BalanceReportExtendedTransactionsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: BalanceReportExtendedTransactionsQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<BalanceReportExtendedTransactionsQuery>(BalanceReportExtendedTransactionsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'BalanceReportExtendedTransactions', 'query', variables);
},
BalanceReportScreen(variables: BalanceReportScreenQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: BalanceReportScreenQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<BalanceReportScreenQuery>(BalanceReportScreenDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'BalanceReportScreen', 'query', variables);
},
DepreciationReportScreen(variables: DepreciationReportScreenQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: DepreciationReportScreenQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<DepreciationReportScreenQuery>(DepreciationReportScreenDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'DepreciationReportScreen', 'query', variables);
},
Shaam6111ReportScreen(variables: Shaam6111ReportScreenQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: Shaam6111ReportScreenQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<Shaam6111ReportScreenQuery>(Shaam6111ReportScreenDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'Shaam6111ReportScreen', 'query', variables);
},
AllSortCodesForScreen(variables?: AllSortCodesForScreenQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: AllSortCodesForScreenQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<AllSortCodesForScreenQuery>(AllSortCodesForScreenDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'AllSortCodesForScreen', 'query', variables);
},
AllTagsScreen(variables?: AllTagsScreenQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: AllTagsScreenQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<AllTagsScreenQuery>(AllTagsScreenDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'AllTagsScreen', 'query', variables);
},
AllTaxCategoriesForScreen(variables?: AllTaxCategoriesForScreenQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: AllTaxCategoriesForScreenQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<AllTaxCategoriesForScreenQuery>(AllTaxCategoriesForScreenDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'AllTaxCategoriesForScreen', 'query', variables);
},
AcceptInvitation(variables: AcceptInvitationMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: AcceptInvitationMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<AcceptInvitationMutation>(AcceptInvitationDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'AcceptInvitation', 'mutation', variables);
},
AddBusinessTripAccommodationsExpense(variables: AddBusinessTripAccommodationsExpenseMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: AddBusinessTripAccommodationsExpenseMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<AddBusinessTripAccommodationsExpenseMutation>(AddBusinessTripAccommodationsExpenseDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'AddBusinessTripAccommodationsExpense', 'mutation', variables);
},
AddBusinessTripCarRentalExpense(variables: AddBusinessTripCarRentalExpenseMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: AddBusinessTripCarRentalExpenseMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<AddBusinessTripCarRentalExpenseMutation>(AddBusinessTripCarRentalExpenseDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'AddBusinessTripCarRentalExpense', 'mutation', variables);
},
AddBusinessTripFlightsExpense(variables: AddBusinessTripFlightsExpenseMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: AddBusinessTripFlightsExpenseMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<AddBusinessTripFlightsExpenseMutation>(AddBusinessTripFlightsExpenseDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'AddBusinessTripFlightsExpense', 'mutation', variables);
},
AddBusinessTripOtherExpense(variables: AddBusinessTripOtherExpenseMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: AddBusinessTripOtherExpenseMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<AddBusinessTripOtherExpenseMutation>(AddBusinessTripOtherExpenseDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'AddBusinessTripOtherExpense', 'mutation', variables);
},
AddBusinessTripTravelAndSubsistenceExpense(variables: AddBusinessTripTravelAndSubsistenceExpenseMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: AddBusinessTripTravelAndSubsistenceExpenseMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<AddBusinessTripTravelAndSubsistenceExpenseMutation>(AddBusinessTripTravelAndSubsistenceExpenseDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'AddBusinessTripTravelAndSubsistenceExpense', 'mutation', variables);
},
AddDepreciationRecord(variables: AddDepreciationRecordMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: AddDepreciationRecordMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<AddDepreciationRecordMutation>(AddDepreciationRecordDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'AddDepreciationRecord', 'mutation', variables);
},
AddSortCode(variables: AddSortCodeMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: AddSortCodeMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<AddSortCodeMutation>(AddSortCodeDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'AddSortCode', 'mutation', variables);
},
AddTag(variables: AddTagMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: AddTagMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<AddTagMutation>(AddTagDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'AddTag', 'mutation', variables);
},
AnnualAuditStepStatus(variables: AnnualAuditStepStatusQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: AnnualAuditStepStatusQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<AnnualAuditStepStatusQuery>(AnnualAuditStepStatusDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'AnnualAuditStepStatus', 'query', variables);
},
AssignChargeToDeposit(variables: AssignChargeToDepositMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: AssignChargeToDepositMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<AssignChargeToDepositMutation>(AssignChargeToDepositDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'AssignChargeToDeposit', 'mutation', variables);
},
GenerateBalanceCharge(variables: GenerateBalanceChargeMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GenerateBalanceChargeMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<GenerateBalanceChargeMutation>(GenerateBalanceChargeDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'GenerateBalanceCharge', 'mutation', variables);
},
BatchUpdateBusinesses(variables: BatchUpdateBusinessesMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: BatchUpdateBusinessesMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<BatchUpdateBusinessesMutation>(BatchUpdateBusinessesDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'BatchUpdateBusinesses', 'mutation', variables);
},
BatchUpdateCharges(variables: BatchUpdateChargesMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: BatchUpdateChargesMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<BatchUpdateChargesMutation>(BatchUpdateChargesDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'BatchUpdateCharges', 'mutation', variables);
},
CategorizeBusinessTripExpense(variables: CategorizeBusinessTripExpenseMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: CategorizeBusinessTripExpenseMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<CategorizeBusinessTripExpenseMutation>(CategorizeBusinessTripExpenseDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'CategorizeBusinessTripExpense', 'mutation', variables);
},
CategorizeIntoExistingBusinessTripExpense(variables: CategorizeIntoExistingBusinessTripExpenseMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: CategorizeIntoExistingBusinessTripExpenseMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<CategorizeIntoExistingBusinessTripExpenseMutation>(CategorizeIntoExistingBusinessTripExpenseDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'CategorizeIntoExistingBusinessTripExpense', 'mutation', variables);
},
CloseDocument(variables: CloseDocumentMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: CloseDocumentMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<CloseDocumentMutation>(CloseDocumentDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'CloseDocument', 'mutation', variables);
},
CreateContract(variables: CreateContractMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: CreateContractMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<CreateContractMutation>(CreateContractDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'CreateContract', 'mutation', variables);
},
CreateDepositFromCharge(variables: CreateDepositFromChargeMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: CreateDepositFromChargeMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<CreateDepositFromChargeMutation>(CreateDepositFromChargeDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'CreateDepositFromCharge', 'mutation', variables);
},
CreateDeposit(variables: CreateDepositMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: CreateDepositMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<CreateDepositMutation>(CreateDepositDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'CreateDeposit', 'mutation', variables);
},
CreateFinancialAccount(variables: CreateFinancialAccountMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: CreateFinancialAccountMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<CreateFinancialAccountMutation>(CreateFinancialAccountDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'CreateFinancialAccount', 'mutation', variables);
},
CreateInvitation(variables: CreateInvitationMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: CreateInvitationMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<CreateInvitationMutation>(CreateInvitationDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'CreateInvitation', 'mutation', variables);
},
CreditShareholdersBusinessTripTravelAndSubsistence(variables: CreditShareholdersBusinessTripTravelAndSubsistenceMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: CreditShareholdersBusinessTripTravelAndSubsistenceMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<CreditShareholdersBusinessTripTravelAndSubsistenceMutation>(CreditShareholdersBusinessTripTravelAndSubsistenceDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'CreditShareholdersBusinessTripTravelAndSubsistence', 'mutation', variables);
},
FlagForeignFeeTransactions(variables?: FlagForeignFeeTransactionsMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: FlagForeignFeeTransactionsMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<FlagForeignFeeTransactionsMutation>(FlagForeignFeeTransactionsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'FlagForeignFeeTransactions', 'mutation', variables);
},
MergeChargesByTransactionReference(variables?: MergeChargesByTransactionReferenceMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: MergeChargesByTransactionReferenceMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<MergeChargesByTransactionReferenceMutation>(MergeChargesByTransactionReferenceDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'MergeChargesByTransactionReference', 'mutation', variables);
},
CalculateCreditcardTransactionsDebitDate(variables?: CalculateCreditcardTransactionsDebitDateMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: CalculateCreditcardTransactionsDebitDateMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<CalculateCreditcardTransactionsDebitDateMutation>(CalculateCreditcardTransactionsDebitDateDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'CalculateCreditcardTransactionsDebitDate', 'mutation', variables);
},
DeleteBusinessTripAttendee(variables: DeleteBusinessTripAttendeeMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: DeleteBusinessTripAttendeeMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<DeleteBusinessTripAttendeeMutation>(DeleteBusinessTripAttendeeDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'DeleteBusinessTripAttendee', 'mutation', variables);
},
DeleteBusinessTripExpense(variables: DeleteBusinessTripExpenseMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: DeleteBusinessTripExpenseMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<DeleteBusinessTripExpenseMutation>(DeleteBusinessTripExpenseDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'DeleteBusinessTripExpense', 'mutation', variables);
},
DeleteBusiness(variables: DeleteBusinessMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: DeleteBusinessMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<DeleteBusinessMutation>(DeleteBusinessDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'DeleteBusiness', 'mutation', variables);
},
DeleteCharge(variables: DeleteChargeMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: DeleteChargeMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<DeleteChargeMutation>(DeleteChargeDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'DeleteCharge', 'mutation', variables);
},
DeleteContract(variables: DeleteContractMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: DeleteContractMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<DeleteContractMutation>(DeleteContractDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'DeleteContract', 'mutation', variables);
},
DeleteDepreciationRecord(variables: DeleteDepreciationRecordMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: DeleteDepreciationRecordMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<DeleteDepreciationRecordMutation>(DeleteDepreciationRecordDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'DeleteDepreciationRecord', 'mutation', variables);
},
DeleteDocument(variables: DeleteDocumentMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: DeleteDocumentMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<DeleteDocumentMutation>(DeleteDocumentDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'DeleteDocument', 'mutation', variables);
},
DeleteDynamicReportTemplate(variables: DeleteDynamicReportTemplateMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: DeleteDynamicReportTemplateMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<DeleteDynamicReportTemplateMutation>(DeleteDynamicReportTemplateDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'DeleteDynamicReportTemplate', 'mutation', variables);
},
DeleteMiscExpense(variables: DeleteMiscExpenseMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: DeleteMiscExpenseMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<DeleteMiscExpenseMutation>(DeleteMiscExpenseDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'DeleteMiscExpense', 'mutation', variables);
},
DeleteProviderCredentials(variables: DeleteProviderCredentialsMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: DeleteProviderCredentialsMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<DeleteProviderCredentialsMutation>(DeleteProviderCredentialsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'DeleteProviderCredentials', 'mutation', variables);
},
DeleteTag(variables: DeleteTagMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: DeleteTagMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<DeleteTagMutation>(DeleteTagDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'DeleteTag', 'mutation', variables);
},
FetchDeelDocuments(variables?: FetchDeelDocumentsMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: FetchDeelDocumentsMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<FetchDeelDocumentsMutation>(FetchDeelDocumentsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'FetchDeelDocuments', 'mutation', variables);
},
GenerateApiKey(variables: GenerateApiKeyMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GenerateApiKeyMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<GenerateApiKeyMutation>(GenerateApiKeyDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'GenerateApiKey', 'mutation', variables);
},
GenerateRevaluationCharge(variables: GenerateRevaluationChargeMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GenerateRevaluationChargeMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<GenerateRevaluationChargeMutation>(GenerateRevaluationChargeDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'GenerateRevaluationCharge', 'mutation', variables);
},
GenerateBankDepositsRevaluationCharge(variables: GenerateBankDepositsRevaluationChargeMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GenerateBankDepositsRevaluationChargeMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<GenerateBankDepositsRevaluationChargeMutation>(GenerateBankDepositsRevaluationChargeDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'GenerateBankDepositsRevaluationCharge', 'mutation', variables);
},
GenerateTaxExpensesCharge(variables: GenerateTaxExpensesChargeMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GenerateTaxExpensesChargeMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<GenerateTaxExpensesChargeMutation>(GenerateTaxExpensesChargeDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'GenerateTaxExpensesCharge', 'mutation', variables);
},
GenerateDepreciationCharge(variables: GenerateDepreciationChargeMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GenerateDepreciationChargeMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<GenerateDepreciationChargeMutation>(GenerateDepreciationChargeDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'GenerateDepreciationCharge', 'mutation', variables);
},
GenerateRecoveryReserveCharge(variables: GenerateRecoveryReserveChargeMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GenerateRecoveryReserveChargeMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<GenerateRecoveryReserveChargeMutation>(GenerateRecoveryReserveChargeDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'GenerateRecoveryReserveCharge', 'mutation', variables);
},
GenerateVacationReserveCharge(variables: GenerateVacationReserveChargeMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: GenerateVacationReserveChargeMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<GenerateVacationReserveChargeMutation>(GenerateVacationReserveChargeDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'GenerateVacationReserveCharge', 'mutation', variables);
},
AllAdminBusinesses(variables?: AllAdminBusinessesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: AllAdminBusinessesQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<AllAdminBusinessesQuery>(AllAdminBusinessesDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'AllAdminBusinesses', 'query', variables);
},
AllClients(variables?: AllClientsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: AllClientsQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<AllClientsQuery>(AllClientsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'AllClients', 'query', variables);
},
AllBusinesses(variables?: AllBusinessesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: AllBusinessesQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<AllBusinessesQuery>(AllBusinessesDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'AllBusinesses', 'query', variables);
},
AllCountries(variables?: AllCountriesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: AllCountriesQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<AllCountriesQuery>(AllCountriesDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'AllCountries', 'query', variables);
},
AllFinancialAccounts(variables?: AllFinancialAccountsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: AllFinancialAccountsQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<AllFinancialAccountsQuery>(AllFinancialAccountsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'AllFinancialAccounts', 'query', variables);
},
AllFinancialEntities(variables?: AllFinancialEntitiesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: AllFinancialEntitiesQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<AllFinancialEntitiesQuery>(AllFinancialEntitiesDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'AllFinancialEntities', 'query', variables);
},
AllSortCodes(variables: AllSortCodesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: AllSortCodesQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<AllSortCodesQuery>(AllSortCodesDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'AllSortCodes', 'query', variables);
},
AllTags(variables?: AllTagsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: AllTagsQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<AllTagsQuery>(AllTagsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'AllTags', 'query', variables);
},
AllTaxCategories(variables?: AllTaxCategoriesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: AllTaxCategoriesQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<AllTaxCategoriesQuery>(AllTaxCategoriesDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'AllTaxCategories', 'query', variables);
},
InsertBusinessTripAttendee(variables: InsertBusinessTripAttendeeMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: InsertBusinessTripAttendeeMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<InsertBusinessTripAttendeeMutation>(InsertBusinessTripAttendeeDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'InsertBusinessTripAttendee', 'mutation', variables);
},
InsertBusinessTrip(variables: InsertBusinessTripMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: InsertBusinessTripMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<InsertBusinessTripMutation>(InsertBusinessTripDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'InsertBusinessTrip', 'mutation', variables);
},
InsertBusiness(variables: InsertBusinessMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: InsertBusinessMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<InsertBusinessMutation>(InsertBusinessDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'InsertBusiness', 'mutation', variables);
},
InsertClient(variables: InsertClientMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: InsertClientMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<InsertClientMutation>(InsertClientDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'InsertClient', 'mutation', variables);
},
InsertDocument(variables: InsertDocumentMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: InsertDocumentMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<InsertDocumentMutation>(InsertDocumentDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'InsertDocument', 'mutation', variables);
},
InsertDynamicReportTemplate(variables: InsertDynamicReportTemplateMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: InsertDynamicReportTemplateMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<InsertDynamicReportTemplateMutation>(InsertDynamicReportTemplateDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'InsertDynamicReportTemplate', 'mutation', variables);
},
InsertMiscExpense(variables: InsertMiscExpenseMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: InsertMiscExpenseMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<InsertMiscExpenseMutation>(InsertMiscExpenseDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'InsertMiscExpense', 'mutation', variables);
},
InsertMiscExpenses(variables: InsertMiscExpensesMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: InsertMiscExpensesMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<InsertMiscExpensesMutation>(InsertMiscExpensesDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'InsertMiscExpenses', 'mutation', variables);
},
InsertSalaryRecord(variables: InsertSalaryRecordMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: InsertSalaryRecordMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<InsertSalaryRecordMutation>(InsertSalaryRecordDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'InsertSalaryRecord', 'mutation', variables);
},
InsertTaxCategory(variables: InsertTaxCategoryMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: InsertTaxCategoryMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<InsertTaxCategoryMutation>(InsertTaxCategoryDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'InsertTaxCategory', 'mutation', variables);
},
IssueGreenInvoiceDocument(variables: IssueGreenInvoiceDocumentMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: IssueGreenInvoiceDocumentMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<IssueGreenInvoiceDocumentMutation>(IssueGreenInvoiceDocumentDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'IssueGreenInvoiceDocument', 'mutation', variables);
},
IssueMonthlyDocuments(variables: IssueMonthlyDocumentsMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: IssueMonthlyDocumentsMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<IssueMonthlyDocumentsMutation>(IssueMonthlyDocumentsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'IssueMonthlyDocuments', 'mutation', variables);
},
LedgerLock(variables: LedgerLockMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: LedgerLockMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<LedgerLockMutation>(LedgerLockDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'LedgerLock', 'mutation', variables);
},
LockDynamicReportTemplate(variables: LockDynamicReportTemplateMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: LockDynamicReportTemplateMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<LockDynamicReportTemplateMutation>(LockDynamicReportTemplateDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'LockDynamicReportTemplate', 'mutation', variables);
},
MergeBusinesses(variables: MergeBusinessesMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: MergeBusinessesMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<MergeBusinessesMutation>(MergeBusinessesDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'MergeBusinesses', 'mutation', variables);
},
MergeCharges(variables: MergeChargesMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: MergeChargesMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<MergeChargesMutation>(MergeChargesDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'MergeCharges', 'mutation', variables);
},
PreviewDocument(variables: PreviewDocumentMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: PreviewDocumentMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<PreviewDocumentMutation>(PreviewDocumentDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'PreviewDocument', 'mutation', variables);
},
ProviderCredentials(variables?: ProviderCredentialsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: ProviderCredentialsQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<ProviderCredentialsQuery>(ProviderCredentialsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'ProviderCredentials', 'query', variables);
},
RegenerateLedger(variables: RegenerateLedgerMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: RegenerateLedgerMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<RegenerateLedgerMutation>(RegenerateLedgerDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'RegenerateLedger', 'mutation', variables);
},
RelevantDepositsForCharge(variables: RelevantDepositsForChargeQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: RelevantDepositsForChargeQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<RelevantDepositsForChargeQuery>(RelevantDepositsForChargeDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'RelevantDepositsForCharge', 'query', variables);
},
RemoveBusinessUser(variables: RemoveBusinessUserMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: RemoveBusinessUserMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<RemoveBusinessUserMutation>(RemoveBusinessUserDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'RemoveBusinessUser', 'mutation', variables);
},
RevokeApiKey(variables: RevokeApiKeyMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: RevokeApiKeyMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<RevokeApiKeyMutation>(RevokeApiKeyDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'RevokeApiKey', 'mutation', variables);
},
RevokeInvitation(variables: RevokeInvitationMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: RevokeInvitationMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<RevokeInvitationMutation>(RevokeInvitationDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'RevokeInvitation', 'mutation', variables);
},
SetAnnualAuditStepStatus(variables: SetAnnualAuditStepStatusMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: SetAnnualAuditStepStatusMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<SetAnnualAuditStepStatusMutation>(SetAnnualAuditStepStatusDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'SetAnnualAuditStepStatus', 'mutation', variables);
},
SetAnnualAuditStep03Status(variables: SetAnnualAuditStep03StatusMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: SetAnnualAuditStep03StatusMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<SetAnnualAuditStep03StatusMutation>(SetAnnualAuditStep03StatusDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'SetAnnualAuditStep03Status', 'mutation', variables);
},
SetAnnualAuditStep09Status(variables: SetAnnualAuditStep09StatusMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: SetAnnualAuditStep09StatusMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<SetAnnualAuditStep09StatusMutation>(SetAnnualAuditStep09StatusDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'SetAnnualAuditStep09Status', 'mutation', variables);
},
SetDeelCredentials(variables: SetDeelCredentialsMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: SetDeelCredentialsMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<SetDeelCredentialsMutation>(SetDeelCredentialsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'SetDeelCredentials', 'mutation', variables);
},
SetGreenInvoiceCredentials(variables: SetGreenInvoiceCredentialsMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: SetGreenInvoiceCredentialsMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<SetGreenInvoiceCredentialsMutation>(SetGreenInvoiceCredentialsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'SetGreenInvoiceCredentials', 'mutation', variables);
},
SyncGreenInvoiceDocuments(variables: SyncGreenInvoiceDocumentsMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: SyncGreenInvoiceDocumentsMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<SyncGreenInvoiceDocumentsMutation>(SyncGreenInvoiceDocumentsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'SyncGreenInvoiceDocuments', 'mutation', variables);
},
UnlockDynamicReportTemplate(variables: UnlockDynamicReportTemplateMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UnlockDynamicReportTemplateMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UnlockDynamicReportTemplateMutation>(UnlockDynamicReportTemplateDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UnlockDynamicReportTemplate', 'mutation', variables);
},
UpdateAdminBusiness(variables: UpdateAdminBusinessMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UpdateAdminBusinessMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UpdateAdminBusinessMutation>(UpdateAdminBusinessDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UpdateAdminBusiness', 'mutation', variables);
},
UpdateBusinessTripAccommodationsExpense(variables: UpdateBusinessTripAccommodationsExpenseMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UpdateBusinessTripAccommodationsExpenseMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UpdateBusinessTripAccommodationsExpenseMutation>(UpdateBusinessTripAccommodationsExpenseDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UpdateBusinessTripAccommodationsExpense', 'mutation', variables);
},
UpdateBusinessTripAccountantApproval(variables: UpdateBusinessTripAccountantApprovalMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UpdateBusinessTripAccountantApprovalMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UpdateBusinessTripAccountantApprovalMutation>(UpdateBusinessTripAccountantApprovalDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UpdateBusinessTripAccountantApproval', 'mutation', variables);
},
UpdateBusinessTripAttendee(variables: UpdateBusinessTripAttendeeMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UpdateBusinessTripAttendeeMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UpdateBusinessTripAttendeeMutation>(UpdateBusinessTripAttendeeDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UpdateBusinessTripAttendee', 'mutation', variables);
},
UpdateBusinessTripCarRentalExpense(variables: UpdateBusinessTripCarRentalExpenseMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UpdateBusinessTripCarRentalExpenseMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UpdateBusinessTripCarRentalExpenseMutation>(UpdateBusinessTripCarRentalExpenseDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UpdateBusinessTripCarRentalExpense', 'mutation', variables);
},
UpdateBusinessTripFlightsExpense(variables: UpdateBusinessTripFlightsExpenseMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UpdateBusinessTripFlightsExpenseMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UpdateBusinessTripFlightsExpenseMutation>(UpdateBusinessTripFlightsExpenseDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UpdateBusinessTripFlightsExpense', 'mutation', variables);
},
UpdateBusinessTripOtherExpense(variables: UpdateBusinessTripOtherExpenseMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UpdateBusinessTripOtherExpenseMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UpdateBusinessTripOtherExpenseMutation>(UpdateBusinessTripOtherExpenseDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UpdateBusinessTripOtherExpense', 'mutation', variables);
},
UpdateBusinessTripTravelAndSubsistenceExpense(variables: UpdateBusinessTripTravelAndSubsistenceExpenseMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UpdateBusinessTripTravelAndSubsistenceExpenseMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UpdateBusinessTripTravelAndSubsistenceExpenseMutation>(UpdateBusinessTripTravelAndSubsistenceExpenseDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UpdateBusinessTripTravelAndSubsistenceExpense', 'mutation', variables);
},
UpdateBusiness(variables: UpdateBusinessMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UpdateBusinessMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UpdateBusinessMutation>(UpdateBusinessDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UpdateBusiness', 'mutation', variables);
},
UpdateChargeAccountantApproval(variables: UpdateChargeAccountantApprovalMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UpdateChargeAccountantApprovalMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UpdateChargeAccountantApprovalMutation>(UpdateChargeAccountantApprovalDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UpdateChargeAccountantApproval', 'mutation', variables);
},
UpdateCharge(variables: UpdateChargeMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UpdateChargeMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UpdateChargeMutation>(UpdateChargeDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UpdateCharge', 'mutation', variables);
},
UpdateClient(variables: UpdateClientMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UpdateClientMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UpdateClientMutation>(UpdateClientDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UpdateClient', 'mutation', variables);
},
UpdateContract(variables: UpdateContractMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UpdateContractMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UpdateContractMutation>(UpdateContractDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UpdateContract', 'mutation', variables);
},
UpdateDeposit(variables: UpdateDepositMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UpdateDepositMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UpdateDepositMutation>(UpdateDepositDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UpdateDeposit', 'mutation', variables);
},
UpdateDepreciationRecord(variables: UpdateDepreciationRecordMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UpdateDepreciationRecordMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UpdateDepreciationRecordMutation>(UpdateDepreciationRecordDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UpdateDepreciationRecord', 'mutation', variables);
},
UpdateDocument(variables: UpdateDocumentMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UpdateDocumentMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UpdateDocumentMutation>(UpdateDocumentDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UpdateDocument', 'mutation', variables);
},
UpdateDynamicReportTemplateName(variables: UpdateDynamicReportTemplateNameMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UpdateDynamicReportTemplateNameMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UpdateDynamicReportTemplateNameMutation>(UpdateDynamicReportTemplateNameDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UpdateDynamicReportTemplateName', 'mutation', variables);
},
UpdateDynamicReportTemplate(variables: UpdateDynamicReportTemplateMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UpdateDynamicReportTemplateMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UpdateDynamicReportTemplateMutation>(UpdateDynamicReportTemplateDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UpdateDynamicReportTemplate', 'mutation', variables);
},
UpdateFinancialAccount(variables: UpdateFinancialAccountMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UpdateFinancialAccountMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UpdateFinancialAccountMutation>(UpdateFinancialAccountDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UpdateFinancialAccount', 'mutation', variables);
},
UpdateMiscExpense(variables: UpdateMiscExpenseMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UpdateMiscExpenseMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UpdateMiscExpenseMutation>(UpdateMiscExpenseDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UpdateMiscExpense', 'mutation', variables);
},
UpdateOrInsertSalaryRecords(variables: UpdateOrInsertSalaryRecordsMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UpdateOrInsertSalaryRecordsMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UpdateOrInsertSalaryRecordsMutation>(UpdateOrInsertSalaryRecordsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UpdateOrInsertSalaryRecords', 'mutation', variables);
},
UpdateSalaryRecord(variables: UpdateSalaryRecordMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UpdateSalaryRecordMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UpdateSalaryRecordMutation>(UpdateSalaryRecordDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UpdateSalaryRecord', 'mutation', variables);
},
UpdateSortCode(variables: UpdateSortCodeMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UpdateSortCodeMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UpdateSortCodeMutation>(UpdateSortCodeDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UpdateSortCode', 'mutation', variables);
},
UpdateTag(variables: UpdateTagMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UpdateTagMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UpdateTagMutation>(UpdateTagDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UpdateTag', 'mutation', variables);
},
UpdateTaxCategory(variables: UpdateTaxCategoryMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UpdateTaxCategoryMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UpdateTaxCategoryMutation>(UpdateTaxCategoryDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UpdateTaxCategory', 'mutation', variables);
},
UpdateTransaction(variables: UpdateTransactionMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UpdateTransactionMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UpdateTransactionMutation>(UpdateTransactionDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UpdateTransaction', 'mutation', variables);
},
UpdateTransactions(variables: UpdateTransactionsMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UpdateTransactionsMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UpdateTransactionsMutation>(UpdateTransactionsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UpdateTransactions', 'mutation', variables);
},
UploadDocument(variables: UploadDocumentMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UploadDocumentMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UploadDocumentMutation>(UploadDocumentDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UploadDocument', 'mutation', variables);
},
UploadDocumentsFromGoogleDrive(variables: UploadDocumentsFromGoogleDriveMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UploadDocumentsFromGoogleDriveMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UploadDocumentsFromGoogleDriveMutation>(UploadDocumentsFromGoogleDriveDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UploadDocumentsFromGoogleDrive', 'mutation', variables);
},
UploadMultipleDocuments(variables: UploadMultipleDocumentsMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UploadMultipleDocumentsMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UploadMultipleDocumentsMutation>(UploadMultipleDocumentsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UploadMultipleDocuments', 'mutation', variables);
},
UploadPayrollFile(variables: UploadPayrollFileMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UploadPayrollFileMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UploadPayrollFileMutation>(UploadPayrollFileDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UploadPayrollFile', 'mutation', variables);
},
UserContext(variables?: UserContextQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UserContextQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UserContextQuery>(UserContextDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UserContext', 'query', variables);
},
RequestIngestControl(variables: RequestIngestControlMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: RequestIngestControlMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<RequestIngestControlMutation>(RequestIngestControlDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'RequestIngestControl', 'mutation', variables);
},
IngestEmail(variables: IngestEmailMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: IngestEmailMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<IngestEmailMutation>(IngestEmailDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'IngestEmail', 'mutation', variables);
},
BusinessEmailConfig(variables: BusinessEmailConfigQueryVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: BusinessEmailConfigQuery; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<BusinessEmailConfigQuery>(BusinessEmailConfigDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'BusinessEmailConfig', 'query', variables);
},
InsertEmailDocuments(variables: InsertEmailDocumentsMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: InsertEmailDocumentsMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<InsertEmailDocumentsMutation>(InsertEmailDocumentsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'InsertEmailDocuments', 'mutation', variables);
},
UploadPoalimIlsTransactions(variables: UploadPoalimIlsTransactionsMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UploadPoalimIlsTransactionsMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UploadPoalimIlsTransactionsMutation>(UploadPoalimIlsTransactionsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UploadPoalimIlsTransactions', 'mutation', variables);
},
UploadPoalimForeignTransactions(variables: UploadPoalimForeignTransactionsMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UploadPoalimForeignTransactionsMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UploadPoalimForeignTransactionsMutation>(UploadPoalimForeignTransactionsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UploadPoalimForeignTransactions', 'mutation', variables);
},
UploadPoalimSwiftTransactions(variables: UploadPoalimSwiftTransactionsMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UploadPoalimSwiftTransactionsMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UploadPoalimSwiftTransactionsMutation>(UploadPoalimSwiftTransactionsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UploadPoalimSwiftTransactions', 'mutation', variables);
},
UploadIsracardTransactions(variables: UploadIsracardTransactionsMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UploadIsracardTransactionsMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UploadIsracardTransactionsMutation>(UploadIsracardTransactionsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UploadIsracardTransactions', 'mutation', variables);
},
UploadAmexTransactions(variables: UploadAmexTransactionsMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UploadAmexTransactionsMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UploadAmexTransactionsMutation>(UploadAmexTransactionsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UploadAmexTransactions', 'mutation', variables);
},
UploadCalTransactions(variables: UploadCalTransactionsMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UploadCalTransactionsMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UploadCalTransactionsMutation>(UploadCalTransactionsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UploadCalTransactions', 'mutation', variables);
},
UploadDiscountTransactions(variables: UploadDiscountTransactionsMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UploadDiscountTransactionsMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UploadDiscountTransactionsMutation>(UploadDiscountTransactionsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UploadDiscountTransactions', 'mutation', variables);
},
UploadMaxTransactions(variables: UploadMaxTransactionsMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UploadMaxTransactionsMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UploadMaxTransactionsMutation>(UploadMaxTransactionsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UploadMaxTransactions', 'mutation', variables);
},
UploadCurrencyRates(variables: UploadCurrencyRatesMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UploadCurrencyRatesMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UploadCurrencyRatesMutation>(UploadCurrencyRatesDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UploadCurrencyRates', 'mutation', variables);
},
UploadOtsarHahayalIlsTransactions(variables: UploadOtsarHahayalIlsTransactionsMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UploadOtsarHahayalIlsTransactionsMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UploadOtsarHahayalIlsTransactionsMutation>(UploadOtsarHahayalIlsTransactionsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UploadOtsarHahayalIlsTransactions', 'mutation', variables);
},
UploadOtsarHahayalForeignTransactions(variables: UploadOtsarHahayalForeignTransactionsMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UploadOtsarHahayalForeignTransactionsMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UploadOtsarHahayalForeignTransactionsMutation>(UploadOtsarHahayalForeignTransactionsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UploadOtsarHahayalForeignTransactions', 'mutation', variables);
},
UploadOtsarHahayalCreditCardTransactions(variables: UploadOtsarHahayalCreditCardTransactionsMutationVariables, requestHeaders?: GraphQLClientRequestHeaders): Promise<{ data: UploadOtsarHahayalCreditCardTransactionsMutation; errors?: GraphQLError[]; extensions?: any; headers: Headers; status: number; }> {
return withWrapper((wrappedRequestHeaders) => client.rawRequest<UploadOtsarHahayalCreditCardTransactionsMutation>(UploadOtsarHahayalCreditCardTransactionsDocumentString, variables, {...requestHeaders, ...wrappedRequestHeaders}), 'UploadOtsarHahayalCreditCardTransactions', 'mutation', variables);
}
};
}
export type Sdk = ReturnType<typeof getSdk>;