/* eslint-disable */
import type { TimelessDateString } from '../helpers/index.js';
import type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
export type Maybe<T> = T | null;
export type InputMaybe<T> = Maybe<T>;
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
export type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never };
export type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
  ID: { input: string; output: string; }
  String: { input: string; output: string; }
  Boolean: { input: boolean; output: boolean; }
  Int: { input: number; output: number; }
  Float: { input: number; output: number; }
  /**  Date  */
  DateTime: { input: Date; output: Date; }
  /**  mock  */
  DividendMock: { input: any; output: any; }
  /**  File  */
  FileScalar: { input: File | Blob; output: string; }
  /**  Rate  */
  Rate: { input: any; output: any; }
  /**  Date with no time of day  */
  TimelessDate: { input: TimelessDateString; output: TimelessDateString; }
  /**  URL  */
  URL: { input: URL | string; output: URL | string; }
  /**  UUID  */
  UUID: { input: string; output: string; }
  /**  mock  */
  VatMock: { input: any; output: any; }
};

/**  represents accountant approval status for a charge  */
export type AccountantApprovalStatus = {
  __typename?: 'AccountantApprovalStatus';
  approvedCount: Scalars['Int']['output'];
  pendingCount: Scalars['Int']['output'];
  totalCharges: Scalars['Int']['output'];
  unapprovedCount: Scalars['Int']['output'];
};

/**  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?: InputMaybe<Scalars['Float']['input']>;
  attendeesStay?: InputMaybe<Array<BusinessTripAttendeeStayInput>>;
  businessTripId: Scalars['UUID']['input'];
  country?: InputMaybe<Scalars['String']['input']>;
  currency?: InputMaybe<Currency>;
  date?: InputMaybe<Scalars['TimelessDate']['input']>;
  employeeBusinessId?: InputMaybe<Scalars['UUID']['input']>;
  nightsCount?: InputMaybe<Scalars['Int']['input']>;
  valueDate?: InputMaybe<Scalars['TimelessDate']['input']>;
};

/**  the input for adding a new business trip T&S expense  */
export type AddBusinessTripCarRentalExpenseInput = {
  amount?: InputMaybe<Scalars['Float']['input']>;
  businessTripId: Scalars['UUID']['input'];
  currency?: InputMaybe<Currency>;
  date?: InputMaybe<Scalars['TimelessDate']['input']>;
  days?: InputMaybe<Scalars['Int']['input']>;
  employeeBusinessId?: InputMaybe<Scalars['UUID']['input']>;
  isFuelExpense?: InputMaybe<Scalars['Boolean']['input']>;
  valueDate?: InputMaybe<Scalars['TimelessDate']['input']>;
};

/**  the input for adding a new business trip flights expense  */
export type AddBusinessTripFlightsExpenseInput = {
  amount?: InputMaybe<Scalars['Float']['input']>;
  attendeeIds?: InputMaybe<Array<Scalars['UUID']['input']>>;
  businessTripId: Scalars['UUID']['input'];
  currency?: InputMaybe<Currency>;
  date?: InputMaybe<Scalars['TimelessDate']['input']>;
  employeeBusinessId?: InputMaybe<Scalars['UUID']['input']>;
  flightClass?: InputMaybe<FlightClass>;
  path?: InputMaybe<Array<Scalars['String']['input']>>;
  valueDate?: InputMaybe<Scalars['TimelessDate']['input']>;
};

/**  the input for adding a new business trip other expense  */
export type AddBusinessTripOtherExpenseInput = {
  amount?: InputMaybe<Scalars['Float']['input']>;
  businessTripId: Scalars['UUID']['input'];
  currency?: InputMaybe<Currency>;
  date?: InputMaybe<Scalars['TimelessDate']['input']>;
  deductibleExpense?: InputMaybe<Scalars['Boolean']['input']>;
  description?: InputMaybe<Scalars['String']['input']>;
  employeeBusinessId?: InputMaybe<Scalars['UUID']['input']>;
  valueDate?: InputMaybe<Scalars['TimelessDate']['input']>;
};

/**  the input for adding a new business trip T&S expense  */
export type AddBusinessTripTravelAndSubsistenceExpenseInput = {
  amount?: InputMaybe<Scalars['Float']['input']>;
  businessTripId: Scalars['UUID']['input'];
  currency?: InputMaybe<Currency>;
  date?: InputMaybe<Scalars['TimelessDate']['input']>;
  employeeBusinessId?: InputMaybe<Scalars['UUID']['input']>;
  expenseType?: InputMaybe<Scalars['String']['input']>;
  valueDate?: InputMaybe<Scalars['TimelessDate']['input']>;
};

/**  Represents a business entity managed by an accountant in the system. */
export type AdminBusiness = {
  __typename?: 'AdminBusiness';
  business: LtdFinancialEntity;
  governmentId: Scalars['String']['output'];
  id: Scalars['UUID']['output'];
  name: Scalars['String']['output'];
};

/**  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];
/**  transactions for balance report  */
export type BalanceTransactions = {
  __typename?: 'BalanceTransactions';
  amount: FinancialAmount;
  amountUsd: FinancialAmount;
  charge: Charge;
  chargeId: Scalars['UUID']['output'];
  counterparty?: Maybe<FinancialEntity>;
  date: Scalars['TimelessDate']['output'];
  description?: Maybe<Scalars['String']['output']>;
  id: Scalars['UUID']['output'];
  isFee: Scalars['Boolean']['output'];
  month: Scalars['Int']['output'];
  year: Scalars['Int']['output'];
};

/**  Bank Deposit  */
export type BankDeposit = {
  __typename?: 'BankDeposit';
  balance: FinancialAmount;
  id: Scalars['ID']['output'];
  isOpen: Scalars['Boolean']['output'];
  transactions: Array<Transaction>;
};

/**  charge of bank deposits  */
export type BankDepositCharge = Charge & {
  __typename?: 'BankDepositCharge';
  accountantApproval: AccountantStatus;
  additionalDocuments: Array<Document>;
  conversion?: Maybe<Scalars['Boolean']['output']>;
  counterparty?: Maybe<FinancialEntity>;
  exchangeRates?: Maybe<ExchangeRates>;
  id: Scalars['UUID']['output'];
  isInvoicePaymentDifferentCurrency?: Maybe<Scalars['Boolean']['output']>;
  ledger: Ledger;
  metadata?: Maybe<ChargeMetadata>;
  minDebitDate?: Maybe<Scalars['DateTime']['output']>;
  minDocumentsDate?: Maybe<Scalars['DateTime']['output']>;
  minEventDate?: Maybe<Scalars['DateTime']['output']>;
  miscExpenses: Array<MiscExpense>;
  missingInfoSuggestions?: Maybe<ChargeSuggestions>;
  optionalDocuments?: Maybe<Scalars['Boolean']['output']>;
  optionalVAT?: Maybe<Scalars['Boolean']['output']>;
  owner: Business;
  property?: Maybe<Scalars['Boolean']['output']>;
  salary?: Maybe<Scalars['Boolean']['output']>;
  tags: Array<Tag>;
  taxCategory?: Maybe<TaxCategory>;
  totalAmount?: Maybe<FinancialAmount>;
  transactions: Array<Transaction>;
  userDescription?: Maybe<Scalars['String']['output']>;
  validationData?: Maybe<ValidationData>;
  vat?: Maybe<FinancialAmount>;
  withholdingTax?: Maybe<FinancialAmount>;
  yearsOfRelevance?: Maybe<Array<YearOfRelevance>>;
};

/**  represent a single bank account */
export type BankFinancialAccount = FinancialAccount & {
  __typename?: 'BankFinancialAccount';
  /**  the external identifier of the bank account  */
  accountNumber: Scalars['String']['output'];
  bankNumber: Scalars['String']['output'];
  branchNumber: Scalars['String']['output'];
  charges: Array<Charge>;
  id: Scalars['UUID']['output'];
  name: Scalars['String']['output'];
  type: Scalars['String']['output'];
};


/**  represent a single bank account */
export type BankFinancialAccountChargesArgs = {
  filter?: InputMaybe<ChargeFilter>;
};

/**  result type for batchUpdateCharges  */
export type BatchUpdateChargesResult = BatchUpdateChargesSuccessfulResult | CommonError;

/**  successful result type for batchUpdateCharges  */
export type BatchUpdateChargesSuccessfulResult = {
  __typename?: 'BatchUpdateChargesSuccessfulResult';
  charges: Array<Charge>;
};

/**  contract billing cycle  */
export const BillingCycle = {
  Annual: 'ANNUAL',
  Monthly: 'MONTHLY'
} as const;

export type BillingCycle = typeof BillingCycle[keyof typeof BillingCycle];
/**  represent a financial entity of any type that may hold financial accounts (company, business, individual)  */
export type Business = {
  accounts: Array<FinancialAccount>;
  charges: PaginatedCharges;
  id: Scalars['UUID']['output'];
  irsCode?: Maybe<Scalars['Int']['output']>;
  name: Scalars['String']['output'];
  pcn874RecordType?: Maybe<Pcn874RecordType>;
  sortCode?: Maybe<SortCode>;
};


/**  represent a financial entity of any type that may hold financial accounts (company, business, individual)  */
export type BusinessChargesArgs = {
  filter?: InputMaybe<ChargeFilter>;
  limit?: InputMaybe<Scalars['Int']['input']>;
  page?: InputMaybe<Scalars['Int']['input']>;
};

/**  single business transaction info  */
export type BusinessTransaction = {
  __typename?: 'BusinessTransaction';
  amount: FinancialAmount;
  business: FinancialEntity;
  chargeId: Scalars['UUID']['output'];
  counterAccount?: Maybe<FinancialEntity>;
  details?: Maybe<Scalars['String']['output']>;
  foreignAmount?: Maybe<FinancialAmount>;
  invoiceDate: Scalars['TimelessDate']['output'];
  reference?: Maybe<Scalars['String']['output']>;
};

/**  single business transaction summery  */
export type BusinessTransactionSum = {
  __typename?: 'BusinessTransactionSum';
  business: FinancialEntity;
  credit: FinancialAmount;
  debit: FinancialAmount;
  foreignCurrenciesSum: Array<ForeignCurrencySum>;
  total: FinancialAmount;
};

/**  input variables for businessTransactions  */
export type BusinessTransactionsFilter = {
  businessIDs?: InputMaybe<Array<Scalars['UUID']['input']>>;
  fromDate?: InputMaybe<Scalars['TimelessDate']['input']>;
  includeRevaluation?: InputMaybe<Scalars['Boolean']['input']>;
  ownerIds?: InputMaybe<Array<Scalars['UUID']['input']>>;
  toDate?: InputMaybe<Scalars['TimelessDate']['input']>;
  type?: InputMaybe<FinancialEntityType>;
};

/**  result type for businessTransactionsFromLedgerRecords  */
export type BusinessTransactionsFromLedgerRecordsResult = BusinessTransactionsFromLedgerRecordsSuccessfulResult | CommonError;

/**  result type for businessTransactionsFromLedgerRecords */
export type BusinessTransactionsFromLedgerRecordsSuccessfulResult = {
  __typename?: 'BusinessTransactionsFromLedgerRecordsSuccessfulResult';
  businessTransactions: Array<BusinessTransaction>;
};

/**  result type for businessTransactionsSumFromLedgerRecords  */
export type BusinessTransactionsSumFromLedgerRecordsResult = BusinessTransactionsSumFromLedgerRecordsSuccessfulResult | CommonError;

/**  result type for businessTransactionsSumFromLedgerRecords */
export type BusinessTransactionsSumFromLedgerRecordsSuccessfulResult = {
  __typename?: 'BusinessTransactionsSumFromLedgerRecordsSuccessfulResult';
  businessTransactionsSum: Array<BusinessTransactionSum>;
};

/**  represent a business trip  */
export type BusinessTrip = {
  __typename?: 'BusinessTrip';
  accommodationExpenses: Array<BusinessTripAccommodationExpense>;
  accountantApproval: AccountantStatus;
  attendees: Array<BusinessTripAttendee>;
  carRentalExpenses: Array<BusinessTripCarRentalExpense>;
  dates?: Maybe<DateRange>;
  destination?: Maybe<Country>;
  flightExpenses: Array<BusinessTripFlightExpense>;
  id: Scalars['UUID']['output'];
  name: Scalars['String']['output'];
  otherExpenses: Array<BusinessTripOtherExpense>;
  purpose?: Maybe<Scalars['String']['output']>;
  summary: BusinessTripSummary;
  travelAndSubsistenceExpenses: Array<BusinessTripTravelAndSubsistenceExpense>;
  uncategorizedTransactions: Array<Maybe<UncategorizedTransaction>>;
};

/**  represent a business trip accommodation expense  */
export type BusinessTripAccommodationExpense = BusinessTripExpense & {
  __typename?: 'BusinessTripAccommodationExpense';
  amount?: Maybe<FinancialAmount>;
  attendeesStay: Array<BusinessTripAttendeeStay>;
  businessTrip: BusinessTrip;
  charges?: Maybe<Array<Charge>>;
  country?: Maybe<Scalars['String']['output']>;
  date?: Maybe<Scalars['TimelessDate']['output']>;
  employee?: Maybe<FinancialEntity>;
  id: Scalars['UUID']['output'];
  nightsCount?: Maybe<Scalars['Int']['output']>;
  payedByEmployee?: Maybe<Scalars['Boolean']['output']>;
  transactions?: Maybe<Array<Transaction>>;
  valueDate?: Maybe<Scalars['TimelessDate']['output']>;
};

/**  represent business trip attendee  */
export type BusinessTripAttendee = {
  __typename?: 'BusinessTripAttendee';
  accommodations: Array<BusinessTripAccommodationExpense>;
  arrivalDate?: Maybe<Scalars['TimelessDate']['output']>;
  business?: Maybe<Business>;
  departureDate?: Maybe<Scalars['TimelessDate']['output']>;
  flights: Array<BusinessTripFlightExpense>;
  id: Scalars['UUID']['output'];
  name: Scalars['String']['output'];
};

/**  represent a business trip attendee accommodation stay info  */
export type BusinessTripAttendeeStay = {
  __typename?: 'BusinessTripAttendeeStay';
  attendee: BusinessTripAttendee;
  id: Scalars['UUID']['output'];
  nightsCount: Scalars['Int']['output'];
};

/**  the input for attendee accommodation stay info  */
export type BusinessTripAttendeeStayInput = {
  attendeeId: Scalars['UUID']['input'];
  nightsCount: Scalars['Int']['input'];
};

/**  the input for updating a business trip attendee  */
export type BusinessTripAttendeeUpdateInput = {
  arrivalDate?: InputMaybe<Scalars['TimelessDate']['input']>;
  attendeeId: Scalars['UUID']['input'];
  businessTripId: Scalars['UUID']['input'];
  departureDate?: InputMaybe<Scalars['TimelessDate']['input']>;
};

/**  represent a business trip car rental expense  */
export type BusinessTripCarRentalExpense = BusinessTripExpense & {
  __typename?: 'BusinessTripCarRentalExpense';
  amount?: Maybe<FinancialAmount>;
  businessTrip: BusinessTrip;
  charges?: Maybe<Array<Charge>>;
  date?: Maybe<Scalars['TimelessDate']['output']>;
  /**  הוצאה מוכרת  */
  days: Scalars['Int']['output'];
  employee?: Maybe<FinancialEntity>;
  id: Scalars['UUID']['output'];
  /**  פירוט  */
  isFuelExpense: Scalars['Boolean']['output'];
  payedByEmployee?: Maybe<Scalars['Boolean']['output']>;
  transactions?: Maybe<Array<Transaction>>;
  valueDate?: Maybe<Scalars['TimelessDate']['output']>;
};

/**  charge of dividends  */
export type BusinessTripCharge = Charge & {
  __typename?: 'BusinessTripCharge';
  accountantApproval: AccountantStatus;
  additionalDocuments: Array<Document>;
  businessTrip?: Maybe<BusinessTrip>;
  conversion?: Maybe<Scalars['Boolean']['output']>;
  counterparty?: Maybe<FinancialEntity>;
  exchangeRates?: Maybe<ExchangeRates>;
  id: Scalars['UUID']['output'];
  isInvoicePaymentDifferentCurrency?: Maybe<Scalars['Boolean']['output']>;
  ledger: Ledger;
  metadata?: Maybe<ChargeMetadata>;
  minDebitDate?: Maybe<Scalars['DateTime']['output']>;
  minDocumentsDate?: Maybe<Scalars['DateTime']['output']>;
  minEventDate?: Maybe<Scalars['DateTime']['output']>;
  miscExpenses: Array<MiscExpense>;
  missingInfoSuggestions?: Maybe<ChargeSuggestions>;
  optionalDocuments?: Maybe<Scalars['Boolean']['output']>;
  optionalVAT?: Maybe<Scalars['Boolean']['output']>;
  owner: Business;
  property?: Maybe<Scalars['Boolean']['output']>;
  salary?: Maybe<Scalars['Boolean']['output']>;
  tags: Array<Tag>;
  taxCategory?: Maybe<TaxCategory>;
  totalAmount?: Maybe<FinancialAmount>;
  transactions: Array<Transaction>;
  userDescription?: Maybe<Scalars['String']['output']>;
  validationData?: Maybe<ValidationData>;
  vat?: Maybe<FinancialAmount>;
  withholdingTax?: Maybe<FinancialAmount>;
  yearsOfRelevance?: Maybe<Array<YearOfRelevance>>;
};

/**  business trip expense prototype  */
export type BusinessTripExpense = {
  amount?: Maybe<FinancialAmount>;
  businessTrip: BusinessTrip;
  charges?: Maybe<Array<Charge>>;
  date?: Maybe<Scalars['TimelessDate']['output']>;
  employee?: Maybe<FinancialEntity>;
  id: Scalars['UUID']['output'];
  /**  שולם על ידי העובד  */
  payedByEmployee?: Maybe<Scalars['Boolean']['output']>;
  transactions?: Maybe<Array<Transaction>>;
  valueDate?: Maybe<Scalars['TimelessDate']['output']>;
};

/**  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 a business trip flight expense  */
export type BusinessTripFlightExpense = BusinessTripExpense & {
  __typename?: 'BusinessTripFlightExpense';
  amount?: Maybe<FinancialAmount>;
  attendees: Array<BusinessTripAttendee>;
  businessTrip: BusinessTrip;
  charges?: Maybe<Array<Charge>>;
  class?: Maybe<Scalars['String']['output']>;
  date?: Maybe<Scalars['TimelessDate']['output']>;
  employee?: Maybe<FinancialEntity>;
  id: Scalars['UUID']['output'];
  path?: Maybe<Array<Scalars['String']['output']>>;
  payedByEmployee?: Maybe<Scalars['Boolean']['output']>;
  transactions?: Maybe<Array<Transaction>>;
  valueDate?: Maybe<Scalars['TimelessDate']['output']>;
};

/**  represent a business trip other expense  */
export type BusinessTripOtherExpense = BusinessTripExpense & {
  __typename?: 'BusinessTripOtherExpense';
  amount?: Maybe<FinancialAmount>;
  businessTrip: BusinessTrip;
  charges?: Maybe<Array<Charge>>;
  date?: Maybe<Scalars['TimelessDate']['output']>;
  /**  הוצאה מוכרת  */
  deductibleExpense?: Maybe<Scalars['Boolean']['output']>;
  /**  פירוט  */
  description?: Maybe<Scalars['String']['output']>;
  employee?: Maybe<FinancialEntity>;
  id: Scalars['UUID']['output'];
  payedByEmployee?: Maybe<Scalars['Boolean']['output']>;
  transactions?: Maybe<Array<Transaction>>;
  valueDate?: Maybe<Scalars['TimelessDate']['output']>;
};

/**  represent business trip summary data  */
export type BusinessTripSummary = {
  __typename?: 'BusinessTripSummary';
  errors?: Maybe<Array<Scalars['String']['output']>>;
  excessExpenditure?: Maybe<FinancialAmount>;
  excessTax?: Maybe<Scalars['Float']['output']>;
  rows: Array<BusinessTripSummaryRow>;
};

/**  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];
/**  represent business trip summary data row  */
export type BusinessTripSummaryRow = {
  __typename?: 'BusinessTripSummaryRow';
  excessExpenditure?: Maybe<FinancialAmount>;
  maxTaxableForeignCurrency: FinancialAmount;
  maxTaxableLocalCurrency?: Maybe<FinancialAmount>;
  taxableForeignCurrency: FinancialAmount;
  taxableLocalCurrency?: Maybe<FinancialAmount>;
  totalForeignCurrency: FinancialAmount;
  totalLocalCurrency?: Maybe<FinancialAmount>;
  type: BusinessTripSummaryCategories;
};

/**  represent a business trip travel and subsistence expense  */
export type BusinessTripTravelAndSubsistenceExpense = BusinessTripExpense & {
  __typename?: 'BusinessTripTravelAndSubsistenceExpense';
  amount?: Maybe<FinancialAmount>;
  businessTrip: BusinessTrip;
  charges?: Maybe<Array<Charge>>;
  date?: Maybe<Scalars['TimelessDate']['output']>;
  employee?: Maybe<FinancialEntity>;
  /**  סוג ההוצאה  */
  expenseType?: Maybe<Scalars['String']['output']>;
  id: Scalars['UUID']['output'];
  payedByEmployee?: Maybe<Scalars['Boolean']['output']>;
  transactions?: Maybe<Array<Transaction>>;
  valueDate?: Maybe<Scalars['TimelessDate']['output']>;
};

/**  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];
/**  represent a single credit card  */
export type CardFinancialAccount = FinancialAccount & {
  __typename?: 'CardFinancialAccount';
  charges: Array<Charge>;
  fourDigits: Scalars['String']['output'];
  id: Scalars['UUID']['output'];
  name: Scalars['String']['output'];
  /**  the external identifier of the card  */
  number: Scalars['String']['output'];
  type: Scalars['String']['output'];
};


/**  represent a single credit card  */
export type CardFinancialAccountChargesArgs = {
  filter?: InputMaybe<ChargeFilter>;
};

/**  the input for categorizing a business trip expense  */
export type CategorizeBusinessTripExpenseInput = {
  amount?: InputMaybe<Scalars['Float']['input']>;
  businessTripId: Scalars['UUID']['input'];
  category?: InputMaybe<BusinessTripExpenseCategories>;
  transactionId: Scalars['UUID']['input'];
};

/**  the input for categorizing into an existing business trip expense  */
export type CategorizeIntoExistingBusinessTripExpenseInput = {
  amount?: InputMaybe<Scalars['Float']['input']>;
  businessTripExpenseId: Scalars['UUID']['input'];
  transactionId: Scalars['UUID']['input'];
};

/**  represent a complex type for grouped charge with ledger info, bank/card transactions and documents  */
export type Charge = {
  /**  calculated based on ledger record and transaction approvals  */
  accountantApproval: AccountantStatus;
  /**  additional documents attached to the charge  */
  additionalDocuments: Array<Document>;
  /**  is currency conversion  */
  conversion?: Maybe<Scalars['Boolean']['output']>;
  /**  calculated counterparty details for the charge  */
  counterparty?: Maybe<FinancialEntity>;
  exchangeRates?: Maybe<ExchangeRates>;
  id: Scalars['UUID']['output'];
  /**  is invoice currency different from the payment currency */
  isInvoicePaymentDifferentCurrency?: Maybe<Scalars['Boolean']['output']>;
  /**  ledger records linked to the charge  */
  ledger: Ledger;
  /**  metadata about the charge  */
  metadata?: Maybe<ChargeMetadata>;
  /**  minimal debit date from linked transactions  */
  minDebitDate?: Maybe<Scalars['DateTime']['output']>;
  /**  minimal date from linked documents  */
  minDocumentsDate?: Maybe<Scalars['DateTime']['output']>;
  /**  minimal event date from linked transactions  */
  minEventDate?: Maybe<Scalars['DateTime']['output']>;
  /**  list of misc expenses linked to transactions of the charge  */
  miscExpenses: Array<MiscExpense>;
  /**  missing info suggestions data  */
  missingInfoSuggestions?: Maybe<ChargeSuggestions>;
  /**  flag for optional documents  */
  optionalDocuments?: Maybe<Scalars['Boolean']['output']>;
  /**  flag for optional VAT  */
  optionalVAT?: Maybe<Scalars['Boolean']['output']>;
  /**  the financial entity that created the charge  */
  owner: Business;
  /**  פחת, ציוד   */
  property?: Maybe<Scalars['Boolean']['output']>;
  /**  is salary  */
  salary?: Maybe<Scalars['Boolean']['output']>;
  /**  user customer tags  */
  tags: Array<Tag>;
  taxCategory?: Maybe<TaxCategory>;
  /**  the total amount of the charge  */
  totalAmount?: Maybe<FinancialAmount>;
  /**  list of financial/bank transactions linked to the charge  */
  transactions: Array<Transaction>;
  /**  user custom description  */
  userDescription?: Maybe<Scalars['String']['output']>;
  /**  missing info validation data  */
  validationData?: Maybe<ValidationData>;
  /**  calculated field based on the actual ledger records, optional because not all charges has VAT  */
  vat?: Maybe<FinancialAmount>;
  /**  withholding tax  */
  withholdingTax?: Maybe<FinancialAmount>;
  /**  the tax year in which the action took place  */
  yearsOfRelevance?: Maybe<Array<YearOfRelevance>>;
};

/**  input variables for charge filtering  */
export type ChargeFilter = {
  accountantStatus?: InputMaybe<Array<AccountantStatus>>;
  /**  filter by business trip (should be later in business trip module?)  */
  businessTrip?: InputMaybe<Scalars['UUID']['input']>;
  /**  Include only charges including specific business  */
  byBusinesses?: InputMaybe<Array<Scalars['UUID']['input']>>;
  /**  Include only charges related to specific financial accounts  */
  byFinancialAccounts?: InputMaybe<Array<Scalars['UUID']['input']>>;
  /**  Include only charges related to specific owners financial entities  */
  byOwners?: InputMaybe<Array<Scalars['UUID']['input']>>;
  /**  Include only charges with those tags  */
  byTags?: InputMaybe<Array<Scalars['String']['input']>>;
  chargesType?: InputMaybe<ChargeFilterType>;
  /**  Include only charges with any doc/transaction date occurred after this date  */
  fromAnyDate?: InputMaybe<Scalars['TimelessDate']['input']>;
  /**  Include only charges with main date occurred after this date  */
  fromDate?: InputMaybe<Scalars['TimelessDate']['input']>;
  sortBy?: InputMaybe<ChargeSortBy>;
  /**  Include only charges with any doc/transaction date occurred before this date  */
  toAnyDate?: InputMaybe<Scalars['TimelessDate']['input']>;
  /**  Include only charges with main date  occurred before this date  */
  toDate?: InputMaybe<Scalars['TimelessDate']['input']>;
  /**  Include only charges that are not balances  */
  unbalanced?: InputMaybe<Scalars['Boolean']['input']>;
  withOpenDocuments?: InputMaybe<Scalars['Boolean']['input']>;
  /**  Include only charges that doesn't have documents linked  */
  withoutDocuments?: InputMaybe<Scalars['Boolean']['input']>;
  /**  Include only charges that doesn't have invoice document linked  */
  withoutInvoice?: InputMaybe<Scalars['Boolean']['input']>;
  /**  Include only charges that doesn't have ledger records linked  */
  withoutLedger?: InputMaybe<Scalars['Boolean']['input']>;
  /**  Include only charges that doesn't have receipt document linked  */
  withoutReceipt?: InputMaybe<Scalars['Boolean']['input']>;
  /**  Include only charges that doesn't have transactions linked  */
  withoutTransactions?: InputMaybe<Scalars['Boolean']['input']>;
};

/**  filter charges by type  */
export const ChargeFilterType = {
  All: 'ALL',
  Expense: 'EXPENSE',
  Income: 'INCOME'
} as const;

export type ChargeFilterType = typeof ChargeFilterType[keyof typeof ChargeFilterType];
/**  represent charge's metadata */
export type ChargeMetadata = {
  __typename?: 'ChargeMetadata';
  /**  when the initial charge was created from the first event we found  */
  createdAt: Scalars['DateTime']['output'];
  documentsCount: Scalars['Int']['output'];
  invalidDocuments: Scalars['Boolean']['output'];
  invalidLedger: LedgerValidationStatus;
  invalidTransactions: Scalars['Boolean']['output'];
  invoicesCount: Scalars['Int']['output'];
  isLedgerLocked: Scalars['Boolean']['output'];
  isSalary: Scalars['Boolean']['output'];
  ledgerCount: Scalars['Int']['output'];
  miscExpensesCount: Scalars['Int']['output'];
  openDocuments: Scalars['Boolean']['output'];
  optionalBusinesses: Array<Scalars['String']['output']>;
  receiptsCount: Scalars['Int']['output'];
  transactionsCount: Scalars['Int']['output'];
  /**  when the charge was last updated  */
  updatedAt: Scalars['DateTime']['output'];
};

/**  input variables for sorting charges  */
export type ChargeSortBy = {
  asc?: InputMaybe<Scalars['Boolean']['input']>;
  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];
/**  represent charge suggestions for missing info  */
export type ChargeSuggestions = {
  __typename?: 'ChargeSuggestions';
  description?: Maybe<Scalars['String']['output']>;
  tags: Array<Tag>;
};

/**  result type for charges with ledger changes  */
export type ChargesWithLedgerChangesResult = {
  __typename?: 'ChargesWithLedgerChangesResult';
  charge?: Maybe<Charge>;
  progress: Scalars['Float']['output'];
};

/**  business extended with green invoice data  */
export type Client = {
  __typename?: 'Client';
  emails: Array<Scalars['String']['output']>;
  generatedDocumentType: DocumentType;
  greenInvoiceId: Scalars['UUID']['output'];
  greenInvoiceInfo: GreenInvoiceClient;
  id: Scalars['UUID']['output'];
  originalBusiness: LtdFinancialEntity;
};

/**  common charge  */
export type CommonCharge = Charge & {
  __typename?: 'CommonCharge';
  accountantApproval: AccountantStatus;
  additionalDocuments: Array<Document>;
  conversion?: Maybe<Scalars['Boolean']['output']>;
  counterparty?: Maybe<FinancialEntity>;
  /**  depreciation records  */
  depreciationRecords: Array<DepreciationRecord>;
  exchangeRates?: Maybe<ExchangeRates>;
  id: Scalars['UUID']['output'];
  isInvoicePaymentDifferentCurrency?: Maybe<Scalars['Boolean']['output']>;
  ledger: Ledger;
  metadata?: Maybe<ChargeMetadata>;
  minDebitDate?: Maybe<Scalars['DateTime']['output']>;
  minDocumentsDate?: Maybe<Scalars['DateTime']['output']>;
  minEventDate?: Maybe<Scalars['DateTime']['output']>;
  miscExpenses: Array<MiscExpense>;
  missingInfoSuggestions?: Maybe<ChargeSuggestions>;
  optionalDocuments?: Maybe<Scalars['Boolean']['output']>;
  optionalVAT?: Maybe<Scalars['Boolean']['output']>;
  owner: Business;
  property?: Maybe<Scalars['Boolean']['output']>;
  salary?: Maybe<Scalars['Boolean']['output']>;
  tags: Array<Tag>;
  taxCategory?: Maybe<TaxCategory>;
  totalAmount?: Maybe<FinancialAmount>;
  transactions: Array<Transaction>;
  userDescription?: Maybe<Scalars['String']['output']>;
  validationData?: Maybe<ValidationData>;
  vat?: Maybe<FinancialAmount>;
  withholdingTax?: Maybe<FinancialAmount>;
  yearsOfRelevance?: Maybe<Array<YearOfRelevance>>;
};

/**  common type of errors */
export type CommonError = Error & {
  __typename?: 'CommonError';
  message: Scalars['String']['output'];
};

/**  temp type until DB supports transactions differentiation  */
export type CommonTransaction = Transaction & {
  __typename?: 'CommonTransaction';
  account: FinancialAccount;
  amount: FinancialAmount;
  balance: FinancialAmount;
  chargeId: Scalars['UUID']['output'];
  counterparty?: Maybe<FinancialEntity>;
  createdAt: Scalars['DateTime']['output'];
  cryptoExchangeRate?: Maybe<ConversionRate>;
  debitExchangeRates?: Maybe<ExchangeRates>;
  direction: TransactionDirection;
  effectiveDate?: Maybe<Scalars['TimelessDate']['output']>;
  eventDate: Scalars['TimelessDate']['output'];
  eventExchangeRates?: Maybe<ExchangeRates>;
  exactEffectiveDate?: Maybe<Scalars['DateTime']['output']>;
  id: Scalars['UUID']['output'];
  isFee?: Maybe<Scalars['Boolean']['output']>;
  missingInfoSuggestions?: Maybe<TransactionSuggestions>;
  referenceKey?: Maybe<Scalars['String']['output']>;
  sourceDescription: Scalars['String']['output'];
  sourceEffectiveDate?: Maybe<Scalars['TimelessDate']['output']>;
  updatedAt: Scalars['DateTime']['output'];
};

/**  a client contract  */
export type Contract = {
  __typename?: 'Contract';
  amount: FinancialAmount;
  billingCycle: BillingCycle;
  client: Client;
  documentType: DocumentType;
  endDate: Scalars['TimelessDate']['output'];
  id: Scalars['UUID']['output'];
  isActive: Scalars['Boolean']['output'];
  msCloud?: Maybe<Scalars['URL']['output']>;
  plan?: Maybe<SubscriptionPlan>;
  product?: Maybe<Product>;
  purchaseOrder?: Maybe<Scalars['String']['output']>;
  remarks?: Maybe<Scalars['String']['output']>;
  signedAgreement?: Maybe<Scalars['URL']['output']>;
  startDate: Scalars['TimelessDate']['output'];
};

/**  charge with conversion transactions  */
export type ConversionCharge = Charge & {
  __typename?: 'ConversionCharge';
  accountantApproval: AccountantStatus;
  additionalDocuments: Array<Document>;
  conversion?: Maybe<Scalars['Boolean']['output']>;
  counterparty?: Maybe<FinancialEntity>;
  eventRate?: Maybe<ConversionRate>;
  exchangeRates?: Maybe<ExchangeRates>;
  id: Scalars['UUID']['output'];
  isInvoicePaymentDifferentCurrency?: Maybe<Scalars['Boolean']['output']>;
  ledger: Ledger;
  metadata?: Maybe<ChargeMetadata>;
  minDebitDate?: Maybe<Scalars['DateTime']['output']>;
  minDocumentsDate?: Maybe<Scalars['DateTime']['output']>;
  minEventDate?: Maybe<Scalars['DateTime']['output']>;
  miscExpenses: Array<MiscExpense>;
  missingInfoSuggestions?: Maybe<ChargeSuggestions>;
  officialRate?: Maybe<ConversionRate>;
  optionalDocuments?: Maybe<Scalars['Boolean']['output']>;
  optionalVAT?: Maybe<Scalars['Boolean']['output']>;
  owner: Business;
  property?: Maybe<Scalars['Boolean']['output']>;
  salary?: Maybe<Scalars['Boolean']['output']>;
  tags: Array<Tag>;
  taxCategory?: Maybe<TaxCategory>;
  totalAmount?: Maybe<FinancialAmount>;
  transactions: Array<Transaction>;
  userDescription?: Maybe<Scalars['String']['output']>;
  validationData?: Maybe<ValidationData>;
  vat?: Maybe<FinancialAmount>;
  withholdingTax?: Maybe<FinancialAmount>;
  yearsOfRelevance?: Maybe<Array<YearOfRelevance>>;
};

/**  represent exchange rate between two currencies  */
export type ConversionRate = {
  __typename?: 'ConversionRate';
  from: Currency;
  rate: Scalars['Float']['output'];
  to: Currency;
};

/**  המרה  */
export type ConversionTransaction = Transaction & {
  __typename?: 'ConversionTransaction';
  account: FinancialAccount;
  amount: FinancialAmount;
  balance: FinancialAmount;
  /**  המרה של הבנק  */
  bankRate: Scalars['Rate']['output'];
  chargeId: Scalars['UUID']['output'];
  counterparty?: Maybe<FinancialEntity>;
  createdAt: Scalars['DateTime']['output'];
  cryptoExchangeRate?: Maybe<ConversionRate>;
  debitExchangeRates?: Maybe<ExchangeRates>;
  direction: TransactionDirection;
  effectiveDate: Scalars['TimelessDate']['output'];
  eventDate: Scalars['TimelessDate']['output'];
  eventExchangeRates?: Maybe<ExchangeRates>;
  exactEffectiveDate?: Maybe<Scalars['DateTime']['output']>;
  id: Scalars['UUID']['output'];
  isFee?: Maybe<Scalars['Boolean']['output']>;
  missingInfoSuggestions?: Maybe<TransactionSuggestions>;
  /**  בנק ישראל  */
  officialRateToLocal?: Maybe<Scalars['Rate']['output']>;
  referenceKey?: Maybe<Scalars['String']['output']>;
  sourceDescription: Scalars['String']['output'];
  sourceEffectiveDate?: Maybe<Scalars['TimelessDate']['output']>;
  type: ConversionTransactionType;
  updatedAt: Scalars['DateTime']['output'];
};

/**  Type pf conversion transaction  */
export const ConversionTransactionType = {
  /**  מכירה  */
  Base: 'BASE',
  /**  קניה  */
  Quote: 'QUOTE'
} as const;

export type ConversionTransactionType = typeof ConversionTransactionType[keyof typeof ConversionTransactionType];
/**  Corporate tax variables  */
export type CorporateTax = {
  __typename?: 'CorporateTax';
  corporateId: Scalars['UUID']['output'];
  date: Scalars['TimelessDate']['output'];
  id: Scalars['ID']['output'];
  taxRate: Scalars['Float']['output'];
};

/**  Corporate tax rule  */
export type CorporateTaxRule = {
  __typename?: 'CorporateTaxRule';
  id: Scalars['ID']['output'];
  isCompliant: Scalars['Boolean']['output'];
  percentage: CorporateTaxRulePercentage;
  rule: Scalars['String']['output'];
};

/**  Corporate tax rule percentage  */
export type CorporateTaxRulePercentage = {
  __typename?: 'CorporateTaxRulePercentage';
  formatted: Scalars['String']['output'];
  value: Scalars['Float']['output'];
};

/**  result type for corporateTaxReport  */
export type CorporateTaxRulingComplianceReport = {
  __typename?: 'CorporateTaxRulingComplianceReport';
  businessTripRndExpenses: FinancialAmount;
  differences: CorporateTaxRulingComplianceReportDifferences;
  foreignDevelopmentExpenses: FinancialAmount;
  foreignDevelopmentRelativeToRnd: CorporateTaxRule;
  id: Scalars['ID']['output'];
  localDevelopmentExpenses: FinancialAmount;
  localDevelopmentRelativeToRnd: CorporateTaxRule;
  researchAndDevelopmentExpenses: FinancialAmount;
  rndRelativeToIncome: CorporateTaxRule;
  totalIncome: FinancialAmount;
  year: Scalars['Int']['output'];
};

/**  Differences between the report info and the generated ledger suggested info  */
export type CorporateTaxRulingComplianceReportDifferences = {
  __typename?: 'CorporateTaxRulingComplianceReportDifferences';
  businessTripRndExpenses?: Maybe<FinancialAmount>;
  foreignDevelopmentExpenses?: Maybe<FinancialAmount>;
  foreignDevelopmentRelativeToRnd?: Maybe<CorporateTaxRule>;
  id: Scalars['ID']['output'];
  localDevelopmentExpenses?: Maybe<FinancialAmount>;
  localDevelopmentRelativeToRnd?: Maybe<CorporateTaxRule>;
  researchAndDevelopmentExpenses?: Maybe<FinancialAmount>;
  rndRelativeToIncome?: Maybe<CorporateTaxRule>;
  totalIncome?: Maybe<FinancialAmount>;
};

/**  a country  */
export type Country = {
  __typename?: 'Country';
  code: Scalars['String']['output'];
  id: Scalars['ID']['output'];
  name: Scalars['String']['output'];
};

/**  Credit invoice document - חשבונית זיכוי  */
export type CreditInvoice = Document & FinancialDocument & Linkable & {
  __typename?: 'CreditInvoice';
  allocationNumber?: Maybe<Scalars['String']['output']>;
  amount?: Maybe<FinancialAmount>;
  charge?: Maybe<Charge>;
  creditor?: Maybe<FinancialEntity>;
  date?: Maybe<Scalars['TimelessDate']['output']>;
  debtor?: Maybe<FinancialEntity>;
  documentType?: Maybe<DocumentType>;
  exchangeRateOverride?: Maybe<Scalars['Float']['output']>;
  file?: Maybe<Scalars['URL']['output']>;
  id: Scalars['UUID']['output'];
  image?: Maybe<Scalars['URL']['output']>;
  isReviewed?: Maybe<Scalars['Boolean']['output']>;
  issuedDocumentInfo?: Maybe<IssuedDocumentInfo>;
  missingInfoSuggestions?: Maybe<DocumentSuggestions>;
  noVatAmount?: Maybe<Scalars['Float']['output']>;
  serialNumber?: Maybe<Scalars['String']['output']>;
  vat?: Maybe<FinancialAmount>;
  vatReportDateOverride?: Maybe<Scalars['TimelessDate']['output']>;
};

/**  charge of creditcard over bank account  */
export type CreditcardBankCharge = Charge & {
  __typename?: 'CreditcardBankCharge';
  accountantApproval: AccountantStatus;
  additionalDocuments: Array<Document>;
  conversion?: Maybe<Scalars['Boolean']['output']>;
  counterparty?: Maybe<FinancialEntity>;
  creditCardTransactions: Array<Transaction>;
  exchangeRates?: Maybe<ExchangeRates>;
  id: Scalars['UUID']['output'];
  isInvoicePaymentDifferentCurrency?: Maybe<Scalars['Boolean']['output']>;
  ledger: Ledger;
  metadata?: Maybe<ChargeMetadata>;
  minDebitDate?: Maybe<Scalars['DateTime']['output']>;
  minDocumentsDate?: Maybe<Scalars['DateTime']['output']>;
  minEventDate?: Maybe<Scalars['DateTime']['output']>;
  miscExpenses: Array<MiscExpense>;
  missingInfoSuggestions?: Maybe<ChargeSuggestions>;
  optionalDocuments?: Maybe<Scalars['Boolean']['output']>;
  optionalVAT?: Maybe<Scalars['Boolean']['output']>;
  owner: Business;
  property?: Maybe<Scalars['Boolean']['output']>;
  salary?: Maybe<Scalars['Boolean']['output']>;
  tags: Array<Tag>;
  taxCategory?: Maybe<TaxCategory>;
  totalAmount?: Maybe<FinancialAmount>;
  transactions: Array<Transaction>;
  userDescription?: Maybe<Scalars['String']['output']>;
  validCreditCardAmount: Scalars['Boolean']['output'];
  validationData?: Maybe<ValidationData>;
  vat?: Maybe<FinancialAmount>;
  withholdingTax?: Maybe<FinancialAmount>;
  yearsOfRelevance?: Maybe<Array<YearOfRelevance>>;
};

/**  represent a single credit card  */
export type CryptoWalletFinancialAccount = FinancialAccount & {
  __typename?: 'CryptoWalletFinancialAccount';
  charges: Array<Charge>;
  id: Scalars['UUID']['output'];
  name: Scalars['String']['output'];
  /**  the external identifier of the wallet  */
  number: Scalars['String']['output'];
  type: Scalars['String']['output'];
};


/**  represent a single credit card  */
export type CryptoWalletFinancialAccountChargesArgs = {
  filter?: InputMaybe<ChargeFilter>;
};

/**  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];
/**  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];
/**  a date range  */
export type DateRange = {
  __typename?: 'DateRange';
  end: Scalars['TimelessDate']['output'];
  start: Scalars['TimelessDate']['output'];
};

/**  the input for removing a business trip attendee  */
export type DeleteBusinessTripAttendeeInput = {
  attendeeId: Scalars['UUID']['input'];
  businessTripId: Scalars['UUID']['input'];
};

/**  represent a category of depreciation  */
export type DepreciationCategory = {
  __typename?: 'DepreciationCategory';
  id: Scalars['UUID']['output'];
  name: Scalars['String']['output'];
  percentage: Scalars['Float']['output'];
};

/**  Depreciation report record core fields  */
export type DepreciationCoreRecord = {
  id: Scalars['ID']['output'];
  netValue: Scalars['Int']['output'];
  originalCost?: Maybe<Scalars['Int']['output']>;
  pastYearsAccumulatedDepreciation: Scalars['Int']['output'];
  reportYearClaimedDepreciation: Scalars['Int']['output'];
  reportYearDelta?: Maybe<Scalars['Int']['output']>;
  totalDepreciableCosts: Scalars['Int']['output'];
  totalDepreciation: Scalars['Int']['output'];
};

/**  represent a depreciation record for a charge */
export type DepreciationRecord = {
  __typename?: 'DepreciationRecord';
  activationDate: Scalars['TimelessDate']['output'];
  amount: FinancialAmount;
  category: DepreciationCategory;
  charge: Charge;
  chargeId: Scalars['UUID']['output'];
  id: Scalars['UUID']['output'];
  type?: Maybe<DepreciationType>;
};

/**  Depreciation report category group  */
export type DepreciationReportCategory = {
  __typename?: 'DepreciationReportCategory';
  category: DepreciationCategory;
  id: Scalars['ID']['output'];
  records: Array<DepreciationReportRecord>;
  summary: DepreciationReportSummaryRecord;
};

/**  input variables for depreciationReport  */
export type DepreciationReportFilter = {
  financialEntityId?: InputMaybe<Scalars['UUID']['input']>;
  year: Scalars['Int']['input'];
};

/**  Depreciation report record  */
export type DepreciationReportRecord = DepreciationCoreRecord & {
  __typename?: 'DepreciationReportRecord';
  activationDate?: Maybe<Scalars['TimelessDate']['output']>;
  chargeId: Scalars['UUID']['output'];
  claimedDepreciationRate?: Maybe<Scalars['Float']['output']>;
  description?: Maybe<Scalars['String']['output']>;
  id: Scalars['ID']['output'];
  netValue: Scalars['Int']['output'];
  originalCost?: Maybe<Scalars['Int']['output']>;
  pastYearsAccumulatedDepreciation: Scalars['Int']['output'];
  purchaseDate: Scalars['TimelessDate']['output'];
  reportYearClaimedDepreciation: Scalars['Int']['output'];
  reportYearDelta?: Maybe<Scalars['Int']['output']>;
  statutoryDepreciationRate: Scalars['Float']['output'];
  totalDepreciableCosts: Scalars['Int']['output'];
  totalDepreciation: Scalars['Int']['output'];
};

/**  depreciation report result  */
export type DepreciationReportResult = {
  __typename?: 'DepreciationReportResult';
  categories: Array<DepreciationReportCategory>;
  id: Scalars['ID']['output'];
  summary: DepreciationReportSummaryRecord;
  year: Scalars['Int']['output'];
};

/**  Depreciation report summary record  */
export type DepreciationReportSummaryRecord = DepreciationCoreRecord & {
  __typename?: 'DepreciationReportSummaryRecord';
  id: Scalars['ID']['output'];
  netValue: Scalars['Int']['output'];
  originalCost?: Maybe<Scalars['Int']['output']>;
  pastYearsAccumulatedDepreciation: Scalars['Int']['output'];
  reportYearClaimedDepreciation: Scalars['Int']['output'];
  reportYearDelta?: Maybe<Scalars['Int']['output']>;
  totalDepreciableCosts: Scalars['Int']['output'];
  totalDepreciation: Scalars['Int']['output'];
};

/**  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];
/**  charge of dividends  */
export type DividendCharge = Charge & {
  __typename?: 'DividendCharge';
  accountantApproval: AccountantStatus;
  additionalDocuments: Array<Document>;
  conversion?: Maybe<Scalars['Boolean']['output']>;
  counterparty?: Maybe<FinancialEntity>;
  exchangeRates?: Maybe<ExchangeRates>;
  id: Scalars['UUID']['output'];
  isInvoicePaymentDifferentCurrency?: Maybe<Scalars['Boolean']['output']>;
  ledger: Ledger;
  metadata?: Maybe<ChargeMetadata>;
  minDebitDate?: Maybe<Scalars['DateTime']['output']>;
  minDocumentsDate?: Maybe<Scalars['DateTime']['output']>;
  minEventDate?: Maybe<Scalars['DateTime']['output']>;
  miscExpenses: Array<MiscExpense>;
  missingInfoSuggestions?: Maybe<ChargeSuggestions>;
  optionalDocuments?: Maybe<Scalars['Boolean']['output']>;
  optionalVAT?: Maybe<Scalars['Boolean']['output']>;
  owner: Business;
  property?: Maybe<Scalars['Boolean']['output']>;
  salary?: Maybe<Scalars['Boolean']['output']>;
  tags: Array<Tag>;
  taxCategory?: Maybe<TaxCategory>;
  totalAmount?: Maybe<FinancialAmount>;
  transactions: Array<Transaction>;
  userDescription?: Maybe<Scalars['String']['output']>;
  validationData?: Maybe<ValidationData>;
  vat?: Maybe<FinancialAmount>;
  withholdingTax?: Maybe<FinancialAmount>;
  yearsOfRelevance?: Maybe<Array<YearOfRelevance>>;
};

/**  represent a generic document with identifier and a URL  */
export type Document = {
  charge?: Maybe<Charge>;
  /**  the specific type of the document */
  documentType?: Maybe<DocumentType>;
  /**  link to original file gmail, pdf  */
  file?: Maybe<Scalars['URL']['output']>;
  id: Scalars['UUID']['output'];
  /**  previewable image  */
  image?: Maybe<Scalars['URL']['output']>;
  isReviewed?: Maybe<Scalars['Boolean']['output']>;
};

/**  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];
/**  represent document suggestions for missing info  */
export type DocumentSuggestions = {
  __typename?: 'DocumentSuggestions';
  /**  The document amount  */
  amount?: Maybe<FinancialAmount>;
  /**  The counter-side of the document (opposite to it's owner)  */
  counterparty?: Maybe<FinancialEntity>;
  /**  The document direction (income or expense)  */
  isIncome?: Maybe<Scalars['Boolean']['output']>;
  /**  The owner of the document  */
  owner?: Maybe<FinancialEntity>;
};

/**  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];
/**  input variables for documents filtering  */
export type DocumentsFilters = {
  businessIDs?: InputMaybe<Array<Scalars['UUID']['input']>>;
  fromDate?: InputMaybe<Scalars['TimelessDate']['input']>;
  ownerIDs?: InputMaybe<Array<Scalars['UUID']['input']>>;
  toDate?: InputMaybe<Scalars['TimelessDate']['input']>;
  /**  Include only documents without matching transactions  */
  unmatched?: InputMaybe<Scalars['Boolean']['input']>;
};

/**  dynamic report data  */
export type DynamicReportInfo = {
  __typename?: 'DynamicReportInfo';
  created: Scalars['DateTime']['output'];
  id: Scalars['ID']['output'];
  name: Scalars['String']['output'];
  template: Array<DynamicReportNode>;
  updated: Scalars['DateTime']['output'];
};

/**  a single node of dynamic report template  */
export type DynamicReportNode = {
  __typename?: 'DynamicReportNode';
  data: DynamicReportNodeData;
  droppable: Scalars['Boolean']['output'];
  id: Scalars['ID']['output'];
  parent: Scalars['String']['output'];
  text: Scalars['String']['output'];
};

/**  data of a single node of dynamic report template  */
export type DynamicReportNodeData = {
  __typename?: 'DynamicReportNodeData';
  descendantFinancialEntities?: Maybe<Array<Scalars['UUID']['output']>>;
  descendantSortCodes?: Maybe<Array<Scalars['Int']['output']>>;
  hebrewText?: Maybe<Scalars['String']['output']>;
  isOpen: Scalars['Boolean']['output'];
  mergedSortCodes?: Maybe<Array<Scalars['Int']['output']>>;
};

/**  represent employee record */
export type Employee = {
  __typename?: 'Employee';
  id: Scalars['UUID']['output'];
  name: Scalars['String']['output'];
};

/**  basic structure of error  */
export type Error = {
  message: Scalars['String']['output'];
};

/**  represent a financial amount in a specific currency  */
export type ExchangeRates = {
  __typename?: 'ExchangeRates';
  /**  fiat currencies  */
  aud?: Maybe<Scalars['Float']['output']>;
  cad?: Maybe<Scalars['Float']['output']>;
  date: Scalars['TimelessDate']['output'];
  /**  crypto currencies  */
  eth?: Maybe<Scalars['Float']['output']>;
  eur?: Maybe<Scalars['Float']['output']>;
  gbp?: Maybe<Scalars['Float']['output']>;
  grt?: Maybe<Scalars['Float']['output']>;
  ils?: Maybe<Scalars['Float']['output']>;
  jpy?: Maybe<Scalars['Float']['output']>;
  sek?: Maybe<Scalars['Float']['output']>;
  usd?: Maybe<Scalars['Float']['output']>;
  usdc?: Maybe<Scalars['Float']['output']>;
};

/**  Represent something external that we scrape, like bank or card  */
export type FinancialAccount = {
  charges: Array<Charge>;
  id: Scalars['UUID']['output'];
  /**  the name of the account */
  name: Scalars['String']['output'];
  /**  the general type of the account */
  type: Scalars['String']['output'];
};


/**  Represent something external that we scrape, like bank or card  */
export type FinancialAccountChargesArgs = {
  filter?: InputMaybe<ChargeFilter>;
};

/**  Represent financial amount  */
export type FinancialAmount = {
  __typename?: 'FinancialAmount';
  /**  currency of the amount  */
  currency: Currency;
  /**  formatted value with the currency symbol, like: 10$  */
  formatted: Scalars['String']['output'];
  /**  the raw amount, for example: 19.99  */
  raw: Scalars['Float']['output'];
};

/**  input variables for updateCharge.FinancialAmount */
export type FinancialAmountInput = {
  currency: Currency;
  raw: Scalars['Float']['input'];
};

/**  financial charge  */
export type FinancialCharge = Charge & {
  __typename?: 'FinancialCharge';
  accountantApproval: AccountantStatus;
  additionalDocuments: Array<Document>;
  conversion?: Maybe<Scalars['Boolean']['output']>;
  counterparty?: Maybe<FinancialEntity>;
  exchangeRates?: Maybe<ExchangeRates>;
  id: Scalars['UUID']['output'];
  isInvoicePaymentDifferentCurrency?: Maybe<Scalars['Boolean']['output']>;
  ledger: Ledger;
  metadata?: Maybe<ChargeMetadata>;
  minDebitDate?: Maybe<Scalars['DateTime']['output']>;
  minDocumentsDate?: Maybe<Scalars['DateTime']['output']>;
  minEventDate?: Maybe<Scalars['DateTime']['output']>;
  miscExpenses: Array<MiscExpense>;
  missingInfoSuggestions?: Maybe<ChargeSuggestions>;
  optionalDocuments?: Maybe<Scalars['Boolean']['output']>;
  optionalVAT?: Maybe<Scalars['Boolean']['output']>;
  owner: Business;
  property?: Maybe<Scalars['Boolean']['output']>;
  salary?: Maybe<Scalars['Boolean']['output']>;
  tags: Array<Tag>;
  taxCategory?: Maybe<TaxCategory>;
  totalAmount?: Maybe<FinancialAmount>;
  transactions: Array<Transaction>;
  userDescription?: Maybe<Scalars['String']['output']>;
  validationData?: Maybe<ValidationData>;
  vat?: Maybe<FinancialAmount>;
  withholdingTax?: Maybe<FinancialAmount>;
  yearsOfRelevance?: Maybe<Array<YearOfRelevance>>;
};

/**  result type for generateFinancialCharges  */
export type FinancialChargesGenerationResult = {
  __typename?: 'FinancialChargesGenerationResult';
  bankDepositsRevaluationCharge: Charge;
  depreciationCharge: Charge;
  id: Scalars['ID']['output'];
  recoveryReserveCharge: Charge;
  revaluationCharge: Charge;
  taxExpensesCharge: Charge;
  vacationReserveCharge: Charge;
};

/**  represent a financial document  */
export type FinancialDocument = {
  allocationNumber?: Maybe<Scalars['String']['output']>;
  amount?: Maybe<FinancialAmount>;
  charge?: Maybe<Charge>;
  creditor?: Maybe<FinancialEntity>;
  date?: Maybe<Scalars['TimelessDate']['output']>;
  debtor?: Maybe<FinancialEntity>;
  documentType?: Maybe<DocumentType>;
  exchangeRateOverride?: Maybe<Scalars['Float']['output']>;
  file?: Maybe<Scalars['URL']['output']>;
  id: Scalars['UUID']['output'];
  image?: Maybe<Scalars['URL']['output']>;
  isReviewed?: Maybe<Scalars['Boolean']['output']>;
  issuedDocumentInfo?: Maybe<IssuedDocumentInfo>;
  /**  missing info suggestions data  */
  missingInfoSuggestions?: Maybe<DocumentSuggestions>;
  noVatAmount?: Maybe<Scalars['Float']['output']>;
  serialNumber?: Maybe<Scalars['String']['output']>;
  vat?: Maybe<FinancialAmount>;
  vatReportDateOverride?: Maybe<Scalars['TimelessDate']['output']>;
};

/**  represent a financial entity of any type, including businesses, tax categories, etc.  */
export type FinancialEntity = {
  id: Scalars['UUID']['output'];
  irsCode?: Maybe<Scalars['Int']['output']>;
  name: Scalars['String']['output'];
  sortCode?: Maybe<SortCode>;
};

/**  represent financial entity type  */
export const FinancialEntityType = {
  Business: 'BUSINESS',
  TaxCategory: 'TAX_CATEGORY'
} as const;

export type FinancialEntityType = typeof FinancialEntityType[keyof typeof FinancialEntityType];
/**  Represent financial rounded amount with Int values  */
export type FinancialIntAmount = {
  __typename?: 'FinancialIntAmount';
  /**  currency of the amount  */
  currency: Currency;
  /**  formatted value with the currency symbol, like: 10$  */
  formatted: Scalars['String']['output'];
  /**  the raw amount, for example: 19  */
  raw: Scalars['Int']['output'];
};

/**  result type for flagForeignFeeTransactions  */
export type FlagForeignFeeTransactionsResult = {
  __typename?: 'FlagForeignFeeTransactionsResult';
  errors?: Maybe<Array<Scalars['String']['output']>>;
  success: Scalars['Boolean']['output'];
  transactions?: Maybe<Array<Transaction>>;
};

/**  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];
/**  summary of foreign currency business transactions  */
export type ForeignCurrencySum = {
  __typename?: 'ForeignCurrencySum';
  credit: FinancialAmount;
  currency: Currency;
  debit: FinancialAmount;
  total: FinancialAmount;
};

/**  charge of foreign securities  */
export type ForeignSecuritiesCharge = Charge & {
  __typename?: 'ForeignSecuritiesCharge';
  accountantApproval: AccountantStatus;
  additionalDocuments: Array<Document>;
  conversion?: Maybe<Scalars['Boolean']['output']>;
  counterparty?: Maybe<FinancialEntity>;
  exchangeRates?: Maybe<ExchangeRates>;
  id: Scalars['UUID']['output'];
  isInvoicePaymentDifferentCurrency?: Maybe<Scalars['Boolean']['output']>;
  ledger: Ledger;
  metadata?: Maybe<ChargeMetadata>;
  minDebitDate?: Maybe<Scalars['DateTime']['output']>;
  minDocumentsDate?: Maybe<Scalars['DateTime']['output']>;
  minEventDate?: Maybe<Scalars['DateTime']['output']>;
  miscExpenses: Array<MiscExpense>;
  missingInfoSuggestions?: Maybe<ChargeSuggestions>;
  optionalDocuments?: Maybe<Scalars['Boolean']['output']>;
  optionalVAT?: Maybe<Scalars['Boolean']['output']>;
  owner: Business;
  property?: Maybe<Scalars['Boolean']['output']>;
  salary?: Maybe<Scalars['Boolean']['output']>;
  tags: Array<Tag>;
  taxCategory?: Maybe<TaxCategory>;
  totalAmount?: Maybe<FinancialAmount>;
  transactions: Array<Transaction>;
  userDescription?: Maybe<Scalars['String']['output']>;
  validationData?: Maybe<ValidationData>;
  vat?: Maybe<FinancialAmount>;
  withholdingTax?: Maybe<FinancialAmount>;
  yearsOfRelevance?: Maybe<Array<YearOfRelevance>>;
};

/**  represent a foreign securities account  */
export type ForeignSecuritiesFinancialAccount = FinancialAccount & {
  __typename?: 'ForeignSecuritiesFinancialAccount';
  charges: Array<Charge>;
  id: Scalars['UUID']['output'];
  name: Scalars['String']['output'];
  number: Scalars['String']['output'];
  type: Scalars['String']['output'];
};


/**  represent a foreign securities account  */
export type ForeignSecuritiesFinancialAccountChargesArgs = {
  filter?: InputMaybe<ChargeFilter>;
};

/**  fund entity prototype  */
export type Fund = {
  id: Scalars['UUID']['output'];
  name: Scalars['String']['output'];
};

/**  result type for generateMonthlyClientDocuments */
export type GenerateMonthlyClientDocumentsResult = {
  __typename?: 'GenerateMonthlyClientDocumentsResult';
  errors?: Maybe<Array<Scalars['String']['output']>>;
  success: Scalars['Boolean']['output'];
};

/**  result type for ledger records  */
export type GeneratedLedgerRecords = CommonError | Ledger;

/**  client info  */
export type GreenInvoiceClient = {
  __typename?: 'GreenInvoiceClient';
  add?: Maybe<Scalars['Boolean']['output']>;
  address?: Maybe<Scalars['String']['output']>;
  city?: Maybe<Scalars['String']['output']>;
  country?: Maybe<GreenInvoiceCountry>;
  emails?: Maybe<Array<Scalars['String']['output']>>;
  fax?: Maybe<Scalars['String']['output']>;
  id: Scalars['ID']['output'];
  mobile?: Maybe<Scalars['String']['output']>;
  name?: Maybe<Scalars['String']['output']>;
  phone?: Maybe<Scalars['String']['output']>;
  self?: Maybe<Scalars['Boolean']['output']>;
  taxId?: Maybe<Scalars['String']['output']>;
  zip?: Maybe<Scalars['String']['output']>;
};

/**  client input  */
export type GreenInvoiceClientInput = {
  add?: InputMaybe<Scalars['Boolean']['input']>;
  address?: InputMaybe<Scalars['String']['input']>;
  city?: InputMaybe<Scalars['String']['input']>;
  country?: InputMaybe<GreenInvoiceCountry>;
  emails?: InputMaybe<Array<Scalars['String']['input']>>;
  fax?: InputMaybe<Scalars['String']['input']>;
  id: Scalars['String']['input'];
  mobile?: InputMaybe<Scalars['String']['input']>;
  name?: InputMaybe<Scalars['String']['input']>;
  phone?: InputMaybe<Scalars['String']['input']>;
  self?: InputMaybe<Scalars['Boolean']['input']>;
  taxId?: InputMaybe<Scalars['String']['input']>;
  zip?: InputMaybe<Scalars['String']['input']>;
};

/**  country enum (abbreviated for brevity - add more as needed)  */
export const GreenInvoiceCountry = {
  Ad: 'AD',
  Ae: 'AE',
  Af: 'AF',
  Ag: 'AG',
  Ai: 'AI',
  Al: 'AL',
  Am: 'AM',
  Ao: 'AO',
  Aq: 'AQ',
  Ar: 'AR',
  As: 'AS',
  At: 'AT',
  Au: 'AU',
  Aw: 'AW',
  Ax: 'AX',
  Az: 'AZ',
  Ba: 'BA',
  Bb: 'BB',
  Bd: 'BD',
  Be: 'BE',
  Bf: 'BF',
  Bg: 'BG',
  Bh: 'BH',
  Bi: 'BI',
  Bj: 'BJ',
  Bl: 'BL',
  Bm: 'BM',
  Bn: 'BN',
  Bo: 'BO',
  Bq: 'BQ',
  Br: 'BR',
  Bs: 'BS',
  Bt: 'BT',
  Bv: 'BV',
  Bw: 'BW',
  By: 'BY',
  Bz: 'BZ',
  Ca: 'CA',
  Cc: 'CC',
  Cd: 'CD',
  Cf: 'CF',
  Cg: 'CG',
  Ch: 'CH',
  Ci: 'CI',
  Ck: 'CK',
  Cl: 'CL',
  Cm: 'CM',
  Cn: 'CN',
  Co: 'CO',
  Cr: 'CR',
  Cu: 'CU',
  Cv: 'CV',
  Cw: 'CW',
  Cx: 'CX',
  Cy: 'CY',
  Cz: 'CZ',
  De: 'DE',
  Dj: 'DJ',
  Dk: 'DK',
  Dm: 'DM',
  Do: 'DO',
  Dz: 'DZ',
  Ec: 'EC',
  Ee: 'EE',
  Eg: 'EG',
  Eh: 'EH',
  Er: 'ER',
  Es: 'ES',
  Et: 'ET',
  Fi: 'FI',
  Fj: 'FJ',
  Fk: 'FK',
  Fm: 'FM',
  Fo: 'FO',
  Fr: 'FR',
  Ga: 'GA',
  Gb: 'GB',
  Gd: 'GD',
  Ge: 'GE',
  Gf: 'GF',
  Gg: 'GG',
  Gh: 'GH',
  Gi: 'GI',
  Gl: 'GL',
  Gm: 'GM',
  Gn: 'GN',
  Gp: 'GP',
  Gq: 'GQ',
  Gr: 'GR',
  Gs: 'GS',
  Gt: 'GT',
  Gu: 'GU',
  Gw: 'GW',
  Gy: 'GY',
  Hk: 'HK',
  Hm: 'HM',
  Hn: 'HN',
  Hr: 'HR',
  Ht: 'HT',
  Hu: 'HU',
  Id: 'ID',
  Ie: 'IE',
  Il: 'IL',
  Im: 'IM',
  In: 'IN',
  Io: 'IO',
  Iq: 'IQ',
  Ir: 'IR',
  Is: 'IS',
  It: 'IT',
  Je: 'JE',
  Jm: 'JM',
  Jo: 'JO',
  Jp: 'JP',
  Ke: 'KE',
  Kg: 'KG',
  Kh: 'KH',
  Ki: 'KI',
  Km: 'KM',
  Kn: 'KN',
  Kp: 'KP',
  Kr: 'KR',
  Kw: 'KW',
  Ky: 'KY',
  Kz: 'KZ',
  La: 'LA',
  Lb: 'LB',
  Lc: 'LC',
  Li: 'LI',
  Lk: 'LK',
  Lr: 'LR',
  Ls: 'LS',
  Lt: 'LT',
  Lu: 'LU',
  Lv: 'LV',
  Ly: 'LY',
  Ma: 'MA',
  Mc: 'MC',
  Md: 'MD',
  Me: 'ME',
  Mf: 'MF',
  Mg: 'MG',
  Mh: 'MH',
  Mk: 'MK',
  Ml: 'ML',
  Mm: 'MM',
  Mn: 'MN',
  Mo: 'MO',
  Mp: 'MP',
  Mq: 'MQ',
  Mr: 'MR',
  Ms: 'MS',
  Mt: 'MT',
  Mu: 'MU',
  Mv: 'MV',
  Mw: 'MW',
  Mx: 'MX',
  My: 'MY',
  Mz: 'MZ',
  Na: 'NA',
  Nc: 'NC',
  Ne: 'NE',
  Nf: 'NF',
  Ng: 'NG',
  Ni: 'NI',
  Nl: 'NL',
  No: 'NO',
  Np: 'NP',
  Nr: 'NR',
  Nu: 'NU',
  Nz: 'NZ',
  Om: 'OM',
  Pa: 'PA',
  Pe: 'PE',
  Pf: 'PF',
  Pg: 'PG',
  Ph: 'PH',
  Pk: 'PK',
  Pl: 'PL',
  Pm: 'PM',
  Pn: 'PN',
  Pr: 'PR',
  Ps: 'PS',
  Pt: 'PT',
  Pw: 'PW',
  Py: 'PY',
  Qa: 'QA',
  Re: 'RE',
  Ro: 'RO',
  Rs: 'RS',
  Ru: 'RU',
  Rw: 'RW',
  Sa: 'SA',
  Sb: 'SB',
  Sc: 'SC',
  Sd: 'SD',
  Se: 'SE',
  Sg: 'SG',
  Sh: 'SH',
  Si: 'SI',
  Sj: 'SJ',
  Sk: 'SK',
  Sl: 'SL',
  Sm: 'SM',
  Sn: 'SN',
  So: 'SO',
  Sr: 'SR',
  Ss: 'SS',
  St: 'ST',
  Sv: 'SV',
  Sx: 'SX',
  Sy: 'SY',
  Sz: 'SZ',
  Tc: 'TC',
  Td: 'TD',
  Tf: 'TF',
  Tg: 'TG',
  Th: 'TH',
  Tj: 'TJ',
  Tk: 'TK',
  Tl: 'TL',
  Tm: 'TM',
  Tn: 'TN',
  To: 'TO',
  Tr: 'TR',
  Tt: 'TT',
  Tv: 'TV',
  Tw: 'TW',
  Tz: 'TZ',
  Ua: 'UA',
  Ug: 'UG',
  Um: 'UM',
  Us: 'US',
  Uy: 'UY',
  Uz: 'UZ',
  Va: 'VA',
  Vc: 'VC',
  Ve: 'VE',
  Vg: 'VG',
  Vi: 'VI',
  Vn: 'VN',
  Vu: 'VU',
  Wf: 'WF',
  Ws: 'WS',
  Xk: 'XK',
  Ye: 'YE',
  Yt: 'YT',
  Za: 'ZA',
  Zm: 'ZM',
  Zw: 'ZW'
} as const;

export type GreenInvoiceCountry = typeof GreenInvoiceCountry[keyof typeof GreenInvoiceCountry];
/**  discount info  */
export type GreenInvoiceDiscount = {
  __typename?: 'GreenInvoiceDiscount';
  amount: Scalars['Float']['output'];
  type: GreenInvoiceDiscountType;
};

/**  discount input  */
export type GreenInvoiceDiscountInput = {
  amount: Scalars['Float']['input'];
  type: GreenInvoiceDiscountType;
};

/**  discount type enum  */
export const GreenInvoiceDiscountType = {
  Percentage: 'PERCENTAGE',
  Sum: 'SUM'
} as const;

export type GreenInvoiceDiscountType = typeof GreenInvoiceDiscountType[keyof typeof GreenInvoiceDiscountType];
/**  document language enum  */
export const GreenInvoiceDocumentLang = {
  English: 'ENGLISH',
  Hebrew: 'HEBREW'
} as const;

export type GreenInvoiceDocumentLang = typeof GreenInvoiceDocumentLang[keyof typeof GreenInvoiceDocumentLang];
/**  income info  */
export type GreenInvoiceIncome = {
  __typename?: 'GreenInvoiceIncome';
  currency: Currency;
  currencyRate?: Maybe<Scalars['Float']['output']>;
  description: Scalars['String']['output'];
  itemId?: Maybe<Scalars['String']['output']>;
  price: Scalars['Float']['output'];
  quantity: Scalars['Float']['output'];
  vatRate?: Maybe<Scalars['Float']['output']>;
  vatType: GreenInvoiceVatType;
};

/**  link type enum  */
export const GreenInvoiceLinkType = {
  Cancel: 'CANCEL',
  Link: 'LINK'
} as const;

export type GreenInvoiceLinkType = typeof GreenInvoiceLinkType[keyof typeof GreenInvoiceLinkType];
/**  payment info  */
export type GreenInvoicePayment = {
  __typename?: 'GreenInvoicePayment';
  accountId?: Maybe<Scalars['String']['output']>;
  appType?: Maybe<GreenInvoicePaymentAppType>;
  bankAccount?: Maybe<Scalars['String']['output']>;
  bankBranch?: Maybe<Scalars['String']['output']>;
  bankName?: Maybe<Scalars['String']['output']>;
  cardNum?: Maybe<Scalars['String']['output']>;
  cardType?: Maybe<GreenInvoicePaymentCardType>;
  chequeNum?: Maybe<Scalars['String']['output']>;
  currency: Currency;
  currencyRate?: Maybe<Scalars['Float']['output']>;
  date?: Maybe<Scalars['String']['output']>;
  dealType?: Maybe<GreenInvoicePaymentDealType>;
  firstPayment?: Maybe<Scalars['Float']['output']>;
  numPayments?: Maybe<Scalars['Int']['output']>;
  price: Scalars['Float']['output'];
  subType?: Maybe<GreenInvoicePaymentSubType>;
  transactionId?: Maybe<Scalars['String']['output']>;
  type: GreenInvoicePaymentType;
};

/**  payment app type enum  */
export const GreenInvoicePaymentAppType = {
  ApplePay: 'APPLE_PAY',
  Bit: 'BIT',
  Culo: 'CULO',
  GooglePay: 'GOOGLE_PAY',
  Paybox: 'PAYBOX',
  PayByPepper: 'PAY_BY_PEPPER'
} as const;

export type GreenInvoicePaymentAppType = typeof GreenInvoicePaymentAppType[keyof typeof GreenInvoicePaymentAppType];
/**  card type enum  */
export const GreenInvoicePaymentCardType = {
  AmericanExpress: 'AMERICAN_EXPRESS',
  Diners: 'DINERS',
  Isracard: 'ISRACARD',
  Mastercard: 'MASTERCARD',
  Unknown: 'UNKNOWN',
  Visa: 'VISA'
} as const;

export type GreenInvoicePaymentCardType = typeof GreenInvoicePaymentCardType[keyof typeof GreenInvoicePaymentCardType];
/**  deal type enum  */
export const GreenInvoicePaymentDealType = {
  Credit: 'CREDIT',
  Deferred: 'DEFERRED',
  Other: 'OTHER',
  Payments: 'PAYMENTS',
  Recurring: 'RECURRING',
  Standard: 'STANDARD'
} as const;

export type GreenInvoicePaymentDealType = typeof GreenInvoicePaymentDealType[keyof typeof GreenInvoicePaymentDealType];
/**  income input  */
export type GreenInvoicePaymentIncomeInput = {
  amount?: InputMaybe<Scalars['Float']['input']>;
  amountTotal?: InputMaybe<Scalars['Float']['input']>;
  catalogNum?: InputMaybe<Scalars['String']['input']>;
  currency: Currency;
  currencyRate?: InputMaybe<Scalars['Float']['input']>;
  description: Scalars['String']['input'];
  itemId?: InputMaybe<Scalars['String']['input']>;
  price: Scalars['Float']['input'];
  quantity: Scalars['Float']['input'];
  vat?: InputMaybe<Scalars['Float']['input']>;
  vatRate?: InputMaybe<Scalars['Float']['input']>;
  vatType: GreenInvoiceVatType;
};

/**  payment input  */
export type GreenInvoicePaymentInput = {
  accountId?: InputMaybe<Scalars['String']['input']>;
  appType?: InputMaybe<GreenInvoicePaymentAppType>;
  bankAccount?: InputMaybe<Scalars['String']['input']>;
  bankBranch?: InputMaybe<Scalars['String']['input']>;
  bankName?: InputMaybe<Scalars['String']['input']>;
  cardNum?: InputMaybe<Scalars['String']['input']>;
  cardType?: InputMaybe<GreenInvoicePaymentCardType>;
  chequeNum?: InputMaybe<Scalars['String']['input']>;
  currency: Currency;
  currencyRate?: InputMaybe<Scalars['Float']['input']>;
  date?: InputMaybe<Scalars['String']['input']>;
  dealType?: InputMaybe<GreenInvoicePaymentDealType>;
  firstPayment?: InputMaybe<Scalars['Float']['input']>;
  numPayments?: InputMaybe<Scalars['Int']['input']>;
  price: Scalars['Float']['input'];
  subType?: InputMaybe<GreenInvoicePaymentSubType>;
  transactionId?: InputMaybe<Scalars['String']['input']>;
  type: GreenInvoicePaymentType;
};

/**  payment sub type enum  */
export const GreenInvoicePaymentSubType = {
  Bitcoin: 'BITCOIN',
  BuymeVoucher: 'BUYME_VOUCHER',
  Ethereum: 'ETHEREUM',
  GiftCard: 'GIFT_CARD',
  MoneyEqual: 'MONEY_EQUAL',
  NiiEmployeeDeduction: 'NII_EMPLOYEE_DEDUCTION',
  Payoneer: 'PAYONEER',
  VCheck: 'V_CHECK'
} as const;

export type GreenInvoicePaymentSubType = typeof GreenInvoicePaymentSubType[keyof typeof GreenInvoicePaymentSubType];
/**  payment type enum  */
export const GreenInvoicePaymentType = {
  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 GreenInvoicePaymentType = typeof GreenInvoicePaymentType[keyof typeof GreenInvoicePaymentType];
/**  VAT type enum  */
export const GreenInvoiceVatType = {
  Default: 'DEFAULT',
  Exempt: 'EXEMPT',
  Mixed: 'MIXED'
} as const;

export type GreenInvoiceVatType = typeof GreenInvoiceVatType[keyof typeof GreenInvoiceVatType];
/**  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];
/**  income chart information  */
export type IncomeExpenseChart = {
  __typename?: 'IncomeExpenseChart';
  currency: Currency;
  fromDate: Scalars['TimelessDate']['output'];
  monthlyData: Array<IncomeExpenseChartMonthData>;
  toDate: Scalars['TimelessDate']['output'];
};

/**  input variables for incomeExpenseChart filters  */
export type IncomeExpenseChartFilters = {
  currency?: InputMaybe<Currency>;
  fromDate: Scalars['TimelessDate']['input'];
  toDate: Scalars['TimelessDate']['input'];
};

/**  income chart month information  */
export type IncomeExpenseChartMonthData = {
  __typename?: 'IncomeExpenseChartMonthData';
  balance: FinancialAmount;
  date: Scalars['TimelessDate']['output'];
  expense: FinancialAmount;
  income: FinancialAmount;
};

/**  Business type enum (סוג עסק)  */
export const IndividualOrCompany = {
  /** Company (חברה) */
  Company: 'COMPANY',
  /** Individual (יחיד) */
  Individual: 'INDIVIDUAL'
} as const;

export type IndividualOrCompany = typeof IndividualOrCompany[keyof typeof IndividualOrCompany];
/**  the input for adding an attendee to a business trip  */
export type InsertBusinessTripAttendeeInput = {
  arrivalDate?: InputMaybe<Scalars['TimelessDate']['input']>;
  attendeeId: Scalars['UUID']['input'];
  businessTripId: Scalars['UUID']['input'];
  departureDate?: InputMaybe<Scalars['TimelessDate']['input']>;
};

/**  the input for creating a business trip  */
export type InsertBusinessTripInput = {
  destinationCode?: InputMaybe<Scalars['String']['input']>;
  fromDate?: InputMaybe<Scalars['TimelessDate']['input']>;
  name: Scalars['String']['input'];
  toDate?: InputMaybe<Scalars['TimelessDate']['input']>;
  tripPurpose?: InputMaybe<Scalars['String']['input']>;
};

/**  input variables for insertDepreciationCategory  */
export type InsertDepreciationCategoryInput = {
  name: Scalars['String']['input'];
  percentage: Scalars['Float']['input'];
};

/**  result type for insertDepreciationCategory  */
export type InsertDepreciationCategoryResult = CommonError | DepreciationCategory;

/**  input variables for insertDepreciationRecord  */
export type InsertDepreciationRecordInput = {
  activationDate: Scalars['TimelessDate']['input'];
  amount?: InputMaybe<Scalars['Float']['input']>;
  categoryId: Scalars['UUID']['input'];
  chargeId: Scalars['UUID']['input'];
  currency?: InputMaybe<Currency>;
  type?: InputMaybe<DepreciationType>;
};

/**  result type for insertDepreciationRecord  */
export type InsertDepreciationRecordResult = CommonError | DepreciationRecord;

/**  input variables for insertDocument  */
export type InsertDocumentInput = {
  allocationNumber?: InputMaybe<Scalars['String']['input']>;
  amount?: InputMaybe<FinancialAmountInput>;
  chargeId?: InputMaybe<Scalars['UUID']['input']>;
  creditorId?: InputMaybe<Scalars['UUID']['input']>;
  date?: InputMaybe<Scalars['TimelessDate']['input']>;
  debtorId?: InputMaybe<Scalars['UUID']['input']>;
  documentType?: InputMaybe<DocumentType>;
  exchangeRateOverride?: InputMaybe<Scalars['Float']['input']>;
  file?: InputMaybe<Scalars['URL']['input']>;
  image?: InputMaybe<Scalars['URL']['input']>;
  noVatAmount?: InputMaybe<Scalars['Float']['input']>;
  serialNumber?: InputMaybe<Scalars['String']['input']>;
  vat?: InputMaybe<FinancialAmountInput>;
  vatReportDateOverride?: InputMaybe<Scalars['TimelessDate']['input']>;
};

/**  result type for insertDocument  */
export type InsertDocumentResult = CommonError | InsertDocumentSuccessfulResult;

/**  result type for insertDocument */
export type InsertDocumentSuccessfulResult = {
  __typename?: 'InsertDocumentSuccessfulResult';
  document?: Maybe<Document>;
};

/**  input variables for insertMiscExpense  */
export type InsertMiscExpenseInput = {
  amount: Scalars['Float']['input'];
  creditorId: Scalars['UUID']['input'];
  currency: Currency;
  debtorId: Scalars['UUID']['input'];
  description?: InputMaybe<Scalars['String']['input']>;
  invoiceDate: Scalars['TimelessDate']['input'];
  valueDate: Scalars['DateTime']['input'];
};

/**  input for insertNewBusiness  */
export type InsertNewBusinessInput = {
  address?: InputMaybe<Scalars['String']['input']>;
  country?: InputMaybe<Scalars['String']['input']>;
  email?: InputMaybe<Scalars['String']['input']>;
  exemptDealer?: InputMaybe<Scalars['Boolean']['input']>;
  governmentId?: InputMaybe<Scalars['String']['input']>;
  hebrewName?: InputMaybe<Scalars['String']['input']>;
  irsCode?: InputMaybe<Scalars['Int']['input']>;
  name: Scalars['String']['input'];
  optionalVAT?: InputMaybe<Scalars['Boolean']['input']>;
  pcn874RecordType?: InputMaybe<Pcn874RecordType>;
  phoneNumber?: InputMaybe<Scalars['String']['input']>;
  sortCode?: InputMaybe<Scalars['Int']['input']>;
  suggestions?: InputMaybe<SuggestionsInput>;
  taxCategory?: InputMaybe<Scalars['UUID']['input']>;
  website?: InputMaybe<Scalars['String']['input']>;
};

/**  result type for insertSalaryRecord  */
export type InsertSalaryRecordsResult = CommonError | InsertSalaryRecordsSuccessfulResult;

/**  result type for insertSalaryRecord */
export type InsertSalaryRecordsSuccessfulResult = {
  __typename?: 'InsertSalaryRecordsSuccessfulResult';
  salaryRecords: Array<Salary>;
};

/**  input for insertTaxCategory  */
export type InsertTaxCategoryInput = {
  hashavshevetName?: InputMaybe<Scalars['String']['input']>;
  irsCode?: InputMaybe<Scalars['Int']['input']>;
  name: Scalars['String']['input'];
  sortCode?: InputMaybe<Scalars['Int']['input']>;
  taxExcluded?: InputMaybe<Scalars['Boolean']['input']>;
};

/**  charge of internal transfer  */
export type InternalTransferCharge = Charge & {
  __typename?: 'InternalTransferCharge';
  accountantApproval: AccountantStatus;
  additionalDocuments: Array<Document>;
  conversion?: Maybe<Scalars['Boolean']['output']>;
  counterparty?: Maybe<FinancialEntity>;
  exchangeRates?: Maybe<ExchangeRates>;
  id: Scalars['UUID']['output'];
  isInvoicePaymentDifferentCurrency?: Maybe<Scalars['Boolean']['output']>;
  ledger: Ledger;
  metadata?: Maybe<ChargeMetadata>;
  minDebitDate?: Maybe<Scalars['DateTime']['output']>;
  minDocumentsDate?: Maybe<Scalars['DateTime']['output']>;
  minEventDate?: Maybe<Scalars['DateTime']['output']>;
  miscExpenses: Array<MiscExpense>;
  missingInfoSuggestions?: Maybe<ChargeSuggestions>;
  optionalDocuments?: Maybe<Scalars['Boolean']['output']>;
  optionalVAT?: Maybe<Scalars['Boolean']['output']>;
  owner: Business;
  property?: Maybe<Scalars['Boolean']['output']>;
  salary?: Maybe<Scalars['Boolean']['output']>;
  tags: Array<Tag>;
  taxCategory?: Maybe<TaxCategory>;
  totalAmount?: Maybe<FinancialAmount>;
  transactions: Array<Transaction>;
  userDescription?: Maybe<Scalars['String']['output']>;
  validationData?: Maybe<ValidationData>;
  vat?: Maybe<FinancialAmount>;
  withholdingTax?: Maybe<FinancialAmount>;
  yearsOfRelevance?: Maybe<Array<YearOfRelevance>>;
};

/**  invoice document  */
export type Invoice = Document & FinancialDocument & Linkable & {
  __typename?: 'Invoice';
  allocationNumber?: Maybe<Scalars['String']['output']>;
  amount?: Maybe<FinancialAmount>;
  charge?: Maybe<Charge>;
  creditor?: Maybe<FinancialEntity>;
  date?: Maybe<Scalars['TimelessDate']['output']>;
  debtor?: Maybe<FinancialEntity>;
  documentType?: Maybe<DocumentType>;
  exchangeRateOverride?: Maybe<Scalars['Float']['output']>;
  file?: Maybe<Scalars['URL']['output']>;
  id: Scalars['UUID']['output'];
  image?: Maybe<Scalars['URL']['output']>;
  isReviewed?: Maybe<Scalars['Boolean']['output']>;
  issuedDocumentInfo?: Maybe<IssuedDocumentInfo>;
  missingInfoSuggestions?: Maybe<DocumentSuggestions>;
  noVatAmount?: Maybe<Scalars['Float']['output']>;
  serialNumber?: Maybe<Scalars['String']['output']>;
  vat?: Maybe<FinancialAmount>;
  vatReportDateOverride?: Maybe<Scalars['TimelessDate']['output']>;
};

/**  Invoice receipt document - חשבונית מס קבלה  */
export type InvoiceReceipt = Document & FinancialDocument & Linkable & {
  __typename?: 'InvoiceReceipt';
  allocationNumber?: Maybe<Scalars['String']['output']>;
  amount?: Maybe<FinancialAmount>;
  charge?: Maybe<Charge>;
  creditor?: Maybe<FinancialEntity>;
  date?: Maybe<Scalars['TimelessDate']['output']>;
  debtor?: Maybe<FinancialEntity>;
  documentType?: Maybe<DocumentType>;
  exchangeRateOverride?: Maybe<Scalars['Float']['output']>;
  file?: Maybe<Scalars['URL']['output']>;
  id: Scalars['UUID']['output'];
  image?: Maybe<Scalars['URL']['output']>;
  isReviewed?: Maybe<Scalars['Boolean']['output']>;
  issuedDocumentInfo?: Maybe<IssuedDocumentInfo>;
  missingInfoSuggestions?: Maybe<DocumentSuggestions>;
  noVatAmount?: Maybe<Scalars['Float']['output']>;
  serialNumber?: Maybe<Scalars['String']['output']>;
  vat?: Maybe<FinancialAmount>;
  vatReportDateOverride?: Maybe<Scalars['TimelessDate']['output']>;
};

/**  Information about an issued document in the external system  */
export type IssuedDocumentInfo = {
  __typename?: 'IssuedDocumentInfo';
  /**  ID of the issued document in the external system  */
  externalId: Scalars['String']['output'];
  id: Scalars['ID']['output'];
  linkedDocuments?: Maybe<Array<FinancialDocument>>;
  originalDocument?: Maybe<NewDocumentInfo>;
  /**  Status of the issued document in the external system  */
  status: DocumentStatus;
};

/**  array of ledger records linked to the charge  */
export type Ledger = {
  __typename?: 'Ledger';
  balance?: Maybe<LedgerBalanceInfo>;
  records: Array<LedgerRecord>;
  validate: LedgerValidation;
};

/**  info about ledger total balance  */
export type LedgerBalanceInfo = {
  __typename?: 'LedgerBalanceInfo';
  isBalanced: Scalars['Boolean']['output'];
  unbalancedEntities: Array<LedgerBalanceUnbalancedEntity>;
};

/**  unbalanced entity over ledger records  */
export type LedgerBalanceUnbalancedEntity = {
  __typename?: 'LedgerBalanceUnbalancedEntity';
  balance: FinancialAmount;
  entity: FinancialEntity;
};

/**  represent atomic movement of funds  */
export type LedgerRecord = {
  __typename?: 'LedgerRecord';
  creditAccount1?: Maybe<FinancialEntity>;
  creditAccount2?: Maybe<FinancialEntity>;
  creditAmount1?: Maybe<FinancialAmount>;
  creditAmount2?: Maybe<FinancialAmount>;
  debitAccount1?: Maybe<FinancialEntity>;
  debitAccount2?: Maybe<FinancialEntity>;
  debitAmount1?: Maybe<FinancialAmount>;
  debitAmount2?: Maybe<FinancialAmount>;
  description?: Maybe<Scalars['String']['output']>;
  id: Scalars['UUID']['output'];
  invoiceDate: Scalars['DateTime']['output'];
  localCurrencyCreditAmount1: FinancialAmount;
  localCurrencyCreditAmount2?: Maybe<FinancialAmount>;
  localCurrencyDebitAmount1: FinancialAmount;
  localCurrencyDebitAmount2?: Maybe<FinancialAmount>;
  reference?: Maybe<Scalars['String']['output']>;
  valueDate: Scalars['DateTime']['output'];
};

/**  ledger validation info */
export type LedgerValidation = {
  __typename?: 'LedgerValidation';
  differences: Array<LedgerRecord>;
  errors: Array<Scalars['String']['output']>;
  isValid: Scalars['Boolean']['output'];
  matches: Array<Scalars['UUID']['output']>;
};

/**  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];
/**  represent a link to an external file  */
export type Linkable = {
  file?: Maybe<Scalars['URL']['output']>;
};

/**  Financial entity, identifier by ID, can be a company or individual  */
export type LtdFinancialEntity = Business & FinancialEntity & {
  __typename?: 'LtdFinancialEntity';
  accounts: Array<FinancialAccount>;
  address?: Maybe<Scalars['String']['output']>;
  charges: PaginatedCharges;
  country: Scalars['String']['output'];
  email?: Maybe<Scalars['String']['output']>;
  exemptDealer?: Maybe<Scalars['Boolean']['output']>;
  governmentId?: Maybe<Scalars['String']['output']>;
  hebrewName?: Maybe<Scalars['String']['output']>;
  id: Scalars['UUID']['output'];
  irsCode?: Maybe<Scalars['Int']['output']>;
  name: Scalars['String']['output'];
  optionalVAT?: Maybe<Scalars['Boolean']['output']>;
  pcn874RecordType?: Maybe<Pcn874RecordType>;
  phoneNumber?: Maybe<Scalars['String']['output']>;
  sortCode?: Maybe<SortCode>;
  suggestions?: Maybe<Suggestions>;
  taxCategory?: Maybe<TaxCategory>;
  website?: Maybe<Scalars['String']['output']>;
};


/**  Financial entity, identifier by ID, can be a company or individual  */
export type LtdFinancialEntityChargesArgs = {
  filter?: InputMaybe<ChargeFilter>;
  limit?: InputMaybe<Scalars['Int']['input']>;
  page?: InputMaybe<Scalars['Int']['input']>;
};

/**  result type for mergeCharge  */
export type MergeChargeResult = CommonError | MergeChargeSuccessfulResult;

/**  successful result type for mergeCharge  */
export type MergeChargeSuccessfulResult = {
  __typename?: 'MergeChargeSuccessfulResult';
  charge: Charge;
};

/**  result type for mergeChargesByTransactionReference  */
export type MergeChargesByTransactionReferenceResult = {
  __typename?: 'MergeChargesByTransactionReferenceResult';
  charges?: Maybe<Array<Charge>>;
  errors?: Maybe<Array<Scalars['String']['output']>>;
  success: Scalars['Boolean']['output'];
};

/**  a misc expense   */
export type MiscExpense = {
  __typename?: 'MiscExpense';
  amount: FinancialAmount;
  charge: Charge;
  chargeId: Scalars['UUID']['output'];
  creditor: FinancialEntity;
  debtor: FinancialEntity;
  description?: Maybe<Scalars['String']['output']>;
  id: Scalars['UUID']['output'];
  invoiceDate: Scalars['TimelessDate']['output'];
  valueDate: Scalars['DateTime']['output'];
};

/**  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];
/**  charge of monthly VAT payment  */
export type MonthlyVatCharge = Charge & {
  __typename?: 'MonthlyVatCharge';
  accountantApproval: AccountantStatus;
  additionalDocuments: Array<Document>;
  conversion?: Maybe<Scalars['Boolean']['output']>;
  counterparty?: Maybe<FinancialEntity>;
  exchangeRates?: Maybe<ExchangeRates>;
  id: Scalars['UUID']['output'];
  isInvoicePaymentDifferentCurrency?: Maybe<Scalars['Boolean']['output']>;
  ledger: Ledger;
  metadata?: Maybe<ChargeMetadata>;
  minDebitDate?: Maybe<Scalars['DateTime']['output']>;
  minDocumentsDate?: Maybe<Scalars['DateTime']['output']>;
  minEventDate?: Maybe<Scalars['DateTime']['output']>;
  miscExpenses: Array<MiscExpense>;
  missingInfoSuggestions?: Maybe<ChargeSuggestions>;
  optionalDocuments?: Maybe<Scalars['Boolean']['output']>;
  optionalVAT?: Maybe<Scalars['Boolean']['output']>;
  owner: Business;
  property?: Maybe<Scalars['Boolean']['output']>;
  salary?: Maybe<Scalars['Boolean']['output']>;
  tags: Array<Tag>;
  taxCategory?: Maybe<TaxCategory>;
  totalAmount?: Maybe<FinancialAmount>;
  transactions: Array<Transaction>;
  userDescription?: Maybe<Scalars['String']['output']>;
  validationData?: Maybe<ValidationData>;
  vat?: Maybe<FinancialAmount>;
  withholdingTax?: Maybe<FinancialAmount>;
  yearsOfRelevance?: Maybe<Array<YearOfRelevance>>;
};

/**  mutation root  */
export type Mutation = {
  __typename?: 'Mutation';
  addBusinessTripAccommodationsExpense: Scalars['UUID']['output'];
  addBusinessTripCarRentalExpense: Scalars['UUID']['output'];
  addBusinessTripFlightsExpense: Scalars['UUID']['output'];
  addBusinessTripOtherExpense: Scalars['UUID']['output'];
  addBusinessTripTravelAndSubsistenceExpense: Scalars['UUID']['output'];
  addDeelContract: Scalars['Boolean']['output'];
  addSortCode: Scalars['Boolean']['output'];
  addTag: Scalars['Boolean']['output'];
  batchGenerateBusinessesOutOfTransactions: Array<Business>;
  batchUpdateCharges: BatchUpdateChargesResult;
  batchUploadDocuments: Array<UploadDocumentResult>;
  batchUploadDocumentsFromGoogleDrive: Array<UploadDocumentResult>;
  calculateCreditcardTransactionsDebitDate: Scalars['Boolean']['output'];
  categorizeBusinessTripExpense: Scalars['UUID']['output'];
  categorizeIntoExistingBusinessTripExpense: Scalars['UUID']['output'];
  closeDocument: Scalars['Boolean']['output'];
  creditShareholdersBusinessTripTravelAndSubsistence: Array<Scalars['UUID']['output']>;
  deleteBusinessTripAttendee: Scalars['Boolean']['output'];
  deleteBusinessTripExpense: Scalars['Boolean']['output'];
  deleteCharge: Scalars['Boolean']['output'];
  deleteDepreciationCategory: Scalars['Boolean']['output'];
  deleteDepreciationRecord: Scalars['Boolean']['output'];
  deleteDocument: Scalars['Boolean']['output'];
  deleteDynamicReportTemplate: Scalars['String']['output'];
  deleteMiscExpense: Scalars['Boolean']['output'];
  deleteTag: Scalars['Boolean']['output'];
  fetchDeelDocuments: Scalars['Boolean']['output'];
  fetchIncomeDocuments: Array<Document>;
  flagForeignFeeTransactions: FlagForeignFeeTransactionsResult;
  generateBalanceCharge: FinancialCharge;
  generateBankDepositsRevaluationCharge: FinancialCharge;
  generateDepreciationCharge: FinancialCharge;
  generateFinancialCharges: FinancialChargesGenerationResult;
  generateRecoveryReserveCharge: FinancialCharge;
  generateRevaluationCharge: FinancialCharge;
  generateTaxExpensesCharge: FinancialCharge;
  generateVacationReserveCharge: FinancialCharge;
  insertBusinessTrip: Scalars['UUID']['output'];
  insertBusinessTripAttendee: Scalars['UUID']['output'];
  insertDepreciationCategory: InsertDepreciationCategoryResult;
  insertDepreciationRecord: InsertDepreciationRecordResult;
  insertDocument: InsertDocumentResult;
  insertDynamicReportTemplate: DynamicReportInfo;
  insertMiscExpense: MiscExpense;
  insertMiscExpenses: Charge;
  insertNewBusiness: UpdateBusinessResponse;
  insertOrUpdateSalaryRecords: InsertSalaryRecordsResult;
  insertSalaryRecords: InsertSalaryRecordsResult;
  insertSalaryRecordsFromFile: Scalars['Boolean']['output'];
  insertTaxCategory: TaxCategory;
  issueGreenInvoiceDocument: Charge;
  issueGreenInvoiceDocuments: GenerateMonthlyClientDocumentsResult;
  lockLedgerRecords: Scalars['Boolean']['output'];
  mergeBusinesses: Business;
  mergeCharges: MergeChargeResult;
  mergeChargesByTransactionReference: MergeChargesByTransactionReferenceResult;
  pong?: Maybe<Scalars['Boolean']['output']>;
  previewGreenInvoiceDocument: Scalars['FileScalar']['output'];
  regenerateLedgerRecords: GeneratedLedgerRecords;
  uncategorizePartialBusinessTripExpense: Scalars['Boolean']['output'];
  updateBusiness: UpdateBusinessResponse;
  updateBusinessTrip: Scalars['UUID']['output'];
  updateBusinessTripAccommodationsExpense: Scalars['UUID']['output'];
  updateBusinessTripAccountantApproval: AccountantStatus;
  updateBusinessTripAttendee: Scalars['UUID']['output'];
  updateBusinessTripCarRentalExpense: Scalars['UUID']['output'];
  updateBusinessTripFlightsExpense: Scalars['UUID']['output'];
  updateBusinessTripOtherExpense: Scalars['UUID']['output'];
  updateBusinessTripTravelAndSubsistenceExpense: Scalars['UUID']['output'];
  updateCharge: UpdateChargeResult;
  updateChargeAccountantApproval: AccountantStatus;
  updateChargeBusinessTrip?: Maybe<Charge>;
  updateDepreciationCategory: UpdateDepreciationCategoryResult;
  updateDepreciationRecord: UpdateDepreciationRecordResult;
  updateDocument: UpdateDocumentResult;
  updateDynamicReportTemplate: DynamicReportInfo;
  updateDynamicReportTemplateName: DynamicReportInfo;
  updateMiscExpense: MiscExpense;
  updatePcn874: Scalars['Boolean']['output'];
  updateSalaryRecord: UpdateSalaryRecordResult;
  updateShaam6111: Scalars['Boolean']['output'];
  updateSortCode: Scalars['Boolean']['output'];
  updateTag: Scalars['Boolean']['output'];
  updateTagParent: Scalars['Boolean']['output'];
  updateTagPart: Scalars['Boolean']['output'];
  updateTaxCategory: UpdateTaxCategoryResponse;
  updateTransaction: UpdateTransactionResult;
  uploadDocument: UploadDocumentResult;
};


/**  mutation root  */
export type MutationAddBusinessTripAccommodationsExpenseArgs = {
  fields: AddBusinessTripAccommodationsExpenseInput;
};


/**  mutation root  */
export type MutationAddBusinessTripCarRentalExpenseArgs = {
  fields: AddBusinessTripCarRentalExpenseInput;
};


/**  mutation root  */
export type MutationAddBusinessTripFlightsExpenseArgs = {
  fields: AddBusinessTripFlightsExpenseInput;
};


/**  mutation root  */
export type MutationAddBusinessTripOtherExpenseArgs = {
  fields: AddBusinessTripOtherExpenseInput;
};


/**  mutation root  */
export type MutationAddBusinessTripTravelAndSubsistenceExpenseArgs = {
  fields: AddBusinessTripTravelAndSubsistenceExpenseInput;
};


/**  mutation root  */
export type MutationAddDeelContractArgs = {
  businessId: Scalars['UUID']['input'];
  contractId: Scalars['ID']['input'];
  contractStartDate: Scalars['TimelessDate']['input'];
  contractorId: Scalars['UUID']['input'];
  contractorName: Scalars['String']['input'];
};


/**  mutation root  */
export type MutationAddSortCodeArgs = {
  defaultIrsCode?: InputMaybe<Scalars['Int']['input']>;
  key: Scalars['Int']['input'];
  name: Scalars['String']['input'];
};


/**  mutation root  */
export type MutationAddTagArgs = {
  name: Scalars['String']['input'];
  parentId?: InputMaybe<Scalars['UUID']['input']>;
};


/**  mutation root  */
export type MutationBatchUpdateChargesArgs = {
  chargeIds: Array<Scalars['UUID']['input']>;
  fields: UpdateChargeInput;
};


/**  mutation root  */
export type MutationBatchUploadDocumentsArgs = {
  chargeId?: InputMaybe<Scalars['UUID']['input']>;
  documents: Array<Scalars['FileScalar']['input']>;
  isSensitive?: InputMaybe<Scalars['Boolean']['input']>;
};


/**  mutation root  */
export type MutationBatchUploadDocumentsFromGoogleDriveArgs = {
  chargeId?: InputMaybe<Scalars['UUID']['input']>;
  isSensitive?: InputMaybe<Scalars['Boolean']['input']>;
  sharedFolderUrl: Scalars['String']['input'];
};


/**  mutation root  */
export type MutationCategorizeBusinessTripExpenseArgs = {
  fields: CategorizeBusinessTripExpenseInput;
};


/**  mutation root  */
export type MutationCategorizeIntoExistingBusinessTripExpenseArgs = {
  fields: CategorizeIntoExistingBusinessTripExpenseInput;
};


/**  mutation root  */
export type MutationCloseDocumentArgs = {
  id: Scalars['UUID']['input'];
};


/**  mutation root  */
export type MutationCreditShareholdersBusinessTripTravelAndSubsistenceArgs = {
  businessTripId: Scalars['UUID']['input'];
};


/**  mutation root  */
export type MutationDeleteBusinessTripAttendeeArgs = {
  fields: DeleteBusinessTripAttendeeInput;
};


/**  mutation root  */
export type MutationDeleteBusinessTripExpenseArgs = {
  businessTripExpenseId: Scalars['UUID']['input'];
};


/**  mutation root  */
export type MutationDeleteChargeArgs = {
  chargeId: Scalars['UUID']['input'];
};


/**  mutation root  */
export type MutationDeleteDepreciationCategoryArgs = {
  depreciationCategoryId: Scalars['UUID']['input'];
};


/**  mutation root  */
export type MutationDeleteDepreciationRecordArgs = {
  depreciationRecordId: Scalars['UUID']['input'];
};


/**  mutation root  */
export type MutationDeleteDocumentArgs = {
  documentId: Scalars['UUID']['input'];
};


/**  mutation root  */
export type MutationDeleteDynamicReportTemplateArgs = {
  name: Scalars['String']['input'];
};


/**  mutation root  */
export type MutationDeleteMiscExpenseArgs = {
  id: Scalars['UUID']['input'];
};


/**  mutation root  */
export type MutationDeleteTagArgs = {
  id: Scalars['UUID']['input'];
};


/**  mutation root  */
export type MutationFetchIncomeDocumentsArgs = {
  ownerId: Scalars['UUID']['input'];
  singlePageLimit?: InputMaybe<Scalars['Boolean']['input']>;
};


/**  mutation root  */
export type MutationGenerateBalanceChargeArgs = {
  balanceRecords: Array<InsertMiscExpenseInput>;
  description: Scalars['String']['input'];
};


/**  mutation root  */
export type MutationGenerateBankDepositsRevaluationChargeArgs = {
  date: Scalars['TimelessDate']['input'];
  ownerId: Scalars['UUID']['input'];
};


/**  mutation root  */
export type MutationGenerateDepreciationChargeArgs = {
  ownerId: Scalars['UUID']['input'];
  year: Scalars['TimelessDate']['input'];
};


/**  mutation root  */
export type MutationGenerateFinancialChargesArgs = {
  date: Scalars['TimelessDate']['input'];
  ownerId: Scalars['UUID']['input'];
};


/**  mutation root  */
export type MutationGenerateRecoveryReserveChargeArgs = {
  ownerId: Scalars['UUID']['input'];
  year: Scalars['TimelessDate']['input'];
};


/**  mutation root  */
export type MutationGenerateRevaluationChargeArgs = {
  date: Scalars['TimelessDate']['input'];
  ownerId: Scalars['UUID']['input'];
};


/**  mutation root  */
export type MutationGenerateTaxExpensesChargeArgs = {
  ownerId: Scalars['UUID']['input'];
  year: Scalars['TimelessDate']['input'];
};


/**  mutation root  */
export type MutationGenerateVacationReserveChargeArgs = {
  ownerId: Scalars['UUID']['input'];
  year: Scalars['TimelessDate']['input'];
};


/**  mutation root  */
export type MutationInsertBusinessTripArgs = {
  fields: InsertBusinessTripInput;
};


/**  mutation root  */
export type MutationInsertBusinessTripAttendeeArgs = {
  fields: InsertBusinessTripAttendeeInput;
};


/**  mutation root  */
export type MutationInsertDepreciationCategoryArgs = {
  input: InsertDepreciationCategoryInput;
};


/**  mutation root  */
export type MutationInsertDepreciationRecordArgs = {
  input: InsertDepreciationRecordInput;
};


/**  mutation root  */
export type MutationInsertDocumentArgs = {
  record: InsertDocumentInput;
};


/**  mutation root  */
export type MutationInsertDynamicReportTemplateArgs = {
  name: Scalars['String']['input'];
  template: Scalars['String']['input'];
};


/**  mutation root  */
export type MutationInsertMiscExpenseArgs = {
  chargeId: Scalars['UUID']['input'];
  fields: InsertMiscExpenseInput;
};


/**  mutation root  */
export type MutationInsertMiscExpensesArgs = {
  chargeId: Scalars['UUID']['input'];
  expenses: Array<InsertMiscExpenseInput>;
};


/**  mutation root  */
export type MutationInsertNewBusinessArgs = {
  fields: InsertNewBusinessInput;
};


/**  mutation root  */
export type MutationInsertOrUpdateSalaryRecordsArgs = {
  salaryRecords: Array<SalaryRecordInput>;
};


/**  mutation root  */
export type MutationInsertSalaryRecordsArgs = {
  salaryRecords: Array<SalaryRecordInput>;
};


/**  mutation root  */
export type MutationInsertSalaryRecordsFromFileArgs = {
  chargeId: Scalars['UUID']['input'];
  file: Scalars['FileScalar']['input'];
};


/**  mutation root  */
export type MutationInsertTaxCategoryArgs = {
  fields: InsertTaxCategoryInput;
};


/**  mutation root  */
export type MutationIssueGreenInvoiceDocumentArgs = {
  attachment?: InputMaybe<Scalars['Boolean']['input']>;
  chargeId?: InputMaybe<Scalars['UUID']['input']>;
  emailContent?: InputMaybe<Scalars['String']['input']>;
  input: NewDocumentInput;
  sendEmail?: InputMaybe<Scalars['Boolean']['input']>;
};


/**  mutation root  */
export type MutationIssueGreenInvoiceDocumentsArgs = {
  generateDocumentsInfo: Array<NewDocumentInput>;
};


/**  mutation root  */
export type MutationLockLedgerRecordsArgs = {
  date: Scalars['TimelessDate']['input'];
};


/**  mutation root  */
export type MutationMergeBusinessesArgs = {
  businessIdsToMerge: Array<Scalars['UUID']['input']>;
  targetBusinessId: Scalars['UUID']['input'];
};


/**  mutation root  */
export type MutationMergeChargesArgs = {
  baseChargeID: Scalars['UUID']['input'];
  chargeIdsToMerge: Array<Scalars['UUID']['input']>;
  fields?: InputMaybe<UpdateChargeInput>;
};


/**  mutation root  */
export type MutationPreviewGreenInvoiceDocumentArgs = {
  input: NewDocumentInput;
};


/**  mutation root  */
export type MutationRegenerateLedgerRecordsArgs = {
  chargeId: Scalars['UUID']['input'];
};


/**  mutation root  */
export type MutationUncategorizePartialBusinessTripExpenseArgs = {
  businessTripExpenseId: Scalars['UUID']['input'];
  transactionId: Scalars['UUID']['input'];
};


/**  mutation root  */
export type MutationUpdateBusinessArgs = {
  businessId: Scalars['UUID']['input'];
  fields: UpdateBusinessInput;
  ownerId: Scalars['UUID']['input'];
};


/**  mutation root  */
export type MutationUpdateBusinessTripArgs = {
  fields: UpdateBusinessTripInput;
};


/**  mutation root  */
export type MutationUpdateBusinessTripAccommodationsExpenseArgs = {
  fields: UpdateBusinessTripAccommodationsExpenseInput;
};


/**  mutation root  */
export type MutationUpdateBusinessTripAccountantApprovalArgs = {
  approvalStatus: AccountantStatus;
  businessTripId: Scalars['UUID']['input'];
};


/**  mutation root  */
export type MutationUpdateBusinessTripAttendeeArgs = {
  fields: BusinessTripAttendeeUpdateInput;
};


/**  mutation root  */
export type MutationUpdateBusinessTripCarRentalExpenseArgs = {
  fields: UpdateBusinessTripCarRentalExpenseInput;
};


/**  mutation root  */
export type MutationUpdateBusinessTripFlightsExpenseArgs = {
  fields: UpdateBusinessTripFlightsExpenseInput;
};


/**  mutation root  */
export type MutationUpdateBusinessTripOtherExpenseArgs = {
  fields: UpdateBusinessTripOtherExpenseInput;
};


/**  mutation root  */
export type MutationUpdateBusinessTripTravelAndSubsistenceExpenseArgs = {
  fields: UpdateBusinessTripTravelAndSubsistenceExpenseInput;
};


/**  mutation root  */
export type MutationUpdateChargeArgs = {
  chargeId: Scalars['UUID']['input'];
  fields: UpdateChargeInput;
};


/**  mutation root  */
export type MutationUpdateChargeAccountantApprovalArgs = {
  approvalStatus: AccountantStatus;
  chargeId: Scalars['UUID']['input'];
};


/**  mutation root  */
export type MutationUpdateChargeBusinessTripArgs = {
  businessTripId?: InputMaybe<Scalars['UUID']['input']>;
  chargeId: Scalars['UUID']['input'];
};


/**  mutation root  */
export type MutationUpdateDepreciationCategoryArgs = {
  input: UpdateDepreciationCategoryInput;
};


/**  mutation root  */
export type MutationUpdateDepreciationRecordArgs = {
  input: UpdateDepreciationRecordInput;
};


/**  mutation root  */
export type MutationUpdateDocumentArgs = {
  documentId: Scalars['UUID']['input'];
  fields: UpdateDocumentFieldsInput;
};


/**  mutation root  */
export type MutationUpdateDynamicReportTemplateArgs = {
  name: Scalars['String']['input'];
  template: Scalars['String']['input'];
};


/**  mutation root  */
export type MutationUpdateDynamicReportTemplateNameArgs = {
  name: Scalars['String']['input'];
  newName: Scalars['String']['input'];
};


/**  mutation root  */
export type MutationUpdateMiscExpenseArgs = {
  fields: UpdateMiscExpenseInput;
  id: Scalars['UUID']['input'];
};


/**  mutation root  */
export type MutationUpdatePcn874Args = {
  businessId?: InputMaybe<Scalars['UUID']['input']>;
  content: Scalars['String']['input'];
  monthDate: Scalars['TimelessDate']['input'];
};


/**  mutation root  */
export type MutationUpdateSalaryRecordArgs = {
  salaryRecord: SalaryRecordEditInput;
};


/**  mutation root  */
export type MutationUpdateShaam6111Args = {
  businessId?: InputMaybe<Scalars['UUID']['input']>;
  content: Scalars['String']['input'];
  year: Scalars['Int']['input'];
};


/**  mutation root  */
export type MutationUpdateSortCodeArgs = {
  fields: UpdateSortCodeFieldsInput;
  key: Scalars['Int']['input'];
};


/**  mutation root  */
export type MutationUpdateTagArgs = {
  fields: UpdateTagFieldsInput;
  id: Scalars['UUID']['input'];
};


/**  mutation root  */
export type MutationUpdateTagParentArgs = {
  id: Scalars['UUID']['input'];
  parentId?: InputMaybe<Scalars['UUID']['input']>;
};


/**  mutation root  */
export type MutationUpdateTagPartArgs = {
  chargeId: Scalars['UUID']['input'];
  part: Scalars['Float']['input'];
  tagId: Scalars['UUID']['input'];
};


/**  mutation root  */
export type MutationUpdateTaxCategoryArgs = {
  fields: UpdateTaxCategoryInput;
  taxCategoryId: Scalars['UUID']['input'];
};


/**  mutation root  */
export type MutationUpdateTransactionArgs = {
  fields: UpdateTransactionInput;
  transactionId: Scalars['UUID']['input'];
};


/**  mutation root  */
export type MutationUploadDocumentArgs = {
  chargeId?: InputMaybe<Scalars['UUID']['input']>;
  file: Scalars['FileScalar']['input'];
};

/**  for previewing/issuing document  */
export type NewDocumentInfo = {
  __typename?: 'NewDocumentInfo';
  client?: Maybe<GreenInvoiceClient>;
  currency: Currency;
  date?: Maybe<Scalars['String']['output']>;
  description?: Maybe<Scalars['String']['output']>;
  discount?: Maybe<GreenInvoiceDiscount>;
  dueDate?: Maybe<Scalars['String']['output']>;
  footer?: Maybe<Scalars['String']['output']>;
  income?: Maybe<Array<GreenInvoiceIncome>>;
  lang: GreenInvoiceDocumentLang;
  linkType?: Maybe<GreenInvoiceLinkType>;
  linkedDocumentIds?: Maybe<Array<Scalars['String']['output']>>;
  linkedPaymentId?: Maybe<Scalars['String']['output']>;
  maxPayments?: Maybe<Scalars['Int']['output']>;
  payment?: Maybe<Array<GreenInvoicePayment>>;
  remarks?: Maybe<Scalars['String']['output']>;
  rounding?: Maybe<Scalars['Boolean']['output']>;
  signed?: Maybe<Scalars['Boolean']['output']>;
  type: DocumentType;
  vatType: GreenInvoiceVatType;
};

/**  input for previewing document  */
export type NewDocumentInput = {
  client?: InputMaybe<GreenInvoiceClientInput>;
  currency: Currency;
  date?: InputMaybe<Scalars['String']['input']>;
  description?: InputMaybe<Scalars['String']['input']>;
  discount?: InputMaybe<GreenInvoiceDiscountInput>;
  dueDate?: InputMaybe<Scalars['String']['input']>;
  footer?: InputMaybe<Scalars['String']['input']>;
  income?: InputMaybe<Array<GreenInvoicePaymentIncomeInput>>;
  lang: GreenInvoiceDocumentLang;
  linkType?: InputMaybe<GreenInvoiceLinkType>;
  linkedDocumentIds?: InputMaybe<Array<Scalars['String']['input']>>;
  linkedPaymentId?: InputMaybe<Scalars['String']['input']>;
  maxPayments?: InputMaybe<Scalars['Int']['input']>;
  payment?: InputMaybe<Array<GreenInvoicePaymentInput>>;
  remarks?: InputMaybe<Scalars['String']['input']>;
  rounding?: InputMaybe<Scalars['Boolean']['input']>;
  signed?: InputMaybe<Scalars['Boolean']['input']>;
  type: DocumentType;
  vatType: GreenInvoiceVatType;
};

/**  processed non-financial document  */
export type OtherDocument = Document & Linkable & {
  __typename?: 'OtherDocument';
  charge?: Maybe<Charge>;
  documentType?: Maybe<DocumentType>;
  file?: Maybe<Scalars['URL']['output']>;
  id: Scalars['UUID']['output'];
  image?: Maybe<Scalars['URL']['output']>;
  isReviewed?: Maybe<Scalars['Boolean']['output']>;
};

/**  result type for pcnFile  */
export type PcnFileResult = {
  __typename?: 'PCNFileResult';
  fileName: Scalars['String']['output'];
  reportContent: Scalars['String']['output'];
};

/**  config options for generatePCN  */
export type PcnOptionsInput = {
  strict?: InputMaybe<Scalars['Boolean']['input']>;
};

/**  meta info for page pagination  */
export type PageInfo = {
  __typename?: 'PageInfo';
  currentPage?: Maybe<Scalars['Int']['output']>;
  pageSize?: Maybe<Scalars['Int']['output']>;
  totalPages: Scalars['Int']['output'];
};

/**  response for paginated Financial Entities  */
export type PaginatedBusinesses = {
  __typename?: 'PaginatedBusinesses';
  nodes: Array<Business>;
  pageInfo: PageInfo;
};

/**  response for paginated charges  */
export type PaginatedCharges = {
  __typename?: 'PaginatedCharges';
  nodes: Array<Charge>;
  pageInfo: PageInfo;
};

/**  response for paginated Financial Entities  */
export type PaginatedFinancialEntities = {
  __typename?: 'PaginatedFinancialEntities';
  nodes: Array<FinancialEntity>;
  pageInfo: PageInfo;
};

/**  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];
/**  record of PCN874 report  */
export type Pcn874Records = {
  __typename?: 'Pcn874Records';
  business: Business;
  content: Scalars['String']['output'];
  date: Scalars['TimelessDate']['output'];
  diffContent?: Maybe<Scalars['String']['output']>;
  id: Scalars['ID']['output'];
};

/**  represent pension fund */
export type PensionFund = Fund & {
  __typename?: 'PensionFund';
  id: Scalars['UUID']['output'];
  name: Scalars['String']['output'];
};

/**  Financial entity, identifier by ID, represents an actual person  */
export type PersonalFinancialEntity = Business & FinancialEntity & {
  __typename?: 'PersonalFinancialEntity';
  accounts: Array<FinancialAccount>;
  charges: PaginatedCharges;
  email: Scalars['String']['output'];
  id: Scalars['UUID']['output'];
  irsCode?: Maybe<Scalars['Int']['output']>;
  name: Scalars['String']['output'];
  pcn874RecordType?: Maybe<Pcn874RecordType>;
  sortCode?: Maybe<SortCode>;
};


/**  Financial entity, identifier by ID, represents an actual person  */
export type PersonalFinancialEntityChargesArgs = {
  filter?: InputMaybe<ChargeFilter>;
  limit?: InputMaybe<Scalars['Int']['input']>;
  page?: InputMaybe<Scalars['Int']['input']>;
};

/**  contract products  */
export const Product = {
  Hive: 'HIVE',
  Stellate: 'STELLATE'
} as const;

export type Product = typeof Product[keyof typeof Product];
/**  result type for profitAndLossReport  */
export type ProfitAndLossReport = {
  __typename?: 'ProfitAndLossReport';
  id: Scalars['ID']['output'];
  reference: Array<ProfitAndLossReportYear>;
  report: ProfitAndLossReportYear;
};

/**  profit and loss data for a single year  */
export type ProfitAndLossReportYear = {
  __typename?: 'ProfitAndLossReportYear';
  costOfSales: ReportCommentary;
  financialExpenses: ReportCommentary;
  grossProfit: FinancialAmount;
  id: Scalars['ID']['output'];
  managementAndGeneralExpenses: ReportCommentary;
  marketingExpenses: ReportCommentary;
  netProfit: FinancialAmount;
  operatingProfit: FinancialAmount;
  otherIncome: ReportCommentary;
  profitBeforeTax: FinancialAmount;
  researchAndDevelopmentExpenses: ReportCommentary;
  revenue: ReportCommentary;
  tax: FinancialAmount;
  year: Scalars['Int']['output'];
};

/**  proforma document  */
export type Proforma = Document & FinancialDocument & Linkable & {
  __typename?: 'Proforma';
  allocationNumber?: Maybe<Scalars['String']['output']>;
  amount?: Maybe<FinancialAmount>;
  charge?: Maybe<Charge>;
  creditor?: Maybe<FinancialEntity>;
  date?: Maybe<Scalars['TimelessDate']['output']>;
  debtor?: Maybe<FinancialEntity>;
  documentType?: Maybe<DocumentType>;
  exchangeRateOverride?: Maybe<Scalars['Float']['output']>;
  file?: Maybe<Scalars['URL']['output']>;
  id: Scalars['UUID']['output'];
  image?: Maybe<Scalars['URL']['output']>;
  isReviewed?: Maybe<Scalars['Boolean']['output']>;
  issuedDocumentInfo?: Maybe<IssuedDocumentInfo>;
  missingInfoSuggestions?: Maybe<DocumentSuggestions>;
  noVatAmount?: Maybe<Scalars['Float']['output']>;
  serialNumber?: Maybe<Scalars['String']['output']>;
  vat?: Maybe<FinancialAmount>;
  vatReportDateOverride?: Maybe<Scalars['TimelessDate']['output']>;
};

/**  query root  */
export type Query = {
  __typename?: 'Query';
  accountantApprovalStatus: AccountantApprovalStatus;
  adminBusiness: AdminBusiness;
  allAdminBusinesses: Array<AdminBusiness>;
  allBusinessTrips: Array<BusinessTrip>;
  allBusinesses?: Maybe<PaginatedBusinesses>;
  allCharges: PaginatedCharges;
  allClients: Array<Client>;
  allCountries: Array<Country>;
  allDynamicReports: Array<DynamicReportInfo>;
  allFinancialAccounts: Array<FinancialAccount>;
  /**  TODO: This is temporary, should be replaced after auth and financial entities hierarchy is implemented  */
  allFinancialEntities?: Maybe<PaginatedFinancialEntities>;
  allOpenContracts: Array<Contract>;
  allPensionFunds: Array<PensionFund>;
  allSortCodes: Array<SortCode>;
  allTags: Array<Tag>;
  allTrainingFunds: Array<TrainingFund>;
  business: Business;
  businessTransactionsFromLedgerRecords: BusinessTransactionsFromLedgerRecordsResult;
  businessTransactionsSumFromLedgerRecords: BusinessTransactionsSumFromLedgerRecordsResult;
  businessTrip?: Maybe<BusinessTrip>;
  businesses: Array<Business>;
  charge: Charge;
  chargesByIDs: Array<Charge>;
  chargesWithLedgerChanges: Array<ChargesWithLedgerChangesResult>;
  chargesWithMissingRequiredInfo: PaginatedCharges;
  client: Client;
  clientMonthlyChargeDraft: NewDocumentInfo;
  clientMonthlyChargesDrafts: Array<NewDocumentInfo>;
  corporateTaxByDate: CorporateTax;
  corporateTaxRulingComplianceReport: Array<CorporateTaxRulingComplianceReport>;
  deposit: BankDeposit;
  depositByCharge: BankDeposit;
  depreciationCategories: Array<DepreciationCategory>;
  depreciationRecordsByCharge: Array<DepreciationRecord>;
  depreciationReport: DepreciationReportResult;
  documentById?: Maybe<Document>;
  documents: Array<Document>;
  documentsByFilters: Array<Document>;
  dynamicReport: DynamicReportInfo;
  employeesByEmployerId: Array<Employee>;
  /**  get exchage rates by date  */
  exchangeRates?: Maybe<ExchangeRates>;
  financialEntity: FinancialEntity;
  incomeExpenseChart: IncomeExpenseChart;
  ledgerRecordsByDates: Array<LedgerRecord>;
  miscExpensesByCharge: Array<MiscExpense>;
  newDocumentInfoDraftByCharge: NewDocumentInfo;
  newDocumentInfoDraftByDocument: NewDocumentInfo;
  pcnByDate: Array<Pcn874Records>;
  pcnFile: PcnFileResult;
  ping?: Maybe<Scalars['Boolean']['output']>;
  profitAndLossReport: ProfitAndLossReport;
  recentDocumentsByClient: Array<Document>;
  recentIssuedDocumentsByType: Array<Document>;
  salaryRecordsByCharge: Array<Salary>;
  salaryRecordsByDates: Array<Salary>;
  shaam6111: Shaam6111Report;
  shaam6111ByYear: Array<Shaam6111Report>;
  /**  get similar charges  */
  similarCharges: Array<Charge>;
  similarChargesByBusiness: Array<Charge>;
  /**  get similar transactions  */
  similarTransactions: Array<Transaction>;
  sortCode?: Maybe<SortCode>;
  taxCategories: Array<TaxCategory>;
  taxCategory: TaxCategory;
  taxCategoryByBusinessId?: Maybe<TaxCategory>;
  taxReport: TaxReport;
  transactionsByIDs: Array<Transaction>;
  transactionsForBalanceReport: Array<BalanceTransactions>;
  uniformFormat?: Maybe<UniformFormat>;
  userContext?: Maybe<UserContext>;
  vatReport: VatReportResult;
  yearlyLedgerReport: YearlyLedgerReport;
};


/**  query root  */
export type QueryAccountantApprovalStatusArgs = {
  from: Scalars['TimelessDate']['input'];
  to: Scalars['TimelessDate']['input'];
};


/**  query root  */
export type QueryAdminBusinessArgs = {
  id: Scalars['UUID']['input'];
};


/**  query root  */
export type QueryAllBusinessesArgs = {
  limit?: InputMaybe<Scalars['Int']['input']>;
  name?: InputMaybe<Scalars['String']['input']>;
  page?: InputMaybe<Scalars['Int']['input']>;
};


/**  query root  */
export type QueryAllChargesArgs = {
  filters?: InputMaybe<ChargeFilter>;
  limit?: InputMaybe<Scalars['Int']['input']>;
  page?: InputMaybe<Scalars['Int']['input']>;
};


/**  query root  */
export type QueryAllFinancialEntitiesArgs = {
  limit?: InputMaybe<Scalars['Int']['input']>;
  page?: InputMaybe<Scalars['Int']['input']>;
};


/**  query root  */
export type QueryBusinessArgs = {
  id: Scalars['UUID']['input'];
};


/**  query root  */
export type QueryBusinessTransactionsFromLedgerRecordsArgs = {
  filters?: InputMaybe<BusinessTransactionsFilter>;
};


/**  query root  */
export type QueryBusinessTransactionsSumFromLedgerRecordsArgs = {
  filters?: InputMaybe<BusinessTransactionsFilter>;
};


/**  query root  */
export type QueryBusinessTripArgs = {
  id: Scalars['UUID']['input'];
};


/**  query root  */
export type QueryBusinessesArgs = {
  ids: Array<Scalars['UUID']['input']>;
};


/**  query root  */
export type QueryChargeArgs = {
  chargeId: Scalars['UUID']['input'];
};


/**  query root  */
export type QueryChargesByIDsArgs = {
  chargeIDs: Array<Scalars['UUID']['input']>;
};


/**  query root  */
export type QueryChargesWithLedgerChangesArgs = {
  filters?: InputMaybe<ChargeFilter>;
  limit?: InputMaybe<Scalars['Int']['input']>;
};


/**  query root  */
export type QueryChargesWithMissingRequiredInfoArgs = {
  limit?: InputMaybe<Scalars['Int']['input']>;
  page?: InputMaybe<Scalars['Int']['input']>;
};


/**  query root  */
export type QueryClientArgs = {
  businessId: Scalars['UUID']['input'];
};


/**  query root  */
export type QueryClientMonthlyChargeDraftArgs = {
  clientId: Scalars['UUID']['input'];
  issueMonth: Scalars['TimelessDate']['input'];
};


/**  query root  */
export type QueryClientMonthlyChargesDraftsArgs = {
  issueMonth: Scalars['TimelessDate']['input'];
};


/**  query root  */
export type QueryCorporateTaxByDateArgs = {
  date: Scalars['TimelessDate']['input'];
};


/**  query root  */
export type QueryCorporateTaxRulingComplianceReportArgs = {
  years: Array<Scalars['Int']['input']>;
};


/**  query root  */
export type QueryDepositArgs = {
  depositId: Scalars['String']['input'];
};


/**  query root  */
export type QueryDepositByChargeArgs = {
  chargeId: Scalars['UUID']['input'];
};


/**  query root  */
export type QueryDepreciationRecordsByChargeArgs = {
  chargeId: Scalars['UUID']['input'];
};


/**  query root  */
export type QueryDepreciationReportArgs = {
  filters?: InputMaybe<DepreciationReportFilter>;
};


/**  query root  */
export type QueryDocumentByIdArgs = {
  documentId: Scalars['UUID']['input'];
};


/**  query root  */
export type QueryDocumentsByFiltersArgs = {
  filters: DocumentsFilters;
};


/**  query root  */
export type QueryDynamicReportArgs = {
  name: Scalars['String']['input'];
};


/**  query root  */
export type QueryEmployeesByEmployerIdArgs = {
  employerId: Scalars['UUID']['input'];
};


/**  query root  */
export type QueryExchangeRatesArgs = {
  date?: InputMaybe<Scalars['TimelessDate']['input']>;
};


/**  query root  */
export type QueryFinancialEntityArgs = {
  id: Scalars['UUID']['input'];
};


/**  query root  */
export type QueryIncomeExpenseChartArgs = {
  filters: IncomeExpenseChartFilters;
};


/**  query root  */
export type QueryLedgerRecordsByDatesArgs = {
  fromDate: Scalars['TimelessDate']['input'];
  toDate: Scalars['TimelessDate']['input'];
};


/**  query root  */
export type QueryMiscExpensesByChargeArgs = {
  chargeId: Scalars['UUID']['input'];
};


/**  query root  */
export type QueryNewDocumentInfoDraftByChargeArgs = {
  chargeId: Scalars['UUID']['input'];
};


/**  query root  */
export type QueryNewDocumentInfoDraftByDocumentArgs = {
  documentId: Scalars['UUID']['input'];
};


/**  query root  */
export type QueryPcnByDateArgs = {
  businessId?: InputMaybe<Scalars['UUID']['input']>;
  fromMonthDate: Scalars['TimelessDate']['input'];
  toMonthDate: Scalars['TimelessDate']['input'];
};


/**  query root  */
export type QueryPcnFileArgs = {
  financialEntityId: Scalars['UUID']['input'];
  monthDate: Scalars['TimelessDate']['input'];
  options?: InputMaybe<PcnOptionsInput>;
};


/**  query root  */
export type QueryProfitAndLossReportArgs = {
  referenceYears: Array<Scalars['Int']['input']>;
  reportYear: Scalars['Int']['input'];
};


/**  query root  */
export type QueryRecentDocumentsByClientArgs = {
  clientId: Scalars['UUID']['input'];
  limit?: InputMaybe<Scalars['Int']['input']>;
};


/**  query root  */
export type QueryRecentIssuedDocumentsByTypeArgs = {
  documentType: DocumentType;
  limit?: InputMaybe<Scalars['Int']['input']>;
};


/**  query root  */
export type QuerySalaryRecordsByChargeArgs = {
  chargeId: Scalars['UUID']['input'];
};


/**  query root  */
export type QuerySalaryRecordsByDatesArgs = {
  employeeIDs?: InputMaybe<Array<Scalars['UUID']['input']>>;
  fromDate: Scalars['TimelessDate']['input'];
  toDate: Scalars['TimelessDate']['input'];
};


/**  query root  */
export type QueryShaam6111Args = {
  businessId?: InputMaybe<Scalars['UUID']['input']>;
  year: Scalars['Int']['input'];
};


/**  query root  */
export type QueryShaam6111ByYearArgs = {
  businessId?: InputMaybe<Scalars['UUID']['input']>;
  fromYear: Scalars['Int']['input'];
  toYear: Scalars['Int']['input'];
};


/**  query root  */
export type QuerySimilarChargesArgs = {
  chargeId: Scalars['UUID']['input'];
  descriptionDifferentThan?: InputMaybe<Scalars['String']['input']>;
  tagsDifferentThan?: InputMaybe<Array<Scalars['String']['input']>>;
  withMissingDescription?: InputMaybe<Scalars['Boolean']['input']>;
  withMissingTags?: InputMaybe<Scalars['Boolean']['input']>;
};


/**  query root  */
export type QuerySimilarChargesByBusinessArgs = {
  businessId: Scalars['UUID']['input'];
  descriptionDifferentThan?: InputMaybe<Scalars['String']['input']>;
  ownerId?: InputMaybe<Scalars['UUID']['input']>;
  tagsDifferentThan?: InputMaybe<Array<Scalars['String']['input']>>;
};


/**  query root  */
export type QuerySimilarTransactionsArgs = {
  transactionId: Scalars['UUID']['input'];
  withMissingInfo?: InputMaybe<Scalars['Boolean']['input']>;
};


/**  query root  */
export type QuerySortCodeArgs = {
  key: Scalars['Int']['input'];
};


/**  query root  */
export type QueryTaxCategoryArgs = {
  id: Scalars['UUID']['input'];
};


/**  query root  */
export type QueryTaxCategoryByBusinessIdArgs = {
  businessId: Scalars['UUID']['input'];
  ownerId: Scalars['UUID']['input'];
};


/**  query root  */
export type QueryTaxReportArgs = {
  referenceYears: Array<Scalars['Int']['input']>;
  reportYear: Scalars['Int']['input'];
};


/**  query root  */
export type QueryTransactionsByIDsArgs = {
  transactionIDs: Array<Scalars['UUID']['input']>;
};


/**  query root  */
export type QueryTransactionsForBalanceReportArgs = {
  fromDate: Scalars['TimelessDate']['input'];
  ownerId?: InputMaybe<Scalars['UUID']['input']>;
  toDate: Scalars['TimelessDate']['input'];
};


/**  query root  */
export type QueryUniformFormatArgs = {
  fromDate: Scalars['TimelessDate']['input'];
  toDate: Scalars['TimelessDate']['input'];
};


/**  query root  */
export type QueryVatReportArgs = {
  filters?: InputMaybe<VatReportFilter>;
};


/**  query root  */
export type QueryYearlyLedgerReportArgs = {
  year: Scalars['Int']['input'];
};

/**  receipt document  */
export type Receipt = Document & FinancialDocument & Linkable & {
  __typename?: 'Receipt';
  allocationNumber?: Maybe<Scalars['String']['output']>;
  amount?: Maybe<FinancialAmount>;
  charge?: Maybe<Charge>;
  creditor?: Maybe<FinancialEntity>;
  date?: Maybe<Scalars['TimelessDate']['output']>;
  debtor?: Maybe<FinancialEntity>;
  documentType?: Maybe<DocumentType>;
  exchangeRateOverride?: Maybe<Scalars['Float']['output']>;
  file?: Maybe<Scalars['URL']['output']>;
  id: Scalars['UUID']['output'];
  image?: Maybe<Scalars['URL']['output']>;
  isReviewed?: Maybe<Scalars['Boolean']['output']>;
  issuedDocumentInfo?: Maybe<IssuedDocumentInfo>;
  missingInfoSuggestions?: Maybe<DocumentSuggestions>;
  noVatAmount?: Maybe<Scalars['Float']['output']>;
  serialNumber?: Maybe<Scalars['String']['output']>;
  vat?: Maybe<FinancialAmount>;
  vatReportDateOverride?: Maybe<Scalars['TimelessDate']['output']>;
};

/**  Tax report commentary summary  */
export type ReportCommentary = {
  __typename?: 'ReportCommentary';
  amount: FinancialAmount;
  records: Array<ReportCommentaryRecord>;
};

/**  Report commentary record  */
export type ReportCommentaryRecord = {
  __typename?: 'ReportCommentaryRecord';
  amount: FinancialAmount;
  records: Array<ReportCommentarySubRecord>;
  sortCode: SortCode;
};

/**  Report commentary sub-record  */
export type ReportCommentarySubRecord = {
  __typename?: 'ReportCommentarySubRecord';
  amount: FinancialAmount;
  financialEntity: FinancialEntity;
};

/**  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];
/**  Role based authorization */
export const Role = {
  Accountant: 'ACCOUNTANT',
  Admin: 'ADMIN'
} as const;

export type Role = typeof Role[keyof typeof Role];
/**  defines salary records for charge arrangement */
export type Salary = {
  __typename?: 'Salary';
  baseAmount?: Maybe<FinancialAmount>;
  bonus?: Maybe<FinancialAmount>;
  charge?: Maybe<SalaryCharge>;
  compensationsAmount?: Maybe<FinancialAmount>;
  compensationsPercentage?: Maybe<Scalars['Float']['output']>;
  directAmount: FinancialAmount;
  employee?: Maybe<LtdFinancialEntity>;
  employer?: Maybe<LtdFinancialEntity>;
  gift?: Maybe<FinancialAmount>;
  globalAdditionalHoursAmount?: Maybe<FinancialAmount>;
  healthInsuranceAmount?: Maybe<FinancialAmount>;
  incomeTaxAmount?: Maybe<FinancialAmount>;
  month: Scalars['String']['output'];
  notionalExpense?: Maybe<FinancialAmount>;
  pensionEmployeeAmount?: Maybe<FinancialAmount>;
  pensionEmployeePercentage?: Maybe<Scalars['Float']['output']>;
  pensionEmployerAmount?: Maybe<FinancialAmount>;
  pensionEmployerPercentage?: Maybe<Scalars['Float']['output']>;
  pensionFund?: Maybe<LtdFinancialEntity>;
  recovery?: Maybe<FinancialAmount>;
  sicknessDays?: Maybe<SicknessDays>;
  socialSecurityEmployeeAmount?: Maybe<FinancialAmount>;
  socialSecurityEmployerAmount?: Maybe<FinancialAmount>;
  trainingFund?: Maybe<LtdFinancialEntity>;
  trainingFundEmployeeAmount?: Maybe<FinancialAmount>;
  trainingFundEmployeePercentage?: Maybe<Scalars['Float']['output']>;
  trainingFundEmployerAmount?: Maybe<FinancialAmount>;
  trainingFundEmployerPercentage?: Maybe<Scalars['Float']['output']>;
  travelAndSubsistence?: Maybe<FinancialAmount>;
  vacationDays?: Maybe<VacationDays>;
  vacationTakeout?: Maybe<FinancialAmount>;
  workDays?: Maybe<Scalars['Float']['output']>;
};

/**  charge with conversion transactions  */
export type SalaryCharge = Charge & {
  __typename?: 'SalaryCharge';
  accountantApproval: AccountantStatus;
  additionalDocuments: Array<Document>;
  conversion?: Maybe<Scalars['Boolean']['output']>;
  counterparty?: Maybe<FinancialEntity>;
  employees: Array<LtdFinancialEntity>;
  exchangeRates?: Maybe<ExchangeRates>;
  id: Scalars['UUID']['output'];
  isInvoicePaymentDifferentCurrency?: Maybe<Scalars['Boolean']['output']>;
  ledger: Ledger;
  metadata?: Maybe<ChargeMetadata>;
  minDebitDate?: Maybe<Scalars['DateTime']['output']>;
  minDocumentsDate?: Maybe<Scalars['DateTime']['output']>;
  minEventDate?: Maybe<Scalars['DateTime']['output']>;
  miscExpenses: Array<MiscExpense>;
  missingInfoSuggestions?: Maybe<ChargeSuggestions>;
  optionalDocuments?: Maybe<Scalars['Boolean']['output']>;
  optionalVAT?: Maybe<Scalars['Boolean']['output']>;
  owner: Business;
  property?: Maybe<Scalars['Boolean']['output']>;
  salary?: Maybe<Scalars['Boolean']['output']>;
  salaryRecords: Array<Salary>;
  tags: Array<Tag>;
  taxCategory?: Maybe<TaxCategory>;
  totalAmount?: Maybe<FinancialAmount>;
  transactions: Array<Transaction>;
  userDescription?: Maybe<Scalars['String']['output']>;
  validationData?: Maybe<ValidationData>;
  vat?: Maybe<FinancialAmount>;
  withholdingTax?: Maybe<FinancialAmount>;
  yearsOfRelevance?: Maybe<Array<YearOfRelevance>>;
};

/**  input variables for update salary records  */
export type SalaryRecordEditInput = {
  addedVacationDays?: InputMaybe<Scalars['Float']['input']>;
  baseSalary?: InputMaybe<Scalars['Float']['input']>;
  bonus?: InputMaybe<Scalars['Float']['input']>;
  chargeId?: InputMaybe<Scalars['UUID']['input']>;
  compensationsEmployerAmount?: InputMaybe<Scalars['Float']['input']>;
  compensationsEmployerPercentage?: InputMaybe<Scalars['Float']['input']>;
  directPaymentAmount?: InputMaybe<Scalars['Float']['input']>;
  employeeId: Scalars['UUID']['input'];
  employer?: InputMaybe<Scalars['UUID']['input']>;
  gift?: InputMaybe<Scalars['Float']['input']>;
  globalAdditionalHours?: InputMaybe<Scalars['Float']['input']>;
  healthPaymentAmount?: InputMaybe<Scalars['Float']['input']>;
  hourlyRate?: InputMaybe<Scalars['Float']['input']>;
  hours?: InputMaybe<Scalars['Float']['input']>;
  month: Scalars['String']['input'];
  pensionEmployeeAmount?: InputMaybe<Scalars['Float']['input']>;
  pensionEmployeePercentage?: InputMaybe<Scalars['Float']['input']>;
  pensionEmployerAmount?: InputMaybe<Scalars['Float']['input']>;
  pensionEmployerPercentage?: InputMaybe<Scalars['Float']['input']>;
  pensionFundId?: InputMaybe<Scalars['UUID']['input']>;
  recovery?: InputMaybe<Scalars['Float']['input']>;
  sicknessDaysBalance?: InputMaybe<Scalars['Float']['input']>;
  socialSecurityAmountEmployee?: InputMaybe<Scalars['Float']['input']>;
  socialSecurityAmountEmployer?: InputMaybe<Scalars['Float']['input']>;
  taxAmount?: InputMaybe<Scalars['Float']['input']>;
  trainingFundEmployeeAmount?: InputMaybe<Scalars['Float']['input']>;
  trainingFundEmployeePercentage?: InputMaybe<Scalars['Float']['input']>;
  trainingFundEmployerAmount?: InputMaybe<Scalars['Float']['input']>;
  trainingFundEmployerPercentage?: InputMaybe<Scalars['Float']['input']>;
  trainingFundId?: InputMaybe<Scalars['UUID']['input']>;
  travelAndSubsistence?: InputMaybe<Scalars['Float']['input']>;
  vacationDaysBalance?: InputMaybe<Scalars['Float']['input']>;
  vacationTakeout?: InputMaybe<Scalars['Float']['input']>;
  workDays?: InputMaybe<Scalars['Float']['input']>;
  zkufot?: InputMaybe<Scalars['Int']['input']>;
};

/**  input variables for insert salary records  */
export type SalaryRecordInput = {
  addedVacationDays?: InputMaybe<Scalars['Float']['input']>;
  baseSalary?: InputMaybe<Scalars['Float']['input']>;
  bonus?: InputMaybe<Scalars['Float']['input']>;
  chargeId?: InputMaybe<Scalars['UUID']['input']>;
  compensationsEmployerAmount?: InputMaybe<Scalars['Float']['input']>;
  compensationsEmployerPercentage?: InputMaybe<Scalars['Float']['input']>;
  directPaymentAmount: Scalars['Float']['input'];
  employee?: InputMaybe<Scalars['String']['input']>;
  employeeId: Scalars['UUID']['input'];
  employer: Scalars['UUID']['input'];
  gift?: InputMaybe<Scalars['Float']['input']>;
  globalAdditionalHours?: InputMaybe<Scalars['Float']['input']>;
  healthPaymentAmount?: InputMaybe<Scalars['Float']['input']>;
  hourlyRate?: InputMaybe<Scalars['Float']['input']>;
  hours?: InputMaybe<Scalars['Float']['input']>;
  jobPercentage?: InputMaybe<Scalars['Float']['input']>;
  month: Scalars['String']['input'];
  pensionEmployeeAmount?: InputMaybe<Scalars['Float']['input']>;
  pensionEmployeePercentage?: InputMaybe<Scalars['Float']['input']>;
  pensionEmployerAmount?: InputMaybe<Scalars['Float']['input']>;
  pensionEmployerPercentage?: InputMaybe<Scalars['Float']['input']>;
  pensionFundId?: InputMaybe<Scalars['UUID']['input']>;
  recovery?: InputMaybe<Scalars['Float']['input']>;
  sicknessDaysBalance?: InputMaybe<Scalars['Float']['input']>;
  socialSecurityAmountEmployee?: InputMaybe<Scalars['Float']['input']>;
  socialSecurityAmountEmployer?: InputMaybe<Scalars['Float']['input']>;
  taxAmount?: InputMaybe<Scalars['Float']['input']>;
  trainingFundEmployeeAmount?: InputMaybe<Scalars['Float']['input']>;
  trainingFundEmployeePercentage?: InputMaybe<Scalars['Float']['input']>;
  trainingFundEmployerAmount?: InputMaybe<Scalars['Float']['input']>;
  trainingFundEmployerPercentage?: InputMaybe<Scalars['Float']['input']>;
  trainingFundId?: InputMaybe<Scalars['UUID']['input']>;
  travelAndSubsistence?: InputMaybe<Scalars['Float']['input']>;
  vacationDaysBalance?: InputMaybe<Scalars['Float']['input']>;
  vacationTakeout?: InputMaybe<Scalars['Float']['input']>;
  workDays?: InputMaybe<Scalars['Float']['input']>;
  zkufot?: InputMaybe<Scalars['Int']['input']>;
};

/**  Shaam6111 report data  */
export type Shaam6111Data = {
  __typename?: 'Shaam6111Data';
  balanceSheet?: Maybe<Array<Shaam6111ReportEntry>>;
  header: Shaam6111Header;
  id: Scalars['ID']['output'];
  individualOrCompany?: Maybe<IndividualOrCompany>;
  profitAndLoss: Array<Shaam6111ReportEntry>;
  taxAdjustment: Array<Shaam6111ReportEntry>;
};

/**  Shaam6111 file content  */
export type Shaam6111File = {
  __typename?: 'Shaam6111File';
  diffContent?: Maybe<Scalars['String']['output']>;
  fileName: Scalars['String']['output'];
  id: Scalars['ID']['output'];
  reportContent: Scalars['String']['output'];
};

/**  Header Record containing metadata about the tax report (כותרת) */
export type Shaam6111Header = {
  __typename?: 'Shaam6111Header';
  /** Accounting method - mandatory field (שיטת חשבונאות) */
  accountingMethod: AccountingMethod;
  /**  Business accounting system - mandatory field (הנח''ש של העסק)  */
  accountingSystem: AccountingSystem;
  /** Are amounts in thousands (הסכום באלפי שקלים/דולרים) */
  amountsInThousands: Scalars['Boolean']['output'];
  /** Audit opinion type (חוות דעת) */
  auditOpinionType?: Maybe<AuditOpinionType>;
  /** Number of entries in balance sheet section (3 digits) - mandatory if entries exist (מספר נגררות פיסקת מאזן) */
  balanceSheetEntryCount?: Maybe<Scalars['Int']['output']>;
  /** Business description (50 characters max) - right-aligned Hebrew text (תאור העסק) */
  businessDescription?: Maybe<Scalars['String']['output']>;
  /** Business type - mandatory field (סוג עסק) */
  businessType: BusinessType;
  /** Currency reporting type (דיווח מטבע) */
  currencyType: CurrencyType;
  /** ID number or company registration number (9 digits) - mandatory field (מס' זהות/ח.פ) */
  idNumber: Scalars['String']['output'];
  /**  Year when IFRS accounting standards were implemented (4 digits) (שנת מס - יישום תקני חשבונאות) Starting from 2006, or 9999 if not applicable  */
  ifrsImplementationYear?: Maybe<Scalars['String']['output']>;
  /** IFRS reporting option (דווח בחלופה - יישום תקני חשבונאות) */
  ifrsReportingOption?: Maybe<IfrsReportingOption>;
  /** Balance sheet included - mandatory field (מצורף דוח מאזן) */
  includesBalanceSheet: Scalars['Boolean']['output'];
  /** Profit and Loss statement included - mandatory field (מצורף דוח רווח הפסד) */
  includesProfitLoss: Scalars['Boolean']['output'];
  /** Tax adjustment statement included - mandatory field (מצורף דוח התאמה) */
  includesTaxAdjustment: Scalars['Boolean']['output'];
  /** Industry code (4 digits) - mandatory field (מס' ענף) */
  industryCode: Scalars['String']['output'];
  /** Is this report for a partnership (דוח זה בגין שותפות) */
  isPartnership?: Maybe<Scalars['Boolean']['output']>;
  /** For partnership reports: number of partners (3 digits) - 999 if not applicable (דוח זה בגין שותפות: מספר השותפים) */
  partnershipCount?: Maybe<Scalars['Int']['output']>;
  /** For partnership reports: share in partnership profits (6 digits, 2 decimal places) - 999999 if not applicable (דוח זה בגין שותפות: חלקי ברווחי השותפות) */
  partnershipProfitShare?: Maybe<Scalars['Int']['output']>;
  /** Number of entries in profit and loss section (3 digits) - mandatory field (מספר נגררות פיסקת רווח הפסד) */
  profitLossEntryCount?: Maybe<Scalars['Int']['output']>;
  /** Reporting method - mandatory field (שיטת דיווח) */
  reportingMethod: ReportingMethod;
  /** Software registration certificate number (8 digits) - 99999999 if not applicable (מספר תעודת רישום - חייב ברישום תוכנה) */
  softwareRegistrationNumber?: Maybe<Scalars['String']['output']>;
  /** Number of entries in tax adjustment section (3 digits) - mandatory if entries exist (מספר נגררות פיסקת התאמה למס) */
  taxAdjustmentEntryCount?: Maybe<Scalars['Int']['output']>;
  /** Tax file number (9 digits) - mandatory field (מספר תיק) */
  taxFileNumber: Scalars['String']['output'];
  /** Tax year (4 digits) - mandatory field (שנת מס) */
  taxYear: Scalars['String']['output'];
  /** VAT file number (9 digits) - if exists (מס' תיק מע''מ) */
  vatFileNumber?: Maybe<Scalars['String']['output']>;
  /** Withholding tax file number (9 digits) - if exists (מס' תיק ניכויים) */
  withholdingTaxFileNumber?: Maybe<Scalars['String']['output']>;
};

/**  record of Shaam6111 report  */
export type Shaam6111Report = {
  __typename?: 'Shaam6111Report';
  business: Business;
  data: Shaam6111Data;
  file: Shaam6111File;
  id: Scalars['ID']['output'];
  year: Scalars['Int']['output'];
};

/**  Report Entry interface representing a single financial data entry in any report section  */
export type Shaam6111ReportEntry = {
  __typename?: 'Shaam6111ReportEntry';
  amount: Scalars['Int']['output'];
  code: Scalars['Int']['output'];
  label: Scalars['String']['output'];
};

/**  defines sickness days for salary record  */
export type SicknessDays = {
  __typename?: 'SicknessDays';
  balance?: Maybe<Scalars['Float']['output']>;
};

/**  Ledger record with balance  */
export type SingleSidedLedgerRecord = {
  __typename?: 'SingleSidedLedgerRecord';
  amount: FinancialAmount;
  balance: Scalars['Float']['output'];
  counterParty?: Maybe<FinancialEntity>;
  description?: Maybe<Scalars['String']['output']>;
  id: Scalars['ID']['output'];
  invoiceDate: Scalars['DateTime']['output'];
  reference?: Maybe<Scalars['String']['output']>;
  valueDate: Scalars['DateTime']['output'];
};

/**  Sort Code  */
export type SortCode = {
  __typename?: 'SortCode';
  defaultIrsCode?: Maybe<Scalars['Int']['output']>;
  id: Scalars['ID']['output'];
  key: Scalars['Int']['output'];
  name?: Maybe<Scalars['String']['output']>;
};

/**  contract subscription plans  */
export const SubscriptionPlan = {
  Enterprise: 'ENTERPRISE',
  Pro: 'PRO'
} as const;

export type SubscriptionPlan = typeof SubscriptionPlan[keyof typeof SubscriptionPlan];
/**  input for business suggestions  */
export type Suggestions = {
  __typename?: 'Suggestions';
  description?: Maybe<Scalars['String']['output']>;
  phrases: Array<Scalars['String']['output']>;
  tags: Array<Tag>;
};

/**  input for business suggestions  */
export type SuggestionsInput = {
  description?: InputMaybe<Scalars['String']['input']>;
  phrases?: InputMaybe<Array<Scalars['String']['input']>>;
  tags?: InputMaybe<Array<TagInput>>;
};

/**  defines a tag / category for charge arrangement */
export type Tag = {
  __typename?: 'Tag';
  fullPath?: Maybe<Array<Tag>>;
  id: Scalars['UUID']['output'];
  name: Scalars['String']['output'];
  namePath?: Maybe<Array<Scalars['String']['output']>>;
  parent?: Maybe<Tag>;
};

/**  input variables for Tag */
export type TagInput = {
  id: Scalars['String']['input'];
};

/**  Tax category entity used for ledger records  */
export type TaxCategory = FinancialEntity & {
  __typename?: 'TaxCategory';
  id: Scalars['UUID']['output'];
  irsCode?: Maybe<Scalars['Int']['output']>;
  name: Scalars['String']['output'];
  sortCode?: Maybe<SortCode>;
};

/**  result type for taxReport  */
export type TaxReport = {
  __typename?: 'TaxReport';
  id: Scalars['ID']['output'];
  reference: Array<TaxReportYear>;
  report: TaxReportYear;
};

/**  tax data for a single year  */
export type TaxReportYear = {
  __typename?: 'TaxReportYear';
  annualTaxExpense: FinancialAmount;
  businessTripsExcessExpensesAmount: FinancialAmount;
  fines: ReportCommentary;
  id: Scalars['ID']['output'];
  nontaxableLinkage: ReportCommentary;
  profitBeforeTax: ReportCommentary;
  researchAndDevelopmentExpensesByRecords: ReportCommentary;
  researchAndDevelopmentExpensesForTax: FinancialAmount;
  reserves: ReportCommentary;
  salaryExcessExpensesAmount: FinancialAmount;
  specialTaxRate: Scalars['Float']['output'];
  specialTaxableIncome: ReportCommentary;
  taxRate: Scalars['Float']['output'];
  taxableIncome: FinancialAmount;
  untaxableGifts: ReportCommentary;
  year: Scalars['Int']['output'];
};

/**  represent training fund */
export type TrainingFund = Fund & {
  __typename?: 'TrainingFund';
  id: Scalars['UUID']['output'];
  name: Scalars['String']['output'];
};

/**  Represent a general transaction object  */
export type Transaction = {
  /**  link to the account  */
  account: FinancialAccount;
  /**  the amount of the transaction  */
  amount: FinancialAmount;
  /**  effective bank / card balance, after the transaction  */
  balance: FinancialAmount;
  /**  containing charge ID  */
  chargeId: Scalars['UUID']['output'];
  /**  calculated counterparty details for the charge  */
  counterparty?: Maybe<FinancialEntity>;
  /**  when the initial transaction was created from the first event we found  */
  createdAt: Scalars['DateTime']['output'];
  cryptoExchangeRate?: Maybe<ConversionRate>;
  debitExchangeRates?: Maybe<ExchangeRates>;
  /**  either credit or debit  */
  direction: TransactionDirection;
  /**  debitDate  */
  effectiveDate?: Maybe<Scalars['TimelessDate']['output']>;
  /**  eventDate  */
  eventDate: Scalars['TimelessDate']['output'];
  eventExchangeRates?: Maybe<ExchangeRates>;
  /**  debitTimeStamp  */
  exactEffectiveDate?: Maybe<Scalars['DateTime']['output']>;
  id: Scalars['UUID']['output'];
  /**  is this transaction a fee?  */
  isFee?: Maybe<Scalars['Boolean']['output']>;
  /**  missing info suggestions data  */
  missingInfoSuggestions?: Maybe<TransactionSuggestions>;
  /**  external key / identifier in the bank or card (אסמכתא)  */
  referenceKey?: Maybe<Scalars['String']['output']>;
  /**  description of the transaction, as defined by the bank/card  */
  sourceDescription: Scalars['String']['output'];
  /**  debitDate without user overrides and completions  */
  sourceEffectiveDate?: Maybe<Scalars['TimelessDate']['output']>;
  /**  when the transaction was last updated  */
  updatedAt: Scalars['DateTime']['output'];
};

/**  The direction of the transaction  */
export const TransactionDirection = {
  Credit: 'CREDIT',
  Debit: 'DEBIT'
} as const;

export type TransactionDirection = typeof TransactionDirection[keyof typeof TransactionDirection];
/**  represent transaction suggestions for missing info  */
export type TransactionSuggestions = {
  __typename?: 'TransactionSuggestions';
  business: FinancialEntity;
};

/**  represent transaction not (fully) categorized under business trips  */
export type UncategorizedTransaction = {
  __typename?: 'UncategorizedTransaction';
  categorizedAmount: FinancialAmount;
  errors: Array<Scalars['String']['output']>;
  transaction: Transaction;
};

/**  result type for uniformFormat  */
export type UniformFormat = {
  __typename?: 'UniformFormat';
  bkmvdata: Scalars['FileScalar']['output'];
  ini: Scalars['FileScalar']['output'];
};

/**  document that haven't yet been processed */
export type Unprocessed = Document & Linkable & {
  __typename?: 'Unprocessed';
  charge?: Maybe<Charge>;
  documentType?: Maybe<DocumentType>;
  file?: Maybe<Scalars['URL']['output']>;
  id: Scalars['UUID']['output'];
  image?: Maybe<Scalars['URL']['output']>;
  isReviewed?: Maybe<Scalars['Boolean']['output']>;
};

/**  input for updateBusiness  */
export type UpdateBusinessInput = {
  address?: InputMaybe<Scalars['String']['input']>;
  country?: InputMaybe<Scalars['String']['input']>;
  email?: InputMaybe<Scalars['String']['input']>;
  exemptDealer?: InputMaybe<Scalars['Boolean']['input']>;
  governmentId?: InputMaybe<Scalars['String']['input']>;
  hebrewName?: InputMaybe<Scalars['String']['input']>;
  irsCode?: InputMaybe<Scalars['Int']['input']>;
  name?: InputMaybe<Scalars['String']['input']>;
  optionalVAT?: InputMaybe<Scalars['Boolean']['input']>;
  pcn874RecordType?: InputMaybe<Pcn874RecordType>;
  phoneNumber?: InputMaybe<Scalars['String']['input']>;
  sortCode?: InputMaybe<Scalars['Int']['input']>;
  suggestions?: InputMaybe<SuggestionsInput>;
  taxCategory?: InputMaybe<Scalars['UUID']['input']>;
  website?: InputMaybe<Scalars['String']['input']>;
};

/**  result type for updateBusiness  */
export type UpdateBusinessResponse = CommonError | LtdFinancialEntity;

/**  the input for updating a business trip accommodation expense  */
export type UpdateBusinessTripAccommodationsExpenseInput = {
  amount?: InputMaybe<Scalars['Float']['input']>;
  attendeesStay: Array<BusinessTripAttendeeStayInput>;
  businessTripId: Scalars['UUID']['input'];
  country?: InputMaybe<Scalars['String']['input']>;
  currency?: InputMaybe<Currency>;
  date?: InputMaybe<Scalars['TimelessDate']['input']>;
  employeeBusinessId?: InputMaybe<Scalars['UUID']['input']>;
  id: Scalars['UUID']['input'];
  nightsCount?: InputMaybe<Scalars['Int']['input']>;
  valueDate?: InputMaybe<Scalars['TimelessDate']['input']>;
};

/**  the input for updating a business trip car rental expense  */
export type UpdateBusinessTripCarRentalExpenseInput = {
  amount?: InputMaybe<Scalars['Float']['input']>;
  businessTripId: Scalars['UUID']['input'];
  currency?: InputMaybe<Currency>;
  date?: InputMaybe<Scalars['TimelessDate']['input']>;
  days?: InputMaybe<Scalars['Int']['input']>;
  employeeBusinessId?: InputMaybe<Scalars['UUID']['input']>;
  id: Scalars['UUID']['input'];
  isFuelExpense?: InputMaybe<Scalars['Boolean']['input']>;
  valueDate?: InputMaybe<Scalars['TimelessDate']['input']>;
};

/**  the input for updating a business trip flights expense  */
export type UpdateBusinessTripFlightsExpenseInput = {
  amount?: InputMaybe<Scalars['Float']['input']>;
  attendeeIds?: InputMaybe<Array<Scalars['UUID']['input']>>;
  businessTripId: Scalars['UUID']['input'];
  currency?: InputMaybe<Currency>;
  date?: InputMaybe<Scalars['TimelessDate']['input']>;
  employeeBusinessId?: InputMaybe<Scalars['UUID']['input']>;
  flightClass?: InputMaybe<FlightClass>;
  id: Scalars['UUID']['input'];
  path?: InputMaybe<Array<Scalars['String']['input']>>;
  valueDate?: InputMaybe<Scalars['TimelessDate']['input']>;
};

/**  the input for updating a business trip  */
export type UpdateBusinessTripInput = {
  destinationCode?: InputMaybe<Scalars['String']['input']>;
  name?: InputMaybe<Scalars['String']['input']>;
  tripPurpose?: InputMaybe<Scalars['String']['input']>;
};

/**  the input for updating a business trip other expense  */
export type UpdateBusinessTripOtherExpenseInput = {
  amount?: InputMaybe<Scalars['Float']['input']>;
  businessTripId: Scalars['UUID']['input'];
  currency?: InputMaybe<Currency>;
  date?: InputMaybe<Scalars['TimelessDate']['input']>;
  deductibleExpense?: InputMaybe<Scalars['Boolean']['input']>;
  description?: InputMaybe<Scalars['String']['input']>;
  employeeBusinessId?: InputMaybe<Scalars['UUID']['input']>;
  id: Scalars['UUID']['input'];
  valueDate?: InputMaybe<Scalars['TimelessDate']['input']>;
};

/**  the input for updating a business trip T&S expense  */
export type UpdateBusinessTripTravelAndSubsistenceExpenseInput = {
  amount?: InputMaybe<Scalars['Float']['input']>;
  businessTripId: Scalars['UUID']['input'];
  currency?: InputMaybe<Currency>;
  date?: InputMaybe<Scalars['TimelessDate']['input']>;
  employeeBusinessId?: InputMaybe<Scalars['UUID']['input']>;
  expenseType?: InputMaybe<Scalars['String']['input']>;
  id: Scalars['UUID']['input'];
  valueDate?: InputMaybe<Scalars['TimelessDate']['input']>;
};

/**  input variables for updateCharge  */
export type UpdateChargeInput = {
  accountantApproval?: InputMaybe<AccountantStatus>;
  businessTripID?: InputMaybe<Scalars['UUID']['input']>;
  counterpartyId?: InputMaybe<Scalars['UUID']['input']>;
  defaultTaxCategoryID?: InputMaybe<Scalars['UUID']['input']>;
  isConversion?: InputMaybe<Scalars['Boolean']['input']>;
  isInvoicePaymentDifferentCurrency?: InputMaybe<Scalars['Boolean']['input']>;
  isProperty?: InputMaybe<Scalars['Boolean']['input']>;
  optionalDocuments?: InputMaybe<Scalars['Boolean']['input']>;
  optionalVAT?: InputMaybe<Scalars['Boolean']['input']>;
  ownerId?: InputMaybe<Scalars['UUID']['input']>;
  tags?: InputMaybe<Array<TagInput>>;
  /**  user custom description  */
  userDescription?: InputMaybe<Scalars['String']['input']>;
  yearsOfRelevance?: InputMaybe<Array<YearOfRelevanceInput>>;
};

/**  result type for updateCharge  */
export type UpdateChargeResult = CommonError | UpdateChargeSuccessfulResult;

/**  successful result type for updateCharge  */
export type UpdateChargeSuccessfulResult = {
  __typename?: 'UpdateChargeSuccessfulResult';
  charge: Charge;
};

/**  input variables for updateDepreciationCategory  */
export type UpdateDepreciationCategoryInput = {
  id: Scalars['UUID']['input'];
  name?: InputMaybe<Scalars['String']['input']>;
  percentage?: InputMaybe<Scalars['Float']['input']>;
};

/**  result type for updateDepreciationCategory  */
export type UpdateDepreciationCategoryResult = CommonError | DepreciationCategory;

/**  input variables for updateDepreciationRecord  */
export type UpdateDepreciationRecordInput = {
  activationDate?: InputMaybe<Scalars['TimelessDate']['input']>;
  amount?: InputMaybe<Scalars['Float']['input']>;
  categoryId?: InputMaybe<Scalars['UUID']['input']>;
  chargeId?: InputMaybe<Scalars['UUID']['input']>;
  currency?: InputMaybe<Currency>;
  id: Scalars['UUID']['input'];
  type?: InputMaybe<DepreciationType>;
};

/**  result type for updateDepreciationRecord  */
export type UpdateDepreciationRecordResult = CommonError | DepreciationRecord;

/**  input variables for updateDocument  */
export type UpdateDocumentFieldsInput = {
  allocationNumber?: InputMaybe<Scalars['String']['input']>;
  amount?: InputMaybe<FinancialAmountInput>;
  chargeId?: InputMaybe<Scalars['UUID']['input']>;
  creditorId?: InputMaybe<Scalars['UUID']['input']>;
  date?: InputMaybe<Scalars['TimelessDate']['input']>;
  debtorId?: InputMaybe<Scalars['UUID']['input']>;
  documentType?: InputMaybe<DocumentType>;
  exchangeRateOverride?: InputMaybe<Scalars['Float']['input']>;
  file?: InputMaybe<Scalars['URL']['input']>;
  image?: InputMaybe<Scalars['URL']['input']>;
  noVatAmount?: InputMaybe<Scalars['Float']['input']>;
  serialNumber?: InputMaybe<Scalars['String']['input']>;
  vat?: InputMaybe<FinancialAmountInput>;
  vatReportDateOverride?: InputMaybe<Scalars['TimelessDate']['input']>;
};

/**  result type for updateCharge  */
export type UpdateDocumentResult = CommonError | UpdateDocumentSuccessfulResult;

/**  result type for updateDocument */
export type UpdateDocumentSuccessfulResult = {
  __typename?: 'UpdateDocumentSuccessfulResult';
  document?: Maybe<Document>;
};

/**  input variables for updateMiscExpense  */
export type UpdateMiscExpenseInput = {
  amount?: InputMaybe<Scalars['Float']['input']>;
  chargeId?: InputMaybe<Scalars['UUID']['input']>;
  creditorId?: InputMaybe<Scalars['UUID']['input']>;
  currency?: InputMaybe<Currency>;
  debtorId?: InputMaybe<Scalars['UUID']['input']>;
  description?: InputMaybe<Scalars['String']['input']>;
  invoiceDate?: InputMaybe<Scalars['TimelessDate']['input']>;
  valueDate?: InputMaybe<Scalars['DateTime']['input']>;
};

/**  result type for updateCharge  */
export type UpdateSalaryRecordResult = CommonError | UpdateSalaryRecordSuccessfulResult;

/**  result type for updateSalaryRecord */
export type UpdateSalaryRecordSuccessfulResult = {
  __typename?: 'UpdateSalaryRecordSuccessfulResult';
  salaryRecord: Salary;
};

/**  input variables for updateSortCode  */
export type UpdateSortCodeFieldsInput = {
  defaultIrsCode?: InputMaybe<Scalars['Int']['input']>;
  name?: InputMaybe<Scalars['String']['input']>;
};

/**  input variables for updateTag  */
export type UpdateTagFieldsInput = {
  name?: InputMaybe<Scalars['String']['input']>;
  parentId?: InputMaybe<Scalars['UUID']['input']>;
};

/**  input for updateTaxCategory  */
export type UpdateTaxCategoryInput = {
  hashavshevetName?: InputMaybe<Scalars['String']['input']>;
  irsCode?: InputMaybe<Scalars['Int']['input']>;
  name?: InputMaybe<Scalars['String']['input']>;
  sortCode?: InputMaybe<Scalars['Int']['input']>;
  taxExcluded?: InputMaybe<Scalars['Boolean']['input']>;
};

/**  result type for updateBusiness  */
export type UpdateTaxCategoryResponse = CommonError | TaxCategory;

/**  input variables for updateTransaction  */
export type UpdateTransactionInput = {
  chargeId?: InputMaybe<Scalars['UUID']['input']>;
  counterpartyId?: InputMaybe<Scalars['UUID']['input']>;
  effectiveDate?: InputMaybe<Scalars['TimelessDate']['input']>;
  isFee?: InputMaybe<Scalars['Boolean']['input']>;
};

/**  result type for updateTransaction  */
export type UpdateTransactionResult = CommonError | CommonTransaction | ConversionTransaction;

/**  result type for uploadDocument  */
export type UploadDocumentResult = CommonError | UploadDocumentSuccessfulResult;

/**  result type for uploadDocument */
export type UploadDocumentSuccessfulResult = {
  __typename?: 'UploadDocumentSuccessfulResult';
  document?: Maybe<Document>;
};

/**  user context  */
export type UserContext = {
  __typename?: 'UserContext';
  adminBusinessId: Scalars['UUID']['output'];
  defaultCryptoConversionFiatCurrency: Currency;
  defaultLocalCurrency: Currency;
  financialAccountsBusinessesIds: Array<Scalars['UUID']['output']>;
  ledgerLock?: Maybe<Scalars['TimelessDate']['output']>;
};

/**  defines vacation days for salary record  */
export type VacationDays = {
  __typename?: 'VacationDays';
  added?: Maybe<Scalars['Float']['output']>;
  balance?: Maybe<Scalars['Float']['output']>;
  taken?: Maybe<Scalars['Float']['output']>;
};

/**  represent a validation data for missing info  */
export type ValidationData = {
  __typename?: 'ValidationData';
  balance?: Maybe<FinancialAmount>;
  isValid: Scalars['Boolean']['output'];
  missingInfo: Array<MissingChargeInfo>;
};

/**  input variables for vatReportRecords  */
export type VatReportFilter = {
  chargesType?: InputMaybe<ChargeFilterType>;
  financialEntityId: Scalars['UUID']['input'];
  monthDate: Scalars['TimelessDate']['input'];
};

/**  Vat report record  */
export type VatReportRecord = {
  __typename?: 'VatReportRecord';
  amount: FinancialAmount;
  business?: Maybe<FinancialEntity>;
  chargeAccountantStatus?: Maybe<AccountantStatus>;
  chargeDate?: Maybe<Scalars['TimelessDate']['output']>;
  chargeId: Scalars['UUID']['output'];
  documentDate?: Maybe<Scalars['TimelessDate']['output']>;
  documentId?: Maybe<Scalars['UUID']['output']>;
  documentSerial?: Maybe<Scalars['String']['output']>;
  foreignVat?: Maybe<FinancialAmount>;
  foreignVatAfterDeduction?: Maybe<FinancialAmount>;
  image?: Maybe<Scalars['String']['output']>;
  localAmount?: Maybe<FinancialAmount>;
  localVat?: Maybe<FinancialAmount>;
  localVatAfterDeduction?: Maybe<FinancialAmount>;
  /**  Int value */
  roundedLocalVatAfterDeduction?: Maybe<FinancialIntAmount>;
  taxReducedForeignAmount?: Maybe<FinancialIntAmount>;
  taxReducedLocalAmount?: Maybe<FinancialIntAmount>;
  vatNumber?: Maybe<Scalars['String']['output']>;
};

/**  vat report result  */
export type VatReportResult = {
  __typename?: 'VatReportResult';
  businessTrips: Array<Charge>;
  differentMonthDoc: Array<Charge>;
  expenses: Array<VatReportRecord>;
  income: Array<VatReportRecord>;
  missingInfo: Array<Charge>;
};

/**  charge spread type  */
export type YearOfRelevance = {
  __typename?: 'YearOfRelevance';
  amount?: Maybe<Scalars['Float']['output']>;
  year: Scalars['String']['output'];
};

/**  input variables for charge spread  */
export type YearOfRelevanceInput = {
  amount?: InputMaybe<Scalars['Float']['input']>;
  year: Scalars['TimelessDate']['input'];
};

/**  yearly ledger report  */
export type YearlyLedgerReport = {
  __typename?: 'YearlyLedgerReport';
  financialEntitiesInfo: Array<YearlyLedgerReportFinancialEntityInfo>;
  id: Scalars['ID']['output'];
  year: Scalars['Int']['output'];
};

/**  Vat report record  */
export type YearlyLedgerReportFinancialEntityInfo = {
  __typename?: 'YearlyLedgerReportFinancialEntityInfo';
  closingBalance: FinancialAmount;
  entity: FinancialEntity;
  openingBalance: FinancialAmount;
  records: Array<SingleSidedLedgerRecord>;
  totalCredit: FinancialAmount;
  totalDebit: FinancialAmount;
};

export type BusinessTransactionsInfoQueryVariables = Exact<{
  filters?: InputMaybe<BusinessTransactionsFilter>;
}>;


export type BusinessTransactionsInfoQuery = { __typename?: 'Query', businessTransactionsFromLedgerRecords: { __typename?: 'BusinessTransactionsFromLedgerRecordsSuccessfulResult', businessTransactions: Array<{ __typename?: 'BusinessTransaction', invoiceDate: TimelessDateString, reference?: string | null, details?: string | null, chargeId: string, amount: { __typename?: 'FinancialAmount', formatted: string, raw: number }, business: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string }, foreignAmount?: { __typename?: 'FinancialAmount', 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 BusinessTransactionsSummeryQueryVariables = Exact<{
  filters?: InputMaybe<BusinessTransactionsFilter>;
}>;


export type BusinessTransactionsSummeryQuery = { __typename?: 'Query', businessTransactionsSumFromLedgerRecords: { __typename?: 'BusinessTransactionsSumFromLedgerRecordsSuccessfulResult', businessTransactionsSum: Array<{ __typename?: 'BusinessTransactionSum', business: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string }, credit: { __typename?: 'FinancialAmount', formatted: string }, debit: { __typename?: 'FinancialAmount', formatted: string }, total: { __typename?: 'FinancialAmount', formatted: string, raw: number }, foreignCurrenciesSum: Array<{ __typename?: 'ForeignCurrencySum', currency: Currency, credit: { __typename?: 'FinancialAmount', formatted: string }, debit: { __typename?: 'FinancialAmount', formatted: string }, total: { __typename?: 'FinancialAmount', formatted: string, raw: number } }> }> } | { __typename: 'CommonError', message: string } };

export type BusinessTripScreenQueryVariables = Exact<{
  businessTripId: Scalars['UUID']['input'];
}>;


export type BusinessTripScreenQuery = { __typename?: 'Query', businessTrip?: { __typename?: 'BusinessTrip', id: string, name: string, dates?: { __typename?: 'DateRange', start: TimelessDateString } | null } | null };

export type BusinessTripsRowFieldsFragment = { __typename?: 'BusinessTrip', id: string, name: string, accountantApproval: AccountantStatus } & { ' $fragmentName'?: 'BusinessTripsRowFieldsFragment' };

export type BusinessTripsRowValidationQueryVariables = Exact<{
  id: Scalars['UUID']['input'];
}>;


export type BusinessTripsRowValidationQuery = { __typename?: 'Query', businessTrip?: { __typename?: 'BusinessTrip', id: string, uncategorizedTransactions: Array<{ __typename?: 'UncategorizedTransaction', transaction: { __typename?: 'CommonTransaction', id: string } | { __typename?: 'ConversionTransaction', id: string } } | null>, summary: { __typename?: 'BusinessTripSummary' } & ({ __typename?: 'BusinessTripSummary', errors?: Array<string> | null } | { __typename?: 'BusinessTripSummary', errors?: never }) } | null };

export type EditableBusinessTripQueryVariables = Exact<{
  businessTripId: Scalars['UUID']['input'];
}>;


export type EditableBusinessTripQuery = { __typename?: 'Query', businessTrip?: (
    { __typename?: 'BusinessTrip', id: string, uncategorizedTransactions: Array<{ __typename?: 'UncategorizedTransaction', transaction: { __typename?: 'CommonTransaction', id: string } | { __typename?: 'ConversionTransaction', id: string } } | null> }
    & { ' $fragmentRefs'?: { 'BusinessTripReportHeaderFieldsFragment': BusinessTripReportHeaderFieldsFragment;'BusinessTripReportAttendeesFieldsFragment': BusinessTripReportAttendeesFieldsFragment;'BusinessTripUncategorizedTransactionsFieldsFragment': BusinessTripUncategorizedTransactionsFieldsFragment;'BusinessTripReportFlightsFieldsFragment': BusinessTripReportFlightsFieldsFragment;'BusinessTripReportAccommodationsFieldsFragment': BusinessTripReportAccommodationsFieldsFragment;'BusinessTripReportTravelAndSubsistenceFieldsFragment': BusinessTripReportTravelAndSubsistenceFieldsFragment;'BusinessTripReportCarRentalFieldsFragment': BusinessTripReportCarRentalFieldsFragment;'BusinessTripReportOtherFieldsFragment': BusinessTripReportOtherFieldsFragment;'BusinessTripReportSummaryFieldsFragment': BusinessTripReportSummaryFieldsFragment } }
  ) | null };

export type BusinessTripsScreenQueryVariables = Exact<{ [key: string]: never; }>;


export type BusinessTripsScreenQuery = { __typename?: 'Query', allBusinessTrips: Array<(
    { __typename?: 'BusinessTrip', id: string, name: string, dates?: { __typename?: 'DateRange', start: TimelessDateString } | null }
    & { ' $fragmentRefs'?: { 'BusinessTripsRowFieldsFragment': BusinessTripsRowFieldsFragment } }
  )> };

export type AllBusinessesRowFieldsFragment = (
  { __typename?: 'LtdFinancialEntity', id: string }
  & { ' $fragmentRefs'?: { 'AllBusinessesNameFieldsFragment': AllBusinessesNameFieldsFragment;'AllBusinessesHebrewNameFieldsFragment': AllBusinessesHebrewNameFieldsFragment } }
) & { ' $fragmentName'?: 'AllBusinessesRowFieldsFragment' };

export type AllBusinessesHebrewNameFieldsFragment = { __typename?: 'LtdFinancialEntity', id: string, hebrewName?: string | null } & { ' $fragmentName'?: 'AllBusinessesHebrewNameFieldsFragment' };

export type AllBusinessesNameFieldsFragment = { __typename?: 'LtdFinancialEntity', id: string, name: string } & { ' $fragmentName'?: 'AllBusinessesNameFieldsFragment' };

export type AllBusinessesForScreenQueryVariables = Exact<{
  page?: InputMaybe<Scalars['Int']['input']>;
  limit?: InputMaybe<Scalars['Int']['input']>;
  name?: InputMaybe<Scalars['String']['input']>;
}>;


export type AllBusinessesForScreenQuery = { __typename?: 'Query', allBusinesses?: { __typename?: 'PaginatedBusinesses', nodes: Array<(
      { __typename: 'LtdFinancialEntity', id: string, name: string }
      & { ' $fragmentRefs'?: { 'AllBusinessesRowFieldsFragment': AllBusinessesRowFieldsFragment } }
    ) | { __typename: 'PersonalFinancialEntity', id: string, name: string }>, pageInfo: { __typename?: 'PageInfo', totalPages: number } } | null };

export type ChargesLedgerValidationQueryVariables = Exact<{
  limit?: InputMaybe<Scalars['Int']['input']>;
  filters?: InputMaybe<ChargeFilter>;
}>;


export type ChargesLedgerValidationQuery = { __typename?: 'Query', chargesWithLedgerChanges: Array<{ __typename?: 'ChargesWithLedgerChangesResult', progress: number, charge?: (
      { __typename?: 'BankDepositCharge', id: string }
      & { ' $fragmentRefs'?: { 'ChargesTableFields_BankDepositCharge_Fragment': ChargesTableFields_BankDepositCharge_Fragment } }
    ) | (
      { __typename?: 'BusinessTripCharge', id: string }
      & { ' $fragmentRefs'?: { 'ChargesTableFields_BusinessTripCharge_Fragment': ChargesTableFields_BusinessTripCharge_Fragment } }
    ) | (
      { __typename?: 'CommonCharge', id: string }
      & { ' $fragmentRefs'?: { 'ChargesTableFields_CommonCharge_Fragment': ChargesTableFields_CommonCharge_Fragment } }
    ) | (
      { __typename?: 'ConversionCharge', id: string }
      & { ' $fragmentRefs'?: { 'ChargesTableFields_ConversionCharge_Fragment': ChargesTableFields_ConversionCharge_Fragment } }
    ) | (
      { __typename?: 'CreditcardBankCharge', id: string }
      & { ' $fragmentRefs'?: { 'ChargesTableFields_CreditcardBankCharge_Fragment': ChargesTableFields_CreditcardBankCharge_Fragment } }
    ) | (
      { __typename?: 'DividendCharge', id: string }
      & { ' $fragmentRefs'?: { 'ChargesTableFields_DividendCharge_Fragment': ChargesTableFields_DividendCharge_Fragment } }
    ) | (
      { __typename?: 'FinancialCharge', id: string }
      & { ' $fragmentRefs'?: { 'ChargesTableFields_FinancialCharge_Fragment': ChargesTableFields_FinancialCharge_Fragment } }
    ) | (
      { __typename?: 'ForeignSecuritiesCharge', id: string }
      & { ' $fragmentRefs'?: { 'ChargesTableFields_ForeignSecuritiesCharge_Fragment': ChargesTableFields_ForeignSecuritiesCharge_Fragment } }
    ) | (
      { __typename?: 'InternalTransferCharge', id: string }
      & { ' $fragmentRefs'?: { 'ChargesTableFields_InternalTransferCharge_Fragment': ChargesTableFields_InternalTransferCharge_Fragment } }
    ) | (
      { __typename?: 'MonthlyVatCharge', id: string }
      & { ' $fragmentRefs'?: { 'ChargesTableFields_MonthlyVatCharge_Fragment': ChargesTableFields_MonthlyVatCharge_Fragment } }
    ) | (
      { __typename?: 'SalaryCharge', id: string }
      & { ' $fragmentRefs'?: { 'ChargesTableFields_SalaryCharge_Fragment': ChargesTableFields_SalaryCharge_Fragment } }
    ) | null }> };

type ChargesTableAccountantApprovalFields_BankDepositCharge_Fragment = { __typename?: 'BankDepositCharge', id: string, accountantApproval: AccountantStatus } & { ' $fragmentName'?: 'ChargesTableAccountantApprovalFields_BankDepositCharge_Fragment' };

type ChargesTableAccountantApprovalFields_BusinessTripCharge_Fragment = { __typename?: 'BusinessTripCharge', id: string, accountantApproval: AccountantStatus } & { ' $fragmentName'?: 'ChargesTableAccountantApprovalFields_BusinessTripCharge_Fragment' };

type ChargesTableAccountantApprovalFields_CommonCharge_Fragment = { __typename?: 'CommonCharge', id: string, accountantApproval: AccountantStatus } & { ' $fragmentName'?: 'ChargesTableAccountantApprovalFields_CommonCharge_Fragment' };

type ChargesTableAccountantApprovalFields_ConversionCharge_Fragment = { __typename?: 'ConversionCharge', id: string, accountantApproval: AccountantStatus } & { ' $fragmentName'?: 'ChargesTableAccountantApprovalFields_ConversionCharge_Fragment' };

type ChargesTableAccountantApprovalFields_CreditcardBankCharge_Fragment = { __typename?: 'CreditcardBankCharge', id: string, accountantApproval: AccountantStatus } & { ' $fragmentName'?: 'ChargesTableAccountantApprovalFields_CreditcardBankCharge_Fragment' };

type ChargesTableAccountantApprovalFields_DividendCharge_Fragment = { __typename?: 'DividendCharge', id: string, accountantApproval: AccountantStatus } & { ' $fragmentName'?: 'ChargesTableAccountantApprovalFields_DividendCharge_Fragment' };

type ChargesTableAccountantApprovalFields_FinancialCharge_Fragment = { __typename?: 'FinancialCharge', id: string, accountantApproval: AccountantStatus } & { ' $fragmentName'?: 'ChargesTableAccountantApprovalFields_FinancialCharge_Fragment' };

type ChargesTableAccountantApprovalFields_ForeignSecuritiesCharge_Fragment = { __typename?: 'ForeignSecuritiesCharge', id: string, accountantApproval: AccountantStatus } & { ' $fragmentName'?: 'ChargesTableAccountantApprovalFields_ForeignSecuritiesCharge_Fragment' };

type ChargesTableAccountantApprovalFields_InternalTransferCharge_Fragment = { __typename?: 'InternalTransferCharge', id: string, accountantApproval: AccountantStatus } & { ' $fragmentName'?: 'ChargesTableAccountantApprovalFields_InternalTransferCharge_Fragment' };

type ChargesTableAccountantApprovalFields_MonthlyVatCharge_Fragment = { __typename?: 'MonthlyVatCharge', id: string, accountantApproval: AccountantStatus } & { ' $fragmentName'?: 'ChargesTableAccountantApprovalFields_MonthlyVatCharge_Fragment' };

type ChargesTableAccountantApprovalFields_SalaryCharge_Fragment = { __typename?: 'SalaryCharge', id: string, accountantApproval: AccountantStatus } & { ' $fragmentName'?: 'ChargesTableAccountantApprovalFields_SalaryCharge_Fragment' };

export type ChargesTableAccountantApprovalFieldsFragment = ChargesTableAccountantApprovalFields_BankDepositCharge_Fragment | ChargesTableAccountantApprovalFields_BusinessTripCharge_Fragment | ChargesTableAccountantApprovalFields_CommonCharge_Fragment | ChargesTableAccountantApprovalFields_ConversionCharge_Fragment | ChargesTableAccountantApprovalFields_CreditcardBankCharge_Fragment | ChargesTableAccountantApprovalFields_DividendCharge_Fragment | ChargesTableAccountantApprovalFields_FinancialCharge_Fragment | ChargesTableAccountantApprovalFields_ForeignSecuritiesCharge_Fragment | ChargesTableAccountantApprovalFields_InternalTransferCharge_Fragment | ChargesTableAccountantApprovalFields_MonthlyVatCharge_Fragment | ChargesTableAccountantApprovalFields_SalaryCharge_Fragment;

type ChargesTableAmountFields_BankDepositCharge_Fragment = { __typename: 'BankDepositCharge', id: string, totalAmount?: { __typename?: 'FinancialAmount', raw: number, formatted: string } | null } & { ' $fragmentName'?: 'ChargesTableAmountFields_BankDepositCharge_Fragment' };

type ChargesTableAmountFields_BusinessTripCharge_Fragment = { __typename: 'BusinessTripCharge', id: string, totalAmount?: { __typename?: 'FinancialAmount', raw: number, formatted: string } | null } & { ' $fragmentName'?: 'ChargesTableAmountFields_BusinessTripCharge_Fragment' };

type ChargesTableAmountFields_CommonCharge_Fragment = { __typename: 'CommonCharge', id: string, totalAmount?: { __typename?: 'FinancialAmount', raw: number, formatted: string } | null } & { ' $fragmentName'?: 'ChargesTableAmountFields_CommonCharge_Fragment' };

type ChargesTableAmountFields_ConversionCharge_Fragment = { __typename: 'ConversionCharge', id: string, totalAmount?: { __typename?: 'FinancialAmount', raw: number, formatted: string } | null } & { ' $fragmentName'?: 'ChargesTableAmountFields_ConversionCharge_Fragment' };

type ChargesTableAmountFields_CreditcardBankCharge_Fragment = { __typename: 'CreditcardBankCharge', validCreditCardAmount: boolean, id: string, totalAmount?: { __typename?: 'FinancialAmount', raw: number, formatted: string } | null } & { ' $fragmentName'?: 'ChargesTableAmountFields_CreditcardBankCharge_Fragment' };

type ChargesTableAmountFields_DividendCharge_Fragment = { __typename: 'DividendCharge', id: string, totalAmount?: { __typename?: 'FinancialAmount', raw: number, formatted: string } | null } & { ' $fragmentName'?: 'ChargesTableAmountFields_DividendCharge_Fragment' };

type ChargesTableAmountFields_FinancialCharge_Fragment = { __typename: 'FinancialCharge', id: string, totalAmount?: { __typename?: 'FinancialAmount', raw: number, formatted: string } | null } & { ' $fragmentName'?: 'ChargesTableAmountFields_FinancialCharge_Fragment' };

type ChargesTableAmountFields_ForeignSecuritiesCharge_Fragment = { __typename: 'ForeignSecuritiesCharge', id: string, totalAmount?: { __typename?: 'FinancialAmount', raw: number, formatted: string } | null } & { ' $fragmentName'?: 'ChargesTableAmountFields_ForeignSecuritiesCharge_Fragment' };

type ChargesTableAmountFields_InternalTransferCharge_Fragment = { __typename: 'InternalTransferCharge', id: string, totalAmount?: { __typename?: 'FinancialAmount', raw: number, formatted: string } | null } & { ' $fragmentName'?: 'ChargesTableAmountFields_InternalTransferCharge_Fragment' };

type ChargesTableAmountFields_MonthlyVatCharge_Fragment = { __typename: 'MonthlyVatCharge', id: string, totalAmount?: { __typename?: 'FinancialAmount', raw: number, formatted: string } | null } & { ' $fragmentName'?: 'ChargesTableAmountFields_MonthlyVatCharge_Fragment' };

type ChargesTableAmountFields_SalaryCharge_Fragment = { __typename: 'SalaryCharge', id: string, totalAmount?: { __typename?: 'FinancialAmount', raw: number, formatted: string } | null } & { ' $fragmentName'?: 'ChargesTableAmountFields_SalaryCharge_Fragment' };

export type ChargesTableAmountFieldsFragment = ChargesTableAmountFields_BankDepositCharge_Fragment | ChargesTableAmountFields_BusinessTripCharge_Fragment | ChargesTableAmountFields_CommonCharge_Fragment | ChargesTableAmountFields_ConversionCharge_Fragment | ChargesTableAmountFields_CreditcardBankCharge_Fragment | ChargesTableAmountFields_DividendCharge_Fragment | ChargesTableAmountFields_FinancialCharge_Fragment | ChargesTableAmountFields_ForeignSecuritiesCharge_Fragment | ChargesTableAmountFields_InternalTransferCharge_Fragment | ChargesTableAmountFields_MonthlyVatCharge_Fragment | ChargesTableAmountFields_SalaryCharge_Fragment;

type ChargesTableBusinessTripFields_BankDepositCharge_Fragment = { __typename?: 'BankDepositCharge', id: string } & { ' $fragmentName'?: 'ChargesTableBusinessTripFields_BankDepositCharge_Fragment' };

type ChargesTableBusinessTripFields_BusinessTripCharge_Fragment = { __typename?: 'BusinessTripCharge', id: string, businessTrip?: { __typename?: 'BusinessTrip', id: string, name: string } | null } & { ' $fragmentName'?: 'ChargesTableBusinessTripFields_BusinessTripCharge_Fragment' };

type ChargesTableBusinessTripFields_CommonCharge_Fragment = { __typename?: 'CommonCharge', id: string } & { ' $fragmentName'?: 'ChargesTableBusinessTripFields_CommonCharge_Fragment' };

type ChargesTableBusinessTripFields_ConversionCharge_Fragment = { __typename?: 'ConversionCharge', id: string } & { ' $fragmentName'?: 'ChargesTableBusinessTripFields_ConversionCharge_Fragment' };

type ChargesTableBusinessTripFields_CreditcardBankCharge_Fragment = { __typename?: 'CreditcardBankCharge', id: string } & { ' $fragmentName'?: 'ChargesTableBusinessTripFields_CreditcardBankCharge_Fragment' };

type ChargesTableBusinessTripFields_DividendCharge_Fragment = { __typename?: 'DividendCharge', id: string } & { ' $fragmentName'?: 'ChargesTableBusinessTripFields_DividendCharge_Fragment' };

type ChargesTableBusinessTripFields_FinancialCharge_Fragment = { __typename?: 'FinancialCharge', id: string } & { ' $fragmentName'?: 'ChargesTableBusinessTripFields_FinancialCharge_Fragment' };

type ChargesTableBusinessTripFields_ForeignSecuritiesCharge_Fragment = { __typename?: 'ForeignSecuritiesCharge', id: string } & { ' $fragmentName'?: 'ChargesTableBusinessTripFields_ForeignSecuritiesCharge_Fragment' };

type ChargesTableBusinessTripFields_InternalTransferCharge_Fragment = { __typename?: 'InternalTransferCharge', id: string } & { ' $fragmentName'?: 'ChargesTableBusinessTripFields_InternalTransferCharge_Fragment' };

type ChargesTableBusinessTripFields_MonthlyVatCharge_Fragment = { __typename?: 'MonthlyVatCharge', id: string } & { ' $fragmentName'?: 'ChargesTableBusinessTripFields_MonthlyVatCharge_Fragment' };

type ChargesTableBusinessTripFields_SalaryCharge_Fragment = { __typename?: 'SalaryCharge', id: string } & { ' $fragmentName'?: 'ChargesTableBusinessTripFields_SalaryCharge_Fragment' };

export type ChargesTableBusinessTripFieldsFragment = ChargesTableBusinessTripFields_BankDepositCharge_Fragment | ChargesTableBusinessTripFields_BusinessTripCharge_Fragment | ChargesTableBusinessTripFields_CommonCharge_Fragment | ChargesTableBusinessTripFields_ConversionCharge_Fragment | ChargesTableBusinessTripFields_CreditcardBankCharge_Fragment | ChargesTableBusinessTripFields_DividendCharge_Fragment | ChargesTableBusinessTripFields_FinancialCharge_Fragment | ChargesTableBusinessTripFields_ForeignSecuritiesCharge_Fragment | ChargesTableBusinessTripFields_InternalTransferCharge_Fragment | ChargesTableBusinessTripFields_MonthlyVatCharge_Fragment | ChargesTableBusinessTripFields_SalaryCharge_Fragment;

type ChargesTableEntityFields_BankDepositCharge_Fragment = { __typename: 'BankDepositCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, counterparty?: { __typename?: 'LtdFinancialEntity', name: string, id: string } | { __typename?: 'PersonalFinancialEntity', name: string, id: string } | { __typename?: 'TaxCategory', name: string, id: string } | null } & { ' $fragmentName'?: 'ChargesTableEntityFields_BankDepositCharge_Fragment' };

type ChargesTableEntityFields_BusinessTripCharge_Fragment = { __typename: 'BusinessTripCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, counterparty?: { __typename?: 'LtdFinancialEntity', name: string, id: string } | { __typename?: 'PersonalFinancialEntity', name: string, id: string } | { __typename?: 'TaxCategory', name: string, id: string } | null } & { ' $fragmentName'?: 'ChargesTableEntityFields_BusinessTripCharge_Fragment' };

type ChargesTableEntityFields_CommonCharge_Fragment = { __typename: 'CommonCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, counterparty?: { __typename?: 'LtdFinancialEntity', name: string, id: string } | { __typename?: 'PersonalFinancialEntity', name: string, id: string } | { __typename?: 'TaxCategory', name: string, id: string } | null } & { ' $fragmentName'?: 'ChargesTableEntityFields_CommonCharge_Fragment' };

type ChargesTableEntityFields_ConversionCharge_Fragment = { __typename: 'ConversionCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, counterparty?: { __typename?: 'LtdFinancialEntity', name: string, id: string } | { __typename?: 'PersonalFinancialEntity', name: string, id: string } | { __typename?: 'TaxCategory', name: string, id: string } | null } & { ' $fragmentName'?: 'ChargesTableEntityFields_ConversionCharge_Fragment' };

type ChargesTableEntityFields_CreditcardBankCharge_Fragment = { __typename: 'CreditcardBankCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, counterparty?: { __typename?: 'LtdFinancialEntity', name: string, id: string } | { __typename?: 'PersonalFinancialEntity', name: string, id: string } | { __typename?: 'TaxCategory', name: string, id: string } | null } & { ' $fragmentName'?: 'ChargesTableEntityFields_CreditcardBankCharge_Fragment' };

type ChargesTableEntityFields_DividendCharge_Fragment = { __typename: 'DividendCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, counterparty?: { __typename?: 'LtdFinancialEntity', name: string, id: string } | { __typename?: 'PersonalFinancialEntity', name: string, id: string } | { __typename?: 'TaxCategory', name: string, id: string } | null } & { ' $fragmentName'?: 'ChargesTableEntityFields_DividendCharge_Fragment' };

type ChargesTableEntityFields_FinancialCharge_Fragment = { __typename: 'FinancialCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, counterparty?: { __typename?: 'LtdFinancialEntity', name: string, id: string } | { __typename?: 'PersonalFinancialEntity', name: string, id: string } | { __typename?: 'TaxCategory', name: string, id: string } | null } & { ' $fragmentName'?: 'ChargesTableEntityFields_FinancialCharge_Fragment' };

type ChargesTableEntityFields_ForeignSecuritiesCharge_Fragment = { __typename: 'ForeignSecuritiesCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, counterparty?: { __typename?: 'LtdFinancialEntity', name: string, id: string } | { __typename?: 'PersonalFinancialEntity', name: string, id: string } | { __typename?: 'TaxCategory', name: string, id: string } | null } & { ' $fragmentName'?: 'ChargesTableEntityFields_ForeignSecuritiesCharge_Fragment' };

type ChargesTableEntityFields_InternalTransferCharge_Fragment = { __typename: 'InternalTransferCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, counterparty?: { __typename?: 'LtdFinancialEntity', name: string, id: string } | { __typename?: 'PersonalFinancialEntity', name: string, id: string } | { __typename?: 'TaxCategory', name: string, id: string } | null } & { ' $fragmentName'?: 'ChargesTableEntityFields_InternalTransferCharge_Fragment' };

type ChargesTableEntityFields_MonthlyVatCharge_Fragment = { __typename: 'MonthlyVatCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, counterparty?: { __typename?: 'LtdFinancialEntity', name: string, id: string } | { __typename?: 'PersonalFinancialEntity', name: string, id: string } | { __typename?: 'TaxCategory', name: string, id: string } | null } & { ' $fragmentName'?: 'ChargesTableEntityFields_MonthlyVatCharge_Fragment' };

type ChargesTableEntityFields_SalaryCharge_Fragment = { __typename: 'SalaryCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, counterparty?: { __typename?: 'LtdFinancialEntity', name: string, id: string } | { __typename?: 'PersonalFinancialEntity', name: string, id: string } | { __typename?: 'TaxCategory', name: string, id: string } | null } & { ' $fragmentName'?: 'ChargesTableEntityFields_SalaryCharge_Fragment' };

export type ChargesTableEntityFieldsFragment = ChargesTableEntityFields_BankDepositCharge_Fragment | ChargesTableEntityFields_BusinessTripCharge_Fragment | ChargesTableEntityFields_CommonCharge_Fragment | ChargesTableEntityFields_ConversionCharge_Fragment | ChargesTableEntityFields_CreditcardBankCharge_Fragment | ChargesTableEntityFields_DividendCharge_Fragment | ChargesTableEntityFields_FinancialCharge_Fragment | ChargesTableEntityFields_ForeignSecuritiesCharge_Fragment | ChargesTableEntityFields_InternalTransferCharge_Fragment | ChargesTableEntityFields_MonthlyVatCharge_Fragment | ChargesTableEntityFields_SalaryCharge_Fragment;

type ChargesTableDateFields_BankDepositCharge_Fragment = { __typename?: 'BankDepositCharge', id: string, minEventDate?: Date | null, minDebitDate?: Date | null, minDocumentsDate?: Date | null } & { ' $fragmentName'?: 'ChargesTableDateFields_BankDepositCharge_Fragment' };

type ChargesTableDateFields_BusinessTripCharge_Fragment = { __typename?: 'BusinessTripCharge', id: string, minEventDate?: Date | null, minDebitDate?: Date | null, minDocumentsDate?: Date | null } & { ' $fragmentName'?: 'ChargesTableDateFields_BusinessTripCharge_Fragment' };

type ChargesTableDateFields_CommonCharge_Fragment = { __typename?: 'CommonCharge', id: string, minEventDate?: Date | null, minDebitDate?: Date | null, minDocumentsDate?: Date | null } & { ' $fragmentName'?: 'ChargesTableDateFields_CommonCharge_Fragment' };

type ChargesTableDateFields_ConversionCharge_Fragment = { __typename?: 'ConversionCharge', id: string, minEventDate?: Date | null, minDebitDate?: Date | null, minDocumentsDate?: Date | null } & { ' $fragmentName'?: 'ChargesTableDateFields_ConversionCharge_Fragment' };

type ChargesTableDateFields_CreditcardBankCharge_Fragment = { __typename?: 'CreditcardBankCharge', id: string, minEventDate?: Date | null, minDebitDate?: Date | null, minDocumentsDate?: Date | null } & { ' $fragmentName'?: 'ChargesTableDateFields_CreditcardBankCharge_Fragment' };

type ChargesTableDateFields_DividendCharge_Fragment = { __typename?: 'DividendCharge', id: string, minEventDate?: Date | null, minDebitDate?: Date | null, minDocumentsDate?: Date | null } & { ' $fragmentName'?: 'ChargesTableDateFields_DividendCharge_Fragment' };

type ChargesTableDateFields_FinancialCharge_Fragment = { __typename?: 'FinancialCharge', id: string, minEventDate?: Date | null, minDebitDate?: Date | null, minDocumentsDate?: Date | null } & { ' $fragmentName'?: 'ChargesTableDateFields_FinancialCharge_Fragment' };

type ChargesTableDateFields_ForeignSecuritiesCharge_Fragment = { __typename?: 'ForeignSecuritiesCharge', id: string, minEventDate?: Date | null, minDebitDate?: Date | null, minDocumentsDate?: Date | null } & { ' $fragmentName'?: 'ChargesTableDateFields_ForeignSecuritiesCharge_Fragment' };

type ChargesTableDateFields_InternalTransferCharge_Fragment = { __typename?: 'InternalTransferCharge', id: string, minEventDate?: Date | null, minDebitDate?: Date | null, minDocumentsDate?: Date | null } & { ' $fragmentName'?: 'ChargesTableDateFields_InternalTransferCharge_Fragment' };

type ChargesTableDateFields_MonthlyVatCharge_Fragment = { __typename?: 'MonthlyVatCharge', id: string, minEventDate?: Date | null, minDebitDate?: Date | null, minDocumentsDate?: Date | null } & { ' $fragmentName'?: 'ChargesTableDateFields_MonthlyVatCharge_Fragment' };

type ChargesTableDateFields_SalaryCharge_Fragment = { __typename?: 'SalaryCharge', id: string, minEventDate?: Date | null, minDebitDate?: Date | null, minDocumentsDate?: Date | null } & { ' $fragmentName'?: 'ChargesTableDateFields_SalaryCharge_Fragment' };

export type ChargesTableDateFieldsFragment = ChargesTableDateFields_BankDepositCharge_Fragment | ChargesTableDateFields_BusinessTripCharge_Fragment | ChargesTableDateFields_CommonCharge_Fragment | ChargesTableDateFields_ConversionCharge_Fragment | ChargesTableDateFields_CreditcardBankCharge_Fragment | ChargesTableDateFields_DividendCharge_Fragment | ChargesTableDateFields_FinancialCharge_Fragment | ChargesTableDateFields_ForeignSecuritiesCharge_Fragment | ChargesTableDateFields_InternalTransferCharge_Fragment | ChargesTableDateFields_MonthlyVatCharge_Fragment | ChargesTableDateFields_SalaryCharge_Fragment;

type ChargesTableDescriptionFields_BankDepositCharge_Fragment = { __typename?: 'BankDepositCharge', id: string, userDescription?: string | null, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, missingInfoSuggestions?: { __typename?: 'ChargeSuggestions', description?: string | null } | null } & { ' $fragmentName'?: 'ChargesTableDescriptionFields_BankDepositCharge_Fragment' };

type ChargesTableDescriptionFields_BusinessTripCharge_Fragment = { __typename?: 'BusinessTripCharge', id: string, userDescription?: string | null, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, missingInfoSuggestions?: { __typename?: 'ChargeSuggestions', description?: string | null } | null } & { ' $fragmentName'?: 'ChargesTableDescriptionFields_BusinessTripCharge_Fragment' };

type ChargesTableDescriptionFields_CommonCharge_Fragment = { __typename?: 'CommonCharge', id: string, userDescription?: string | null, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, missingInfoSuggestions?: { __typename?: 'ChargeSuggestions', description?: string | null } | null } & { ' $fragmentName'?: 'ChargesTableDescriptionFields_CommonCharge_Fragment' };

type ChargesTableDescriptionFields_ConversionCharge_Fragment = { __typename?: 'ConversionCharge', id: string, userDescription?: string | null, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, missingInfoSuggestions?: { __typename?: 'ChargeSuggestions', description?: string | null } | null } & { ' $fragmentName'?: 'ChargesTableDescriptionFields_ConversionCharge_Fragment' };

type ChargesTableDescriptionFields_CreditcardBankCharge_Fragment = { __typename?: 'CreditcardBankCharge', id: string, userDescription?: string | null, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, missingInfoSuggestions?: { __typename?: 'ChargeSuggestions', description?: string | null } | null } & { ' $fragmentName'?: 'ChargesTableDescriptionFields_CreditcardBankCharge_Fragment' };

type ChargesTableDescriptionFields_DividendCharge_Fragment = { __typename?: 'DividendCharge', id: string, userDescription?: string | null, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, missingInfoSuggestions?: { __typename?: 'ChargeSuggestions', description?: string | null } | null } & { ' $fragmentName'?: 'ChargesTableDescriptionFields_DividendCharge_Fragment' };

type ChargesTableDescriptionFields_FinancialCharge_Fragment = { __typename?: 'FinancialCharge', id: string, userDescription?: string | null, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, missingInfoSuggestions?: { __typename?: 'ChargeSuggestions', description?: string | null } | null } & { ' $fragmentName'?: 'ChargesTableDescriptionFields_FinancialCharge_Fragment' };

type ChargesTableDescriptionFields_ForeignSecuritiesCharge_Fragment = { __typename?: 'ForeignSecuritiesCharge', id: string, userDescription?: string | null, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, missingInfoSuggestions?: { __typename?: 'ChargeSuggestions', description?: string | null } | null } & { ' $fragmentName'?: 'ChargesTableDescriptionFields_ForeignSecuritiesCharge_Fragment' };

type ChargesTableDescriptionFields_InternalTransferCharge_Fragment = { __typename?: 'InternalTransferCharge', id: string, userDescription?: string | null, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, missingInfoSuggestions?: { __typename?: 'ChargeSuggestions', description?: string | null } | null } & { ' $fragmentName'?: 'ChargesTableDescriptionFields_InternalTransferCharge_Fragment' };

type ChargesTableDescriptionFields_MonthlyVatCharge_Fragment = { __typename?: 'MonthlyVatCharge', id: string, userDescription?: string | null, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, missingInfoSuggestions?: { __typename?: 'ChargeSuggestions', description?: string | null } | null } & { ' $fragmentName'?: 'ChargesTableDescriptionFields_MonthlyVatCharge_Fragment' };

type ChargesTableDescriptionFields_SalaryCharge_Fragment = { __typename?: 'SalaryCharge', id: string, userDescription?: string | null, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, missingInfoSuggestions?: { __typename?: 'ChargeSuggestions', description?: string | null } | null } & { ' $fragmentName'?: 'ChargesTableDescriptionFields_SalaryCharge_Fragment' };

export type ChargesTableDescriptionFieldsFragment = ChargesTableDescriptionFields_BankDepositCharge_Fragment | ChargesTableDescriptionFields_BusinessTripCharge_Fragment | ChargesTableDescriptionFields_CommonCharge_Fragment | ChargesTableDescriptionFields_ConversionCharge_Fragment | ChargesTableDescriptionFields_CreditcardBankCharge_Fragment | ChargesTableDescriptionFields_DividendCharge_Fragment | ChargesTableDescriptionFields_FinancialCharge_Fragment | ChargesTableDescriptionFields_ForeignSecuritiesCharge_Fragment | ChargesTableDescriptionFields_InternalTransferCharge_Fragment | ChargesTableDescriptionFields_MonthlyVatCharge_Fragment | ChargesTableDescriptionFields_SalaryCharge_Fragment;

type ChargesTableMoreInfoFields_BankDepositCharge_Fragment = { __typename: 'BankDepositCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, metadata?: { __typename?: 'ChargeMetadata', transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number, isSalary: boolean } & ({ __typename?: 'ChargeMetadata', invalidLedger: LedgerValidationStatus } | { __typename?: 'ChargeMetadata', invalidLedger?: never }) | null } & { ' $fragmentName'?: 'ChargesTableMoreInfoFields_BankDepositCharge_Fragment' };

type ChargesTableMoreInfoFields_BusinessTripCharge_Fragment = { __typename: 'BusinessTripCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, metadata?: { __typename?: 'ChargeMetadata', transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number, isSalary: boolean } & ({ __typename?: 'ChargeMetadata', invalidLedger: LedgerValidationStatus } | { __typename?: 'ChargeMetadata', invalidLedger?: never }) | null } & { ' $fragmentName'?: 'ChargesTableMoreInfoFields_BusinessTripCharge_Fragment' };

type ChargesTableMoreInfoFields_CommonCharge_Fragment = { __typename: 'CommonCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, metadata?: { __typename?: 'ChargeMetadata', transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number, isSalary: boolean } & ({ __typename?: 'ChargeMetadata', invalidLedger: LedgerValidationStatus } | { __typename?: 'ChargeMetadata', invalidLedger?: never }) | null } & { ' $fragmentName'?: 'ChargesTableMoreInfoFields_CommonCharge_Fragment' };

type ChargesTableMoreInfoFields_ConversionCharge_Fragment = { __typename: 'ConversionCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, metadata?: { __typename?: 'ChargeMetadata', transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number, isSalary: boolean } & ({ __typename?: 'ChargeMetadata', invalidLedger: LedgerValidationStatus } | { __typename?: 'ChargeMetadata', invalidLedger?: never }) | null } & { ' $fragmentName'?: 'ChargesTableMoreInfoFields_ConversionCharge_Fragment' };

type ChargesTableMoreInfoFields_CreditcardBankCharge_Fragment = { __typename: 'CreditcardBankCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, metadata?: { __typename?: 'ChargeMetadata', transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number, isSalary: boolean } & ({ __typename?: 'ChargeMetadata', invalidLedger: LedgerValidationStatus } | { __typename?: 'ChargeMetadata', invalidLedger?: never }) | null } & { ' $fragmentName'?: 'ChargesTableMoreInfoFields_CreditcardBankCharge_Fragment' };

type ChargesTableMoreInfoFields_DividendCharge_Fragment = { __typename: 'DividendCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, metadata?: { __typename?: 'ChargeMetadata', transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number, isSalary: boolean } & ({ __typename?: 'ChargeMetadata', invalidLedger: LedgerValidationStatus } | { __typename?: 'ChargeMetadata', invalidLedger?: never }) | null } & { ' $fragmentName'?: 'ChargesTableMoreInfoFields_DividendCharge_Fragment' };

type ChargesTableMoreInfoFields_FinancialCharge_Fragment = { __typename: 'FinancialCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, metadata?: { __typename?: 'ChargeMetadata', transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number, isSalary: boolean } & ({ __typename?: 'ChargeMetadata', invalidLedger: LedgerValidationStatus } | { __typename?: 'ChargeMetadata', invalidLedger?: never }) | null } & { ' $fragmentName'?: 'ChargesTableMoreInfoFields_FinancialCharge_Fragment' };

type ChargesTableMoreInfoFields_ForeignSecuritiesCharge_Fragment = { __typename: 'ForeignSecuritiesCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, metadata?: { __typename?: 'ChargeMetadata', transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number, isSalary: boolean } & ({ __typename?: 'ChargeMetadata', invalidLedger: LedgerValidationStatus } | { __typename?: 'ChargeMetadata', invalidLedger?: never }) | null } & { ' $fragmentName'?: 'ChargesTableMoreInfoFields_ForeignSecuritiesCharge_Fragment' };

type ChargesTableMoreInfoFields_InternalTransferCharge_Fragment = { __typename: 'InternalTransferCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, metadata?: { __typename?: 'ChargeMetadata', transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number, isSalary: boolean } & ({ __typename?: 'ChargeMetadata', invalidLedger: LedgerValidationStatus } | { __typename?: 'ChargeMetadata', invalidLedger?: never }) | null } & { ' $fragmentName'?: 'ChargesTableMoreInfoFields_InternalTransferCharge_Fragment' };

type ChargesTableMoreInfoFields_MonthlyVatCharge_Fragment = { __typename: 'MonthlyVatCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, metadata?: { __typename?: 'ChargeMetadata', transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number, isSalary: boolean } & ({ __typename?: 'ChargeMetadata', invalidLedger: LedgerValidationStatus } | { __typename?: 'ChargeMetadata', invalidLedger?: never }) | null } & { ' $fragmentName'?: 'ChargesTableMoreInfoFields_MonthlyVatCharge_Fragment' };

type ChargesTableMoreInfoFields_SalaryCharge_Fragment = { __typename: 'SalaryCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, metadata?: { __typename?: 'ChargeMetadata', transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number, isSalary: boolean } & ({ __typename?: 'ChargeMetadata', invalidLedger: LedgerValidationStatus } | { __typename?: 'ChargeMetadata', invalidLedger?: never }) | null } & { ' $fragmentName'?: 'ChargesTableMoreInfoFields_SalaryCharge_Fragment' };

export type ChargesTableMoreInfoFieldsFragment = ChargesTableMoreInfoFields_BankDepositCharge_Fragment | ChargesTableMoreInfoFields_BusinessTripCharge_Fragment | ChargesTableMoreInfoFields_CommonCharge_Fragment | ChargesTableMoreInfoFields_ConversionCharge_Fragment | ChargesTableMoreInfoFields_CreditcardBankCharge_Fragment | ChargesTableMoreInfoFields_DividendCharge_Fragment | ChargesTableMoreInfoFields_FinancialCharge_Fragment | ChargesTableMoreInfoFields_ForeignSecuritiesCharge_Fragment | ChargesTableMoreInfoFields_InternalTransferCharge_Fragment | ChargesTableMoreInfoFields_MonthlyVatCharge_Fragment | ChargesTableMoreInfoFields_SalaryCharge_Fragment;

type ChargesTableTagsFields_BankDepositCharge_Fragment = { __typename: 'BankDepositCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, missingInfoSuggestions?: { __typename?: 'ChargeSuggestions', tags: Array<{ __typename?: 'Tag', id: string, name: string, namePath?: Array<string> | null }> } | null, tags: Array<{ __typename?: 'Tag', id: string, name: string, namePath?: Array<string> | null }> } & { ' $fragmentName'?: 'ChargesTableTagsFields_BankDepositCharge_Fragment' };

type ChargesTableTagsFields_BusinessTripCharge_Fragment = { __typename: 'BusinessTripCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, missingInfoSuggestions?: { __typename?: 'ChargeSuggestions', tags: Array<{ __typename?: 'Tag', id: string, name: string, namePath?: Array<string> | null }> } | null, tags: Array<{ __typename?: 'Tag', id: string, name: string, namePath?: Array<string> | null }> } & { ' $fragmentName'?: 'ChargesTableTagsFields_BusinessTripCharge_Fragment' };

type ChargesTableTagsFields_CommonCharge_Fragment = { __typename: 'CommonCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, missingInfoSuggestions?: { __typename?: 'ChargeSuggestions', tags: Array<{ __typename?: 'Tag', id: string, name: string, namePath?: Array<string> | null }> } | null, tags: Array<{ __typename?: 'Tag', id: string, name: string, namePath?: Array<string> | null }> } & { ' $fragmentName'?: 'ChargesTableTagsFields_CommonCharge_Fragment' };

type ChargesTableTagsFields_ConversionCharge_Fragment = { __typename: 'ConversionCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, missingInfoSuggestions?: { __typename?: 'ChargeSuggestions', tags: Array<{ __typename?: 'Tag', id: string, name: string, namePath?: Array<string> | null }> } | null, tags: Array<{ __typename?: 'Tag', id: string, name: string, namePath?: Array<string> | null }> } & { ' $fragmentName'?: 'ChargesTableTagsFields_ConversionCharge_Fragment' };

type ChargesTableTagsFields_CreditcardBankCharge_Fragment = { __typename: 'CreditcardBankCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, missingInfoSuggestions?: { __typename?: 'ChargeSuggestions', tags: Array<{ __typename?: 'Tag', id: string, name: string, namePath?: Array<string> | null }> } | null, tags: Array<{ __typename?: 'Tag', id: string, name: string, namePath?: Array<string> | null }> } & { ' $fragmentName'?: 'ChargesTableTagsFields_CreditcardBankCharge_Fragment' };

type ChargesTableTagsFields_DividendCharge_Fragment = { __typename: 'DividendCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, missingInfoSuggestions?: { __typename?: 'ChargeSuggestions', tags: Array<{ __typename?: 'Tag', id: string, name: string, namePath?: Array<string> | null }> } | null, tags: Array<{ __typename?: 'Tag', id: string, name: string, namePath?: Array<string> | null }> } & { ' $fragmentName'?: 'ChargesTableTagsFields_DividendCharge_Fragment' };

type ChargesTableTagsFields_FinancialCharge_Fragment = { __typename: 'FinancialCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, missingInfoSuggestions?: { __typename?: 'ChargeSuggestions', tags: Array<{ __typename?: 'Tag', id: string, name: string, namePath?: Array<string> | null }> } | null, tags: Array<{ __typename?: 'Tag', id: string, name: string, namePath?: Array<string> | null }> } & { ' $fragmentName'?: 'ChargesTableTagsFields_FinancialCharge_Fragment' };

type ChargesTableTagsFields_ForeignSecuritiesCharge_Fragment = { __typename: 'ForeignSecuritiesCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, missingInfoSuggestions?: { __typename?: 'ChargeSuggestions', tags: Array<{ __typename?: 'Tag', id: string, name: string, namePath?: Array<string> | null }> } | null, tags: Array<{ __typename?: 'Tag', id: string, name: string, namePath?: Array<string> | null }> } & { ' $fragmentName'?: 'ChargesTableTagsFields_ForeignSecuritiesCharge_Fragment' };

type ChargesTableTagsFields_InternalTransferCharge_Fragment = { __typename: 'InternalTransferCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, missingInfoSuggestions?: { __typename?: 'ChargeSuggestions', tags: Array<{ __typename?: 'Tag', id: string, name: string, namePath?: Array<string> | null }> } | null, tags: Array<{ __typename?: 'Tag', id: string, name: string, namePath?: Array<string> | null }> } & { ' $fragmentName'?: 'ChargesTableTagsFields_InternalTransferCharge_Fragment' };

type ChargesTableTagsFields_MonthlyVatCharge_Fragment = { __typename: 'MonthlyVatCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, missingInfoSuggestions?: { __typename?: 'ChargeSuggestions', tags: Array<{ __typename?: 'Tag', id: string, name: string, namePath?: Array<string> | null }> } | null, tags: Array<{ __typename?: 'Tag', id: string, name: string, namePath?: Array<string> | null }> } & { ' $fragmentName'?: 'ChargesTableTagsFields_MonthlyVatCharge_Fragment' };

type ChargesTableTagsFields_SalaryCharge_Fragment = { __typename: 'SalaryCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, missingInfoSuggestions?: { __typename?: 'ChargeSuggestions', tags: Array<{ __typename?: 'Tag', id: string, name: string, namePath?: Array<string> | null }> } | null, tags: Array<{ __typename?: 'Tag', id: string, name: string, namePath?: Array<string> | null }> } & { ' $fragmentName'?: 'ChargesTableTagsFields_SalaryCharge_Fragment' };

export type ChargesTableTagsFieldsFragment = ChargesTableTagsFields_BankDepositCharge_Fragment | ChargesTableTagsFields_BusinessTripCharge_Fragment | ChargesTableTagsFields_CommonCharge_Fragment | ChargesTableTagsFields_ConversionCharge_Fragment | ChargesTableTagsFields_CreditcardBankCharge_Fragment | ChargesTableTagsFields_DividendCharge_Fragment | ChargesTableTagsFields_FinancialCharge_Fragment | ChargesTableTagsFields_ForeignSecuritiesCharge_Fragment | ChargesTableTagsFields_InternalTransferCharge_Fragment | ChargesTableTagsFields_MonthlyVatCharge_Fragment | ChargesTableTagsFields_SalaryCharge_Fragment;

type ChargesTableTaxCategoryFields_BankDepositCharge_Fragment = { __typename: 'BankDepositCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, taxCategory?: { __typename?: 'TaxCategory', id: string, name: string } | null } & { ' $fragmentName'?: 'ChargesTableTaxCategoryFields_BankDepositCharge_Fragment' };

type ChargesTableTaxCategoryFields_BusinessTripCharge_Fragment = { __typename: 'BusinessTripCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, taxCategory?: { __typename?: 'TaxCategory', id: string, name: string } | null } & { ' $fragmentName'?: 'ChargesTableTaxCategoryFields_BusinessTripCharge_Fragment' };

type ChargesTableTaxCategoryFields_CommonCharge_Fragment = { __typename: 'CommonCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, taxCategory?: { __typename?: 'TaxCategory', id: string, name: string } | null } & { ' $fragmentName'?: 'ChargesTableTaxCategoryFields_CommonCharge_Fragment' };

type ChargesTableTaxCategoryFields_ConversionCharge_Fragment = { __typename: 'ConversionCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, taxCategory?: { __typename?: 'TaxCategory', id: string, name: string } | null } & { ' $fragmentName'?: 'ChargesTableTaxCategoryFields_ConversionCharge_Fragment' };

type ChargesTableTaxCategoryFields_CreditcardBankCharge_Fragment = { __typename: 'CreditcardBankCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, taxCategory?: { __typename?: 'TaxCategory', id: string, name: string } | null } & { ' $fragmentName'?: 'ChargesTableTaxCategoryFields_CreditcardBankCharge_Fragment' };

type ChargesTableTaxCategoryFields_DividendCharge_Fragment = { __typename: 'DividendCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, taxCategory?: { __typename?: 'TaxCategory', id: string, name: string } | null } & { ' $fragmentName'?: 'ChargesTableTaxCategoryFields_DividendCharge_Fragment' };

type ChargesTableTaxCategoryFields_FinancialCharge_Fragment = { __typename: 'FinancialCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, taxCategory?: { __typename?: 'TaxCategory', id: string, name: string } | null } & { ' $fragmentName'?: 'ChargesTableTaxCategoryFields_FinancialCharge_Fragment' };

type ChargesTableTaxCategoryFields_ForeignSecuritiesCharge_Fragment = { __typename: 'ForeignSecuritiesCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, taxCategory?: { __typename?: 'TaxCategory', id: string, name: string } | null } & { ' $fragmentName'?: 'ChargesTableTaxCategoryFields_ForeignSecuritiesCharge_Fragment' };

type ChargesTableTaxCategoryFields_InternalTransferCharge_Fragment = { __typename: 'InternalTransferCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, taxCategory?: { __typename?: 'TaxCategory', id: string, name: string } | null } & { ' $fragmentName'?: 'ChargesTableTaxCategoryFields_InternalTransferCharge_Fragment' };

type ChargesTableTaxCategoryFields_MonthlyVatCharge_Fragment = { __typename: 'MonthlyVatCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, taxCategory?: { __typename?: 'TaxCategory', id: string, name: string } | null } & { ' $fragmentName'?: 'ChargesTableTaxCategoryFields_MonthlyVatCharge_Fragment' };

type ChargesTableTaxCategoryFields_SalaryCharge_Fragment = { __typename: 'SalaryCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, taxCategory?: { __typename?: 'TaxCategory', id: string, name: string } | null } & { ' $fragmentName'?: 'ChargesTableTaxCategoryFields_SalaryCharge_Fragment' };

export type ChargesTableTaxCategoryFieldsFragment = ChargesTableTaxCategoryFields_BankDepositCharge_Fragment | ChargesTableTaxCategoryFields_BusinessTripCharge_Fragment | ChargesTableTaxCategoryFields_CommonCharge_Fragment | ChargesTableTaxCategoryFields_ConversionCharge_Fragment | ChargesTableTaxCategoryFields_CreditcardBankCharge_Fragment | ChargesTableTaxCategoryFields_DividendCharge_Fragment | ChargesTableTaxCategoryFields_FinancialCharge_Fragment | ChargesTableTaxCategoryFields_ForeignSecuritiesCharge_Fragment | ChargesTableTaxCategoryFields_InternalTransferCharge_Fragment | ChargesTableTaxCategoryFields_MonthlyVatCharge_Fragment | ChargesTableTaxCategoryFields_SalaryCharge_Fragment;

type ChargesTableTypeFields_BankDepositCharge_Fragment = { __typename: 'BankDepositCharge', id: string } & { ' $fragmentName'?: 'ChargesTableTypeFields_BankDepositCharge_Fragment' };

type ChargesTableTypeFields_BusinessTripCharge_Fragment = { __typename: 'BusinessTripCharge', id: string } & { ' $fragmentName'?: 'ChargesTableTypeFields_BusinessTripCharge_Fragment' };

type ChargesTableTypeFields_CommonCharge_Fragment = { __typename: 'CommonCharge', id: string } & { ' $fragmentName'?: 'ChargesTableTypeFields_CommonCharge_Fragment' };

type ChargesTableTypeFields_ConversionCharge_Fragment = { __typename: 'ConversionCharge', id: string } & { ' $fragmentName'?: 'ChargesTableTypeFields_ConversionCharge_Fragment' };

type ChargesTableTypeFields_CreditcardBankCharge_Fragment = { __typename: 'CreditcardBankCharge', id: string } & { ' $fragmentName'?: 'ChargesTableTypeFields_CreditcardBankCharge_Fragment' };

type ChargesTableTypeFields_DividendCharge_Fragment = { __typename: 'DividendCharge', id: string } & { ' $fragmentName'?: 'ChargesTableTypeFields_DividendCharge_Fragment' };

type ChargesTableTypeFields_FinancialCharge_Fragment = { __typename: 'FinancialCharge', id: string } & { ' $fragmentName'?: 'ChargesTableTypeFields_FinancialCharge_Fragment' };

type ChargesTableTypeFields_ForeignSecuritiesCharge_Fragment = { __typename: 'ForeignSecuritiesCharge', id: string } & { ' $fragmentName'?: 'ChargesTableTypeFields_ForeignSecuritiesCharge_Fragment' };

type ChargesTableTypeFields_InternalTransferCharge_Fragment = { __typename: 'InternalTransferCharge', id: string } & { ' $fragmentName'?: 'ChargesTableTypeFields_InternalTransferCharge_Fragment' };

type ChargesTableTypeFields_MonthlyVatCharge_Fragment = { __typename: 'MonthlyVatCharge', id: string } & { ' $fragmentName'?: 'ChargesTableTypeFields_MonthlyVatCharge_Fragment' };

type ChargesTableTypeFields_SalaryCharge_Fragment = { __typename: 'SalaryCharge', id: string } & { ' $fragmentName'?: 'ChargesTableTypeFields_SalaryCharge_Fragment' };

export type ChargesTableTypeFieldsFragment = ChargesTableTypeFields_BankDepositCharge_Fragment | ChargesTableTypeFields_BusinessTripCharge_Fragment | ChargesTableTypeFields_CommonCharge_Fragment | ChargesTableTypeFields_ConversionCharge_Fragment | ChargesTableTypeFields_CreditcardBankCharge_Fragment | ChargesTableTypeFields_DividendCharge_Fragment | ChargesTableTypeFields_FinancialCharge_Fragment | ChargesTableTypeFields_ForeignSecuritiesCharge_Fragment | ChargesTableTypeFields_InternalTransferCharge_Fragment | ChargesTableTypeFields_MonthlyVatCharge_Fragment | ChargesTableTypeFields_SalaryCharge_Fragment;

type ChargesTableVatFields_BankDepositCharge_Fragment = { __typename: 'BankDepositCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, vat?: { __typename?: 'FinancialAmount', raw: number, formatted: string } | null, totalAmount?: { __typename?: 'FinancialAmount', raw: number, currency: Currency } | null } & { ' $fragmentName'?: 'ChargesTableVatFields_BankDepositCharge_Fragment' };

type ChargesTableVatFields_BusinessTripCharge_Fragment = { __typename: 'BusinessTripCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, vat?: { __typename?: 'FinancialAmount', raw: number, formatted: string } | null, totalAmount?: { __typename?: 'FinancialAmount', raw: number, currency: Currency } | null } & { ' $fragmentName'?: 'ChargesTableVatFields_BusinessTripCharge_Fragment' };

type ChargesTableVatFields_CommonCharge_Fragment = { __typename: 'CommonCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, vat?: { __typename?: 'FinancialAmount', raw: number, formatted: string } | null, totalAmount?: { __typename?: 'FinancialAmount', raw: number, currency: Currency } | null } & { ' $fragmentName'?: 'ChargesTableVatFields_CommonCharge_Fragment' };

type ChargesTableVatFields_ConversionCharge_Fragment = { __typename: 'ConversionCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, vat?: { __typename?: 'FinancialAmount', raw: number, formatted: string } | null, totalAmount?: { __typename?: 'FinancialAmount', raw: number, currency: Currency } | null } & { ' $fragmentName'?: 'ChargesTableVatFields_ConversionCharge_Fragment' };

type ChargesTableVatFields_CreditcardBankCharge_Fragment = { __typename: 'CreditcardBankCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, vat?: { __typename?: 'FinancialAmount', raw: number, formatted: string } | null, totalAmount?: { __typename?: 'FinancialAmount', raw: number, currency: Currency } | null } & { ' $fragmentName'?: 'ChargesTableVatFields_CreditcardBankCharge_Fragment' };

type ChargesTableVatFields_DividendCharge_Fragment = { __typename: 'DividendCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, vat?: { __typename?: 'FinancialAmount', raw: number, formatted: string } | null, totalAmount?: { __typename?: 'FinancialAmount', raw: number, currency: Currency } | null } & { ' $fragmentName'?: 'ChargesTableVatFields_DividendCharge_Fragment' };

type ChargesTableVatFields_FinancialCharge_Fragment = { __typename: 'FinancialCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, vat?: { __typename?: 'FinancialAmount', raw: number, formatted: string } | null, totalAmount?: { __typename?: 'FinancialAmount', raw: number, currency: Currency } | null } & { ' $fragmentName'?: 'ChargesTableVatFields_FinancialCharge_Fragment' };

type ChargesTableVatFields_ForeignSecuritiesCharge_Fragment = { __typename: 'ForeignSecuritiesCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, vat?: { __typename?: 'FinancialAmount', raw: number, formatted: string } | null, totalAmount?: { __typename?: 'FinancialAmount', raw: number, currency: Currency } | null } & { ' $fragmentName'?: 'ChargesTableVatFields_ForeignSecuritiesCharge_Fragment' };

type ChargesTableVatFields_InternalTransferCharge_Fragment = { __typename: 'InternalTransferCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, vat?: { __typename?: 'FinancialAmount', raw: number, formatted: string } | null, totalAmount?: { __typename?: 'FinancialAmount', raw: number, currency: Currency } | null } & { ' $fragmentName'?: 'ChargesTableVatFields_InternalTransferCharge_Fragment' };

type ChargesTableVatFields_MonthlyVatCharge_Fragment = { __typename: 'MonthlyVatCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, vat?: { __typename?: 'FinancialAmount', raw: number, formatted: string } | null, totalAmount?: { __typename?: 'FinancialAmount', raw: number, currency: Currency } | null } & { ' $fragmentName'?: 'ChargesTableVatFields_MonthlyVatCharge_Fragment' };

type ChargesTableVatFields_SalaryCharge_Fragment = { __typename: 'SalaryCharge', id: string, validationData?: { __typename?: 'ValidationData', missingInfo: Array<MissingChargeInfo> } | null, vat?: { __typename?: 'FinancialAmount', raw: number, formatted: string } | null, totalAmount?: { __typename?: 'FinancialAmount', raw: number, currency: Currency } | null } & { ' $fragmentName'?: 'ChargesTableVatFields_SalaryCharge_Fragment' };

export type ChargesTableVatFieldsFragment = ChargesTableVatFields_BankDepositCharge_Fragment | ChargesTableVatFields_BusinessTripCharge_Fragment | ChargesTableVatFields_CommonCharge_Fragment | ChargesTableVatFields_ConversionCharge_Fragment | ChargesTableVatFields_CreditcardBankCharge_Fragment | ChargesTableVatFields_DividendCharge_Fragment | ChargesTableVatFields_FinancialCharge_Fragment | ChargesTableVatFields_ForeignSecuritiesCharge_Fragment | ChargesTableVatFields_InternalTransferCharge_Fragment | ChargesTableVatFields_MonthlyVatCharge_Fragment | ChargesTableVatFields_SalaryCharge_Fragment;

type ChargesTableErrorsFields_BankDepositCharge_Fragment = { __typename?: 'BankDepositCharge', id: string, errorsLedger: { __typename?: 'Ledger' } & ({ __typename?: 'Ledger', validate: { __typename?: 'LedgerValidation' } & ({ __typename?: 'LedgerValidation', errors: Array<string> } | { __typename?: 'LedgerValidation', errors?: never }) } | { __typename?: 'Ledger', validate?: never }) } & { ' $fragmentName'?: 'ChargesTableErrorsFields_BankDepositCharge_Fragment' };

type ChargesTableErrorsFields_BusinessTripCharge_Fragment = { __typename?: 'BusinessTripCharge', id: string, errorsLedger: { __typename?: 'Ledger' } & ({ __typename?: 'Ledger', validate: { __typename?: 'LedgerValidation' } & ({ __typename?: 'LedgerValidation', errors: Array<string> } | { __typename?: 'LedgerValidation', errors?: never }) } | { __typename?: 'Ledger', validate?: never }) } & { ' $fragmentName'?: 'ChargesTableErrorsFields_BusinessTripCharge_Fragment' };

type ChargesTableErrorsFields_CommonCharge_Fragment = { __typename?: 'CommonCharge', id: string, errorsLedger: { __typename?: 'Ledger' } & ({ __typename?: 'Ledger', validate: { __typename?: 'LedgerValidation' } & ({ __typename?: 'LedgerValidation', errors: Array<string> } | { __typename?: 'LedgerValidation', errors?: never }) } | { __typename?: 'Ledger', validate?: never }) } & { ' $fragmentName'?: 'ChargesTableErrorsFields_CommonCharge_Fragment' };

type ChargesTableErrorsFields_ConversionCharge_Fragment = { __typename?: 'ConversionCharge', id: string, errorsLedger: { __typename?: 'Ledger' } & ({ __typename?: 'Ledger', validate: { __typename?: 'LedgerValidation' } & ({ __typename?: 'LedgerValidation', errors: Array<string> } | { __typename?: 'LedgerValidation', errors?: never }) } | { __typename?: 'Ledger', validate?: never }) } & { ' $fragmentName'?: 'ChargesTableErrorsFields_ConversionCharge_Fragment' };

type ChargesTableErrorsFields_CreditcardBankCharge_Fragment = { __typename?: 'CreditcardBankCharge', id: string, errorsLedger: { __typename?: 'Ledger' } & ({ __typename?: 'Ledger', validate: { __typename?: 'LedgerValidation' } & ({ __typename?: 'LedgerValidation', errors: Array<string> } | { __typename?: 'LedgerValidation', errors?: never }) } | { __typename?: 'Ledger', validate?: never }) } & { ' $fragmentName'?: 'ChargesTableErrorsFields_CreditcardBankCharge_Fragment' };

type ChargesTableErrorsFields_DividendCharge_Fragment = { __typename?: 'DividendCharge', id: string, errorsLedger: { __typename?: 'Ledger' } & ({ __typename?: 'Ledger', validate: { __typename?: 'LedgerValidation' } & ({ __typename?: 'LedgerValidation', errors: Array<string> } | { __typename?: 'LedgerValidation', errors?: never }) } | { __typename?: 'Ledger', validate?: never }) } & { ' $fragmentName'?: 'ChargesTableErrorsFields_DividendCharge_Fragment' };

type ChargesTableErrorsFields_FinancialCharge_Fragment = { __typename?: 'FinancialCharge', id: string, errorsLedger: { __typename?: 'Ledger' } & ({ __typename?: 'Ledger', validate: { __typename?: 'LedgerValidation' } & ({ __typename?: 'LedgerValidation', errors: Array<string> } | { __typename?: 'LedgerValidation', errors?: never }) } | { __typename?: 'Ledger', validate?: never }) } & { ' $fragmentName'?: 'ChargesTableErrorsFields_FinancialCharge_Fragment' };

type ChargesTableErrorsFields_ForeignSecuritiesCharge_Fragment = { __typename?: 'ForeignSecuritiesCharge', id: string, errorsLedger: { __typename?: 'Ledger' } & ({ __typename?: 'Ledger', validate: { __typename?: 'LedgerValidation' } & ({ __typename?: 'LedgerValidation', errors: Array<string> } | { __typename?: 'LedgerValidation', errors?: never }) } | { __typename?: 'Ledger', validate?: never }) } & { ' $fragmentName'?: 'ChargesTableErrorsFields_ForeignSecuritiesCharge_Fragment' };

type ChargesTableErrorsFields_InternalTransferCharge_Fragment = { __typename?: 'InternalTransferCharge', id: string, errorsLedger: { __typename?: 'Ledger' } & ({ __typename?: 'Ledger', validate: { __typename?: 'LedgerValidation' } & ({ __typename?: 'LedgerValidation', errors: Array<string> } | { __typename?: 'LedgerValidation', errors?: never }) } | { __typename?: 'Ledger', validate?: never }) } & { ' $fragmentName'?: 'ChargesTableErrorsFields_InternalTransferCharge_Fragment' };

type ChargesTableErrorsFields_MonthlyVatCharge_Fragment = { __typename?: 'MonthlyVatCharge', id: string, errorsLedger: { __typename?: 'Ledger' } & ({ __typename?: 'Ledger', validate: { __typename?: 'LedgerValidation' } & ({ __typename?: 'LedgerValidation', errors: Array<string> } | { __typename?: 'LedgerValidation', errors?: never }) } | { __typename?: 'Ledger', validate?: never }) } & { ' $fragmentName'?: 'ChargesTableErrorsFields_MonthlyVatCharge_Fragment' };

type ChargesTableErrorsFields_SalaryCharge_Fragment = { __typename?: 'SalaryCharge', id: string, errorsLedger: { __typename?: 'Ledger' } & ({ __typename?: 'Ledger', validate: { __typename?: 'LedgerValidation' } & ({ __typename?: 'LedgerValidation', errors: Array<string> } | { __typename?: 'LedgerValidation', errors?: never }) } | { __typename?: 'Ledger', validate?: never }) } & { ' $fragmentName'?: 'ChargesTableErrorsFields_SalaryCharge_Fragment' };

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: Scalars['UUID']['input'];
}>;


export type FetchChargeQuery = { __typename?: 'Query', charge: { __typename: 'BankDepositCharge', id: string, metadata?: { __typename?: 'ChargeMetadata', transactionsCount: number, documentsCount: number, ledgerCount: number, isLedgerLocked: boolean, openDocuments: boolean } | null, totalAmount?: { __typename?: 'FinancialAmount', raw: number } | null, miscExpenses: Array<{ __typename?: 'MiscExpense', id: string }> } & (
    { __typename?: 'BankDepositCharge' }
    & { ' $fragmentRefs'?: { 'DocumentsGalleryFields_BankDepositCharge_Fragment': Incremental<DocumentsGalleryFields_BankDepositCharge_Fragment> } }
  ) & (
    { __typename?: 'BankDepositCharge' }
    & { ' $fragmentRefs'?: { 'TableDocumentsFields_BankDepositCharge_Fragment': Incremental<TableDocumentsFields_BankDepositCharge_Fragment> } }
  ) & (
    { __typename?: 'BankDepositCharge' }
    & { ' $fragmentRefs'?: { 'TableLedgerRecordsFields_BankDepositCharge_Fragment': Incremental<TableLedgerRecordsFields_BankDepositCharge_Fragment> } }
  ) & (
    { __typename?: 'BankDepositCharge' }
    & { ' $fragmentRefs'?: { 'ChargeTableTransactionsFields_BankDepositCharge_Fragment': Incremental<ChargeTableTransactionsFields_BankDepositCharge_Fragment> } }
  ) & (
    { __typename?: 'BankDepositCharge' }
    & { ' $fragmentRefs'?: { 'ConversionChargeInfo_BankDepositCharge_Fragment': Incremental<ConversionChargeInfo_BankDepositCharge_Fragment> } }
  ) & (
    { __typename?: 'BankDepositCharge' }
    & { ' $fragmentRefs'?: { 'CreditcardBankChargeInfo_BankDepositCharge_Fragment': Incremental<CreditcardBankChargeInfo_BankDepositCharge_Fragment> } }
  ) & (
    { __typename?: 'BankDepositCharge' }
    & { ' $fragmentRefs'?: { 'TableSalariesFields_BankDepositCharge_Fragment': Incremental<TableSalariesFields_BankDepositCharge_Fragment> } }
  ) & (
    { __typename?: 'BankDepositCharge' }
    & { ' $fragmentRefs'?: { 'ChargesTableErrorsFields_BankDepositCharge_Fragment': Incremental<ChargesTableErrorsFields_BankDepositCharge_Fragment> } }
  ) & (
    { __typename?: 'BankDepositCharge' }
    & { ' $fragmentRefs'?: { 'TableMiscExpensesFields_BankDepositCharge_Fragment': Incremental<TableMiscExpensesFields_BankDepositCharge_Fragment> } }
  ) & (
    { __typename?: 'BankDepositCharge' }
    & { ' $fragmentRefs'?: { 'ExchangeRatesInfo_BankDepositCharge_Fragment': Incremental<ExchangeRatesInfo_BankDepositCharge_Fragment> } }
  ) | { __typename: 'BusinessTripCharge', id: string, businessTrip?: (
      { __typename?: 'BusinessTrip', id: string }
      & { ' $fragmentRefs'?: { 'BusinessTripReportFieldsFragment': BusinessTripReportFieldsFragment } }
    ) | null, metadata?: { __typename?: 'ChargeMetadata', transactionsCount: number, documentsCount: number, ledgerCount: number, isLedgerLocked: boolean, openDocuments: boolean } | null, totalAmount?: { __typename?: 'FinancialAmount', raw: number } | null, miscExpenses: Array<{ __typename?: 'MiscExpense', id: string }> } & (
    { __typename?: 'BusinessTripCharge' }
    & { ' $fragmentRefs'?: { 'DocumentsGalleryFields_BusinessTripCharge_Fragment': Incremental<DocumentsGalleryFields_BusinessTripCharge_Fragment> } }
  ) & (
    { __typename?: 'BusinessTripCharge' }
    & { ' $fragmentRefs'?: { 'TableDocumentsFields_BusinessTripCharge_Fragment': Incremental<TableDocumentsFields_BusinessTripCharge_Fragment> } }
  ) & (
    { __typename?: 'BusinessTripCharge' }
    & { ' $fragmentRefs'?: { 'TableLedgerRecordsFields_BusinessTripCharge_Fragment': Incremental<TableLedgerRecordsFields_BusinessTripCharge_Fragment> } }
  ) & (
    { __typename?: 'BusinessTripCharge' }
    & { ' $fragmentRefs'?: { 'ChargeTableTransactionsFields_BusinessTripCharge_Fragment': Incremental<ChargeTableTransactionsFields_BusinessTripCharge_Fragment> } }
  ) & (
    { __typename?: 'BusinessTripCharge' }
    & { ' $fragmentRefs'?: { 'ConversionChargeInfo_BusinessTripCharge_Fragment': Incremental<ConversionChargeInfo_BusinessTripCharge_Fragment> } }
  ) & (
    { __typename?: 'BusinessTripCharge' }
    & { ' $fragmentRefs'?: { 'CreditcardBankChargeInfo_BusinessTripCharge_Fragment': Incremental<CreditcardBankChargeInfo_BusinessTripCharge_Fragment> } }
  ) & (
    { __typename?: 'BusinessTripCharge' }
    & { ' $fragmentRefs'?: { 'TableSalariesFields_BusinessTripCharge_Fragment': Incremental<TableSalariesFields_BusinessTripCharge_Fragment> } }
  ) & (
    { __typename?: 'BusinessTripCharge' }
    & { ' $fragmentRefs'?: { 'ChargesTableErrorsFields_BusinessTripCharge_Fragment': Incremental<ChargesTableErrorsFields_BusinessTripCharge_Fragment> } }
  ) & (
    { __typename?: 'BusinessTripCharge' }
    & { ' $fragmentRefs'?: { 'TableMiscExpensesFields_BusinessTripCharge_Fragment': Incremental<TableMiscExpensesFields_BusinessTripCharge_Fragment> } }
  ) & (
    { __typename?: 'BusinessTripCharge' }
    & { ' $fragmentRefs'?: { 'ExchangeRatesInfo_BusinessTripCharge_Fragment': Incremental<ExchangeRatesInfo_BusinessTripCharge_Fragment> } }
  ) | { __typename: 'CommonCharge', id: string, metadata?: { __typename?: 'ChargeMetadata', transactionsCount: number, documentsCount: number, ledgerCount: number, isLedgerLocked: boolean, openDocuments: boolean } | null, totalAmount?: { __typename?: 'FinancialAmount', raw: number } | null, miscExpenses: Array<{ __typename?: 'MiscExpense', id: string }> } & (
    { __typename?: 'CommonCharge' }
    & { ' $fragmentRefs'?: { 'DocumentsGalleryFields_CommonCharge_Fragment': Incremental<DocumentsGalleryFields_CommonCharge_Fragment> } }
  ) & (
    { __typename?: 'CommonCharge' }
    & { ' $fragmentRefs'?: { 'TableDocumentsFields_CommonCharge_Fragment': Incremental<TableDocumentsFields_CommonCharge_Fragment> } }
  ) & (
    { __typename?: 'CommonCharge' }
    & { ' $fragmentRefs'?: { 'TableLedgerRecordsFields_CommonCharge_Fragment': Incremental<TableLedgerRecordsFields_CommonCharge_Fragment> } }
  ) & (
    { __typename?: 'CommonCharge' }
    & { ' $fragmentRefs'?: { 'ChargeTableTransactionsFields_CommonCharge_Fragment': Incremental<ChargeTableTransactionsFields_CommonCharge_Fragment> } }
  ) & (
    { __typename?: 'CommonCharge' }
    & { ' $fragmentRefs'?: { 'ConversionChargeInfo_CommonCharge_Fragment': Incremental<ConversionChargeInfo_CommonCharge_Fragment> } }
  ) & (
    { __typename?: 'CommonCharge' }
    & { ' $fragmentRefs'?: { 'CreditcardBankChargeInfo_CommonCharge_Fragment': Incremental<CreditcardBankChargeInfo_CommonCharge_Fragment> } }
  ) & (
    { __typename?: 'CommonCharge' }
    & { ' $fragmentRefs'?: { 'TableSalariesFields_CommonCharge_Fragment': Incremental<TableSalariesFields_CommonCharge_Fragment> } }
  ) & (
    { __typename?: 'CommonCharge' }
    & { ' $fragmentRefs'?: { 'ChargesTableErrorsFields_CommonCharge_Fragment': Incremental<ChargesTableErrorsFields_CommonCharge_Fragment> } }
  ) & (
    { __typename?: 'CommonCharge' }
    & { ' $fragmentRefs'?: { 'TableMiscExpensesFields_CommonCharge_Fragment': Incremental<TableMiscExpensesFields_CommonCharge_Fragment> } }
  ) & (
    { __typename?: 'CommonCharge' }
    & { ' $fragmentRefs'?: { 'ExchangeRatesInfo_CommonCharge_Fragment': Incremental<ExchangeRatesInfo_CommonCharge_Fragment> } }
  ) | { __typename: 'ConversionCharge', id: string, metadata?: { __typename?: 'ChargeMetadata', transactionsCount: number, documentsCount: number, ledgerCount: number, isLedgerLocked: boolean, openDocuments: boolean } | null, totalAmount?: { __typename?: 'FinancialAmount', raw: number } | null, miscExpenses: Array<{ __typename?: 'MiscExpense', id: string }> } & (
    { __typename?: 'ConversionCharge' }
    & { ' $fragmentRefs'?: { 'DocumentsGalleryFields_ConversionCharge_Fragment': Incremental<DocumentsGalleryFields_ConversionCharge_Fragment> } }
  ) & (
    { __typename?: 'ConversionCharge' }
    & { ' $fragmentRefs'?: { 'TableDocumentsFields_ConversionCharge_Fragment': Incremental<TableDocumentsFields_ConversionCharge_Fragment> } }
  ) & (
    { __typename?: 'ConversionCharge' }
    & { ' $fragmentRefs'?: { 'TableLedgerRecordsFields_ConversionCharge_Fragment': Incremental<TableLedgerRecordsFields_ConversionCharge_Fragment> } }
  ) & (
    { __typename?: 'ConversionCharge' }
    & { ' $fragmentRefs'?: { 'ChargeTableTransactionsFields_ConversionCharge_Fragment': Incremental<ChargeTableTransactionsFields_ConversionCharge_Fragment> } }
  ) & (
    { __typename?: 'ConversionCharge' }
    & { ' $fragmentRefs'?: { 'ConversionChargeInfo_ConversionCharge_Fragment': Incremental<ConversionChargeInfo_ConversionCharge_Fragment> } }
  ) & (
    { __typename?: 'ConversionCharge' }
    & { ' $fragmentRefs'?: { 'CreditcardBankChargeInfo_ConversionCharge_Fragment': Incremental<CreditcardBankChargeInfo_ConversionCharge_Fragment> } }
  ) & (
    { __typename?: 'ConversionCharge' }
    & { ' $fragmentRefs'?: { 'TableSalariesFields_ConversionCharge_Fragment': Incremental<TableSalariesFields_ConversionCharge_Fragment> } }
  ) & (
    { __typename?: 'ConversionCharge' }
    & { ' $fragmentRefs'?: { 'ChargesTableErrorsFields_ConversionCharge_Fragment': Incremental<ChargesTableErrorsFields_ConversionCharge_Fragment> } }
  ) & (
    { __typename?: 'ConversionCharge' }
    & { ' $fragmentRefs'?: { 'TableMiscExpensesFields_ConversionCharge_Fragment': Incremental<TableMiscExpensesFields_ConversionCharge_Fragment> } }
  ) & (
    { __typename?: 'ConversionCharge' }
    & { ' $fragmentRefs'?: { 'ExchangeRatesInfo_ConversionCharge_Fragment': Incremental<ExchangeRatesInfo_ConversionCharge_Fragment> } }
  ) | { __typename: 'CreditcardBankCharge', id: string, metadata?: { __typename?: 'ChargeMetadata', transactionsCount: number, documentsCount: number, ledgerCount: number, isLedgerLocked: boolean, openDocuments: boolean } | null, totalAmount?: { __typename?: 'FinancialAmount', raw: number } | null, miscExpenses: Array<{ __typename?: 'MiscExpense', id: string }> } & (
    { __typename?: 'CreditcardBankCharge' }
    & { ' $fragmentRefs'?: { 'DocumentsGalleryFields_CreditcardBankCharge_Fragment': Incremental<DocumentsGalleryFields_CreditcardBankCharge_Fragment> } }
  ) & (
    { __typename?: 'CreditcardBankCharge' }
    & { ' $fragmentRefs'?: { 'TableDocumentsFields_CreditcardBankCharge_Fragment': Incremental<TableDocumentsFields_CreditcardBankCharge_Fragment> } }
  ) & (
    { __typename?: 'CreditcardBankCharge' }
    & { ' $fragmentRefs'?: { 'TableLedgerRecordsFields_CreditcardBankCharge_Fragment': Incremental<TableLedgerRecordsFields_CreditcardBankCharge_Fragment> } }
  ) & (
    { __typename?: 'CreditcardBankCharge' }
    & { ' $fragmentRefs'?: { 'ChargeTableTransactionsFields_CreditcardBankCharge_Fragment': Incremental<ChargeTableTransactionsFields_CreditcardBankCharge_Fragment> } }
  ) & (
    { __typename?: 'CreditcardBankCharge' }
    & { ' $fragmentRefs'?: { 'ConversionChargeInfo_CreditcardBankCharge_Fragment': Incremental<ConversionChargeInfo_CreditcardBankCharge_Fragment> } }
  ) & (
    { __typename?: 'CreditcardBankCharge' }
    & { ' $fragmentRefs'?: { 'CreditcardBankChargeInfo_CreditcardBankCharge_Fragment': Incremental<CreditcardBankChargeInfo_CreditcardBankCharge_Fragment> } }
  ) & (
    { __typename?: 'CreditcardBankCharge' }
    & { ' $fragmentRefs'?: { 'TableSalariesFields_CreditcardBankCharge_Fragment': Incremental<TableSalariesFields_CreditcardBankCharge_Fragment> } }
  ) & (
    { __typename?: 'CreditcardBankCharge' }
    & { ' $fragmentRefs'?: { 'ChargesTableErrorsFields_CreditcardBankCharge_Fragment': Incremental<ChargesTableErrorsFields_CreditcardBankCharge_Fragment> } }
  ) & (
    { __typename?: 'CreditcardBankCharge' }
    & { ' $fragmentRefs'?: { 'TableMiscExpensesFields_CreditcardBankCharge_Fragment': Incremental<TableMiscExpensesFields_CreditcardBankCharge_Fragment> } }
  ) & (
    { __typename?: 'CreditcardBankCharge' }
    & { ' $fragmentRefs'?: { 'ExchangeRatesInfo_CreditcardBankCharge_Fragment': Incremental<ExchangeRatesInfo_CreditcardBankCharge_Fragment> } }
  ) | { __typename: 'DividendCharge', id: string, metadata?: { __typename?: 'ChargeMetadata', transactionsCount: number, documentsCount: number, ledgerCount: number, isLedgerLocked: boolean, openDocuments: boolean } | null, totalAmount?: { __typename?: 'FinancialAmount', raw: number } | null, miscExpenses: Array<{ __typename?: 'MiscExpense', id: string }> } & (
    { __typename?: 'DividendCharge' }
    & { ' $fragmentRefs'?: { 'DocumentsGalleryFields_DividendCharge_Fragment': Incremental<DocumentsGalleryFields_DividendCharge_Fragment> } }
  ) & (
    { __typename?: 'DividendCharge' }
    & { ' $fragmentRefs'?: { 'TableDocumentsFields_DividendCharge_Fragment': Incremental<TableDocumentsFields_DividendCharge_Fragment> } }
  ) & (
    { __typename?: 'DividendCharge' }
    & { ' $fragmentRefs'?: { 'TableLedgerRecordsFields_DividendCharge_Fragment': Incremental<TableLedgerRecordsFields_DividendCharge_Fragment> } }
  ) & (
    { __typename?: 'DividendCharge' }
    & { ' $fragmentRefs'?: { 'ChargeTableTransactionsFields_DividendCharge_Fragment': Incremental<ChargeTableTransactionsFields_DividendCharge_Fragment> } }
  ) & (
    { __typename?: 'DividendCharge' }
    & { ' $fragmentRefs'?: { 'ConversionChargeInfo_DividendCharge_Fragment': Incremental<ConversionChargeInfo_DividendCharge_Fragment> } }
  ) & (
    { __typename?: 'DividendCharge' }
    & { ' $fragmentRefs'?: { 'CreditcardBankChargeInfo_DividendCharge_Fragment': Incremental<CreditcardBankChargeInfo_DividendCharge_Fragment> } }
  ) & (
    { __typename?: 'DividendCharge' }
    & { ' $fragmentRefs'?: { 'TableSalariesFields_DividendCharge_Fragment': Incremental<TableSalariesFields_DividendCharge_Fragment> } }
  ) & (
    { __typename?: 'DividendCharge' }
    & { ' $fragmentRefs'?: { 'ChargesTableErrorsFields_DividendCharge_Fragment': Incremental<ChargesTableErrorsFields_DividendCharge_Fragment> } }
  ) & (
    { __typename?: 'DividendCharge' }
    & { ' $fragmentRefs'?: { 'TableMiscExpensesFields_DividendCharge_Fragment': Incremental<TableMiscExpensesFields_DividendCharge_Fragment> } }
  ) & (
    { __typename?: 'DividendCharge' }
    & { ' $fragmentRefs'?: { 'ExchangeRatesInfo_DividendCharge_Fragment': Incremental<ExchangeRatesInfo_DividendCharge_Fragment> } }
  ) | { __typename: 'FinancialCharge', id: string, metadata?: { __typename?: 'ChargeMetadata', transactionsCount: number, documentsCount: number, ledgerCount: number, isLedgerLocked: boolean, openDocuments: boolean } | null, totalAmount?: { __typename?: 'FinancialAmount', raw: number } | null, miscExpenses: Array<{ __typename?: 'MiscExpense', id: string }> } & (
    { __typename?: 'FinancialCharge' }
    & { ' $fragmentRefs'?: { 'DocumentsGalleryFields_FinancialCharge_Fragment': Incremental<DocumentsGalleryFields_FinancialCharge_Fragment> } }
  ) & (
    { __typename?: 'FinancialCharge' }
    & { ' $fragmentRefs'?: { 'TableDocumentsFields_FinancialCharge_Fragment': Incremental<TableDocumentsFields_FinancialCharge_Fragment> } }
  ) & (
    { __typename?: 'FinancialCharge' }
    & { ' $fragmentRefs'?: { 'TableLedgerRecordsFields_FinancialCharge_Fragment': Incremental<TableLedgerRecordsFields_FinancialCharge_Fragment> } }
  ) & (
    { __typename?: 'FinancialCharge' }
    & { ' $fragmentRefs'?: { 'ChargeTableTransactionsFields_FinancialCharge_Fragment': Incremental<ChargeTableTransactionsFields_FinancialCharge_Fragment> } }
  ) & (
    { __typename?: 'FinancialCharge' }
    & { ' $fragmentRefs'?: { 'ConversionChargeInfo_FinancialCharge_Fragment': Incremental<ConversionChargeInfo_FinancialCharge_Fragment> } }
  ) & (
    { __typename?: 'FinancialCharge' }
    & { ' $fragmentRefs'?: { 'CreditcardBankChargeInfo_FinancialCharge_Fragment': Incremental<CreditcardBankChargeInfo_FinancialCharge_Fragment> } }
  ) & (
    { __typename?: 'FinancialCharge' }
    & { ' $fragmentRefs'?: { 'TableSalariesFields_FinancialCharge_Fragment': Incremental<TableSalariesFields_FinancialCharge_Fragment> } }
  ) & (
    { __typename?: 'FinancialCharge' }
    & { ' $fragmentRefs'?: { 'ChargesTableErrorsFields_FinancialCharge_Fragment': Incremental<ChargesTableErrorsFields_FinancialCharge_Fragment> } }
  ) & (
    { __typename?: 'FinancialCharge' }
    & { ' $fragmentRefs'?: { 'TableMiscExpensesFields_FinancialCharge_Fragment': Incremental<TableMiscExpensesFields_FinancialCharge_Fragment> } }
  ) & (
    { __typename?: 'FinancialCharge' }
    & { ' $fragmentRefs'?: { 'ExchangeRatesInfo_FinancialCharge_Fragment': Incremental<ExchangeRatesInfo_FinancialCharge_Fragment> } }
  ) | { __typename: 'ForeignSecuritiesCharge', id: string, metadata?: { __typename?: 'ChargeMetadata', transactionsCount: number, documentsCount: number, ledgerCount: number, isLedgerLocked: boolean, openDocuments: boolean } | null, totalAmount?: { __typename?: 'FinancialAmount', raw: number } | null, miscExpenses: Array<{ __typename?: 'MiscExpense', id: string }> } & (
    { __typename?: 'ForeignSecuritiesCharge' }
    & { ' $fragmentRefs'?: { 'DocumentsGalleryFields_ForeignSecuritiesCharge_Fragment': Incremental<DocumentsGalleryFields_ForeignSecuritiesCharge_Fragment> } }
  ) & (
    { __typename?: 'ForeignSecuritiesCharge' }
    & { ' $fragmentRefs'?: { 'TableDocumentsFields_ForeignSecuritiesCharge_Fragment': Incremental<TableDocumentsFields_ForeignSecuritiesCharge_Fragment> } }
  ) & (
    { __typename?: 'ForeignSecuritiesCharge' }
    & { ' $fragmentRefs'?: { 'TableLedgerRecordsFields_ForeignSecuritiesCharge_Fragment': Incremental<TableLedgerRecordsFields_ForeignSecuritiesCharge_Fragment> } }
  ) & (
    { __typename?: 'ForeignSecuritiesCharge' }
    & { ' $fragmentRefs'?: { 'ChargeTableTransactionsFields_ForeignSecuritiesCharge_Fragment': Incremental<ChargeTableTransactionsFields_ForeignSecuritiesCharge_Fragment> } }
  ) & (
    { __typename?: 'ForeignSecuritiesCharge' }
    & { ' $fragmentRefs'?: { 'ConversionChargeInfo_ForeignSecuritiesCharge_Fragment': Incremental<ConversionChargeInfo_ForeignSecuritiesCharge_Fragment> } }
  ) & (
    { __typename?: 'ForeignSecuritiesCharge' }
    & { ' $fragmentRefs'?: { 'CreditcardBankChargeInfo_ForeignSecuritiesCharge_Fragment': Incremental<CreditcardBankChargeInfo_ForeignSecuritiesCharge_Fragment> } }
  ) & (
    { __typename?: 'ForeignSecuritiesCharge' }
    & { ' $fragmentRefs'?: { 'TableSalariesFields_ForeignSecuritiesCharge_Fragment': Incremental<TableSalariesFields_ForeignSecuritiesCharge_Fragment> } }
  ) & (
    { __typename?: 'ForeignSecuritiesCharge' }
    & { ' $fragmentRefs'?: { 'ChargesTableErrorsFields_ForeignSecuritiesCharge_Fragment': Incremental<ChargesTableErrorsFields_ForeignSecuritiesCharge_Fragment> } }
  ) & (
    { __typename?: 'ForeignSecuritiesCharge' }
    & { ' $fragmentRefs'?: { 'TableMiscExpensesFields_ForeignSecuritiesCharge_Fragment': Incremental<TableMiscExpensesFields_ForeignSecuritiesCharge_Fragment> } }
  ) & (
    { __typename?: 'ForeignSecuritiesCharge' }
    & { ' $fragmentRefs'?: { 'ExchangeRatesInfo_ForeignSecuritiesCharge_Fragment': Incremental<ExchangeRatesInfo_ForeignSecuritiesCharge_Fragment> } }
  ) | { __typename: 'InternalTransferCharge', id: string, metadata?: { __typename?: 'ChargeMetadata', transactionsCount: number, documentsCount: number, ledgerCount: number, isLedgerLocked: boolean, openDocuments: boolean } | null, totalAmount?: { __typename?: 'FinancialAmount', raw: number } | null, miscExpenses: Array<{ __typename?: 'MiscExpense', id: string }> } & (
    { __typename?: 'InternalTransferCharge' }
    & { ' $fragmentRefs'?: { 'DocumentsGalleryFields_InternalTransferCharge_Fragment': Incremental<DocumentsGalleryFields_InternalTransferCharge_Fragment> } }
  ) & (
    { __typename?: 'InternalTransferCharge' }
    & { ' $fragmentRefs'?: { 'TableDocumentsFields_InternalTransferCharge_Fragment': Incremental<TableDocumentsFields_InternalTransferCharge_Fragment> } }
  ) & (
    { __typename?: 'InternalTransferCharge' }
    & { ' $fragmentRefs'?: { 'TableLedgerRecordsFields_InternalTransferCharge_Fragment': Incremental<TableLedgerRecordsFields_InternalTransferCharge_Fragment> } }
  ) & (
    { __typename?: 'InternalTransferCharge' }
    & { ' $fragmentRefs'?: { 'ChargeTableTransactionsFields_InternalTransferCharge_Fragment': Incremental<ChargeTableTransactionsFields_InternalTransferCharge_Fragment> } }
  ) & (
    { __typename?: 'InternalTransferCharge' }
    & { ' $fragmentRefs'?: { 'ConversionChargeInfo_InternalTransferCharge_Fragment': Incremental<ConversionChargeInfo_InternalTransferCharge_Fragment> } }
  ) & (
    { __typename?: 'InternalTransferCharge' }
    & { ' $fragmentRefs'?: { 'CreditcardBankChargeInfo_InternalTransferCharge_Fragment': Incremental<CreditcardBankChargeInfo_InternalTransferCharge_Fragment> } }
  ) & (
    { __typename?: 'InternalTransferCharge' }
    & { ' $fragmentRefs'?: { 'TableSalariesFields_InternalTransferCharge_Fragment': Incremental<TableSalariesFields_InternalTransferCharge_Fragment> } }
  ) & (
    { __typename?: 'InternalTransferCharge' }
    & { ' $fragmentRefs'?: { 'ChargesTableErrorsFields_InternalTransferCharge_Fragment': Incremental<ChargesTableErrorsFields_InternalTransferCharge_Fragment> } }
  ) & (
    { __typename?: 'InternalTransferCharge' }
    & { ' $fragmentRefs'?: { 'TableMiscExpensesFields_InternalTransferCharge_Fragment': Incremental<TableMiscExpensesFields_InternalTransferCharge_Fragment> } }
  ) & (
    { __typename?: 'InternalTransferCharge' }
    & { ' $fragmentRefs'?: { 'ExchangeRatesInfo_InternalTransferCharge_Fragment': Incremental<ExchangeRatesInfo_InternalTransferCharge_Fragment> } }
  ) | { __typename: 'MonthlyVatCharge', id: string, metadata?: { __typename?: 'ChargeMetadata', transactionsCount: number, documentsCount: number, ledgerCount: number, isLedgerLocked: boolean, openDocuments: boolean } | null, totalAmount?: { __typename?: 'FinancialAmount', raw: number } | null, miscExpenses: Array<{ __typename?: 'MiscExpense', id: string }> } & (
    { __typename?: 'MonthlyVatCharge' }
    & { ' $fragmentRefs'?: { 'DocumentsGalleryFields_MonthlyVatCharge_Fragment': Incremental<DocumentsGalleryFields_MonthlyVatCharge_Fragment> } }
  ) & (
    { __typename?: 'MonthlyVatCharge' }
    & { ' $fragmentRefs'?: { 'TableDocumentsFields_MonthlyVatCharge_Fragment': Incremental<TableDocumentsFields_MonthlyVatCharge_Fragment> } }
  ) & (
    { __typename?: 'MonthlyVatCharge' }
    & { ' $fragmentRefs'?: { 'TableLedgerRecordsFields_MonthlyVatCharge_Fragment': Incremental<TableLedgerRecordsFields_MonthlyVatCharge_Fragment> } }
  ) & (
    { __typename?: 'MonthlyVatCharge' }
    & { ' $fragmentRefs'?: { 'ChargeTableTransactionsFields_MonthlyVatCharge_Fragment': Incremental<ChargeTableTransactionsFields_MonthlyVatCharge_Fragment> } }
  ) & (
    { __typename?: 'MonthlyVatCharge' }
    & { ' $fragmentRefs'?: { 'ConversionChargeInfo_MonthlyVatCharge_Fragment': Incremental<ConversionChargeInfo_MonthlyVatCharge_Fragment> } }
  ) & (
    { __typename?: 'MonthlyVatCharge' }
    & { ' $fragmentRefs'?: { 'CreditcardBankChargeInfo_MonthlyVatCharge_Fragment': Incremental<CreditcardBankChargeInfo_MonthlyVatCharge_Fragment> } }
  ) & (
    { __typename?: 'MonthlyVatCharge' }
    & { ' $fragmentRefs'?: { 'TableSalariesFields_MonthlyVatCharge_Fragment': Incremental<TableSalariesFields_MonthlyVatCharge_Fragment> } }
  ) & (
    { __typename?: 'MonthlyVatCharge' }
    & { ' $fragmentRefs'?: { 'ChargesTableErrorsFields_MonthlyVatCharge_Fragment': Incremental<ChargesTableErrorsFields_MonthlyVatCharge_Fragment> } }
  ) & (
    { __typename?: 'MonthlyVatCharge' }
    & { ' $fragmentRefs'?: { 'TableMiscExpensesFields_MonthlyVatCharge_Fragment': Incremental<TableMiscExpensesFields_MonthlyVatCharge_Fragment> } }
  ) & (
    { __typename?: 'MonthlyVatCharge' }
    & { ' $fragmentRefs'?: { 'ExchangeRatesInfo_MonthlyVatCharge_Fragment': Incremental<ExchangeRatesInfo_MonthlyVatCharge_Fragment> } }
  ) | { __typename: 'SalaryCharge', id: string, metadata?: { __typename?: 'ChargeMetadata', transactionsCount: number, documentsCount: number, ledgerCount: number, isLedgerLocked: boolean, openDocuments: boolean } | null, totalAmount?: { __typename?: 'FinancialAmount', raw: number } | null, miscExpenses: Array<{ __typename?: 'MiscExpense', id: string }> } & (
    { __typename?: 'SalaryCharge' }
    & { ' $fragmentRefs'?: { 'DocumentsGalleryFields_SalaryCharge_Fragment': Incremental<DocumentsGalleryFields_SalaryCharge_Fragment> } }
  ) & (
    { __typename?: 'SalaryCharge' }
    & { ' $fragmentRefs'?: { 'TableDocumentsFields_SalaryCharge_Fragment': Incremental<TableDocumentsFields_SalaryCharge_Fragment> } }
  ) & (
    { __typename?: 'SalaryCharge' }
    & { ' $fragmentRefs'?: { 'TableLedgerRecordsFields_SalaryCharge_Fragment': Incremental<TableLedgerRecordsFields_SalaryCharge_Fragment> } }
  ) & (
    { __typename?: 'SalaryCharge' }
    & { ' $fragmentRefs'?: { 'ChargeTableTransactionsFields_SalaryCharge_Fragment': Incremental<ChargeTableTransactionsFields_SalaryCharge_Fragment> } }
  ) & (
    { __typename?: 'SalaryCharge' }
    & { ' $fragmentRefs'?: { 'ConversionChargeInfo_SalaryCharge_Fragment': Incremental<ConversionChargeInfo_SalaryCharge_Fragment> } }
  ) & (
    { __typename?: 'SalaryCharge' }
    & { ' $fragmentRefs'?: { 'CreditcardBankChargeInfo_SalaryCharge_Fragment': Incremental<CreditcardBankChargeInfo_SalaryCharge_Fragment> } }
  ) & (
    { __typename?: 'SalaryCharge' }
    & { ' $fragmentRefs'?: { 'TableSalariesFields_SalaryCharge_Fragment': Incremental<TableSalariesFields_SalaryCharge_Fragment> } }
  ) & (
    { __typename?: 'SalaryCharge' }
    & { ' $fragmentRefs'?: { 'ChargesTableErrorsFields_SalaryCharge_Fragment': Incremental<ChargesTableErrorsFields_SalaryCharge_Fragment> } }
  ) & (
    { __typename?: 'SalaryCharge' }
    & { ' $fragmentRefs'?: { 'TableMiscExpensesFields_SalaryCharge_Fragment': Incremental<TableMiscExpensesFields_SalaryCharge_Fragment> } }
  ) & (
    { __typename?: 'SalaryCharge' }
    & { ' $fragmentRefs'?: { 'ExchangeRatesInfo_SalaryCharge_Fragment': Incremental<ExchangeRatesInfo_SalaryCharge_Fragment> } }
  ) };

type TableDocumentsFields_BankDepositCharge_Fragment = { __typename?: 'BankDepositCharge', id: string, additionalDocuments: Array<(
    { __typename?: 'CreditInvoice', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_CreditInvoice_Fragment': TableDocumentsRowFields_CreditInvoice_Fragment } }
  ) | (
    { __typename?: 'Invoice', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Invoice_Fragment': TableDocumentsRowFields_Invoice_Fragment } }
  ) | (
    { __typename?: 'InvoiceReceipt', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_InvoiceReceipt_Fragment': TableDocumentsRowFields_InvoiceReceipt_Fragment } }
  ) | (
    { __typename?: 'OtherDocument', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_OtherDocument_Fragment': TableDocumentsRowFields_OtherDocument_Fragment } }
  ) | (
    { __typename?: 'Proforma', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Proforma_Fragment': TableDocumentsRowFields_Proforma_Fragment } }
  ) | (
    { __typename?: 'Receipt', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Receipt_Fragment': TableDocumentsRowFields_Receipt_Fragment } }
  ) | (
    { __typename?: 'Unprocessed', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Unprocessed_Fragment': TableDocumentsRowFields_Unprocessed_Fragment } }
  )> } & { ' $fragmentName'?: 'TableDocumentsFields_BankDepositCharge_Fragment' };

type TableDocumentsFields_BusinessTripCharge_Fragment = { __typename?: 'BusinessTripCharge', id: string, additionalDocuments: Array<(
    { __typename?: 'CreditInvoice', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_CreditInvoice_Fragment': TableDocumentsRowFields_CreditInvoice_Fragment } }
  ) | (
    { __typename?: 'Invoice', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Invoice_Fragment': TableDocumentsRowFields_Invoice_Fragment } }
  ) | (
    { __typename?: 'InvoiceReceipt', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_InvoiceReceipt_Fragment': TableDocumentsRowFields_InvoiceReceipt_Fragment } }
  ) | (
    { __typename?: 'OtherDocument', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_OtherDocument_Fragment': TableDocumentsRowFields_OtherDocument_Fragment } }
  ) | (
    { __typename?: 'Proforma', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Proforma_Fragment': TableDocumentsRowFields_Proforma_Fragment } }
  ) | (
    { __typename?: 'Receipt', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Receipt_Fragment': TableDocumentsRowFields_Receipt_Fragment } }
  ) | (
    { __typename?: 'Unprocessed', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Unprocessed_Fragment': TableDocumentsRowFields_Unprocessed_Fragment } }
  )> } & { ' $fragmentName'?: 'TableDocumentsFields_BusinessTripCharge_Fragment' };

type TableDocumentsFields_CommonCharge_Fragment = { __typename?: 'CommonCharge', id: string, additionalDocuments: Array<(
    { __typename?: 'CreditInvoice', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_CreditInvoice_Fragment': TableDocumentsRowFields_CreditInvoice_Fragment } }
  ) | (
    { __typename?: 'Invoice', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Invoice_Fragment': TableDocumentsRowFields_Invoice_Fragment } }
  ) | (
    { __typename?: 'InvoiceReceipt', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_InvoiceReceipt_Fragment': TableDocumentsRowFields_InvoiceReceipt_Fragment } }
  ) | (
    { __typename?: 'OtherDocument', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_OtherDocument_Fragment': TableDocumentsRowFields_OtherDocument_Fragment } }
  ) | (
    { __typename?: 'Proforma', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Proforma_Fragment': TableDocumentsRowFields_Proforma_Fragment } }
  ) | (
    { __typename?: 'Receipt', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Receipt_Fragment': TableDocumentsRowFields_Receipt_Fragment } }
  ) | (
    { __typename?: 'Unprocessed', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Unprocessed_Fragment': TableDocumentsRowFields_Unprocessed_Fragment } }
  )> } & { ' $fragmentName'?: 'TableDocumentsFields_CommonCharge_Fragment' };

type TableDocumentsFields_ConversionCharge_Fragment = { __typename?: 'ConversionCharge', id: string, additionalDocuments: Array<(
    { __typename?: 'CreditInvoice', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_CreditInvoice_Fragment': TableDocumentsRowFields_CreditInvoice_Fragment } }
  ) | (
    { __typename?: 'Invoice', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Invoice_Fragment': TableDocumentsRowFields_Invoice_Fragment } }
  ) | (
    { __typename?: 'InvoiceReceipt', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_InvoiceReceipt_Fragment': TableDocumentsRowFields_InvoiceReceipt_Fragment } }
  ) | (
    { __typename?: 'OtherDocument', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_OtherDocument_Fragment': TableDocumentsRowFields_OtherDocument_Fragment } }
  ) | (
    { __typename?: 'Proforma', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Proforma_Fragment': TableDocumentsRowFields_Proforma_Fragment } }
  ) | (
    { __typename?: 'Receipt', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Receipt_Fragment': TableDocumentsRowFields_Receipt_Fragment } }
  ) | (
    { __typename?: 'Unprocessed', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Unprocessed_Fragment': TableDocumentsRowFields_Unprocessed_Fragment } }
  )> } & { ' $fragmentName'?: 'TableDocumentsFields_ConversionCharge_Fragment' };

type TableDocumentsFields_CreditcardBankCharge_Fragment = { __typename?: 'CreditcardBankCharge', id: string, additionalDocuments: Array<(
    { __typename?: 'CreditInvoice', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_CreditInvoice_Fragment': TableDocumentsRowFields_CreditInvoice_Fragment } }
  ) | (
    { __typename?: 'Invoice', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Invoice_Fragment': TableDocumentsRowFields_Invoice_Fragment } }
  ) | (
    { __typename?: 'InvoiceReceipt', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_InvoiceReceipt_Fragment': TableDocumentsRowFields_InvoiceReceipt_Fragment } }
  ) | (
    { __typename?: 'OtherDocument', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_OtherDocument_Fragment': TableDocumentsRowFields_OtherDocument_Fragment } }
  ) | (
    { __typename?: 'Proforma', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Proforma_Fragment': TableDocumentsRowFields_Proforma_Fragment } }
  ) | (
    { __typename?: 'Receipt', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Receipt_Fragment': TableDocumentsRowFields_Receipt_Fragment } }
  ) | (
    { __typename?: 'Unprocessed', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Unprocessed_Fragment': TableDocumentsRowFields_Unprocessed_Fragment } }
  )> } & { ' $fragmentName'?: 'TableDocumentsFields_CreditcardBankCharge_Fragment' };

type TableDocumentsFields_DividendCharge_Fragment = { __typename?: 'DividendCharge', id: string, additionalDocuments: Array<(
    { __typename?: 'CreditInvoice', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_CreditInvoice_Fragment': TableDocumentsRowFields_CreditInvoice_Fragment } }
  ) | (
    { __typename?: 'Invoice', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Invoice_Fragment': TableDocumentsRowFields_Invoice_Fragment } }
  ) | (
    { __typename?: 'InvoiceReceipt', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_InvoiceReceipt_Fragment': TableDocumentsRowFields_InvoiceReceipt_Fragment } }
  ) | (
    { __typename?: 'OtherDocument', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_OtherDocument_Fragment': TableDocumentsRowFields_OtherDocument_Fragment } }
  ) | (
    { __typename?: 'Proforma', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Proforma_Fragment': TableDocumentsRowFields_Proforma_Fragment } }
  ) | (
    { __typename?: 'Receipt', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Receipt_Fragment': TableDocumentsRowFields_Receipt_Fragment } }
  ) | (
    { __typename?: 'Unprocessed', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Unprocessed_Fragment': TableDocumentsRowFields_Unprocessed_Fragment } }
  )> } & { ' $fragmentName'?: 'TableDocumentsFields_DividendCharge_Fragment' };

type TableDocumentsFields_FinancialCharge_Fragment = { __typename?: 'FinancialCharge', id: string, additionalDocuments: Array<(
    { __typename?: 'CreditInvoice', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_CreditInvoice_Fragment': TableDocumentsRowFields_CreditInvoice_Fragment } }
  ) | (
    { __typename?: 'Invoice', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Invoice_Fragment': TableDocumentsRowFields_Invoice_Fragment } }
  ) | (
    { __typename?: 'InvoiceReceipt', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_InvoiceReceipt_Fragment': TableDocumentsRowFields_InvoiceReceipt_Fragment } }
  ) | (
    { __typename?: 'OtherDocument', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_OtherDocument_Fragment': TableDocumentsRowFields_OtherDocument_Fragment } }
  ) | (
    { __typename?: 'Proforma', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Proforma_Fragment': TableDocumentsRowFields_Proforma_Fragment } }
  ) | (
    { __typename?: 'Receipt', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Receipt_Fragment': TableDocumentsRowFields_Receipt_Fragment } }
  ) | (
    { __typename?: 'Unprocessed', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Unprocessed_Fragment': TableDocumentsRowFields_Unprocessed_Fragment } }
  )> } & { ' $fragmentName'?: 'TableDocumentsFields_FinancialCharge_Fragment' };

type TableDocumentsFields_ForeignSecuritiesCharge_Fragment = { __typename?: 'ForeignSecuritiesCharge', id: string, additionalDocuments: Array<(
    { __typename?: 'CreditInvoice', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_CreditInvoice_Fragment': TableDocumentsRowFields_CreditInvoice_Fragment } }
  ) | (
    { __typename?: 'Invoice', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Invoice_Fragment': TableDocumentsRowFields_Invoice_Fragment } }
  ) | (
    { __typename?: 'InvoiceReceipt', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_InvoiceReceipt_Fragment': TableDocumentsRowFields_InvoiceReceipt_Fragment } }
  ) | (
    { __typename?: 'OtherDocument', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_OtherDocument_Fragment': TableDocumentsRowFields_OtherDocument_Fragment } }
  ) | (
    { __typename?: 'Proforma', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Proforma_Fragment': TableDocumentsRowFields_Proforma_Fragment } }
  ) | (
    { __typename?: 'Receipt', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Receipt_Fragment': TableDocumentsRowFields_Receipt_Fragment } }
  ) | (
    { __typename?: 'Unprocessed', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Unprocessed_Fragment': TableDocumentsRowFields_Unprocessed_Fragment } }
  )> } & { ' $fragmentName'?: 'TableDocumentsFields_ForeignSecuritiesCharge_Fragment' };

type TableDocumentsFields_InternalTransferCharge_Fragment = { __typename?: 'InternalTransferCharge', id: string, additionalDocuments: Array<(
    { __typename?: 'CreditInvoice', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_CreditInvoice_Fragment': TableDocumentsRowFields_CreditInvoice_Fragment } }
  ) | (
    { __typename?: 'Invoice', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Invoice_Fragment': TableDocumentsRowFields_Invoice_Fragment } }
  ) | (
    { __typename?: 'InvoiceReceipt', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_InvoiceReceipt_Fragment': TableDocumentsRowFields_InvoiceReceipt_Fragment } }
  ) | (
    { __typename?: 'OtherDocument', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_OtherDocument_Fragment': TableDocumentsRowFields_OtherDocument_Fragment } }
  ) | (
    { __typename?: 'Proforma', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Proforma_Fragment': TableDocumentsRowFields_Proforma_Fragment } }
  ) | (
    { __typename?: 'Receipt', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Receipt_Fragment': TableDocumentsRowFields_Receipt_Fragment } }
  ) | (
    { __typename?: 'Unprocessed', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Unprocessed_Fragment': TableDocumentsRowFields_Unprocessed_Fragment } }
  )> } & { ' $fragmentName'?: 'TableDocumentsFields_InternalTransferCharge_Fragment' };

type TableDocumentsFields_MonthlyVatCharge_Fragment = { __typename?: 'MonthlyVatCharge', id: string, additionalDocuments: Array<(
    { __typename?: 'CreditInvoice', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_CreditInvoice_Fragment': TableDocumentsRowFields_CreditInvoice_Fragment } }
  ) | (
    { __typename?: 'Invoice', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Invoice_Fragment': TableDocumentsRowFields_Invoice_Fragment } }
  ) | (
    { __typename?: 'InvoiceReceipt', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_InvoiceReceipt_Fragment': TableDocumentsRowFields_InvoiceReceipt_Fragment } }
  ) | (
    { __typename?: 'OtherDocument', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_OtherDocument_Fragment': TableDocumentsRowFields_OtherDocument_Fragment } }
  ) | (
    { __typename?: 'Proforma', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Proforma_Fragment': TableDocumentsRowFields_Proforma_Fragment } }
  ) | (
    { __typename?: 'Receipt', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Receipt_Fragment': TableDocumentsRowFields_Receipt_Fragment } }
  ) | (
    { __typename?: 'Unprocessed', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Unprocessed_Fragment': TableDocumentsRowFields_Unprocessed_Fragment } }
  )> } & { ' $fragmentName'?: 'TableDocumentsFields_MonthlyVatCharge_Fragment' };

type TableDocumentsFields_SalaryCharge_Fragment = { __typename?: 'SalaryCharge', id: string, additionalDocuments: Array<(
    { __typename?: 'CreditInvoice', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_CreditInvoice_Fragment': TableDocumentsRowFields_CreditInvoice_Fragment } }
  ) | (
    { __typename?: 'Invoice', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Invoice_Fragment': TableDocumentsRowFields_Invoice_Fragment } }
  ) | (
    { __typename?: 'InvoiceReceipt', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_InvoiceReceipt_Fragment': TableDocumentsRowFields_InvoiceReceipt_Fragment } }
  ) | (
    { __typename?: 'OtherDocument', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_OtherDocument_Fragment': TableDocumentsRowFields_OtherDocument_Fragment } }
  ) | (
    { __typename?: 'Proforma', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Proforma_Fragment': TableDocumentsRowFields_Proforma_Fragment } }
  ) | (
    { __typename?: 'Receipt', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Receipt_Fragment': TableDocumentsRowFields_Receipt_Fragment } }
  ) | (
    { __typename?: 'Unprocessed', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Unprocessed_Fragment': TableDocumentsRowFields_Unprocessed_Fragment } }
  )> } & { ' $fragmentName'?: 'TableDocumentsFields_SalaryCharge_Fragment' };

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 ChargeTableTransactionsFields_BankDepositCharge_Fragment = { __typename?: 'BankDepositCharge', id: string, transactions: Array<(
    { __typename?: 'CommonTransaction', id: string }
    & { ' $fragmentRefs'?: { 'TransactionForTransactionsTableFields_CommonTransaction_Fragment': TransactionForTransactionsTableFields_CommonTransaction_Fragment } }
  ) | (
    { __typename?: 'ConversionTransaction', id: string }
    & { ' $fragmentRefs'?: { 'TransactionForTransactionsTableFields_ConversionTransaction_Fragment': TransactionForTransactionsTableFields_ConversionTransaction_Fragment } }
  )> } & { ' $fragmentName'?: 'ChargeTableTransactionsFields_BankDepositCharge_Fragment' };

type ChargeTableTransactionsFields_BusinessTripCharge_Fragment = { __typename?: 'BusinessTripCharge', id: string, transactions: Array<(
    { __typename?: 'CommonTransaction', id: string }
    & { ' $fragmentRefs'?: { 'TransactionForTransactionsTableFields_CommonTransaction_Fragment': TransactionForTransactionsTableFields_CommonTransaction_Fragment } }
  ) | (
    { __typename?: 'ConversionTransaction', id: string }
    & { ' $fragmentRefs'?: { 'TransactionForTransactionsTableFields_ConversionTransaction_Fragment': TransactionForTransactionsTableFields_ConversionTransaction_Fragment } }
  )> } & { ' $fragmentName'?: 'ChargeTableTransactionsFields_BusinessTripCharge_Fragment' };

type ChargeTableTransactionsFields_CommonCharge_Fragment = { __typename?: 'CommonCharge', id: string, transactions: Array<(
    { __typename?: 'CommonTransaction', id: string }
    & { ' $fragmentRefs'?: { 'TransactionForTransactionsTableFields_CommonTransaction_Fragment': TransactionForTransactionsTableFields_CommonTransaction_Fragment } }
  ) | (
    { __typename?: 'ConversionTransaction', id: string }
    & { ' $fragmentRefs'?: { 'TransactionForTransactionsTableFields_ConversionTransaction_Fragment': TransactionForTransactionsTableFields_ConversionTransaction_Fragment } }
  )> } & { ' $fragmentName'?: 'ChargeTableTransactionsFields_CommonCharge_Fragment' };

type ChargeTableTransactionsFields_ConversionCharge_Fragment = { __typename?: 'ConversionCharge', id: string, transactions: Array<(
    { __typename?: 'CommonTransaction', id: string }
    & { ' $fragmentRefs'?: { 'TransactionForTransactionsTableFields_CommonTransaction_Fragment': TransactionForTransactionsTableFields_CommonTransaction_Fragment } }
  ) | (
    { __typename?: 'ConversionTransaction', id: string }
    & { ' $fragmentRefs'?: { 'TransactionForTransactionsTableFields_ConversionTransaction_Fragment': TransactionForTransactionsTableFields_ConversionTransaction_Fragment } }
  )> } & { ' $fragmentName'?: 'ChargeTableTransactionsFields_ConversionCharge_Fragment' };

type ChargeTableTransactionsFields_CreditcardBankCharge_Fragment = { __typename?: 'CreditcardBankCharge', id: string, transactions: Array<(
    { __typename?: 'CommonTransaction', id: string }
    & { ' $fragmentRefs'?: { 'TransactionForTransactionsTableFields_CommonTransaction_Fragment': TransactionForTransactionsTableFields_CommonTransaction_Fragment } }
  ) | (
    { __typename?: 'ConversionTransaction', id: string }
    & { ' $fragmentRefs'?: { 'TransactionForTransactionsTableFields_ConversionTransaction_Fragment': TransactionForTransactionsTableFields_ConversionTransaction_Fragment } }
  )> } & { ' $fragmentName'?: 'ChargeTableTransactionsFields_CreditcardBankCharge_Fragment' };

type ChargeTableTransactionsFields_DividendCharge_Fragment = { __typename?: 'DividendCharge', id: string, transactions: Array<(
    { __typename?: 'CommonTransaction', id: string }
    & { ' $fragmentRefs'?: { 'TransactionForTransactionsTableFields_CommonTransaction_Fragment': TransactionForTransactionsTableFields_CommonTransaction_Fragment } }
  ) | (
    { __typename?: 'ConversionTransaction', id: string }
    & { ' $fragmentRefs'?: { 'TransactionForTransactionsTableFields_ConversionTransaction_Fragment': TransactionForTransactionsTableFields_ConversionTransaction_Fragment } }
  )> } & { ' $fragmentName'?: 'ChargeTableTransactionsFields_DividendCharge_Fragment' };

type ChargeTableTransactionsFields_FinancialCharge_Fragment = { __typename?: 'FinancialCharge', id: string, transactions: Array<(
    { __typename?: 'CommonTransaction', id: string }
    & { ' $fragmentRefs'?: { 'TransactionForTransactionsTableFields_CommonTransaction_Fragment': TransactionForTransactionsTableFields_CommonTransaction_Fragment } }
  ) | (
    { __typename?: 'ConversionTransaction', id: string }
    & { ' $fragmentRefs'?: { 'TransactionForTransactionsTableFields_ConversionTransaction_Fragment': TransactionForTransactionsTableFields_ConversionTransaction_Fragment } }
  )> } & { ' $fragmentName'?: 'ChargeTableTransactionsFields_FinancialCharge_Fragment' };

type ChargeTableTransactionsFields_ForeignSecuritiesCharge_Fragment = { __typename?: 'ForeignSecuritiesCharge', id: string, transactions: Array<(
    { __typename?: 'CommonTransaction', id: string }
    & { ' $fragmentRefs'?: { 'TransactionForTransactionsTableFields_CommonTransaction_Fragment': TransactionForTransactionsTableFields_CommonTransaction_Fragment } }
  ) | (
    { __typename?: 'ConversionTransaction', id: string }
    & { ' $fragmentRefs'?: { 'TransactionForTransactionsTableFields_ConversionTransaction_Fragment': TransactionForTransactionsTableFields_ConversionTransaction_Fragment } }
  )> } & { ' $fragmentName'?: 'ChargeTableTransactionsFields_ForeignSecuritiesCharge_Fragment' };

type ChargeTableTransactionsFields_InternalTransferCharge_Fragment = { __typename?: 'InternalTransferCharge', id: string, transactions: Array<(
    { __typename?: 'CommonTransaction', id: string }
    & { ' $fragmentRefs'?: { 'TransactionForTransactionsTableFields_CommonTransaction_Fragment': TransactionForTransactionsTableFields_CommonTransaction_Fragment } }
  ) | (
    { __typename?: 'ConversionTransaction', id: string }
    & { ' $fragmentRefs'?: { 'TransactionForTransactionsTableFields_ConversionTransaction_Fragment': TransactionForTransactionsTableFields_ConversionTransaction_Fragment } }
  )> } & { ' $fragmentName'?: 'ChargeTableTransactionsFields_InternalTransferCharge_Fragment' };

type ChargeTableTransactionsFields_MonthlyVatCharge_Fragment = { __typename?: 'MonthlyVatCharge', id: string, transactions: Array<(
    { __typename?: 'CommonTransaction', id: string }
    & { ' $fragmentRefs'?: { 'TransactionForTransactionsTableFields_CommonTransaction_Fragment': TransactionForTransactionsTableFields_CommonTransaction_Fragment } }
  ) | (
    { __typename?: 'ConversionTransaction', id: string }
    & { ' $fragmentRefs'?: { 'TransactionForTransactionsTableFields_ConversionTransaction_Fragment': TransactionForTransactionsTableFields_ConversionTransaction_Fragment } }
  )> } & { ' $fragmentName'?: 'ChargeTableTransactionsFields_MonthlyVatCharge_Fragment' };

type ChargeTableTransactionsFields_SalaryCharge_Fragment = { __typename?: 'SalaryCharge', id: string, transactions: Array<(
    { __typename?: 'CommonTransaction', id: string }
    & { ' $fragmentRefs'?: { 'TransactionForTransactionsTableFields_CommonTransaction_Fragment': TransactionForTransactionsTableFields_CommonTransaction_Fragment } }
  ) | (
    { __typename?: 'ConversionTransaction', id: string }
    & { ' $fragmentRefs'?: { 'TransactionForTransactionsTableFields_ConversionTransaction_Fragment': TransactionForTransactionsTableFields_ConversionTransaction_Fragment } }
  )> } & { ' $fragmentName'?: 'ChargeTableTransactionsFields_SalaryCharge_Fragment' };

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;

type ChargesTableRowFields_BankDepositCharge_Fragment = (
  { __typename: 'BankDepositCharge', id: string, metadata?: { __typename?: 'ChargeMetadata' } & ({ __typename?: 'ChargeMetadata', documentsCount: number } | { __typename?: 'ChargeMetadata', documentsCount?: never }) & ({ __typename?: 'ChargeMetadata', ledgerCount: number } | { __typename?: 'ChargeMetadata', ledgerCount?: never }) & ({ __typename?: 'ChargeMetadata', transactionsCount: number } | { __typename?: 'ChargeMetadata', transactionsCount?: never }) & ({ __typename?: 'ChargeMetadata', miscExpensesCount: number } | { __typename?: 'ChargeMetadata', miscExpensesCount?: never }) | null }
  & { ' $fragmentRefs'?: { 'ChargesTableAccountantApprovalFields_BankDepositCharge_Fragment': ChargesTableAccountantApprovalFields_BankDepositCharge_Fragment;'ChargesTableAmountFields_BankDepositCharge_Fragment': ChargesTableAmountFields_BankDepositCharge_Fragment;'ChargesTableDateFields_BankDepositCharge_Fragment': ChargesTableDateFields_BankDepositCharge_Fragment;'ChargesTableDescriptionFields_BankDepositCharge_Fragment': ChargesTableDescriptionFields_BankDepositCharge_Fragment;'ChargesTableMoreInfoFields_BankDepositCharge_Fragment': ChargesTableMoreInfoFields_BankDepositCharge_Fragment;'ChargesTableTypeFields_BankDepositCharge_Fragment': ChargesTableTypeFields_BankDepositCharge_Fragment;'ChargesTableVatFields_BankDepositCharge_Fragment': ChargesTableVatFields_BankDepositCharge_Fragment } }
) & (
  { __typename?: 'BankDepositCharge' }
  & { ' $fragmentRefs'?: { 'ChargesTableBusinessTripFields_BankDepositCharge_Fragment': Incremental<ChargesTableBusinessTripFields_BankDepositCharge_Fragment> } }
) & (
  { __typename?: 'BankDepositCharge' }
  & { ' $fragmentRefs'?: { 'ChargesTableEntityFields_BankDepositCharge_Fragment': Incremental<ChargesTableEntityFields_BankDepositCharge_Fragment> } }
) & (
  { __typename?: 'BankDepositCharge' }
  & { ' $fragmentRefs'?: { 'ChargesTableTagsFields_BankDepositCharge_Fragment': Incremental<ChargesTableTagsFields_BankDepositCharge_Fragment> } }
) & (
  { __typename?: 'BankDepositCharge' }
  & { ' $fragmentRefs'?: { 'ChargesTableTaxCategoryFields_BankDepositCharge_Fragment': Incremental<ChargesTableTaxCategoryFields_BankDepositCharge_Fragment> } }
) & { ' $fragmentName'?: 'ChargesTableRowFields_BankDepositCharge_Fragment' };

type ChargesTableRowFields_BusinessTripCharge_Fragment = (
  { __typename: 'BusinessTripCharge', id: string, metadata?: { __typename?: 'ChargeMetadata' } & ({ __typename?: 'ChargeMetadata', documentsCount: number } | { __typename?: 'ChargeMetadata', documentsCount?: never }) & ({ __typename?: 'ChargeMetadata', ledgerCount: number } | { __typename?: 'ChargeMetadata', ledgerCount?: never }) & ({ __typename?: 'ChargeMetadata', transactionsCount: number } | { __typename?: 'ChargeMetadata', transactionsCount?: never }) & ({ __typename?: 'ChargeMetadata', miscExpensesCount: number } | { __typename?: 'ChargeMetadata', miscExpensesCount?: never }) | null }
  & { ' $fragmentRefs'?: { 'ChargesTableAccountantApprovalFields_BusinessTripCharge_Fragment': ChargesTableAccountantApprovalFields_BusinessTripCharge_Fragment;'ChargesTableAmountFields_BusinessTripCharge_Fragment': ChargesTableAmountFields_BusinessTripCharge_Fragment;'ChargesTableDateFields_BusinessTripCharge_Fragment': ChargesTableDateFields_BusinessTripCharge_Fragment;'ChargesTableDescriptionFields_BusinessTripCharge_Fragment': ChargesTableDescriptionFields_BusinessTripCharge_Fragment;'ChargesTableMoreInfoFields_BusinessTripCharge_Fragment': ChargesTableMoreInfoFields_BusinessTripCharge_Fragment;'ChargesTableTypeFields_BusinessTripCharge_Fragment': ChargesTableTypeFields_BusinessTripCharge_Fragment;'ChargesTableVatFields_BusinessTripCharge_Fragment': ChargesTableVatFields_BusinessTripCharge_Fragment } }
) & (
  { __typename?: 'BusinessTripCharge' }
  & { ' $fragmentRefs'?: { 'ChargesTableBusinessTripFields_BusinessTripCharge_Fragment': Incremental<ChargesTableBusinessTripFields_BusinessTripCharge_Fragment> } }
) & (
  { __typename?: 'BusinessTripCharge' }
  & { ' $fragmentRefs'?: { 'ChargesTableEntityFields_BusinessTripCharge_Fragment': Incremental<ChargesTableEntityFields_BusinessTripCharge_Fragment> } }
) & (
  { __typename?: 'BusinessTripCharge' }
  & { ' $fragmentRefs'?: { 'ChargesTableTagsFields_BusinessTripCharge_Fragment': Incremental<ChargesTableTagsFields_BusinessTripCharge_Fragment> } }
) & (
  { __typename?: 'BusinessTripCharge' }
  & { ' $fragmentRefs'?: { 'ChargesTableTaxCategoryFields_BusinessTripCharge_Fragment': Incremental<ChargesTableTaxCategoryFields_BusinessTripCharge_Fragment> } }
) & { ' $fragmentName'?: 'ChargesTableRowFields_BusinessTripCharge_Fragment' };

type ChargesTableRowFields_CommonCharge_Fragment = (
  { __typename: 'CommonCharge', id: string, metadata?: { __typename?: 'ChargeMetadata' } & ({ __typename?: 'ChargeMetadata', documentsCount: number } | { __typename?: 'ChargeMetadata', documentsCount?: never }) & ({ __typename?: 'ChargeMetadata', ledgerCount: number } | { __typename?: 'ChargeMetadata', ledgerCount?: never }) & ({ __typename?: 'ChargeMetadata', transactionsCount: number } | { __typename?: 'ChargeMetadata', transactionsCount?: never }) & ({ __typename?: 'ChargeMetadata', miscExpensesCount: number } | { __typename?: 'ChargeMetadata', miscExpensesCount?: never }) | null }
  & { ' $fragmentRefs'?: { 'ChargesTableAccountantApprovalFields_CommonCharge_Fragment': ChargesTableAccountantApprovalFields_CommonCharge_Fragment;'ChargesTableAmountFields_CommonCharge_Fragment': ChargesTableAmountFields_CommonCharge_Fragment;'ChargesTableDateFields_CommonCharge_Fragment': ChargesTableDateFields_CommonCharge_Fragment;'ChargesTableDescriptionFields_CommonCharge_Fragment': ChargesTableDescriptionFields_CommonCharge_Fragment;'ChargesTableMoreInfoFields_CommonCharge_Fragment': ChargesTableMoreInfoFields_CommonCharge_Fragment;'ChargesTableTypeFields_CommonCharge_Fragment': ChargesTableTypeFields_CommonCharge_Fragment;'ChargesTableVatFields_CommonCharge_Fragment': ChargesTableVatFields_CommonCharge_Fragment } }
) & (
  { __typename?: 'CommonCharge' }
  & { ' $fragmentRefs'?: { 'ChargesTableBusinessTripFields_CommonCharge_Fragment': Incremental<ChargesTableBusinessTripFields_CommonCharge_Fragment> } }
) & (
  { __typename?: 'CommonCharge' }
  & { ' $fragmentRefs'?: { 'ChargesTableEntityFields_CommonCharge_Fragment': Incremental<ChargesTableEntityFields_CommonCharge_Fragment> } }
) & (
  { __typename?: 'CommonCharge' }
  & { ' $fragmentRefs'?: { 'ChargesTableTagsFields_CommonCharge_Fragment': Incremental<ChargesTableTagsFields_CommonCharge_Fragment> } }
) & (
  { __typename?: 'CommonCharge' }
  & { ' $fragmentRefs'?: { 'ChargesTableTaxCategoryFields_CommonCharge_Fragment': Incremental<ChargesTableTaxCategoryFields_CommonCharge_Fragment> } }
) & { ' $fragmentName'?: 'ChargesTableRowFields_CommonCharge_Fragment' };

type ChargesTableRowFields_ConversionCharge_Fragment = (
  { __typename: 'ConversionCharge', id: string, metadata?: { __typename?: 'ChargeMetadata' } & ({ __typename?: 'ChargeMetadata', documentsCount: number } | { __typename?: 'ChargeMetadata', documentsCount?: never }) & ({ __typename?: 'ChargeMetadata', ledgerCount: number } | { __typename?: 'ChargeMetadata', ledgerCount?: never }) & ({ __typename?: 'ChargeMetadata', transactionsCount: number } | { __typename?: 'ChargeMetadata', transactionsCount?: never }) & ({ __typename?: 'ChargeMetadata', miscExpensesCount: number } | { __typename?: 'ChargeMetadata', miscExpensesCount?: never }) | null }
  & { ' $fragmentRefs'?: { 'ChargesTableAccountantApprovalFields_ConversionCharge_Fragment': ChargesTableAccountantApprovalFields_ConversionCharge_Fragment;'ChargesTableAmountFields_ConversionCharge_Fragment': ChargesTableAmountFields_ConversionCharge_Fragment;'ChargesTableDateFields_ConversionCharge_Fragment': ChargesTableDateFields_ConversionCharge_Fragment;'ChargesTableDescriptionFields_ConversionCharge_Fragment': ChargesTableDescriptionFields_ConversionCharge_Fragment;'ChargesTableMoreInfoFields_ConversionCharge_Fragment': ChargesTableMoreInfoFields_ConversionCharge_Fragment;'ChargesTableTypeFields_ConversionCharge_Fragment': ChargesTableTypeFields_ConversionCharge_Fragment;'ChargesTableVatFields_ConversionCharge_Fragment': ChargesTableVatFields_ConversionCharge_Fragment } }
) & (
  { __typename?: 'ConversionCharge' }
  & { ' $fragmentRefs'?: { 'ChargesTableBusinessTripFields_ConversionCharge_Fragment': Incremental<ChargesTableBusinessTripFields_ConversionCharge_Fragment> } }
) & (
  { __typename?: 'ConversionCharge' }
  & { ' $fragmentRefs'?: { 'ChargesTableEntityFields_ConversionCharge_Fragment': Incremental<ChargesTableEntityFields_ConversionCharge_Fragment> } }
) & (
  { __typename?: 'ConversionCharge' }
  & { ' $fragmentRefs'?: { 'ChargesTableTagsFields_ConversionCharge_Fragment': Incremental<ChargesTableTagsFields_ConversionCharge_Fragment> } }
) & (
  { __typename?: 'ConversionCharge' }
  & { ' $fragmentRefs'?: { 'ChargesTableTaxCategoryFields_ConversionCharge_Fragment': Incremental<ChargesTableTaxCategoryFields_ConversionCharge_Fragment> } }
) & { ' $fragmentName'?: 'ChargesTableRowFields_ConversionCharge_Fragment' };

type ChargesTableRowFields_CreditcardBankCharge_Fragment = (
  { __typename: 'CreditcardBankCharge', id: string, metadata?: { __typename?: 'ChargeMetadata' } & ({ __typename?: 'ChargeMetadata', documentsCount: number } | { __typename?: 'ChargeMetadata', documentsCount?: never }) & ({ __typename?: 'ChargeMetadata', ledgerCount: number } | { __typename?: 'ChargeMetadata', ledgerCount?: never }) & ({ __typename?: 'ChargeMetadata', transactionsCount: number } | { __typename?: 'ChargeMetadata', transactionsCount?: never }) & ({ __typename?: 'ChargeMetadata', miscExpensesCount: number } | { __typename?: 'ChargeMetadata', miscExpensesCount?: never }) | null }
  & { ' $fragmentRefs'?: { 'ChargesTableAccountantApprovalFields_CreditcardBankCharge_Fragment': ChargesTableAccountantApprovalFields_CreditcardBankCharge_Fragment;'ChargesTableAmountFields_CreditcardBankCharge_Fragment': ChargesTableAmountFields_CreditcardBankCharge_Fragment;'ChargesTableDateFields_CreditcardBankCharge_Fragment': ChargesTableDateFields_CreditcardBankCharge_Fragment;'ChargesTableDescriptionFields_CreditcardBankCharge_Fragment': ChargesTableDescriptionFields_CreditcardBankCharge_Fragment;'ChargesTableMoreInfoFields_CreditcardBankCharge_Fragment': ChargesTableMoreInfoFields_CreditcardBankCharge_Fragment;'ChargesTableTypeFields_CreditcardBankCharge_Fragment': ChargesTableTypeFields_CreditcardBankCharge_Fragment;'ChargesTableVatFields_CreditcardBankCharge_Fragment': ChargesTableVatFields_CreditcardBankCharge_Fragment } }
) & (
  { __typename?: 'CreditcardBankCharge' }
  & { ' $fragmentRefs'?: { 'ChargesTableBusinessTripFields_CreditcardBankCharge_Fragment': Incremental<ChargesTableBusinessTripFields_CreditcardBankCharge_Fragment> } }
) & (
  { __typename?: 'CreditcardBankCharge' }
  & { ' $fragmentRefs'?: { 'ChargesTableEntityFields_CreditcardBankCharge_Fragment': Incremental<ChargesTableEntityFields_CreditcardBankCharge_Fragment> } }
) & (
  { __typename?: 'CreditcardBankCharge' }
  & { ' $fragmentRefs'?: { 'ChargesTableTagsFields_CreditcardBankCharge_Fragment': Incremental<ChargesTableTagsFields_CreditcardBankCharge_Fragment> } }
) & (
  { __typename?: 'CreditcardBankCharge' }
  & { ' $fragmentRefs'?: { 'ChargesTableTaxCategoryFields_CreditcardBankCharge_Fragment': Incremental<ChargesTableTaxCategoryFields_CreditcardBankCharge_Fragment> } }
) & { ' $fragmentName'?: 'ChargesTableRowFields_CreditcardBankCharge_Fragment' };

type ChargesTableRowFields_DividendCharge_Fragment = (
  { __typename: 'DividendCharge', id: string, metadata?: { __typename?: 'ChargeMetadata' } & ({ __typename?: 'ChargeMetadata', documentsCount: number } | { __typename?: 'ChargeMetadata', documentsCount?: never }) & ({ __typename?: 'ChargeMetadata', ledgerCount: number } | { __typename?: 'ChargeMetadata', ledgerCount?: never }) & ({ __typename?: 'ChargeMetadata', transactionsCount: number } | { __typename?: 'ChargeMetadata', transactionsCount?: never }) & ({ __typename?: 'ChargeMetadata', miscExpensesCount: number } | { __typename?: 'ChargeMetadata', miscExpensesCount?: never }) | null }
  & { ' $fragmentRefs'?: { 'ChargesTableAccountantApprovalFields_DividendCharge_Fragment': ChargesTableAccountantApprovalFields_DividendCharge_Fragment;'ChargesTableAmountFields_DividendCharge_Fragment': ChargesTableAmountFields_DividendCharge_Fragment;'ChargesTableDateFields_DividendCharge_Fragment': ChargesTableDateFields_DividendCharge_Fragment;'ChargesTableDescriptionFields_DividendCharge_Fragment': ChargesTableDescriptionFields_DividendCharge_Fragment;'ChargesTableMoreInfoFields_DividendCharge_Fragment': ChargesTableMoreInfoFields_DividendCharge_Fragment;'ChargesTableTypeFields_DividendCharge_Fragment': ChargesTableTypeFields_DividendCharge_Fragment;'ChargesTableVatFields_DividendCharge_Fragment': ChargesTableVatFields_DividendCharge_Fragment } }
) & (
  { __typename?: 'DividendCharge' }
  & { ' $fragmentRefs'?: { 'ChargesTableBusinessTripFields_DividendCharge_Fragment': Incremental<ChargesTableBusinessTripFields_DividendCharge_Fragment> } }
) & (
  { __typename?: 'DividendCharge' }
  & { ' $fragmentRefs'?: { 'ChargesTableEntityFields_DividendCharge_Fragment': Incremental<ChargesTableEntityFields_DividendCharge_Fragment> } }
) & (
  { __typename?: 'DividendCharge' }
  & { ' $fragmentRefs'?: { 'ChargesTableTagsFields_DividendCharge_Fragment': Incremental<ChargesTableTagsFields_DividendCharge_Fragment> } }
) & (
  { __typename?: 'DividendCharge' }
  & { ' $fragmentRefs'?: { 'ChargesTableTaxCategoryFields_DividendCharge_Fragment': Incremental<ChargesTableTaxCategoryFields_DividendCharge_Fragment> } }
) & { ' $fragmentName'?: 'ChargesTableRowFields_DividendCharge_Fragment' };

type ChargesTableRowFields_FinancialCharge_Fragment = (
  { __typename: 'FinancialCharge', id: string, metadata?: { __typename?: 'ChargeMetadata' } & ({ __typename?: 'ChargeMetadata', documentsCount: number } | { __typename?: 'ChargeMetadata', documentsCount?: never }) & ({ __typename?: 'ChargeMetadata', ledgerCount: number } | { __typename?: 'ChargeMetadata', ledgerCount?: never }) & ({ __typename?: 'ChargeMetadata', transactionsCount: number } | { __typename?: 'ChargeMetadata', transactionsCount?: never }) & ({ __typename?: 'ChargeMetadata', miscExpensesCount: number } | { __typename?: 'ChargeMetadata', miscExpensesCount?: never }) | null }
  & { ' $fragmentRefs'?: { 'ChargesTableAccountantApprovalFields_FinancialCharge_Fragment': ChargesTableAccountantApprovalFields_FinancialCharge_Fragment;'ChargesTableAmountFields_FinancialCharge_Fragment': ChargesTableAmountFields_FinancialCharge_Fragment;'ChargesTableDateFields_FinancialCharge_Fragment': ChargesTableDateFields_FinancialCharge_Fragment;'ChargesTableDescriptionFields_FinancialCharge_Fragment': ChargesTableDescriptionFields_FinancialCharge_Fragment;'ChargesTableMoreInfoFields_FinancialCharge_Fragment': ChargesTableMoreInfoFields_FinancialCharge_Fragment;'ChargesTableTypeFields_FinancialCharge_Fragment': ChargesTableTypeFields_FinancialCharge_Fragment;'ChargesTableVatFields_FinancialCharge_Fragment': ChargesTableVatFields_FinancialCharge_Fragment } }
) & (
  { __typename?: 'FinancialCharge' }
  & { ' $fragmentRefs'?: { 'ChargesTableBusinessTripFields_FinancialCharge_Fragment': Incremental<ChargesTableBusinessTripFields_FinancialCharge_Fragment> } }
) & (
  { __typename?: 'FinancialCharge' }
  & { ' $fragmentRefs'?: { 'ChargesTableEntityFields_FinancialCharge_Fragment': Incremental<ChargesTableEntityFields_FinancialCharge_Fragment> } }
) & (
  { __typename?: 'FinancialCharge' }
  & { ' $fragmentRefs'?: { 'ChargesTableTagsFields_FinancialCharge_Fragment': Incremental<ChargesTableTagsFields_FinancialCharge_Fragment> } }
) & (
  { __typename?: 'FinancialCharge' }
  & { ' $fragmentRefs'?: { 'ChargesTableTaxCategoryFields_FinancialCharge_Fragment': Incremental<ChargesTableTaxCategoryFields_FinancialCharge_Fragment> } }
) & { ' $fragmentName'?: 'ChargesTableRowFields_FinancialCharge_Fragment' };

type ChargesTableRowFields_ForeignSecuritiesCharge_Fragment = (
  { __typename: 'ForeignSecuritiesCharge', id: string, metadata?: { __typename?: 'ChargeMetadata' } & ({ __typename?: 'ChargeMetadata', documentsCount: number } | { __typename?: 'ChargeMetadata', documentsCount?: never }) & ({ __typename?: 'ChargeMetadata', ledgerCount: number } | { __typename?: 'ChargeMetadata', ledgerCount?: never }) & ({ __typename?: 'ChargeMetadata', transactionsCount: number } | { __typename?: 'ChargeMetadata', transactionsCount?: never }) & ({ __typename?: 'ChargeMetadata', miscExpensesCount: number } | { __typename?: 'ChargeMetadata', miscExpensesCount?: never }) | null }
  & { ' $fragmentRefs'?: { 'ChargesTableAccountantApprovalFields_ForeignSecuritiesCharge_Fragment': ChargesTableAccountantApprovalFields_ForeignSecuritiesCharge_Fragment;'ChargesTableAmountFields_ForeignSecuritiesCharge_Fragment': ChargesTableAmountFields_ForeignSecuritiesCharge_Fragment;'ChargesTableDateFields_ForeignSecuritiesCharge_Fragment': ChargesTableDateFields_ForeignSecuritiesCharge_Fragment;'ChargesTableDescriptionFields_ForeignSecuritiesCharge_Fragment': ChargesTableDescriptionFields_ForeignSecuritiesCharge_Fragment;'ChargesTableMoreInfoFields_ForeignSecuritiesCharge_Fragment': ChargesTableMoreInfoFields_ForeignSecuritiesCharge_Fragment;'ChargesTableTypeFields_ForeignSecuritiesCharge_Fragment': ChargesTableTypeFields_ForeignSecuritiesCharge_Fragment;'ChargesTableVatFields_ForeignSecuritiesCharge_Fragment': ChargesTableVatFields_ForeignSecuritiesCharge_Fragment } }
) & (
  { __typename?: 'ForeignSecuritiesCharge' }
  & { ' $fragmentRefs'?: { 'ChargesTableBusinessTripFields_ForeignSecuritiesCharge_Fragment': Incremental<ChargesTableBusinessTripFields_ForeignSecuritiesCharge_Fragment> } }
) & (
  { __typename?: 'ForeignSecuritiesCharge' }
  & { ' $fragmentRefs'?: { 'ChargesTableEntityFields_ForeignSecuritiesCharge_Fragment': Incremental<ChargesTableEntityFields_ForeignSecuritiesCharge_Fragment> } }
) & (
  { __typename?: 'ForeignSecuritiesCharge' }
  & { ' $fragmentRefs'?: { 'ChargesTableTagsFields_ForeignSecuritiesCharge_Fragment': Incremental<ChargesTableTagsFields_ForeignSecuritiesCharge_Fragment> } }
) & (
  { __typename?: 'ForeignSecuritiesCharge' }
  & { ' $fragmentRefs'?: { 'ChargesTableTaxCategoryFields_ForeignSecuritiesCharge_Fragment': Incremental<ChargesTableTaxCategoryFields_ForeignSecuritiesCharge_Fragment> } }
) & { ' $fragmentName'?: 'ChargesTableRowFields_ForeignSecuritiesCharge_Fragment' };

type ChargesTableRowFields_InternalTransferCharge_Fragment = (
  { __typename: 'InternalTransferCharge', id: string, metadata?: { __typename?: 'ChargeMetadata' } & ({ __typename?: 'ChargeMetadata', documentsCount: number } | { __typename?: 'ChargeMetadata', documentsCount?: never }) & ({ __typename?: 'ChargeMetadata', ledgerCount: number } | { __typename?: 'ChargeMetadata', ledgerCount?: never }) & ({ __typename?: 'ChargeMetadata', transactionsCount: number } | { __typename?: 'ChargeMetadata', transactionsCount?: never }) & ({ __typename?: 'ChargeMetadata', miscExpensesCount: number } | { __typename?: 'ChargeMetadata', miscExpensesCount?: never }) | null }
  & { ' $fragmentRefs'?: { 'ChargesTableAccountantApprovalFields_InternalTransferCharge_Fragment': ChargesTableAccountantApprovalFields_InternalTransferCharge_Fragment;'ChargesTableAmountFields_InternalTransferCharge_Fragment': ChargesTableAmountFields_InternalTransferCharge_Fragment;'ChargesTableDateFields_InternalTransferCharge_Fragment': ChargesTableDateFields_InternalTransferCharge_Fragment;'ChargesTableDescriptionFields_InternalTransferCharge_Fragment': ChargesTableDescriptionFields_InternalTransferCharge_Fragment;'ChargesTableMoreInfoFields_InternalTransferCharge_Fragment': ChargesTableMoreInfoFields_InternalTransferCharge_Fragment;'ChargesTableTypeFields_InternalTransferCharge_Fragment': ChargesTableTypeFields_InternalTransferCharge_Fragment;'ChargesTableVatFields_InternalTransferCharge_Fragment': ChargesTableVatFields_InternalTransferCharge_Fragment } }
) & (
  { __typename?: 'InternalTransferCharge' }
  & { ' $fragmentRefs'?: { 'ChargesTableBusinessTripFields_InternalTransferCharge_Fragment': Incremental<ChargesTableBusinessTripFields_InternalTransferCharge_Fragment> } }
) & (
  { __typename?: 'InternalTransferCharge' }
  & { ' $fragmentRefs'?: { 'ChargesTableEntityFields_InternalTransferCharge_Fragment': Incremental<ChargesTableEntityFields_InternalTransferCharge_Fragment> } }
) & (
  { __typename?: 'InternalTransferCharge' }
  & { ' $fragmentRefs'?: { 'ChargesTableTagsFields_InternalTransferCharge_Fragment': Incremental<ChargesTableTagsFields_InternalTransferCharge_Fragment> } }
) & (
  { __typename?: 'InternalTransferCharge' }
  & { ' $fragmentRefs'?: { 'ChargesTableTaxCategoryFields_InternalTransferCharge_Fragment': Incremental<ChargesTableTaxCategoryFields_InternalTransferCharge_Fragment> } }
) & { ' $fragmentName'?: 'ChargesTableRowFields_InternalTransferCharge_Fragment' };

type ChargesTableRowFields_MonthlyVatCharge_Fragment = (
  { __typename: 'MonthlyVatCharge', id: string, metadata?: { __typename?: 'ChargeMetadata' } & ({ __typename?: 'ChargeMetadata', documentsCount: number } | { __typename?: 'ChargeMetadata', documentsCount?: never }) & ({ __typename?: 'ChargeMetadata', ledgerCount: number } | { __typename?: 'ChargeMetadata', ledgerCount?: never }) & ({ __typename?: 'ChargeMetadata', transactionsCount: number } | { __typename?: 'ChargeMetadata', transactionsCount?: never }) & ({ __typename?: 'ChargeMetadata', miscExpensesCount: number } | { __typename?: 'ChargeMetadata', miscExpensesCount?: never }) | null }
  & { ' $fragmentRefs'?: { 'ChargesTableAccountantApprovalFields_MonthlyVatCharge_Fragment': ChargesTableAccountantApprovalFields_MonthlyVatCharge_Fragment;'ChargesTableAmountFields_MonthlyVatCharge_Fragment': ChargesTableAmountFields_MonthlyVatCharge_Fragment;'ChargesTableDateFields_MonthlyVatCharge_Fragment': ChargesTableDateFields_MonthlyVatCharge_Fragment;'ChargesTableDescriptionFields_MonthlyVatCharge_Fragment': ChargesTableDescriptionFields_MonthlyVatCharge_Fragment;'ChargesTableMoreInfoFields_MonthlyVatCharge_Fragment': ChargesTableMoreInfoFields_MonthlyVatCharge_Fragment;'ChargesTableTypeFields_MonthlyVatCharge_Fragment': ChargesTableTypeFields_MonthlyVatCharge_Fragment;'ChargesTableVatFields_MonthlyVatCharge_Fragment': ChargesTableVatFields_MonthlyVatCharge_Fragment } }
) & (
  { __typename?: 'MonthlyVatCharge' }
  & { ' $fragmentRefs'?: { 'ChargesTableBusinessTripFields_MonthlyVatCharge_Fragment': Incremental<ChargesTableBusinessTripFields_MonthlyVatCharge_Fragment> } }
) & (
  { __typename?: 'MonthlyVatCharge' }
  & { ' $fragmentRefs'?: { 'ChargesTableEntityFields_MonthlyVatCharge_Fragment': Incremental<ChargesTableEntityFields_MonthlyVatCharge_Fragment> } }
) & (
  { __typename?: 'MonthlyVatCharge' }
  & { ' $fragmentRefs'?: { 'ChargesTableTagsFields_MonthlyVatCharge_Fragment': Incremental<ChargesTableTagsFields_MonthlyVatCharge_Fragment> } }
) & (
  { __typename?: 'MonthlyVatCharge' }
  & { ' $fragmentRefs'?: { 'ChargesTableTaxCategoryFields_MonthlyVatCharge_Fragment': Incremental<ChargesTableTaxCategoryFields_MonthlyVatCharge_Fragment> } }
) & { ' $fragmentName'?: 'ChargesTableRowFields_MonthlyVatCharge_Fragment' };

type ChargesTableRowFields_SalaryCharge_Fragment = (
  { __typename: 'SalaryCharge', id: string, metadata?: { __typename?: 'ChargeMetadata' } & ({ __typename?: 'ChargeMetadata', documentsCount: number } | { __typename?: 'ChargeMetadata', documentsCount?: never }) & ({ __typename?: 'ChargeMetadata', ledgerCount: number } | { __typename?: 'ChargeMetadata', ledgerCount?: never }) & ({ __typename?: 'ChargeMetadata', transactionsCount: number } | { __typename?: 'ChargeMetadata', transactionsCount?: never }) & ({ __typename?: 'ChargeMetadata', miscExpensesCount: number } | { __typename?: 'ChargeMetadata', miscExpensesCount?: never }) | null }
  & { ' $fragmentRefs'?: { 'ChargesTableAccountantApprovalFields_SalaryCharge_Fragment': ChargesTableAccountantApprovalFields_SalaryCharge_Fragment;'ChargesTableAmountFields_SalaryCharge_Fragment': ChargesTableAmountFields_SalaryCharge_Fragment;'ChargesTableDateFields_SalaryCharge_Fragment': ChargesTableDateFields_SalaryCharge_Fragment;'ChargesTableDescriptionFields_SalaryCharge_Fragment': ChargesTableDescriptionFields_SalaryCharge_Fragment;'ChargesTableMoreInfoFields_SalaryCharge_Fragment': ChargesTableMoreInfoFields_SalaryCharge_Fragment;'ChargesTableTypeFields_SalaryCharge_Fragment': ChargesTableTypeFields_SalaryCharge_Fragment;'ChargesTableVatFields_SalaryCharge_Fragment': ChargesTableVatFields_SalaryCharge_Fragment } }
) & (
  { __typename?: 'SalaryCharge' }
  & { ' $fragmentRefs'?: { 'ChargesTableBusinessTripFields_SalaryCharge_Fragment': Incremental<ChargesTableBusinessTripFields_SalaryCharge_Fragment> } }
) & (
  { __typename?: 'SalaryCharge' }
  & { ' $fragmentRefs'?: { 'ChargesTableEntityFields_SalaryCharge_Fragment': Incremental<ChargesTableEntityFields_SalaryCharge_Fragment> } }
) & (
  { __typename?: 'SalaryCharge' }
  & { ' $fragmentRefs'?: { 'ChargesTableTagsFields_SalaryCharge_Fragment': Incremental<ChargesTableTagsFields_SalaryCharge_Fragment> } }
) & (
  { __typename?: 'SalaryCharge' }
  & { ' $fragmentRefs'?: { 'ChargesTableTaxCategoryFields_SalaryCharge_Fragment': Incremental<ChargesTableTaxCategoryFields_SalaryCharge_Fragment> } }
) & { ' $fragmentName'?: 'ChargesTableRowFields_SalaryCharge_Fragment' };

export type ChargesTableRowFieldsFragment = ChargesTableRowFields_BankDepositCharge_Fragment | ChargesTableRowFields_BusinessTripCharge_Fragment | ChargesTableRowFields_CommonCharge_Fragment | ChargesTableRowFields_ConversionCharge_Fragment | ChargesTableRowFields_CreditcardBankCharge_Fragment | ChargesTableRowFields_DividendCharge_Fragment | ChargesTableRowFields_FinancialCharge_Fragment | ChargesTableRowFields_ForeignSecuritiesCharge_Fragment | ChargesTableRowFields_InternalTransferCharge_Fragment | ChargesTableRowFields_MonthlyVatCharge_Fragment | ChargesTableRowFields_SalaryCharge_Fragment;

export type ChargeForRowQueryVariables = Exact<{
  chargeId: Scalars['UUID']['input'];
}>;


export type ChargeForRowQuery = { __typename?: 'Query', charge: (
    { __typename?: 'BankDepositCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableRowFields_BankDepositCharge_Fragment': ChargesTableRowFields_BankDepositCharge_Fragment } }
  ) | (
    { __typename?: 'BusinessTripCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableRowFields_BusinessTripCharge_Fragment': ChargesTableRowFields_BusinessTripCharge_Fragment } }
  ) | (
    { __typename?: 'CommonCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableRowFields_CommonCharge_Fragment': ChargesTableRowFields_CommonCharge_Fragment } }
  ) | (
    { __typename?: 'ConversionCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableRowFields_ConversionCharge_Fragment': ChargesTableRowFields_ConversionCharge_Fragment } }
  ) | (
    { __typename?: 'CreditcardBankCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableRowFields_CreditcardBankCharge_Fragment': ChargesTableRowFields_CreditcardBankCharge_Fragment } }
  ) | (
    { __typename?: 'DividendCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableRowFields_DividendCharge_Fragment': ChargesTableRowFields_DividendCharge_Fragment } }
  ) | (
    { __typename?: 'FinancialCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableRowFields_FinancialCharge_Fragment': ChargesTableRowFields_FinancialCharge_Fragment } }
  ) | (
    { __typename?: 'ForeignSecuritiesCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableRowFields_ForeignSecuritiesCharge_Fragment': ChargesTableRowFields_ForeignSecuritiesCharge_Fragment } }
  ) | (
    { __typename?: 'InternalTransferCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableRowFields_InternalTransferCharge_Fragment': ChargesTableRowFields_InternalTransferCharge_Fragment } }
  ) | (
    { __typename?: 'MonthlyVatCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableRowFields_MonthlyVatCharge_Fragment': ChargesTableRowFields_MonthlyVatCharge_Fragment } }
  ) | (
    { __typename?: 'SalaryCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableRowFields_SalaryCharge_Fragment': ChargesTableRowFields_SalaryCharge_Fragment } }
  ) };

type ChargesTableFields_BankDepositCharge_Fragment = (
  { __typename?: 'BankDepositCharge', id: string, owner: { __typename?: 'LtdFinancialEntity', id: string } | { __typename?: 'PersonalFinancialEntity', id: string } }
  & { ' $fragmentRefs'?: { 'ChargesTableRowFields_BankDepositCharge_Fragment': ChargesTableRowFields_BankDepositCharge_Fragment } }
) & { ' $fragmentName'?: 'ChargesTableFields_BankDepositCharge_Fragment' };

type ChargesTableFields_BusinessTripCharge_Fragment = (
  { __typename?: 'BusinessTripCharge', id: string, owner: { __typename?: 'LtdFinancialEntity', id: string } | { __typename?: 'PersonalFinancialEntity', id: string } }
  & { ' $fragmentRefs'?: { 'ChargesTableRowFields_BusinessTripCharge_Fragment': ChargesTableRowFields_BusinessTripCharge_Fragment } }
) & { ' $fragmentName'?: 'ChargesTableFields_BusinessTripCharge_Fragment' };

type ChargesTableFields_CommonCharge_Fragment = (
  { __typename?: 'CommonCharge', id: string, owner: { __typename?: 'LtdFinancialEntity', id: string } | { __typename?: 'PersonalFinancialEntity', id: string } }
  & { ' $fragmentRefs'?: { 'ChargesTableRowFields_CommonCharge_Fragment': ChargesTableRowFields_CommonCharge_Fragment } }
) & { ' $fragmentName'?: 'ChargesTableFields_CommonCharge_Fragment' };

type ChargesTableFields_ConversionCharge_Fragment = (
  { __typename?: 'ConversionCharge', id: string, owner: { __typename?: 'LtdFinancialEntity', id: string } | { __typename?: 'PersonalFinancialEntity', id: string } }
  & { ' $fragmentRefs'?: { 'ChargesTableRowFields_ConversionCharge_Fragment': ChargesTableRowFields_ConversionCharge_Fragment } }
) & { ' $fragmentName'?: 'ChargesTableFields_ConversionCharge_Fragment' };

type ChargesTableFields_CreditcardBankCharge_Fragment = (
  { __typename?: 'CreditcardBankCharge', id: string, owner: { __typename?: 'LtdFinancialEntity', id: string } | { __typename?: 'PersonalFinancialEntity', id: string } }
  & { ' $fragmentRefs'?: { 'ChargesTableRowFields_CreditcardBankCharge_Fragment': ChargesTableRowFields_CreditcardBankCharge_Fragment } }
) & { ' $fragmentName'?: 'ChargesTableFields_CreditcardBankCharge_Fragment' };

type ChargesTableFields_DividendCharge_Fragment = (
  { __typename?: 'DividendCharge', id: string, owner: { __typename?: 'LtdFinancialEntity', id: string } | { __typename?: 'PersonalFinancialEntity', id: string } }
  & { ' $fragmentRefs'?: { 'ChargesTableRowFields_DividendCharge_Fragment': ChargesTableRowFields_DividendCharge_Fragment } }
) & { ' $fragmentName'?: 'ChargesTableFields_DividendCharge_Fragment' };

type ChargesTableFields_FinancialCharge_Fragment = (
  { __typename?: 'FinancialCharge', id: string, owner: { __typename?: 'LtdFinancialEntity', id: string } | { __typename?: 'PersonalFinancialEntity', id: string } }
  & { ' $fragmentRefs'?: { 'ChargesTableRowFields_FinancialCharge_Fragment': ChargesTableRowFields_FinancialCharge_Fragment } }
) & { ' $fragmentName'?: 'ChargesTableFields_FinancialCharge_Fragment' };

type ChargesTableFields_ForeignSecuritiesCharge_Fragment = (
  { __typename?: 'ForeignSecuritiesCharge', id: string, owner: { __typename?: 'LtdFinancialEntity', id: string } | { __typename?: 'PersonalFinancialEntity', id: string } }
  & { ' $fragmentRefs'?: { 'ChargesTableRowFields_ForeignSecuritiesCharge_Fragment': ChargesTableRowFields_ForeignSecuritiesCharge_Fragment } }
) & { ' $fragmentName'?: 'ChargesTableFields_ForeignSecuritiesCharge_Fragment' };

type ChargesTableFields_InternalTransferCharge_Fragment = (
  { __typename?: 'InternalTransferCharge', id: string, owner: { __typename?: 'LtdFinancialEntity', id: string } | { __typename?: 'PersonalFinancialEntity', id: string } }
  & { ' $fragmentRefs'?: { 'ChargesTableRowFields_InternalTransferCharge_Fragment': ChargesTableRowFields_InternalTransferCharge_Fragment } }
) & { ' $fragmentName'?: 'ChargesTableFields_InternalTransferCharge_Fragment' };

type ChargesTableFields_MonthlyVatCharge_Fragment = (
  { __typename?: 'MonthlyVatCharge', id: string, owner: { __typename?: 'LtdFinancialEntity', id: string } | { __typename?: 'PersonalFinancialEntity', id: string } }
  & { ' $fragmentRefs'?: { 'ChargesTableRowFields_MonthlyVatCharge_Fragment': ChargesTableRowFields_MonthlyVatCharge_Fragment } }
) & { ' $fragmentName'?: 'ChargesTableFields_MonthlyVatCharge_Fragment' };

type ChargesTableFields_SalaryCharge_Fragment = (
  { __typename?: 'SalaryCharge', id: string, owner: { __typename?: 'LtdFinancialEntity', id: string } | { __typename?: 'PersonalFinancialEntity', id: string } }
  & { ' $fragmentRefs'?: { 'ChargesTableRowFields_SalaryCharge_Fragment': ChargesTableRowFields_SalaryCharge_Fragment } }
) & { ' $fragmentName'?: 'ChargesTableFields_SalaryCharge_Fragment' };

export type ChargesTableFieldsFragment = ChargesTableFields_BankDepositCharge_Fragment | ChargesTableFields_BusinessTripCharge_Fragment | ChargesTableFields_CommonCharge_Fragment | ChargesTableFields_ConversionCharge_Fragment | ChargesTableFields_CreditcardBankCharge_Fragment | ChargesTableFields_DividendCharge_Fragment | ChargesTableFields_FinancialCharge_Fragment | ChargesTableFields_ForeignSecuritiesCharge_Fragment | ChargesTableFields_InternalTransferCharge_Fragment | ChargesTableFields_MonthlyVatCharge_Fragment | ChargesTableFields_SalaryCharge_Fragment;

export type BankDepositInfoQueryVariables = Exact<{
  chargeId: Scalars['UUID']['input'];
}>;


export type BankDepositInfoQuery = { __typename?: 'Query', depositByCharge: { __typename?: 'BankDeposit', id: string, isOpen: boolean, balance: { __typename?: 'FinancialAmount', formatted: string }, transactions: Array<(
      { __typename?: 'CommonTransaction', id: string, chargeId: string }
      & { ' $fragmentRefs'?: { 'TransactionForTransactionsTableFields_CommonTransaction_Fragment': TransactionForTransactionsTableFields_CommonTransaction_Fragment } }
    ) | (
      { __typename?: 'ConversionTransaction', id: string, chargeId: string }
      & { ' $fragmentRefs'?: { 'TransactionForTransactionsTableFields_ConversionTransaction_Fragment': TransactionForTransactionsTableFields_ConversionTransaction_Fragment } }
    )> } };

type ConversionChargeInfo_BankDepositCharge_Fragment = { __typename: 'BankDepositCharge', id: string } & { ' $fragmentName'?: 'ConversionChargeInfo_BankDepositCharge_Fragment' };

type ConversionChargeInfo_BusinessTripCharge_Fragment = { __typename: 'BusinessTripCharge', id: string } & { ' $fragmentName'?: 'ConversionChargeInfo_BusinessTripCharge_Fragment' };

type ConversionChargeInfo_CommonCharge_Fragment = { __typename: 'CommonCharge', id: string } & { ' $fragmentName'?: 'ConversionChargeInfo_CommonCharge_Fragment' };

type ConversionChargeInfo_ConversionCharge_Fragment = { __typename: 'ConversionCharge', id: string, eventRate?: { __typename?: 'ConversionRate', from: Currency, to: Currency, rate: number } | null, officialRate?: { __typename?: 'ConversionRate', from: Currency, to: Currency, rate: number } | null } & { ' $fragmentName'?: 'ConversionChargeInfo_ConversionCharge_Fragment' };

type ConversionChargeInfo_CreditcardBankCharge_Fragment = { __typename: 'CreditcardBankCharge', id: string } & { ' $fragmentName'?: 'ConversionChargeInfo_CreditcardBankCharge_Fragment' };

type ConversionChargeInfo_DividendCharge_Fragment = { __typename: 'DividendCharge', id: string } & { ' $fragmentName'?: 'ConversionChargeInfo_DividendCharge_Fragment' };

type ConversionChargeInfo_FinancialCharge_Fragment = { __typename: 'FinancialCharge', id: string } & { ' $fragmentName'?: 'ConversionChargeInfo_FinancialCharge_Fragment' };

type ConversionChargeInfo_ForeignSecuritiesCharge_Fragment = { __typename: 'ForeignSecuritiesCharge', id: string } & { ' $fragmentName'?: 'ConversionChargeInfo_ForeignSecuritiesCharge_Fragment' };

type ConversionChargeInfo_InternalTransferCharge_Fragment = { __typename: 'InternalTransferCharge', id: string } & { ' $fragmentName'?: 'ConversionChargeInfo_InternalTransferCharge_Fragment' };

type ConversionChargeInfo_MonthlyVatCharge_Fragment = { __typename: 'MonthlyVatCharge', id: string } & { ' $fragmentName'?: 'ConversionChargeInfo_MonthlyVatCharge_Fragment' };

type ConversionChargeInfo_SalaryCharge_Fragment = { __typename: 'SalaryCharge', id: string } & { ' $fragmentName'?: 'ConversionChargeInfo_SalaryCharge_Fragment' };

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 } & { ' $fragmentName'?: 'CreditcardBankChargeInfo_BankDepositCharge_Fragment' };

type CreditcardBankChargeInfo_BusinessTripCharge_Fragment = { __typename: 'BusinessTripCharge', id: string } & { ' $fragmentName'?: 'CreditcardBankChargeInfo_BusinessTripCharge_Fragment' };

type CreditcardBankChargeInfo_CommonCharge_Fragment = { __typename: 'CommonCharge', id: string } & { ' $fragmentName'?: 'CreditcardBankChargeInfo_CommonCharge_Fragment' };

type CreditcardBankChargeInfo_ConversionCharge_Fragment = { __typename: 'ConversionCharge', id: string } & { ' $fragmentName'?: 'CreditcardBankChargeInfo_ConversionCharge_Fragment' };

type CreditcardBankChargeInfo_CreditcardBankCharge_Fragment = { __typename: 'CreditcardBankCharge', id: string, creditCardTransactions: Array<(
    { __typename?: 'CommonTransaction', id: string }
    & { ' $fragmentRefs'?: { 'TransactionForTransactionsTableFields_CommonTransaction_Fragment': TransactionForTransactionsTableFields_CommonTransaction_Fragment } }
  ) | (
    { __typename?: 'ConversionTransaction', id: string }
    & { ' $fragmentRefs'?: { 'TransactionForTransactionsTableFields_ConversionTransaction_Fragment': TransactionForTransactionsTableFields_ConversionTransaction_Fragment } }
  )> } & { ' $fragmentName'?: 'CreditcardBankChargeInfo_CreditcardBankCharge_Fragment' };

type CreditcardBankChargeInfo_DividendCharge_Fragment = { __typename: 'DividendCharge', id: string } & { ' $fragmentName'?: 'CreditcardBankChargeInfo_DividendCharge_Fragment' };

type CreditcardBankChargeInfo_FinancialCharge_Fragment = { __typename: 'FinancialCharge', id: string } & { ' $fragmentName'?: 'CreditcardBankChargeInfo_FinancialCharge_Fragment' };

type CreditcardBankChargeInfo_ForeignSecuritiesCharge_Fragment = { __typename: 'ForeignSecuritiesCharge', id: string } & { ' $fragmentName'?: 'CreditcardBankChargeInfo_ForeignSecuritiesCharge_Fragment' };

type CreditcardBankChargeInfo_InternalTransferCharge_Fragment = { __typename: 'InternalTransferCharge', id: string } & { ' $fragmentName'?: 'CreditcardBankChargeInfo_InternalTransferCharge_Fragment' };

type CreditcardBankChargeInfo_MonthlyVatCharge_Fragment = { __typename: 'MonthlyVatCharge', id: string } & { ' $fragmentName'?: 'CreditcardBankChargeInfo_MonthlyVatCharge_Fragment' };

type CreditcardBankChargeInfo_SalaryCharge_Fragment = { __typename: 'SalaryCharge', id: string } & { ' $fragmentName'?: 'CreditcardBankChargeInfo_SalaryCharge_Fragment' };

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 } & { ' $fragmentName'?: 'ExchangeRatesInfo_BankDepositCharge_Fragment' };

type ExchangeRatesInfo_BusinessTripCharge_Fragment = { __typename: 'BusinessTripCharge', id: string } & { ' $fragmentName'?: 'ExchangeRatesInfo_BusinessTripCharge_Fragment' };

type ExchangeRatesInfo_CommonCharge_Fragment = { __typename: 'CommonCharge', id: string } & { ' $fragmentName'?: 'ExchangeRatesInfo_CommonCharge_Fragment' };

type ExchangeRatesInfo_ConversionCharge_Fragment = { __typename: 'ConversionCharge', id: string } & { ' $fragmentName'?: 'ExchangeRatesInfo_ConversionCharge_Fragment' };

type ExchangeRatesInfo_CreditcardBankCharge_Fragment = { __typename: 'CreditcardBankCharge', id: string } & { ' $fragmentName'?: 'ExchangeRatesInfo_CreditcardBankCharge_Fragment' };

type ExchangeRatesInfo_DividendCharge_Fragment = { __typename: 'DividendCharge', id: string } & { ' $fragmentName'?: 'ExchangeRatesInfo_DividendCharge_Fragment' };

type ExchangeRatesInfo_FinancialCharge_Fragment = { __typename: 'FinancialCharge', id: string, exchangeRates?: { __typename?: '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 } & { ' $fragmentName'?: 'ExchangeRatesInfo_FinancialCharge_Fragment' };

type ExchangeRatesInfo_ForeignSecuritiesCharge_Fragment = { __typename: 'ForeignSecuritiesCharge', id: string } & { ' $fragmentName'?: 'ExchangeRatesInfo_ForeignSecuritiesCharge_Fragment' };

type ExchangeRatesInfo_InternalTransferCharge_Fragment = { __typename: 'InternalTransferCharge', id: string } & { ' $fragmentName'?: 'ExchangeRatesInfo_InternalTransferCharge_Fragment' };

type ExchangeRatesInfo_MonthlyVatCharge_Fragment = { __typename: 'MonthlyVatCharge', id: string } & { ' $fragmentName'?: 'ExchangeRatesInfo_MonthlyVatCharge_Fragment' };

type ExchangeRatesInfo_SalaryCharge_Fragment = { __typename: 'SalaryCharge', id: string } & { ' $fragmentName'?: 'ExchangeRatesInfo_SalaryCharge_Fragment' };

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 = { __typename?: 'BankDepositCharge', id: string, miscExpenses: Array<(
    { __typename?: 'MiscExpense', id: string, description?: string | null, invoiceDate: TimelessDateString, valueDate: Date, chargeId: string, amount: { __typename?: 'FinancialAmount', formatted: string }, creditor: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string }, debtor: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } }
    & { ' $fragmentRefs'?: { 'EditMiscExpenseFieldsFragment': EditMiscExpenseFieldsFragment } }
  )> } & { ' $fragmentName'?: 'TableMiscExpensesFields_BankDepositCharge_Fragment' };

type TableMiscExpensesFields_BusinessTripCharge_Fragment = { __typename?: 'BusinessTripCharge', id: string, miscExpenses: Array<(
    { __typename?: 'MiscExpense', id: string, description?: string | null, invoiceDate: TimelessDateString, valueDate: Date, chargeId: string, amount: { __typename?: 'FinancialAmount', formatted: string }, creditor: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string }, debtor: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } }
    & { ' $fragmentRefs'?: { 'EditMiscExpenseFieldsFragment': EditMiscExpenseFieldsFragment } }
  )> } & { ' $fragmentName'?: 'TableMiscExpensesFields_BusinessTripCharge_Fragment' };

type TableMiscExpensesFields_CommonCharge_Fragment = { __typename?: 'CommonCharge', id: string, miscExpenses: Array<(
    { __typename?: 'MiscExpense', id: string, description?: string | null, invoiceDate: TimelessDateString, valueDate: Date, chargeId: string, amount: { __typename?: 'FinancialAmount', formatted: string }, creditor: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string }, debtor: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } }
    & { ' $fragmentRefs'?: { 'EditMiscExpenseFieldsFragment': EditMiscExpenseFieldsFragment } }
  )> } & { ' $fragmentName'?: 'TableMiscExpensesFields_CommonCharge_Fragment' };

type TableMiscExpensesFields_ConversionCharge_Fragment = { __typename?: 'ConversionCharge', id: string, miscExpenses: Array<(
    { __typename?: 'MiscExpense', id: string, description?: string | null, invoiceDate: TimelessDateString, valueDate: Date, chargeId: string, amount: { __typename?: 'FinancialAmount', formatted: string }, creditor: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string }, debtor: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } }
    & { ' $fragmentRefs'?: { 'EditMiscExpenseFieldsFragment': EditMiscExpenseFieldsFragment } }
  )> } & { ' $fragmentName'?: 'TableMiscExpensesFields_ConversionCharge_Fragment' };

type TableMiscExpensesFields_CreditcardBankCharge_Fragment = { __typename?: 'CreditcardBankCharge', id: string, miscExpenses: Array<(
    { __typename?: 'MiscExpense', id: string, description?: string | null, invoiceDate: TimelessDateString, valueDate: Date, chargeId: string, amount: { __typename?: 'FinancialAmount', formatted: string }, creditor: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string }, debtor: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } }
    & { ' $fragmentRefs'?: { 'EditMiscExpenseFieldsFragment': EditMiscExpenseFieldsFragment } }
  )> } & { ' $fragmentName'?: 'TableMiscExpensesFields_CreditcardBankCharge_Fragment' };

type TableMiscExpensesFields_DividendCharge_Fragment = { __typename?: 'DividendCharge', id: string, miscExpenses: Array<(
    { __typename?: 'MiscExpense', id: string, description?: string | null, invoiceDate: TimelessDateString, valueDate: Date, chargeId: string, amount: { __typename?: 'FinancialAmount', formatted: string }, creditor: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string }, debtor: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } }
    & { ' $fragmentRefs'?: { 'EditMiscExpenseFieldsFragment': EditMiscExpenseFieldsFragment } }
  )> } & { ' $fragmentName'?: 'TableMiscExpensesFields_DividendCharge_Fragment' };

type TableMiscExpensesFields_FinancialCharge_Fragment = { __typename?: 'FinancialCharge', id: string, miscExpenses: Array<(
    { __typename?: 'MiscExpense', id: string, description?: string | null, invoiceDate: TimelessDateString, valueDate: Date, chargeId: string, amount: { __typename?: 'FinancialAmount', formatted: string }, creditor: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string }, debtor: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } }
    & { ' $fragmentRefs'?: { 'EditMiscExpenseFieldsFragment': EditMiscExpenseFieldsFragment } }
  )> } & { ' $fragmentName'?: 'TableMiscExpensesFields_FinancialCharge_Fragment' };

type TableMiscExpensesFields_ForeignSecuritiesCharge_Fragment = { __typename?: 'ForeignSecuritiesCharge', id: string, miscExpenses: Array<(
    { __typename?: 'MiscExpense', id: string, description?: string | null, invoiceDate: TimelessDateString, valueDate: Date, chargeId: string, amount: { __typename?: 'FinancialAmount', formatted: string }, creditor: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string }, debtor: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } }
    & { ' $fragmentRefs'?: { 'EditMiscExpenseFieldsFragment': EditMiscExpenseFieldsFragment } }
  )> } & { ' $fragmentName'?: 'TableMiscExpensesFields_ForeignSecuritiesCharge_Fragment' };

type TableMiscExpensesFields_InternalTransferCharge_Fragment = { __typename?: 'InternalTransferCharge', id: string, miscExpenses: Array<(
    { __typename?: 'MiscExpense', id: string, description?: string | null, invoiceDate: TimelessDateString, valueDate: Date, chargeId: string, amount: { __typename?: 'FinancialAmount', formatted: string }, creditor: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string }, debtor: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } }
    & { ' $fragmentRefs'?: { 'EditMiscExpenseFieldsFragment': EditMiscExpenseFieldsFragment } }
  )> } & { ' $fragmentName'?: 'TableMiscExpensesFields_InternalTransferCharge_Fragment' };

type TableMiscExpensesFields_MonthlyVatCharge_Fragment = { __typename?: 'MonthlyVatCharge', id: string, miscExpenses: Array<(
    { __typename?: 'MiscExpense', id: string, description?: string | null, invoiceDate: TimelessDateString, valueDate: Date, chargeId: string, amount: { __typename?: 'FinancialAmount', formatted: string }, creditor: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string }, debtor: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } }
    & { ' $fragmentRefs'?: { 'EditMiscExpenseFieldsFragment': EditMiscExpenseFieldsFragment } }
  )> } & { ' $fragmentName'?: 'TableMiscExpensesFields_MonthlyVatCharge_Fragment' };

type TableMiscExpensesFields_SalaryCharge_Fragment = { __typename?: 'SalaryCharge', id: string, miscExpenses: Array<(
    { __typename?: 'MiscExpense', id: string, description?: string | null, invoiceDate: TimelessDateString, valueDate: Date, chargeId: string, amount: { __typename?: 'FinancialAmount', formatted: string }, creditor: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string }, debtor: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } }
    & { ' $fragmentRefs'?: { 'EditMiscExpenseFieldsFragment': EditMiscExpenseFieldsFragment } }
  )> } & { ' $fragmentName'?: 'TableMiscExpensesFields_SalaryCharge_Fragment' };

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 } & { ' $fragmentName'?: 'TableSalariesFields_BankDepositCharge_Fragment' };

type TableSalariesFields_BusinessTripCharge_Fragment = { __typename: 'BusinessTripCharge', id: string } & { ' $fragmentName'?: 'TableSalariesFields_BusinessTripCharge_Fragment' };

type TableSalariesFields_CommonCharge_Fragment = { __typename: 'CommonCharge', id: string } & { ' $fragmentName'?: 'TableSalariesFields_CommonCharge_Fragment' };

type TableSalariesFields_ConversionCharge_Fragment = { __typename: 'ConversionCharge', id: string } & { ' $fragmentName'?: 'TableSalariesFields_ConversionCharge_Fragment' };

type TableSalariesFields_CreditcardBankCharge_Fragment = { __typename: 'CreditcardBankCharge', id: string } & { ' $fragmentName'?: 'TableSalariesFields_CreditcardBankCharge_Fragment' };

type TableSalariesFields_DividendCharge_Fragment = { __typename: 'DividendCharge', id: string } & { ' $fragmentName'?: 'TableSalariesFields_DividendCharge_Fragment' };

type TableSalariesFields_FinancialCharge_Fragment = { __typename: 'FinancialCharge', id: string } & { ' $fragmentName'?: 'TableSalariesFields_FinancialCharge_Fragment' };

type TableSalariesFields_ForeignSecuritiesCharge_Fragment = { __typename: 'ForeignSecuritiesCharge', id: string } & { ' $fragmentName'?: 'TableSalariesFields_ForeignSecuritiesCharge_Fragment' };

type TableSalariesFields_InternalTransferCharge_Fragment = { __typename: 'InternalTransferCharge', id: string } & { ' $fragmentName'?: 'TableSalariesFields_InternalTransferCharge_Fragment' };

type TableSalariesFields_MonthlyVatCharge_Fragment = { __typename: 'MonthlyVatCharge', id: string } & { ' $fragmentName'?: 'TableSalariesFields_MonthlyVatCharge_Fragment' };

type TableSalariesFields_SalaryCharge_Fragment = { __typename: 'SalaryCharge', id: string, salaryRecords: Array<{ __typename?: 'Salary', directAmount: { __typename?: 'FinancialAmount', formatted: string }, baseAmount?: { __typename?: 'FinancialAmount', formatted: string } | null, employee?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | null, pensionFund?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | null, pensionEmployeeAmount?: { __typename?: 'FinancialAmount', formatted: string } | null, pensionEmployerAmount?: { __typename?: 'FinancialAmount', formatted: string } | null, compensationsAmount?: { __typename?: 'FinancialAmount', formatted: string } | null, trainingFund?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | null, trainingFundEmployeeAmount?: { __typename?: 'FinancialAmount', formatted: string } | null, trainingFundEmployerAmount?: { __typename?: 'FinancialAmount', formatted: string } | null, socialSecurityEmployeeAmount?: { __typename?: 'FinancialAmount', formatted: string } | null, socialSecurityEmployerAmount?: { __typename?: 'FinancialAmount', formatted: string } | null, incomeTaxAmount?: { __typename?: 'FinancialAmount', formatted: string } | null, healthInsuranceAmount?: { __typename?: 'FinancialAmount', formatted: string } | null }> } & { ' $fragmentName'?: 'TableSalariesFields_SalaryCharge_Fragment' };

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?: InputMaybe<ChargeFilter>;
}>;


export type IncomeChargesChartQuery = { __typename?: 'Query', allCharges: { __typename?: 'PaginatedCharges', nodes: Array<{ __typename?: 'BankDepositCharge', id: string, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, effectiveDate?: TimelessDateString | null, amount: { __typename?: 'FinancialAmount', currency: Currency, formatted: string, raw: number }, eventExchangeRates?: { __typename?: 'ExchangeRates', aud?: number | null, cad?: number | null, eur?: number | null, gbp?: number | null, jpy?: number | null, sek?: number | null, usd?: number | null, date: TimelessDateString } | null, debitExchangeRates?: { __typename?: 'ExchangeRates', aud?: number | null, cad?: number | null, eur?: number | null, gbp?: number | null, jpy?: number | null, sek?: number | null, usd?: number | null, date: TimelessDateString } | null } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, effectiveDate: TimelessDateString, amount: { __typename?: 'FinancialAmount', currency: Currency, formatted: string, raw: number }, eventExchangeRates?: { __typename?: 'ExchangeRates', aud?: number | null, cad?: number | null, eur?: number | null, gbp?: number | null, jpy?: number | null, sek?: number | null, usd?: number | null, date: TimelessDateString } | null, debitExchangeRates?: { __typename?: 'ExchangeRates', aud?: number | null, cad?: number | null, eur?: number | null, gbp?: number | null, jpy?: number | null, sek?: number | null, usd?: number | null, date: TimelessDateString } | null }> } | { __typename?: 'BusinessTripCharge', id: string, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, effectiveDate?: TimelessDateString | null, amount: { __typename?: 'FinancialAmount', currency: Currency, formatted: string, raw: number }, eventExchangeRates?: { __typename?: 'ExchangeRates', aud?: number | null, cad?: number | null, eur?: number | null, gbp?: number | null, jpy?: number | null, sek?: number | null, usd?: number | null, date: TimelessDateString } | null, debitExchangeRates?: { __typename?: 'ExchangeRates', aud?: number | null, cad?: number | null, eur?: number | null, gbp?: number | null, jpy?: number | null, sek?: number | null, usd?: number | null, date: TimelessDateString } | null } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, effectiveDate: TimelessDateString, amount: { __typename?: 'FinancialAmount', currency: Currency, formatted: string, raw: number }, eventExchangeRates?: { __typename?: 'ExchangeRates', aud?: number | null, cad?: number | null, eur?: number | null, gbp?: number | null, jpy?: number | null, sek?: number | null, usd?: number | null, date: TimelessDateString } | null, debitExchangeRates?: { __typename?: 'ExchangeRates', aud?: number | null, cad?: number | null, eur?: number | null, gbp?: number | null, jpy?: number | null, sek?: number | null, usd?: number | null, date: TimelessDateString } | null }> } | { __typename?: 'CommonCharge', id: string, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, effectiveDate?: TimelessDateString | null, amount: { __typename?: 'FinancialAmount', currency: Currency, formatted: string, raw: number }, eventExchangeRates?: { __typename?: 'ExchangeRates', aud?: number | null, cad?: number | null, eur?: number | null, gbp?: number | null, jpy?: number | null, sek?: number | null, usd?: number | null, date: TimelessDateString } | null, debitExchangeRates?: { __typename?: 'ExchangeRates', aud?: number | null, cad?: number | null, eur?: number | null, gbp?: number | null, jpy?: number | null, sek?: number | null, usd?: number | null, date: TimelessDateString } | null } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, effectiveDate: TimelessDateString, amount: { __typename?: 'FinancialAmount', currency: Currency, formatted: string, raw: number }, eventExchangeRates?: { __typename?: 'ExchangeRates', aud?: number | null, cad?: number | null, eur?: number | null, gbp?: number | null, jpy?: number | null, sek?: number | null, usd?: number | null, date: TimelessDateString } | null, debitExchangeRates?: { __typename?: 'ExchangeRates', aud?: number | null, cad?: number | null, eur?: number | null, gbp?: number | null, jpy?: number | null, sek?: number | null, usd?: number | null, date: TimelessDateString } | null }> } | { __typename?: 'ConversionCharge', id: string, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, effectiveDate?: TimelessDateString | null, amount: { __typename?: 'FinancialAmount', currency: Currency, formatted: string, raw: number }, eventExchangeRates?: { __typename?: 'ExchangeRates', aud?: number | null, cad?: number | null, eur?: number | null, gbp?: number | null, jpy?: number | null, sek?: number | null, usd?: number | null, date: TimelessDateString } | null, debitExchangeRates?: { __typename?: 'ExchangeRates', aud?: number | null, cad?: number | null, eur?: number | null, gbp?: number | null, jpy?: number | null, sek?: number | null, usd?: number | null, date: TimelessDateString } | null } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, effectiveDate: TimelessDateString, amount: { __typename?: 'FinancialAmount', currency: Currency, formatted: string, raw: number }, eventExchangeRates?: { __typename?: 'ExchangeRates', aud?: number | null, cad?: number | null, eur?: number | null, gbp?: number | null, jpy?: number | null, sek?: number | null, usd?: number | null, date: TimelessDateString } | null, debitExchangeRates?: { __typename?: 'ExchangeRates', aud?: number | null, cad?: number | null, eur?: number | null, gbp?: number | null, jpy?: number | null, sek?: number | null, usd?: number | null, date: TimelessDateString } | null }> } | { __typename?: 'CreditcardBankCharge', id: string, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, effectiveDate?: TimelessDateString | null, amount: { __typename?: 'FinancialAmount', currency: Currency, formatted: string, raw: number }, eventExchangeRates?: { __typename?: 'ExchangeRates', aud?: number | null, cad?: number | null, eur?: number | null, gbp?: number | null, jpy?: number | null, sek?: number | null, usd?: number | null, date: TimelessDateString } | null, debitExchangeRates?: { __typename?: 'ExchangeRates', aud?: number | null, cad?: number | null, eur?: number | null, gbp?: number | null, jpy?: number | null, sek?: number | null, usd?: number | null, date: TimelessDateString } | null } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, effectiveDate: TimelessDateString, amount: { __typename?: 'FinancialAmount', currency: Currency, formatted: string, raw: number }, eventExchangeRates?: { __typename?: 'ExchangeRates', aud?: number | null, cad?: number | null, eur?: number | null, gbp?: number | null, jpy?: number | null, sek?: number | null, usd?: number | null, date: TimelessDateString } | null, debitExchangeRates?: { __typename?: 'ExchangeRates', aud?: number | null, cad?: number | null, eur?: number | null, gbp?: number | null, jpy?: number | null, sek?: number | null, usd?: number | null, date: TimelessDateString } | null }> } | { __typename?: 'DividendCharge', id: string, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, effectiveDate?: TimelessDateString | null, amount: { __typename?: 'FinancialAmount', currency: Currency, formatted: string, raw: number }, eventExchangeRates?: { __typename?: 'ExchangeRates', aud?: number | null, cad?: number | null, eur?: number | null, gbp?: number | null, jpy?: number | null, sek?: number | null, usd?: number | null, date: TimelessDateString } | null, debitExchangeRates?: { __typename?: 'ExchangeRates', aud?: number | null, cad?: number | null, eur?: number | null, gbp?: number | null, jpy?: number | null, sek?: number | null, usd?: number | null, date: TimelessDateString } | null } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, effectiveDate: TimelessDateString, amount: { __typename?: 'FinancialAmount', currency: Currency, formatted: string, raw: number }, eventExchangeRates?: { __typename?: 'ExchangeRates', aud?: number | null, cad?: number | null, eur?: number | null, gbp?: number | null, jpy?: number | null, sek?: number | null, usd?: number | null, date: TimelessDateString } | null, debitExchangeRates?: { __typename?: 'ExchangeRates', aud?: number | null, cad?: number | null, eur?: number | null, gbp?: number | null, jpy?: number | null, sek?: number | null, usd?: number | null, date: TimelessDateString } | null }> } | { __typename?: 'FinancialCharge', id: string, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, effectiveDate?: TimelessDateString | null, amount: { __typename?: 'FinancialAmount', currency: Currency, formatted: string, raw: number }, eventExchangeRates?: { __typename?: 'ExchangeRates', aud?: number | null, cad?: number | null, eur?: number | null, gbp?: number | null, jpy?: number | null, sek?: number | null, usd?: number | null, date: TimelessDateString } | null, debitExchangeRates?: { __typename?: 'ExchangeRates', aud?: number | null, cad?: number | null, eur?: number | null, gbp?: number | null, jpy?: number | null, sek?: number | null, usd?: number | null, date: TimelessDateString } | null } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, effectiveDate: TimelessDateString, amount: { __typename?: 'FinancialAmount', currency: Currency, formatted: string, raw: number }, eventExchangeRates?: { __typename?: 'ExchangeRates', aud?: number | null, cad?: number | null, eur?: number | null, gbp?: number | null, jpy?: number | null, sek?: number | null, usd?: number | null, date: TimelessDateString } | null, debitExchangeRates?: { __typename?: 'ExchangeRates', aud?: number | null, cad?: number | null, eur?: number | null, gbp?: number | null, jpy?: number | null, sek?: number | null, usd?: number | null, date: TimelessDateString } | null }> } | { __typename?: 'ForeignSecuritiesCharge', id: string, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, effectiveDate?: TimelessDateString | null, amount: { __typename?: 'FinancialAmount', currency: Currency, formatted: string, raw: number }, eventExchangeRates?: { __typename?: 'ExchangeRates', aud?: number | null, cad?: number | null, eur?: number | null, gbp?: number | null, jpy?: number | null, sek?: number | null, usd?: number | null, date: TimelessDateString } | null, debitExchangeRates?: { __typename?: 'ExchangeRates', aud?: number | null, cad?: number | null, eur?: number | null, gbp?: number | null, jpy?: number | null, sek?: number | null, usd?: number | null, date: TimelessDateString } | null } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, effectiveDate: TimelessDateString, amount: { __typename?: 'FinancialAmount', currency: Currency, formatted: string, raw: number }, eventExchangeRates?: { __typename?: 'ExchangeRates', aud?: number | null, cad?: number | null, eur?: number | null, gbp?: number | null, jpy?: number | null, sek?: number | null, usd?: number | null, date: TimelessDateString } | null, debitExchangeRates?: { __typename?: 'ExchangeRates', aud?: number | null, cad?: number | null, eur?: number | null, gbp?: number | null, jpy?: number | null, sek?: number | null, usd?: number | null, date: TimelessDateString } | null }> } | { __typename?: 'InternalTransferCharge', id: string, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, effectiveDate?: TimelessDateString | null, amount: { __typename?: 'FinancialAmount', currency: Currency, formatted: string, raw: number }, eventExchangeRates?: { __typename?: 'ExchangeRates', aud?: number | null, cad?: number | null, eur?: number | null, gbp?: number | null, jpy?: number | null, sek?: number | null, usd?: number | null, date: TimelessDateString } | null, debitExchangeRates?: { __typename?: 'ExchangeRates', aud?: number | null, cad?: number | null, eur?: number | null, gbp?: number | null, jpy?: number | null, sek?: number | null, usd?: number | null, date: TimelessDateString } | null } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, effectiveDate: TimelessDateString, amount: { __typename?: 'FinancialAmount', currency: Currency, formatted: string, raw: number }, eventExchangeRates?: { __typename?: 'ExchangeRates', aud?: number | null, cad?: number | null, eur?: number | null, gbp?: number | null, jpy?: number | null, sek?: number | null, usd?: number | null, date: TimelessDateString } | null, debitExchangeRates?: { __typename?: 'ExchangeRates', aud?: number | null, cad?: number | null, eur?: number | null, gbp?: number | null, jpy?: number | null, sek?: number | null, usd?: number | null, date: TimelessDateString } | null }> } | { __typename?: 'MonthlyVatCharge', id: string, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, effectiveDate?: TimelessDateString | null, amount: { __typename?: 'FinancialAmount', currency: Currency, formatted: string, raw: number }, eventExchangeRates?: { __typename?: 'ExchangeRates', aud?: number | null, cad?: number | null, eur?: number | null, gbp?: number | null, jpy?: number | null, sek?: number | null, usd?: number | null, date: TimelessDateString } | null, debitExchangeRates?: { __typename?: 'ExchangeRates', aud?: number | null, cad?: number | null, eur?: number | null, gbp?: number | null, jpy?: number | null, sek?: number | null, usd?: number | null, date: TimelessDateString } | null } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, effectiveDate: TimelessDateString, amount: { __typename?: 'FinancialAmount', currency: Currency, formatted: string, raw: number }, eventExchangeRates?: { __typename?: 'ExchangeRates', aud?: number | null, cad?: number | null, eur?: number | null, gbp?: number | null, jpy?: number | null, sek?: number | null, usd?: number | null, date: TimelessDateString } | null, debitExchangeRates?: { __typename?: 'ExchangeRates', aud?: number | null, cad?: number | null, eur?: number | null, gbp?: number | null, jpy?: number | null, sek?: number | null, usd?: number | null, date: TimelessDateString } | null }> } | { __typename?: 'SalaryCharge', id: string, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, effectiveDate?: TimelessDateString | null, amount: { __typename?: 'FinancialAmount', currency: Currency, formatted: string, raw: number }, eventExchangeRates?: { __typename?: 'ExchangeRates', aud?: number | null, cad?: number | null, eur?: number | null, gbp?: number | null, jpy?: number | null, sek?: number | null, usd?: number | null, date: TimelessDateString } | null, debitExchangeRates?: { __typename?: 'ExchangeRates', aud?: number | null, cad?: number | null, eur?: number | null, gbp?: number | null, jpy?: number | null, sek?: number | null, usd?: number | null, date: TimelessDateString } | null } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, effectiveDate: TimelessDateString, amount: { __typename?: 'FinancialAmount', currency: Currency, formatted: string, raw: number }, eventExchangeRates?: { __typename?: 'ExchangeRates', aud?: number | null, cad?: number | null, eur?: number | null, gbp?: number | null, jpy?: number | null, sek?: number | null, usd?: number | null, date: TimelessDateString } | null, debitExchangeRates?: { __typename?: 'ExchangeRates', aud?: number | null, cad?: number | null, eur?: number | null, gbp?: number | null, jpy?: number | null, sek?: number | null, usd?: number | null, date: TimelessDateString } | null }> }> } };

export type MonthlyIncomeExpenseChartInfoFragment = { __typename?: 'IncomeExpenseChart', monthlyData: Array<{ __typename?: 'IncomeExpenseChartMonthData', date: TimelessDateString, income: { __typename?: 'FinancialAmount', formatted: string, raw: number }, expense: { __typename?: 'FinancialAmount', formatted: string, raw: number }, balance: { __typename?: 'FinancialAmount', formatted: string, raw: number } }> } & { ' $fragmentName'?: 'MonthlyIncomeExpenseChartInfoFragment' };

export type MonthlyIncomeExpenseChartQueryVariables = Exact<{
  filters: IncomeExpenseChartFilters;
}>;


export type MonthlyIncomeExpenseChartQuery = { __typename?: 'Query', incomeExpenseChart: (
    { __typename?: 'IncomeExpenseChart', fromDate: TimelessDateString, toDate: TimelessDateString, currency: Currency }
    & { ' $fragmentRefs'?: { 'MonthlyIncomeExpenseChartInfoFragment': MonthlyIncomeExpenseChartInfoFragment } }
  ) };

export type BusinessTripReportFieldsFragment = (
  { __typename?: 'BusinessTrip', id: string }
  & { ' $fragmentRefs'?: { 'BusinessTripReportHeaderFieldsFragment': BusinessTripReportHeaderFieldsFragment;'BusinessTripReportSummaryFieldsFragment': BusinessTripReportSummaryFieldsFragment } }
) & { ' $fragmentName'?: 'BusinessTripReportFieldsFragment' };

export type BusinessTripAccountantApprovalFieldsFragment = { __typename?: 'BusinessTrip', id: string, accountantApproval: AccountantStatus } & { ' $fragmentName'?: 'BusinessTripAccountantApprovalFieldsFragment' };

export type UncategorizedTransactionsByBusinessTripQueryVariables = Exact<{
  businessTripId: Scalars['UUID']['input'];
}>;


export type UncategorizedTransactionsByBusinessTripQuery = { __typename?: 'Query', businessTrip?: { __typename?: 'BusinessTrip', id: string, uncategorizedTransactions: Array<{ __typename?: 'UncategorizedTransaction', transaction: { __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, referenceKey?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, amount: { __typename?: 'FinancialAmount', formatted: string, raw: number } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, referenceKey?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, amount: { __typename?: 'FinancialAmount', formatted: string, raw: number } } } | null> } | null };

export type BusinessTripReportAccommodationsRowFieldsFragment = (
  { __typename?: 'BusinessTripAccommodationExpense', id: string, payedByEmployee?: boolean | null, country?: string | null, nightsCount?: number | null, attendeesStay: Array<{ __typename?: 'BusinessTripAttendeeStay', id: string, nightsCount: number, attendee: { __typename?: 'BusinessTripAttendee', id: string, name: string } }> }
  & { ' $fragmentRefs'?: { 'BusinessTripReportCoreExpenseRowFields_BusinessTripAccommodationExpense_Fragment': BusinessTripReportCoreExpenseRowFields_BusinessTripAccommodationExpense_Fragment } }
) & { ' $fragmentName'?: 'BusinessTripReportAccommodationsRowFieldsFragment' };

export type BusinessTripReportAccommodationsTableFieldsFragment = (
  { __typename?: 'BusinessTripAccommodationExpense', id: string, date?: TimelessDateString | null }
  & { ' $fragmentRefs'?: { 'BusinessTripReportAccommodationsRowFieldsFragment': BusinessTripReportAccommodationsRowFieldsFragment } }
) & { ' $fragmentName'?: 'BusinessTripReportAccommodationsTableFieldsFragment' };

export type BusinessTripReportAccommodationsFieldsFragment = { __typename?: 'BusinessTrip', id: string, accommodationExpenses: Array<(
    { __typename?: 'BusinessTripAccommodationExpense', id: string }
    & { ' $fragmentRefs'?: { 'BusinessTripReportAccommodationsTableFieldsFragment': BusinessTripReportAccommodationsTableFieldsFragment } }
  )> } & { ' $fragmentName'?: 'BusinessTripReportAccommodationsFieldsFragment' };

export type BusinessTripReportAttendeeRowFieldsFragment = { __typename?: 'BusinessTripAttendee', id: string, name: string, arrivalDate?: TimelessDateString | null, departureDate?: TimelessDateString | null, flights: Array<(
    { __typename?: 'BusinessTripFlightExpense', id: string }
    & { ' $fragmentRefs'?: { 'BusinessTripReportFlightsTableFieldsFragment': BusinessTripReportFlightsTableFieldsFragment } }
  )>, accommodations: Array<(
    { __typename?: 'BusinessTripAccommodationExpense', id: string }
    & { ' $fragmentRefs'?: { 'BusinessTripReportAccommodationsTableFieldsFragment': BusinessTripReportAccommodationsTableFieldsFragment } }
  )> } & { ' $fragmentName'?: 'BusinessTripReportAttendeeRowFieldsFragment' };

export type BusinessTripReportAttendeesFieldsFragment = { __typename?: 'BusinessTrip', id: string, attendees: Array<(
    { __typename?: 'BusinessTripAttendee', id: string, name: string }
    & { ' $fragmentRefs'?: { 'BusinessTripReportAttendeeRowFieldsFragment': BusinessTripReportAttendeeRowFieldsFragment } }
  )> } & { ' $fragmentName'?: 'BusinessTripReportAttendeesFieldsFragment' };

export type BusinessTripReportCarRentalRowFieldsFragment = (
  { __typename?: 'BusinessTripCarRentalExpense', id: string, payedByEmployee?: boolean | null, days: number, isFuelExpense: boolean }
  & { ' $fragmentRefs'?: { 'BusinessTripReportCoreExpenseRowFields_BusinessTripCarRentalExpense_Fragment': BusinessTripReportCoreExpenseRowFields_BusinessTripCarRentalExpense_Fragment } }
) & { ' $fragmentName'?: 'BusinessTripReportCarRentalRowFieldsFragment' };

export type BusinessTripReportCarRentalFieldsFragment = { __typename?: 'BusinessTrip', id: string, carRentalExpenses: Array<(
    { __typename?: 'BusinessTripCarRentalExpense', id: string, date?: TimelessDateString | null }
    & { ' $fragmentRefs'?: { 'BusinessTripReportCarRentalRowFieldsFragment': BusinessTripReportCarRentalRowFieldsFragment } }
  )> } & { ' $fragmentName'?: 'BusinessTripReportCarRentalFieldsFragment' };

type BusinessTripReportCoreExpenseRowFields_BusinessTripAccommodationExpense_Fragment = { __typename?: 'BusinessTripAccommodationExpense', id: string, date?: TimelessDateString | null, valueDate?: TimelessDateString | null, payedByEmployee?: boolean | null, amount?: { __typename?: 'FinancialAmount', formatted: string, raw: number, currency: Currency } | null, employee?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, charges?: Array<{ __typename?: 'BankDepositCharge', id: string } | { __typename?: 'BusinessTripCharge', id: string } | { __typename?: 'CommonCharge', id: string } | { __typename?: 'ConversionCharge', id: string } | { __typename?: 'CreditcardBankCharge', id: string } | { __typename?: 'DividendCharge', id: string } | { __typename?: 'FinancialCharge', id: string } | { __typename?: 'ForeignSecuritiesCharge', id: string } | { __typename?: 'InternalTransferCharge', id: string } | { __typename?: 'MonthlyVatCharge', id: string } | { __typename?: 'SalaryCharge', id: string }> | null } & { ' $fragmentName'?: 'BusinessTripReportCoreExpenseRowFields_BusinessTripAccommodationExpense_Fragment' };

type BusinessTripReportCoreExpenseRowFields_BusinessTripCarRentalExpense_Fragment = { __typename?: 'BusinessTripCarRentalExpense', id: string, date?: TimelessDateString | null, valueDate?: TimelessDateString | null, payedByEmployee?: boolean | null, amount?: { __typename?: 'FinancialAmount', formatted: string, raw: number, currency: Currency } | null, employee?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, charges?: Array<{ __typename?: 'BankDepositCharge', id: string } | { __typename?: 'BusinessTripCharge', id: string } | { __typename?: 'CommonCharge', id: string } | { __typename?: 'ConversionCharge', id: string } | { __typename?: 'CreditcardBankCharge', id: string } | { __typename?: 'DividendCharge', id: string } | { __typename?: 'FinancialCharge', id: string } | { __typename?: 'ForeignSecuritiesCharge', id: string } | { __typename?: 'InternalTransferCharge', id: string } | { __typename?: 'MonthlyVatCharge', id: string } | { __typename?: 'SalaryCharge', id: string }> | null } & { ' $fragmentName'?: 'BusinessTripReportCoreExpenseRowFields_BusinessTripCarRentalExpense_Fragment' };

type BusinessTripReportCoreExpenseRowFields_BusinessTripFlightExpense_Fragment = { __typename?: 'BusinessTripFlightExpense', id: string, date?: TimelessDateString | null, valueDate?: TimelessDateString | null, payedByEmployee?: boolean | null, amount?: { __typename?: 'FinancialAmount', formatted: string, raw: number, currency: Currency } | null, employee?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, charges?: Array<{ __typename?: 'BankDepositCharge', id: string } | { __typename?: 'BusinessTripCharge', id: string } | { __typename?: 'CommonCharge', id: string } | { __typename?: 'ConversionCharge', id: string } | { __typename?: 'CreditcardBankCharge', id: string } | { __typename?: 'DividendCharge', id: string } | { __typename?: 'FinancialCharge', id: string } | { __typename?: 'ForeignSecuritiesCharge', id: string } | { __typename?: 'InternalTransferCharge', id: string } | { __typename?: 'MonthlyVatCharge', id: string } | { __typename?: 'SalaryCharge', id: string }> | null } & { ' $fragmentName'?: 'BusinessTripReportCoreExpenseRowFields_BusinessTripFlightExpense_Fragment' };

type BusinessTripReportCoreExpenseRowFields_BusinessTripOtherExpense_Fragment = { __typename?: 'BusinessTripOtherExpense', id: string, date?: TimelessDateString | null, valueDate?: TimelessDateString | null, payedByEmployee?: boolean | null, amount?: { __typename?: 'FinancialAmount', formatted: string, raw: number, currency: Currency } | null, employee?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, charges?: Array<{ __typename?: 'BankDepositCharge', id: string } | { __typename?: 'BusinessTripCharge', id: string } | { __typename?: 'CommonCharge', id: string } | { __typename?: 'ConversionCharge', id: string } | { __typename?: 'CreditcardBankCharge', id: string } | { __typename?: 'DividendCharge', id: string } | { __typename?: 'FinancialCharge', id: string } | { __typename?: 'ForeignSecuritiesCharge', id: string } | { __typename?: 'InternalTransferCharge', id: string } | { __typename?: 'MonthlyVatCharge', id: string } | { __typename?: 'SalaryCharge', id: string }> | null } & { ' $fragmentName'?: 'BusinessTripReportCoreExpenseRowFields_BusinessTripOtherExpense_Fragment' };

type BusinessTripReportCoreExpenseRowFields_BusinessTripTravelAndSubsistenceExpense_Fragment = { __typename?: 'BusinessTripTravelAndSubsistenceExpense', id: string, date?: TimelessDateString | null, valueDate?: TimelessDateString | null, payedByEmployee?: boolean | null, amount?: { __typename?: 'FinancialAmount', formatted: string, raw: number, currency: Currency } | null, employee?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, charges?: Array<{ __typename?: 'BankDepositCharge', id: string } | { __typename?: 'BusinessTripCharge', id: string } | { __typename?: 'CommonCharge', id: string } | { __typename?: 'ConversionCharge', id: string } | { __typename?: 'CreditcardBankCharge', id: string } | { __typename?: 'DividendCharge', id: string } | { __typename?: 'FinancialCharge', id: string } | { __typename?: 'ForeignSecuritiesCharge', id: string } | { __typename?: 'InternalTransferCharge', id: string } | { __typename?: 'MonthlyVatCharge', id: string } | { __typename?: 'SalaryCharge', id: string }> | null } & { ' $fragmentName'?: 'BusinessTripReportCoreExpenseRowFields_BusinessTripTravelAndSubsistenceExpense_Fragment' };

export type BusinessTripReportCoreExpenseRowFieldsFragment = BusinessTripReportCoreExpenseRowFields_BusinessTripAccommodationExpense_Fragment | BusinessTripReportCoreExpenseRowFields_BusinessTripCarRentalExpense_Fragment | BusinessTripReportCoreExpenseRowFields_BusinessTripFlightExpense_Fragment | BusinessTripReportCoreExpenseRowFields_BusinessTripOtherExpense_Fragment | BusinessTripReportCoreExpenseRowFields_BusinessTripTravelAndSubsistenceExpense_Fragment;

export type BusinessTripReportFlightsRowFieldsFragment = (
  { __typename?: 'BusinessTripFlightExpense', id: string, payedByEmployee?: boolean | null, path?: Array<string> | null, class?: string | null, attendees: Array<{ __typename?: 'BusinessTripAttendee', id: string, name: string }> }
  & { ' $fragmentRefs'?: { 'BusinessTripReportCoreExpenseRowFields_BusinessTripFlightExpense_Fragment': BusinessTripReportCoreExpenseRowFields_BusinessTripFlightExpense_Fragment } }
) & { ' $fragmentName'?: 'BusinessTripReportFlightsRowFieldsFragment' };

export type BusinessTripReportFlightsTableFieldsFragment = (
  { __typename?: 'BusinessTripFlightExpense', id: string, date?: TimelessDateString | null }
  & { ' $fragmentRefs'?: { 'BusinessTripReportFlightsRowFieldsFragment': BusinessTripReportFlightsRowFieldsFragment } }
) & { ' $fragmentName'?: 'BusinessTripReportFlightsTableFieldsFragment' };

export type BusinessTripReportFlightsFieldsFragment = { __typename?: 'BusinessTrip', id: string, flightExpenses: Array<(
    { __typename?: 'BusinessTripFlightExpense', id: string }
    & { ' $fragmentRefs'?: { 'BusinessTripReportFlightsTableFieldsFragment': BusinessTripReportFlightsTableFieldsFragment } }
  )>, attendees: Array<{ __typename?: 'BusinessTripAttendee', id: string, name: string }> } & { ' $fragmentName'?: 'BusinessTripReportFlightsFieldsFragment' };

export type BusinessTripReportOtherRowFieldsFragment = (
  { __typename?: 'BusinessTripOtherExpense', id: string, payedByEmployee?: boolean | null, description?: string | null, deductibleExpense?: boolean | null }
  & { ' $fragmentRefs'?: { 'BusinessTripReportCoreExpenseRowFields_BusinessTripOtherExpense_Fragment': BusinessTripReportCoreExpenseRowFields_BusinessTripOtherExpense_Fragment } }
) & { ' $fragmentName'?: 'BusinessTripReportOtherRowFieldsFragment' };

export type BusinessTripReportOtherFieldsFragment = { __typename?: 'BusinessTrip', id: string, otherExpenses: Array<(
    { __typename?: 'BusinessTripOtherExpense', id: string, date?: TimelessDateString | null }
    & { ' $fragmentRefs'?: { 'BusinessTripReportOtherRowFieldsFragment': BusinessTripReportOtherRowFieldsFragment } }
  )> } & { ' $fragmentName'?: 'BusinessTripReportOtherFieldsFragment' };

export type BusinessTripReportHeaderFieldsFragment = (
  { __typename?: 'BusinessTrip', id: string, name: string, purpose?: string | null, dates?: { __typename?: 'DateRange', start: TimelessDateString, end: TimelessDateString } | null, destination?: { __typename?: 'Country', id: string, name: string } | null }
  & { ' $fragmentRefs'?: { 'BusinessTripAccountantApprovalFieldsFragment': BusinessTripAccountantApprovalFieldsFragment } }
) & { ' $fragmentName'?: 'BusinessTripReportHeaderFieldsFragment' };

export type BusinessTripReportSummaryFieldsFragment = { __typename?: 'BusinessTrip', id: string } & ({ __typename?: 'BusinessTrip', summary: { __typename?: 'BusinessTripSummary', excessTax?: number | null, errors?: Array<string> | null, excessExpenditure?: { __typename?: 'FinancialAmount', formatted: string } | null, rows: Array<{ __typename?: 'BusinessTripSummaryRow', type: BusinessTripSummaryCategories, totalForeignCurrency: { __typename?: 'FinancialAmount', formatted: string }, totalLocalCurrency?: { __typename?: 'FinancialAmount', formatted: string } | null, taxableForeignCurrency: { __typename?: 'FinancialAmount', formatted: string }, taxableLocalCurrency?: { __typename?: 'FinancialAmount', formatted: string } | null, maxTaxableForeignCurrency: { __typename?: 'FinancialAmount', formatted: string }, maxTaxableLocalCurrency?: { __typename?: 'FinancialAmount', formatted: string } | null, excessExpenditure?: { __typename?: 'FinancialAmount', formatted: string } | null }> } } | { __typename?: 'BusinessTrip', summary?: never }) & { ' $fragmentName'?: 'BusinessTripReportSummaryFieldsFragment' };

export type BusinessTripReportTravelAndSubsistenceRowFieldsFragment = (
  { __typename?: 'BusinessTripTravelAndSubsistenceExpense', id: string, payedByEmployee?: boolean | null, expenseType?: string | null }
  & { ' $fragmentRefs'?: { 'BusinessTripReportCoreExpenseRowFields_BusinessTripTravelAndSubsistenceExpense_Fragment': BusinessTripReportCoreExpenseRowFields_BusinessTripTravelAndSubsistenceExpense_Fragment } }
) & { ' $fragmentName'?: 'BusinessTripReportTravelAndSubsistenceRowFieldsFragment' };

export type BusinessTripReportTravelAndSubsistenceFieldsFragment = { __typename?: 'BusinessTrip', id: string, travelAndSubsistenceExpenses: Array<(
    { __typename?: 'BusinessTripTravelAndSubsistenceExpense', id: string, date?: TimelessDateString | null }
    & { ' $fragmentRefs'?: { 'BusinessTripReportTravelAndSubsistenceRowFieldsFragment': BusinessTripReportTravelAndSubsistenceRowFieldsFragment } }
  )> } & { ' $fragmentName'?: 'BusinessTripReportTravelAndSubsistenceFieldsFragment' };

export type BusinessTripUncategorizedTransactionsFieldsFragment = { __typename?: 'BusinessTrip', id: string, uncategorizedTransactions: Array<(
    { __typename?: 'UncategorizedTransaction', transaction: (
      { __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, chargeId: string, amount: { __typename?: 'FinancialAmount', raw: number } }
      & { ' $fragmentRefs'?: { 'TransactionsTableEventDateFields_CommonTransaction_Fragment': TransactionsTableEventDateFields_CommonTransaction_Fragment;'TransactionsTableDebitDateFields_CommonTransaction_Fragment': TransactionsTableDebitDateFields_CommonTransaction_Fragment;'TransactionsTableAccountFields_CommonTransaction_Fragment': TransactionsTableAccountFields_CommonTransaction_Fragment;'TransactionsTableDescriptionFields_CommonTransaction_Fragment': TransactionsTableDescriptionFields_CommonTransaction_Fragment;'TransactionsTableSourceIdFields_CommonTransaction_Fragment': TransactionsTableSourceIdFields_CommonTransaction_Fragment;'TransactionsTableEntityFields_CommonTransaction_Fragment': TransactionsTableEntityFields_CommonTransaction_Fragment } }
    ) | (
      { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, chargeId: string, amount: { __typename?: 'FinancialAmount', raw: number } }
      & { ' $fragmentRefs'?: { 'TransactionsTableEventDateFields_ConversionTransaction_Fragment': TransactionsTableEventDateFields_ConversionTransaction_Fragment;'TransactionsTableDebitDateFields_ConversionTransaction_Fragment': TransactionsTableDebitDateFields_ConversionTransaction_Fragment;'TransactionsTableAccountFields_ConversionTransaction_Fragment': TransactionsTableAccountFields_ConversionTransaction_Fragment;'TransactionsTableDescriptionFields_ConversionTransaction_Fragment': TransactionsTableDescriptionFields_ConversionTransaction_Fragment;'TransactionsTableSourceIdFields_ConversionTransaction_Fragment': TransactionsTableSourceIdFields_ConversionTransaction_Fragment;'TransactionsTableEntityFields_ConversionTransaction_Fragment': TransactionsTableEntityFields_ConversionTransaction_Fragment } }
    ) }
    & { ' $fragmentRefs'?: { 'UncategorizedTransactionsTableAmountFieldsFragment': UncategorizedTransactionsTableAmountFieldsFragment } }
  ) | null> } & { ' $fragmentName'?: 'BusinessTripUncategorizedTransactionsFieldsFragment' };

export type UncategorizedTransactionsTableAmountFieldsFragment = { __typename?: 'UncategorizedTransaction', errors: Array<string>, transaction: { __typename?: 'CommonTransaction', id: string, amount: { __typename?: 'FinancialAmount', raw: number, formatted: string }, cryptoExchangeRate?: { __typename?: 'ConversionRate', rate: number } | null } | { __typename?: 'ConversionTransaction', id: string, amount: { __typename?: 'FinancialAmount', raw: number, formatted: string }, cryptoExchangeRate?: { __typename?: 'ConversionRate', rate: number } | null }, categorizedAmount: { __typename?: 'FinancialAmount', raw: number, formatted: string } } & { ' $fragmentName'?: 'UncategorizedTransactionsTableAmountFieldsFragment' };

export type DepreciationRecordRowFieldsFragment = { __typename?: 'DepreciationRecord', id: string, activationDate: TimelessDateString, type?: DepreciationType | null, amount: { __typename?: 'FinancialAmount', currency: Currency, formatted: string, raw: number }, category: { __typename?: 'DepreciationCategory', id: string, name: string, percentage: number }, charge: { __typename?: 'BankDepositCharge', id: string, totalAmount?: { __typename?: 'FinancialAmount', currency: Currency, formatted: string, raw: number } | null } | { __typename?: 'BusinessTripCharge', id: string, totalAmount?: { __typename?: 'FinancialAmount', currency: Currency, formatted: string, raw: number } | null } | { __typename?: 'CommonCharge', id: string, totalAmount?: { __typename?: 'FinancialAmount', currency: Currency, formatted: string, raw: number } | null } | { __typename?: 'ConversionCharge', id: string, totalAmount?: { __typename?: 'FinancialAmount', currency: Currency, formatted: string, raw: number } | null } | { __typename?: 'CreditcardBankCharge', id: string, totalAmount?: { __typename?: 'FinancialAmount', currency: Currency, formatted: string, raw: number } | null } | { __typename?: 'DividendCharge', id: string, totalAmount?: { __typename?: 'FinancialAmount', currency: Currency, formatted: string, raw: number } | null } | { __typename?: 'FinancialCharge', id: string, totalAmount?: { __typename?: 'FinancialAmount', currency: Currency, formatted: string, raw: number } | null } | { __typename?: 'ForeignSecuritiesCharge', id: string, totalAmount?: { __typename?: 'FinancialAmount', currency: Currency, formatted: string, raw: number } | null } | { __typename?: 'InternalTransferCharge', id: string, totalAmount?: { __typename?: 'FinancialAmount', currency: Currency, formatted: string, raw: number } | null } | { __typename?: 'MonthlyVatCharge', id: string, totalAmount?: { __typename?: 'FinancialAmount', currency: Currency, formatted: string, raw: number } | null } | { __typename?: 'SalaryCharge', id: string, totalAmount?: { __typename?: 'FinancialAmount', currency: Currency, formatted: string, raw: number } | null } } & { ' $fragmentName'?: 'DepreciationRecordRowFieldsFragment' };

export type ChargeDepreciationQueryVariables = Exact<{
  chargeId: Scalars['UUID']['input'];
}>;


export type ChargeDepreciationQuery = { __typename?: 'Query', depreciationRecordsByCharge: Array<(
    { __typename?: 'DepreciationRecord', id: string }
    & { ' $fragmentRefs'?: { 'DepreciationRecordRowFieldsFragment': DepreciationRecordRowFieldsFragment } }
  )> };

export type DocumentsToChargeMatcherQueryVariables = Exact<{
  chargeId: Scalars['UUID']['input'];
  filters: DocumentsFilters;
}>;


export type DocumentsToChargeMatcherQuery = { __typename?: 'Query', documentsByFilters: Array<(
    { __typename?: 'CreditInvoice', id: string }
    & { ' $fragmentRefs'?: { 'DocumentsToMatchFields_CreditInvoice_Fragment': DocumentsToMatchFields_CreditInvoice_Fragment } }
  ) | (
    { __typename?: 'Invoice', id: string }
    & { ' $fragmentRefs'?: { 'DocumentsToMatchFields_Invoice_Fragment': DocumentsToMatchFields_Invoice_Fragment } }
  ) | (
    { __typename?: 'InvoiceReceipt', id: string }
    & { ' $fragmentRefs'?: { 'DocumentsToMatchFields_InvoiceReceipt_Fragment': DocumentsToMatchFields_InvoiceReceipt_Fragment } }
  ) | (
    { __typename?: 'OtherDocument', id: string }
    & { ' $fragmentRefs'?: { 'DocumentsToMatchFields_OtherDocument_Fragment': DocumentsToMatchFields_OtherDocument_Fragment } }
  ) | (
    { __typename?: 'Proforma', id: string }
    & { ' $fragmentRefs'?: { 'DocumentsToMatchFields_Proforma_Fragment': DocumentsToMatchFields_Proforma_Fragment } }
  ) | (
    { __typename?: 'Receipt', id: string }
    & { ' $fragmentRefs'?: { 'DocumentsToMatchFields_Receipt_Fragment': DocumentsToMatchFields_Receipt_Fragment } }
  ) | (
    { __typename?: 'Unprocessed', id: string }
    & { ' $fragmentRefs'?: { 'DocumentsToMatchFields_Unprocessed_Fragment': DocumentsToMatchFields_Unprocessed_Fragment } }
  )>, charge: (
    { __typename?: 'BankDepositCharge', id: string, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString }>, totalAmount?: { __typename?: 'FinancialAmount', raw: number } | null }
    & { ' $fragmentRefs'?: { 'ChargeToMatchDocumentsFields_BankDepositCharge_Fragment': ChargeToMatchDocumentsFields_BankDepositCharge_Fragment } }
  ) | (
    { __typename?: 'BusinessTripCharge', id: string, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString }>, totalAmount?: { __typename?: 'FinancialAmount', raw: number } | null }
    & { ' $fragmentRefs'?: { 'ChargeToMatchDocumentsFields_BusinessTripCharge_Fragment': ChargeToMatchDocumentsFields_BusinessTripCharge_Fragment } }
  ) | (
    { __typename?: 'CommonCharge', id: string, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString }>, totalAmount?: { __typename?: 'FinancialAmount', raw: number } | null }
    & { ' $fragmentRefs'?: { 'ChargeToMatchDocumentsFields_CommonCharge_Fragment': ChargeToMatchDocumentsFields_CommonCharge_Fragment } }
  ) | (
    { __typename?: 'ConversionCharge', id: string, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString }>, totalAmount?: { __typename?: 'FinancialAmount', raw: number } | null }
    & { ' $fragmentRefs'?: { 'ChargeToMatchDocumentsFields_ConversionCharge_Fragment': ChargeToMatchDocumentsFields_ConversionCharge_Fragment } }
  ) | (
    { __typename?: 'CreditcardBankCharge', id: string, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString }>, totalAmount?: { __typename?: 'FinancialAmount', raw: number } | null }
    & { ' $fragmentRefs'?: { 'ChargeToMatchDocumentsFields_CreditcardBankCharge_Fragment': ChargeToMatchDocumentsFields_CreditcardBankCharge_Fragment } }
  ) | (
    { __typename?: 'DividendCharge', id: string, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString }>, totalAmount?: { __typename?: 'FinancialAmount', raw: number } | null }
    & { ' $fragmentRefs'?: { 'ChargeToMatchDocumentsFields_DividendCharge_Fragment': ChargeToMatchDocumentsFields_DividendCharge_Fragment } }
  ) | (
    { __typename?: 'FinancialCharge', id: string, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString }>, totalAmount?: { __typename?: 'FinancialAmount', raw: number } | null }
    & { ' $fragmentRefs'?: { 'ChargeToMatchDocumentsFields_FinancialCharge_Fragment': ChargeToMatchDocumentsFields_FinancialCharge_Fragment } }
  ) | (
    { __typename?: 'ForeignSecuritiesCharge', id: string, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString }>, totalAmount?: { __typename?: 'FinancialAmount', raw: number } | null }
    & { ' $fragmentRefs'?: { 'ChargeToMatchDocumentsFields_ForeignSecuritiesCharge_Fragment': ChargeToMatchDocumentsFields_ForeignSecuritiesCharge_Fragment } }
  ) | (
    { __typename?: 'InternalTransferCharge', id: string, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString }>, totalAmount?: { __typename?: 'FinancialAmount', raw: number } | null }
    & { ' $fragmentRefs'?: { 'ChargeToMatchDocumentsFields_InternalTransferCharge_Fragment': ChargeToMatchDocumentsFields_InternalTransferCharge_Fragment } }
  ) | (
    { __typename?: 'MonthlyVatCharge', id: string, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString }>, totalAmount?: { __typename?: 'FinancialAmount', raw: number } | null }
    & { ' $fragmentRefs'?: { 'ChargeToMatchDocumentsFields_MonthlyVatCharge_Fragment': ChargeToMatchDocumentsFields_MonthlyVatCharge_Fragment } }
  ) | (
    { __typename?: 'SalaryCharge', id: string, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString }>, totalAmount?: { __typename?: 'FinancialAmount', raw: number } | null }
    & { ' $fragmentRefs'?: { 'ChargeToMatchDocumentsFields_SalaryCharge_Fragment': ChargeToMatchDocumentsFields_SalaryCharge_Fragment } }
  ) };

type ChargeToMatchDocumentsFields_BankDepositCharge_Fragment = { __typename?: 'BankDepositCharge', id: string, totalAmount?: { __typename?: 'FinancialAmount', raw: number, formatted: string, currency: Currency } | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string }> } & { ' $fragmentName'?: 'ChargeToMatchDocumentsFields_BankDepositCharge_Fragment' };

type ChargeToMatchDocumentsFields_BusinessTripCharge_Fragment = { __typename?: 'BusinessTripCharge', id: string, totalAmount?: { __typename?: 'FinancialAmount', raw: number, formatted: string, currency: Currency } | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string }> } & { ' $fragmentName'?: 'ChargeToMatchDocumentsFields_BusinessTripCharge_Fragment' };

type ChargeToMatchDocumentsFields_CommonCharge_Fragment = { __typename?: 'CommonCharge', id: string, totalAmount?: { __typename?: 'FinancialAmount', raw: number, formatted: string, currency: Currency } | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string }> } & { ' $fragmentName'?: 'ChargeToMatchDocumentsFields_CommonCharge_Fragment' };

type ChargeToMatchDocumentsFields_ConversionCharge_Fragment = { __typename?: 'ConversionCharge', id: string, totalAmount?: { __typename?: 'FinancialAmount', raw: number, formatted: string, currency: Currency } | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string }> } & { ' $fragmentName'?: 'ChargeToMatchDocumentsFields_ConversionCharge_Fragment' };

type ChargeToMatchDocumentsFields_CreditcardBankCharge_Fragment = { __typename?: 'CreditcardBankCharge', id: string, totalAmount?: { __typename?: 'FinancialAmount', raw: number, formatted: string, currency: Currency } | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string }> } & { ' $fragmentName'?: 'ChargeToMatchDocumentsFields_CreditcardBankCharge_Fragment' };

type ChargeToMatchDocumentsFields_DividendCharge_Fragment = { __typename?: 'DividendCharge', id: string, totalAmount?: { __typename?: 'FinancialAmount', raw: number, formatted: string, currency: Currency } | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string }> } & { ' $fragmentName'?: 'ChargeToMatchDocumentsFields_DividendCharge_Fragment' };

type ChargeToMatchDocumentsFields_FinancialCharge_Fragment = { __typename?: 'FinancialCharge', id: string, totalAmount?: { __typename?: 'FinancialAmount', raw: number, formatted: string, currency: Currency } | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string }> } & { ' $fragmentName'?: 'ChargeToMatchDocumentsFields_FinancialCharge_Fragment' };

type ChargeToMatchDocumentsFields_ForeignSecuritiesCharge_Fragment = { __typename?: 'ForeignSecuritiesCharge', id: string, totalAmount?: { __typename?: 'FinancialAmount', raw: number, formatted: string, currency: Currency } | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string }> } & { ' $fragmentName'?: 'ChargeToMatchDocumentsFields_ForeignSecuritiesCharge_Fragment' };

type ChargeToMatchDocumentsFields_InternalTransferCharge_Fragment = { __typename?: 'InternalTransferCharge', id: string, totalAmount?: { __typename?: 'FinancialAmount', raw: number, formatted: string, currency: Currency } | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string }> } & { ' $fragmentName'?: 'ChargeToMatchDocumentsFields_InternalTransferCharge_Fragment' };

type ChargeToMatchDocumentsFields_MonthlyVatCharge_Fragment = { __typename?: 'MonthlyVatCharge', id: string, totalAmount?: { __typename?: 'FinancialAmount', raw: number, formatted: string, currency: Currency } | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string }> } & { ' $fragmentName'?: 'ChargeToMatchDocumentsFields_MonthlyVatCharge_Fragment' };

type ChargeToMatchDocumentsFields_SalaryCharge_Fragment = { __typename?: 'SalaryCharge', id: string, totalAmount?: { __typename?: 'FinancialAmount', raw: number, formatted: string, currency: Currency } | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string }> } & { ' $fragmentName'?: 'ChargeToMatchDocumentsFields_SalaryCharge_Fragment' };

export type ChargeToMatchDocumentsFieldsFragment = ChargeToMatchDocumentsFields_BankDepositCharge_Fragment | ChargeToMatchDocumentsFields_BusinessTripCharge_Fragment | ChargeToMatchDocumentsFields_CommonCharge_Fragment | ChargeToMatchDocumentsFields_ConversionCharge_Fragment | ChargeToMatchDocumentsFields_CreditcardBankCharge_Fragment | ChargeToMatchDocumentsFields_DividendCharge_Fragment | ChargeToMatchDocumentsFields_FinancialCharge_Fragment | ChargeToMatchDocumentsFields_ForeignSecuritiesCharge_Fragment | ChargeToMatchDocumentsFields_InternalTransferCharge_Fragment | ChargeToMatchDocumentsFields_MonthlyVatCharge_Fragment | ChargeToMatchDocumentsFields_SalaryCharge_Fragment;

type DocumentsToMatchFields_CreditInvoice_Fragment = { __typename: 'CreditInvoice', serialNumber?: string | null, date?: TimelessDateString | null, id: string, image?: URL | string | null, file?: URL | string | null, documentType?: DocumentType | null, creditor?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, amount?: { __typename?: 'FinancialAmount', raw: number, formatted: string, currency: Currency } | null, charge?: { __typename?: 'BankDepositCharge', id: string } | { __typename?: 'BusinessTripCharge', id: string } | { __typename?: 'CommonCharge', id: string } | { __typename?: 'ConversionCharge', id: string } | { __typename?: 'CreditcardBankCharge', id: string } | { __typename?: 'DividendCharge', id: string } | { __typename?: 'FinancialCharge', id: string } | { __typename?: 'ForeignSecuritiesCharge', id: string } | { __typename?: 'InternalTransferCharge', id: string } | { __typename?: 'MonthlyVatCharge', id: string } | { __typename?: 'SalaryCharge', id: string } | null } & { ' $fragmentName'?: 'DocumentsToMatchFields_CreditInvoice_Fragment' };

type DocumentsToMatchFields_Invoice_Fragment = { __typename: 'Invoice', serialNumber?: string | null, date?: TimelessDateString | null, id: string, image?: URL | string | null, file?: URL | string | null, documentType?: DocumentType | null, creditor?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, amount?: { __typename?: 'FinancialAmount', raw: number, formatted: string, currency: Currency } | null, charge?: { __typename?: 'BankDepositCharge', id: string } | { __typename?: 'BusinessTripCharge', id: string } | { __typename?: 'CommonCharge', id: string } | { __typename?: 'ConversionCharge', id: string } | { __typename?: 'CreditcardBankCharge', id: string } | { __typename?: 'DividendCharge', id: string } | { __typename?: 'FinancialCharge', id: string } | { __typename?: 'ForeignSecuritiesCharge', id: string } | { __typename?: 'InternalTransferCharge', id: string } | { __typename?: 'MonthlyVatCharge', id: string } | { __typename?: 'SalaryCharge', id: string } | null } & { ' $fragmentName'?: 'DocumentsToMatchFields_Invoice_Fragment' };

type DocumentsToMatchFields_InvoiceReceipt_Fragment = { __typename: 'InvoiceReceipt', serialNumber?: string | null, date?: TimelessDateString | null, id: string, image?: URL | string | null, file?: URL | string | null, documentType?: DocumentType | null, creditor?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, amount?: { __typename?: 'FinancialAmount', raw: number, formatted: string, currency: Currency } | null, charge?: { __typename?: 'BankDepositCharge', id: string } | { __typename?: 'BusinessTripCharge', id: string } | { __typename?: 'CommonCharge', id: string } | { __typename?: 'ConversionCharge', id: string } | { __typename?: 'CreditcardBankCharge', id: string } | { __typename?: 'DividendCharge', id: string } | { __typename?: 'FinancialCharge', id: string } | { __typename?: 'ForeignSecuritiesCharge', id: string } | { __typename?: 'InternalTransferCharge', id: string } | { __typename?: 'MonthlyVatCharge', id: string } | { __typename?: 'SalaryCharge', id: string } | null } & { ' $fragmentName'?: 'DocumentsToMatchFields_InvoiceReceipt_Fragment' };

type DocumentsToMatchFields_OtherDocument_Fragment = { __typename: 'OtherDocument', id: string, image?: URL | string | null, file?: URL | string | null, documentType?: DocumentType | null, charge?: { __typename?: 'BankDepositCharge', id: string } | { __typename?: 'BusinessTripCharge', id: string } | { __typename?: 'CommonCharge', id: string } | { __typename?: 'ConversionCharge', id: string } | { __typename?: 'CreditcardBankCharge', id: string } | { __typename?: 'DividendCharge', id: string } | { __typename?: 'FinancialCharge', id: string } | { __typename?: 'ForeignSecuritiesCharge', id: string } | { __typename?: 'InternalTransferCharge', id: string } | { __typename?: 'MonthlyVatCharge', id: string } | { __typename?: 'SalaryCharge', id: string } | null } & { ' $fragmentName'?: 'DocumentsToMatchFields_OtherDocument_Fragment' };

type DocumentsToMatchFields_Proforma_Fragment = { __typename: 'Proforma', serialNumber?: string | null, date?: TimelessDateString | null, id: string, image?: URL | string | null, file?: URL | string | null, documentType?: DocumentType | null, creditor?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, amount?: { __typename?: 'FinancialAmount', raw: number, formatted: string, currency: Currency } | null, charge?: { __typename?: 'BankDepositCharge', id: string } | { __typename?: 'BusinessTripCharge', id: string } | { __typename?: 'CommonCharge', id: string } | { __typename?: 'ConversionCharge', id: string } | { __typename?: 'CreditcardBankCharge', id: string } | { __typename?: 'DividendCharge', id: string } | { __typename?: 'FinancialCharge', id: string } | { __typename?: 'ForeignSecuritiesCharge', id: string } | { __typename?: 'InternalTransferCharge', id: string } | { __typename?: 'MonthlyVatCharge', id: string } | { __typename?: 'SalaryCharge', id: string } | null } & { ' $fragmentName'?: 'DocumentsToMatchFields_Proforma_Fragment' };

type DocumentsToMatchFields_Receipt_Fragment = { __typename: 'Receipt', serialNumber?: string | null, date?: TimelessDateString | null, id: string, image?: URL | string | null, file?: URL | string | null, documentType?: DocumentType | null, creditor?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, amount?: { __typename?: 'FinancialAmount', raw: number, formatted: string, currency: Currency } | null, charge?: { __typename?: 'BankDepositCharge', id: string } | { __typename?: 'BusinessTripCharge', id: string } | { __typename?: 'CommonCharge', id: string } | { __typename?: 'ConversionCharge', id: string } | { __typename?: 'CreditcardBankCharge', id: string } | { __typename?: 'DividendCharge', id: string } | { __typename?: 'FinancialCharge', id: string } | { __typename?: 'ForeignSecuritiesCharge', id: string } | { __typename?: 'InternalTransferCharge', id: string } | { __typename?: 'MonthlyVatCharge', id: string } | { __typename?: 'SalaryCharge', id: string } | null } & { ' $fragmentName'?: 'DocumentsToMatchFields_Receipt_Fragment' };

type DocumentsToMatchFields_Unprocessed_Fragment = { __typename: 'Unprocessed', id: string, image?: URL | string | null, file?: URL | string | null, documentType?: DocumentType | null, charge?: { __typename?: 'BankDepositCharge', id: string } | { __typename?: 'BusinessTripCharge', id: string } | { __typename?: 'CommonCharge', id: string } | { __typename?: 'ConversionCharge', id: string } | { __typename?: 'CreditcardBankCharge', id: string } | { __typename?: 'DividendCharge', id: string } | { __typename?: 'FinancialCharge', id: string } | { __typename?: 'ForeignSecuritiesCharge', id: string } | { __typename?: 'InternalTransferCharge', id: string } | { __typename?: 'MonthlyVatCharge', id: string } | { __typename?: 'SalaryCharge', id: string } | null } & { ' $fragmentName'?: 'DocumentsToMatchFields_Unprocessed_Fragment' };

export type DocumentsToMatchFieldsFragment = DocumentsToMatchFields_CreditInvoice_Fragment | DocumentsToMatchFields_Invoice_Fragment | DocumentsToMatchFields_InvoiceReceipt_Fragment | DocumentsToMatchFields_OtherDocument_Fragment | DocumentsToMatchFields_Proforma_Fragment | DocumentsToMatchFields_Receipt_Fragment | DocumentsToMatchFields_Unprocessed_Fragment;

export type RecentClientIssuedDocumentsQueryVariables = Exact<{
  clientId: Scalars['UUID']['input'];
}>;


export type RecentClientIssuedDocumentsQuery = { __typename?: 'Query', recentDocumentsByClient: Array<(
    { __typename?: 'CreditInvoice', id: string, issuedDocumentInfo?: { __typename?: 'IssuedDocumentInfo', id: string, status: DocumentStatus, externalId: string } | null }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_CreditInvoice_Fragment': TableDocumentsRowFields_CreditInvoice_Fragment } }
  ) | (
    { __typename?: 'Invoice', id: string, issuedDocumentInfo?: { __typename?: 'IssuedDocumentInfo', id: string, status: DocumentStatus, externalId: string } | null }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Invoice_Fragment': TableDocumentsRowFields_Invoice_Fragment } }
  ) | (
    { __typename?: 'InvoiceReceipt', id: string, issuedDocumentInfo?: { __typename?: 'IssuedDocumentInfo', id: string, status: DocumentStatus, externalId: string } | null }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_InvoiceReceipt_Fragment': TableDocumentsRowFields_InvoiceReceipt_Fragment } }
  ) | (
    { __typename?: 'OtherDocument', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_OtherDocument_Fragment': TableDocumentsRowFields_OtherDocument_Fragment } }
  ) | (
    { __typename?: 'Proforma', id: string, issuedDocumentInfo?: { __typename?: 'IssuedDocumentInfo', id: string, status: DocumentStatus, externalId: string } | null }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Proforma_Fragment': TableDocumentsRowFields_Proforma_Fragment } }
  ) | (
    { __typename?: 'Receipt', id: string, issuedDocumentInfo?: { __typename?: 'IssuedDocumentInfo', id: string, status: DocumentStatus, externalId: string } | null }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Receipt_Fragment': TableDocumentsRowFields_Receipt_Fragment } }
  ) | (
    { __typename?: 'Unprocessed', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Unprocessed_Fragment': TableDocumentsRowFields_Unprocessed_Fragment } }
  )> };

export type RecentIssuedDocumentsOfSameTypeQueryVariables = Exact<{
  documentType: DocumentType;
}>;


export type RecentIssuedDocumentsOfSameTypeQuery = { __typename?: 'Query', recentIssuedDocumentsByType: Array<(
    { __typename?: 'CreditInvoice', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_CreditInvoice_Fragment': TableDocumentsRowFields_CreditInvoice_Fragment } }
  ) | (
    { __typename?: 'Invoice', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Invoice_Fragment': TableDocumentsRowFields_Invoice_Fragment } }
  ) | (
    { __typename?: 'InvoiceReceipt', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_InvoiceReceipt_Fragment': TableDocumentsRowFields_InvoiceReceipt_Fragment } }
  ) | (
    { __typename?: 'OtherDocument', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_OtherDocument_Fragment': TableDocumentsRowFields_OtherDocument_Fragment } }
  ) | (
    { __typename?: 'Proforma', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Proforma_Fragment': TableDocumentsRowFields_Proforma_Fragment } }
  ) | (
    { __typename?: 'Receipt', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Receipt_Fragment': TableDocumentsRowFields_Receipt_Fragment } }
  ) | (
    { __typename?: 'Unprocessed', id: string }
    & { ' $fragmentRefs'?: { 'TableDocumentsRowFields_Unprocessed_Fragment': TableDocumentsRowFields_Unprocessed_Fragment } }
  )> };

export type FetchBusinessQueryVariables = Exact<{
  id: Scalars['UUID']['input'];
}>;


export type FetchBusinessQuery = { __typename?: 'Query', business: { __typename: 'LtdFinancialEntity', country: string, address?: string | null, email?: string | null, exemptDealer?: boolean | null, governmentId?: string | null, hebrewName?: string | null, name: string, phoneNumber?: string | null, website?: string | null, optionalVAT?: boolean | null, irsCode?: number | null, id: string, sortCode?: { __typename?: 'SortCode', id: string, key: number, name?: string | null } | null, taxCategory?: { __typename?: 'TaxCategory', id: string, name: string } | null, suggestions?: { __typename?: 'Suggestions', phrases: Array<string>, description?: string | null, tags: Array<{ __typename?: 'Tag', id: string, name: string }> } | null } | { __typename: 'PersonalFinancialEntity', id: string } };

export type EditDocumentQueryVariables = Exact<{
  documentId: Scalars['UUID']['input'];
}>;


export type EditDocumentQuery = { __typename?: 'Query', documentById?: { __typename: 'CreditInvoice', serialNumber?: string | null, date?: TimelessDateString | null, vatReportDateOverride?: TimelessDateString | null, noVatAmount?: number | null, allocationNumber?: string | null, exchangeRateOverride?: number | null, id: string, image?: URL | string | null, file?: URL | string | null, documentType?: DocumentType | null, vat?: { __typename?: 'FinancialAmount', raw: number, currency: Currency } | null, amount?: { __typename?: 'FinancialAmount', raw: number, currency: Currency } | null, debtor?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, creditor?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename: 'Invoice', serialNumber?: string | null, date?: TimelessDateString | null, vatReportDateOverride?: TimelessDateString | null, noVatAmount?: number | null, allocationNumber?: string | null, exchangeRateOverride?: number | null, id: string, image?: URL | string | null, file?: URL | string | null, documentType?: DocumentType | null, vat?: { __typename?: 'FinancialAmount', raw: number, currency: Currency } | null, amount?: { __typename?: 'FinancialAmount', raw: number, currency: Currency } | null, debtor?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, creditor?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename: 'InvoiceReceipt', serialNumber?: string | null, date?: TimelessDateString | null, vatReportDateOverride?: TimelessDateString | null, noVatAmount?: number | null, allocationNumber?: string | null, exchangeRateOverride?: number | null, id: string, image?: URL | string | null, file?: URL | string | null, documentType?: DocumentType | null, vat?: { __typename?: 'FinancialAmount', raw: number, currency: Currency } | null, amount?: { __typename?: 'FinancialAmount', raw: number, currency: Currency } | null, debtor?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, creditor?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename: 'OtherDocument', id: string, image?: URL | string | null, file?: URL | string | null, documentType?: DocumentType | null } | { __typename: 'Proforma', serialNumber?: string | null, date?: TimelessDateString | null, vatReportDateOverride?: TimelessDateString | null, noVatAmount?: number | null, allocationNumber?: string | null, exchangeRateOverride?: number | null, id: string, image?: URL | string | null, file?: URL | string | null, documentType?: DocumentType | null, vat?: { __typename?: 'FinancialAmount', raw: number, currency: Currency } | null, amount?: { __typename?: 'FinancialAmount', raw: number, currency: Currency } | null, debtor?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, creditor?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename: 'Receipt', serialNumber?: string | null, date?: TimelessDateString | null, vatReportDateOverride?: TimelessDateString | null, noVatAmount?: number | null, allocationNumber?: string | null, exchangeRateOverride?: number | null, id: string, image?: URL | string | null, file?: URL | string | null, documentType?: DocumentType | null, vat?: { __typename?: 'FinancialAmount', raw: number, currency: Currency } | null, amount?: { __typename?: 'FinancialAmount', raw: number, currency: Currency } | null, debtor?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, creditor?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename: 'Unprocessed', id: string, image?: URL | string | null, file?: URL | string | null, documentType?: DocumentType | null } | null };

export type EditMiscExpenseFieldsFragment = { __typename?: 'MiscExpense', id: string, description?: string | null, invoiceDate: TimelessDateString, valueDate: Date, amount: { __typename?: 'FinancialAmount', raw: number, currency: Currency }, creditor: { __typename?: 'LtdFinancialEntity', id: string } | { __typename?: 'PersonalFinancialEntity', id: string } | { __typename?: 'TaxCategory', id: string }, debtor: { __typename?: 'LtdFinancialEntity', id: string } | { __typename?: 'PersonalFinancialEntity', id: string } | { __typename?: 'TaxCategory', id: string } } & { ' $fragmentName'?: 'EditMiscExpenseFieldsFragment' };

export type EditTagFieldsFragment = { __typename?: 'Tag', id: string, name: string, parent?: { __typename?: 'Tag', id: string, name: string } | null } & { ' $fragmentName'?: 'EditTagFieldsFragment' };

export type EditTransactionQueryVariables = Exact<{
  transactionIDs: Array<Scalars['UUID']['input']> | Scalars['UUID']['input'];
}>;


export type EditTransactionQuery = { __typename?: 'Query', transactionsByIDs: Array<{ __typename?: 'CommonTransaction', id: string, effectiveDate?: TimelessDateString | null, isFee?: boolean | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, account: { __typename: 'BankFinancialAccount', id: string } | { __typename: 'CardFinancialAccount', id: string } | { __typename: 'CryptoWalletFinancialAccount', id: string } | { __typename: 'ForeignSecuritiesFinancialAccount', id: string } } | { __typename?: 'ConversionTransaction', id: string, effectiveDate: TimelessDateString, isFee?: boolean | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, account: { __typename: 'BankFinancialAccount', id: string } | { __typename: 'CardFinancialAccount', id: string } | { __typename: 'CryptoWalletFinancialAccount', id: string } | { __typename: 'ForeignSecuritiesFinancialAccount', id: string } }> };

export type IssueDocumentClientFieldsFragment = { __typename?: 'GreenInvoiceClient', id: string, country?: GreenInvoiceCountry | 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 } & { ' $fragmentName'?: 'IssueDocumentClientFieldsFragment' };

export type ClientInfoForDocumentIssuingQueryVariables = Exact<{
  businessId: Scalars['UUID']['input'];
}>;


export type ClientInfoForDocumentIssuingQuery = { __typename?: 'Query', client: { __typename?: 'Client', id: string, greenInvoiceInfo: (
      { __typename?: 'GreenInvoiceClient', id: string }
      & { ' $fragmentRefs'?: { 'IssueDocumentClientFieldsFragment': IssueDocumentClientFieldsFragment } }
    ) } };

export type AllBusinessTripsQueryVariables = Exact<{ [key: string]: never; }>;


export type AllBusinessTripsQuery = { __typename?: 'Query', allBusinessTrips: Array<{ __typename?: 'BusinessTrip', id: string, name: string }> };

export type AllDepreciationCategoriesQueryVariables = Exact<{ [key: string]: never; }>;


export type AllDepreciationCategoriesQuery = { __typename?: 'Query', depreciationCategories: Array<{ __typename?: 'DepreciationCategory', id: string, name: string, percentage: number }> };

export type AllEmployeesByEmployerQueryVariables = Exact<{
  employerId: Scalars['UUID']['input'];
}>;


export type AllEmployeesByEmployerQuery = { __typename?: 'Query', employeesByEmployerId: Array<{ __typename?: 'Employee', id: string, name: string }> };

export type AllFinancialAccountsQueryVariables = Exact<{ [key: string]: never; }>;


export type AllFinancialAccountsQuery = { __typename?: 'Query', allFinancialAccounts: Array<{ __typename: 'BankFinancialAccount', name: string, id: string } | { __typename: 'CardFinancialAccount', name: string, id: string } | { __typename: 'CryptoWalletFinancialAccount', name: string, id: string } | { __typename: 'ForeignSecuritiesFinancialAccount', name: string, id: string }> };

export type AllPensionFundsQueryVariables = Exact<{ [key: string]: never; }>;


export type AllPensionFundsQuery = { __typename?: 'Query', allPensionFunds: Array<{ __typename?: 'PensionFund', id: string, name: string }> };

export type AllTrainingFundsQueryVariables = Exact<{ [key: string]: never; }>;


export type AllTrainingFundsQuery = { __typename?: 'Query', allTrainingFunds: Array<{ __typename?: 'TrainingFund', id: string, name: string }> };

export type AttendeesByBusinessTripQueryVariables = Exact<{
  businessTripId: Scalars['UUID']['input'];
}>;


export type AttendeesByBusinessTripQuery = { __typename?: 'Query', businessTrip?: { __typename?: 'BusinessTrip', id: string, attendees: Array<{ __typename?: 'BusinessTripAttendee', id: string, name: string }> } | null };

export type FetchMultipleBusinessesQueryVariables = Exact<{
  businessIds: Array<Scalars['UUID']['input']> | Scalars['UUID']['input'];
}>;


export type FetchMultipleBusinessesQuery = { __typename?: 'Query', businesses: Array<{ __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string }> };

export type FetchMultipleChargesQueryVariables = Exact<{
  chargeIds: Array<Scalars['UUID']['input']> | Scalars['UUID']['input'];
}>;


export type FetchMultipleChargesQuery = { __typename?: 'Query', chargesByIDs: Array<{ __typename?: 'BankDepositCharge', id: string, conversion?: boolean | null, property?: boolean | null, isInvoicePaymentDifferentCurrency?: boolean | null, userDescription?: string | null, optionalVAT?: boolean | null, optionalDocuments?: boolean | null, metadata?: { __typename?: 'ChargeMetadata', transactionsCount: number, invoicesCount: number } | null, owner: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string }, tags: Array<{ __typename?: 'Tag', id: string, name: string, namePath?: Array<string> | null }> } | { __typename?: 'BusinessTripCharge', id: string, conversion?: boolean | null, property?: boolean | null, isInvoicePaymentDifferentCurrency?: boolean | null, userDescription?: string | null, optionalVAT?: boolean | null, optionalDocuments?: boolean | null, metadata?: { __typename?: 'ChargeMetadata', transactionsCount: number, invoicesCount: number } | null, owner: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string }, tags: Array<{ __typename?: 'Tag', id: string, name: string, namePath?: Array<string> | null }> } | { __typename?: 'CommonCharge', id: string, conversion?: boolean | null, property?: boolean | null, isInvoicePaymentDifferentCurrency?: boolean | null, userDescription?: string | null, optionalVAT?: boolean | null, optionalDocuments?: boolean | null, metadata?: { __typename?: 'ChargeMetadata', transactionsCount: number, invoicesCount: number } | null, owner: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string }, tags: Array<{ __typename?: 'Tag', id: string, name: string, namePath?: Array<string> | null }> } | { __typename?: 'ConversionCharge', id: string, conversion?: boolean | null, property?: boolean | null, isInvoicePaymentDifferentCurrency?: boolean | null, userDescription?: string | null, optionalVAT?: boolean | null, optionalDocuments?: boolean | null, metadata?: { __typename?: 'ChargeMetadata', transactionsCount: number, invoicesCount: number } | null, owner: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string }, tags: Array<{ __typename?: 'Tag', id: string, name: string, namePath?: Array<string> | null }> } | { __typename?: 'CreditcardBankCharge', id: string, conversion?: boolean | null, property?: boolean | null, isInvoicePaymentDifferentCurrency?: boolean | null, userDescription?: string | null, optionalVAT?: boolean | null, optionalDocuments?: boolean | null, metadata?: { __typename?: 'ChargeMetadata', transactionsCount: number, invoicesCount: number } | null, owner: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string }, tags: Array<{ __typename?: 'Tag', id: string, name: string, namePath?: Array<string> | null }> } | { __typename?: 'DividendCharge', id: string, conversion?: boolean | null, property?: boolean | null, isInvoicePaymentDifferentCurrency?: boolean | null, userDescription?: string | null, optionalVAT?: boolean | null, optionalDocuments?: boolean | null, metadata?: { __typename?: 'ChargeMetadata', transactionsCount: number, invoicesCount: number } | null, owner: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string }, tags: Array<{ __typename?: 'Tag', id: string, name: string, namePath?: Array<string> | null }> } | { __typename?: 'FinancialCharge', id: string, conversion?: boolean | null, property?: boolean | null, isInvoicePaymentDifferentCurrency?: boolean | null, userDescription?: string | null, optionalVAT?: boolean | null, optionalDocuments?: boolean | null, metadata?: { __typename?: 'ChargeMetadata', transactionsCount: number, invoicesCount: number } | null, owner: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string }, tags: Array<{ __typename?: 'Tag', id: string, name: string, namePath?: Array<string> | null }> } | { __typename?: 'ForeignSecuritiesCharge', id: string, conversion?: boolean | null, property?: boolean | null, isInvoicePaymentDifferentCurrency?: boolean | null, userDescription?: string | null, optionalVAT?: boolean | null, optionalDocuments?: boolean | null, metadata?: { __typename?: 'ChargeMetadata', transactionsCount: number, invoicesCount: number } | null, owner: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string }, tags: Array<{ __typename?: 'Tag', id: string, name: string, namePath?: Array<string> | null }> } | { __typename?: 'InternalTransferCharge', id: string, conversion?: boolean | null, property?: boolean | null, isInvoicePaymentDifferentCurrency?: boolean | null, userDescription?: string | null, optionalVAT?: boolean | null, optionalDocuments?: boolean | null, metadata?: { __typename?: 'ChargeMetadata', transactionsCount: number, invoicesCount: number } | null, owner: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string }, tags: Array<{ __typename?: 'Tag', id: string, name: string, namePath?: Array<string> | null }> } | { __typename?: 'MonthlyVatCharge', id: string, conversion?: boolean | null, property?: boolean | null, isInvoicePaymentDifferentCurrency?: boolean | null, userDescription?: string | null, optionalVAT?: boolean | null, optionalDocuments?: boolean | null, metadata?: { __typename?: 'ChargeMetadata', transactionsCount: number, invoicesCount: number } | null, owner: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string }, tags: Array<{ __typename?: 'Tag', id: string, name: string, namePath?: Array<string> | null }> } | { __typename?: 'SalaryCharge', id: string, conversion?: boolean | null, property?: boolean | null, isInvoicePaymentDifferentCurrency?: boolean | null, userDescription?: string | null, optionalVAT?: boolean | null, optionalDocuments?: boolean | null, metadata?: { __typename?: 'ChargeMetadata', transactionsCount: number, invoicesCount: number } | null, owner: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string }, tags: Array<{ __typename?: 'Tag', id: string, name: string, namePath?: Array<string> | null }> }> };

export type EditChargeQueryVariables = Exact<{
  chargeId: Scalars['UUID']['input'];
}>;


export type EditChargeQuery = { __typename?: 'Query', charge: { __typename?: 'BankDepositCharge', id: string, property?: boolean | null, conversion?: boolean | null, isInvoicePaymentDifferentCurrency?: boolean | null, userDescription?: string | null, optionalVAT?: boolean | null, optionalDocuments?: boolean | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, owner: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string }, taxCategory?: { __typename?: 'TaxCategory', id: string, name: string } | null, tags: Array<{ __typename?: 'Tag', id: string }>, missingInfoSuggestions?: { __typename?: 'ChargeSuggestions', tags: Array<{ __typename?: 'Tag', id: string }> } | null, yearsOfRelevance?: Array<{ __typename?: 'YearOfRelevance', year: string, amount?: number | null }> | null } | { __typename?: 'BusinessTripCharge', id: string, property?: boolean | null, conversion?: boolean | null, isInvoicePaymentDifferentCurrency?: boolean | null, userDescription?: string | null, optionalVAT?: boolean | null, optionalDocuments?: boolean | null, businessTrip?: { __typename?: 'BusinessTrip', id: string, name: string } | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, owner: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string }, taxCategory?: { __typename?: 'TaxCategory', id: string, name: string } | null, tags: Array<{ __typename?: 'Tag', id: string }>, missingInfoSuggestions?: { __typename?: 'ChargeSuggestions', tags: Array<{ __typename?: 'Tag', id: string }> } | null, yearsOfRelevance?: Array<{ __typename?: 'YearOfRelevance', year: string, amount?: number | null }> | null } | { __typename?: 'CommonCharge', id: string, property?: boolean | null, conversion?: boolean | null, isInvoicePaymentDifferentCurrency?: boolean | null, userDescription?: string | null, optionalVAT?: boolean | null, optionalDocuments?: boolean | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, owner: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string }, taxCategory?: { __typename?: 'TaxCategory', id: string, name: string } | null, tags: Array<{ __typename?: 'Tag', id: string }>, missingInfoSuggestions?: { __typename?: 'ChargeSuggestions', tags: Array<{ __typename?: 'Tag', id: string }> } | null, yearsOfRelevance?: Array<{ __typename?: 'YearOfRelevance', year: string, amount?: number | null }> | null } | { __typename?: 'ConversionCharge', id: string, property?: boolean | null, conversion?: boolean | null, isInvoicePaymentDifferentCurrency?: boolean | null, userDescription?: string | null, optionalVAT?: boolean | null, optionalDocuments?: boolean | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, owner: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string }, taxCategory?: { __typename?: 'TaxCategory', id: string, name: string } | null, tags: Array<{ __typename?: 'Tag', id: string }>, missingInfoSuggestions?: { __typename?: 'ChargeSuggestions', tags: Array<{ __typename?: 'Tag', id: string }> } | null, yearsOfRelevance?: Array<{ __typename?: 'YearOfRelevance', year: string, amount?: number | null }> | null } | { __typename?: 'CreditcardBankCharge', id: string, property?: boolean | null, conversion?: boolean | null, isInvoicePaymentDifferentCurrency?: boolean | null, userDescription?: string | null, optionalVAT?: boolean | null, optionalDocuments?: boolean | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, owner: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string }, taxCategory?: { __typename?: 'TaxCategory', id: string, name: string } | null, tags: Array<{ __typename?: 'Tag', id: string }>, missingInfoSuggestions?: { __typename?: 'ChargeSuggestions', tags: Array<{ __typename?: 'Tag', id: string }> } | null, yearsOfRelevance?: Array<{ __typename?: 'YearOfRelevance', year: string, amount?: number | null }> | null } | { __typename?: 'DividendCharge', id: string, property?: boolean | null, conversion?: boolean | null, isInvoicePaymentDifferentCurrency?: boolean | null, userDescription?: string | null, optionalVAT?: boolean | null, optionalDocuments?: boolean | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, owner: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string }, taxCategory?: { __typename?: 'TaxCategory', id: string, name: string } | null, tags: Array<{ __typename?: 'Tag', id: string }>, missingInfoSuggestions?: { __typename?: 'ChargeSuggestions', tags: Array<{ __typename?: 'Tag', id: string }> } | null, yearsOfRelevance?: Array<{ __typename?: 'YearOfRelevance', year: string, amount?: number | null }> | null } | { __typename?: 'FinancialCharge', id: string, property?: boolean | null, conversion?: boolean | null, isInvoicePaymentDifferentCurrency?: boolean | null, userDescription?: string | null, optionalVAT?: boolean | null, optionalDocuments?: boolean | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, owner: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string }, taxCategory?: { __typename?: 'TaxCategory', id: string, name: string } | null, tags: Array<{ __typename?: 'Tag', id: string }>, missingInfoSuggestions?: { __typename?: 'ChargeSuggestions', tags: Array<{ __typename?: 'Tag', id: string }> } | null, yearsOfRelevance?: Array<{ __typename?: 'YearOfRelevance', year: string, amount?: number | null }> | null } | { __typename?: 'ForeignSecuritiesCharge', id: string, property?: boolean | null, conversion?: boolean | null, isInvoicePaymentDifferentCurrency?: boolean | null, userDescription?: string | null, optionalVAT?: boolean | null, optionalDocuments?: boolean | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, owner: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string }, taxCategory?: { __typename?: 'TaxCategory', id: string, name: string } | null, tags: Array<{ __typename?: 'Tag', id: string }>, missingInfoSuggestions?: { __typename?: 'ChargeSuggestions', tags: Array<{ __typename?: 'Tag', id: string }> } | null, yearsOfRelevance?: Array<{ __typename?: 'YearOfRelevance', year: string, amount?: number | null }> | null } | { __typename?: 'InternalTransferCharge', id: string, property?: boolean | null, conversion?: boolean | null, isInvoicePaymentDifferentCurrency?: boolean | null, userDescription?: string | null, optionalVAT?: boolean | null, optionalDocuments?: boolean | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, owner: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string }, taxCategory?: { __typename?: 'TaxCategory', id: string, name: string } | null, tags: Array<{ __typename?: 'Tag', id: string }>, missingInfoSuggestions?: { __typename?: 'ChargeSuggestions', tags: Array<{ __typename?: 'Tag', id: string }> } | null, yearsOfRelevance?: Array<{ __typename?: 'YearOfRelevance', year: string, amount?: number | null }> | null } | { __typename?: 'MonthlyVatCharge', id: string, property?: boolean | null, conversion?: boolean | null, isInvoicePaymentDifferentCurrency?: boolean | null, userDescription?: string | null, optionalVAT?: boolean | null, optionalDocuments?: boolean | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, owner: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string }, taxCategory?: { __typename?: 'TaxCategory', id: string, name: string } | null, tags: Array<{ __typename?: 'Tag', id: string }>, missingInfoSuggestions?: { __typename?: 'ChargeSuggestions', tags: Array<{ __typename?: 'Tag', id: string }> } | null, yearsOfRelevance?: Array<{ __typename?: 'YearOfRelevance', year: string, amount?: number | null }> | null } | { __typename?: 'SalaryCharge', id: string, property?: boolean | null, conversion?: boolean | null, isInvoicePaymentDifferentCurrency?: boolean | null, userDescription?: string | null, optionalVAT?: boolean | null, optionalDocuments?: boolean | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, owner: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string }, taxCategory?: { __typename?: 'TaxCategory', id: string, name: string } | null, tags: Array<{ __typename?: 'Tag', id: string }>, missingInfoSuggestions?: { __typename?: 'ChargeSuggestions', tags: Array<{ __typename?: 'Tag', id: string }> } | null, yearsOfRelevance?: Array<{ __typename?: 'YearOfRelevance', year: string, amount?: number | null }> | null } };

export type EditSalaryRecordQueryVariables = Exact<{
  month: Scalars['TimelessDate']['input'];
  employeeIDs: Array<Scalars['UUID']['input']> | Scalars['UUID']['input'];
}>;


export type EditSalaryRecordQuery = { __typename?: 'Query', salaryRecordsByDates: Array<{ __typename?: 'Salary', month: string, pensionEmployeePercentage?: number | null, pensionEmployerPercentage?: number | null, compensationsPercentage?: number | null, trainingFundEmployeePercentage?: number | null, trainingFundEmployerPercentage?: number | null, workDays?: number | null, charge?: { __typename?: 'SalaryCharge', id: string } | null, directAmount: { __typename?: 'FinancialAmount', raw: number }, baseAmount?: { __typename?: 'FinancialAmount', raw: number } | null, employee?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | null, employer?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | null, pensionFund?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | null, pensionEmployeeAmount?: { __typename?: 'FinancialAmount', raw: number } | null, pensionEmployerAmount?: { __typename?: 'FinancialAmount', raw: number } | null, compensationsAmount?: { __typename?: 'FinancialAmount', raw: number } | null, trainingFund?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | null, trainingFundEmployeeAmount?: { __typename?: 'FinancialAmount', raw: number } | null, trainingFundEmployerAmount?: { __typename?: 'FinancialAmount', raw: number } | null, socialSecurityEmployeeAmount?: { __typename?: 'FinancialAmount', raw: number } | null, socialSecurityEmployerAmount?: { __typename?: 'FinancialAmount', raw: number } | null, incomeTaxAmount?: { __typename?: 'FinancialAmount', raw: number } | null, healthInsuranceAmount?: { __typename?: 'FinancialAmount', raw: number } | null, globalAdditionalHoursAmount?: { __typename?: 'FinancialAmount', raw: number } | null, bonus?: { __typename?: 'FinancialAmount', raw: number } | null, gift?: { __typename?: 'FinancialAmount', raw: number } | null, travelAndSubsistence?: { __typename?: 'FinancialAmount', raw: number } | null, recovery?: { __typename?: 'FinancialAmount', raw: number } | null, notionalExpense?: { __typename?: 'FinancialAmount', raw: number } | null, vacationDays?: { __typename?: 'VacationDays', added?: number | null, balance?: number | null } | null, vacationTakeout?: { __typename?: 'FinancialAmount', raw: number } | null, sicknessDays?: { __typename?: 'SicknessDays', balance?: number | null } | null }> };

export type SortCodeToUpdateQueryVariables = Exact<{
  key: Scalars['Int']['input'];
}>;


export type SortCodeToUpdateQuery = { __typename?: 'Query', sortCode?: { __typename?: 'SortCode', id: string, key: number, name?: string | null, defaultIrsCode?: number | null } | null };

export type TaxCategoryToUpdateQueryVariables = Exact<{
  id: Scalars['UUID']['input'];
}>;


export type TaxCategoryToUpdateQuery = { __typename?: 'Query', taxCategory: { __typename?: 'TaxCategory', id: string, name: string, irsCode?: number | null, sortCode?: { __typename?: 'SortCode', id: string, key: number, name?: string | null } | null } };

export type MiscExpenseTransactionFieldsQueryVariables = Exact<{
  transactionId: Scalars['UUID']['input'];
}>;


export type MiscExpenseTransactionFieldsQuery = { __typename?: 'Query', transactionsByIDs: Array<{ __typename?: 'CommonTransaction', id: string, chargeId: string, eventDate: TimelessDateString, effectiveDate?: TimelessDateString | null, exactEffectiveDate?: Date | null, amount: { __typename?: 'FinancialAmount', raw: number, currency: Currency }, counterparty?: { __typename?: 'LtdFinancialEntity', id: string } | { __typename?: 'PersonalFinancialEntity', id: string } | { __typename?: 'TaxCategory', id: string } | null } | { __typename?: 'ConversionTransaction', id: string, chargeId: string, eventDate: TimelessDateString, effectiveDate: TimelessDateString, exactEffectiveDate?: Date | null, amount: { __typename?: 'FinancialAmount', raw: number, currency: Currency }, counterparty?: { __typename?: 'LtdFinancialEntity', id: string } | { __typename?: 'PersonalFinancialEntity', id: string } | { __typename?: 'TaxCategory', id: string } | null }> };

export type NewDocumentDraftByChargeQueryVariables = Exact<{
  chargeId: Scalars['UUID']['input'];
}>;


export type NewDocumentDraftByChargeQuery = { __typename?: 'Query', newDocumentInfoDraftByCharge: (
    { __typename?: 'NewDocumentInfo' }
    & { ' $fragmentRefs'?: { 'NewDocumentInfoFragment': NewDocumentInfoFragment } }
  ) };

export type NewDocumentDraftByDocumentQueryVariables = Exact<{
  documentId: Scalars['UUID']['input'];
}>;


export type NewDocumentDraftByDocumentQuery = { __typename?: 'Query', newDocumentInfoDraftByDocument: (
    { __typename?: 'NewDocumentInfo' }
    & { ' $fragmentRefs'?: { 'NewDocumentInfoFragment': NewDocumentInfoFragment } }
  ) };

export type NewDocumentInfoFragment = { __typename?: 'NewDocumentInfo', description?: string | null, remarks?: string | null, footer?: string | null, type: DocumentType, date?: string | null, dueDate?: string | null, lang: GreenInvoiceDocumentLang, currency: Currency, vatType: GreenInvoiceVatType, rounding?: boolean | null, signed?: boolean | null, maxPayments?: number | null, linkedDocumentIds?: Array<string> | null, linkedPaymentId?: string | null, discount?: { __typename?: 'GreenInvoiceDiscount', amount: number, type: GreenInvoiceDiscountType } | null, client?: (
    { __typename?: 'GreenInvoiceClient', id: string }
    & { ' $fragmentRefs'?: { 'IssueDocumentClientFieldsFragment': IssueDocumentClientFieldsFragment } }
  ) | null, income?: Array<{ __typename?: 'GreenInvoiceIncome', currency: Currency, currencyRate?: number | null, description: string, itemId?: string | null, price: number, quantity: number, vatRate?: number | null, vatType: GreenInvoiceVatType }> | null, payment?: Array<{ __typename?: 'GreenInvoicePayment', currency: Currency, currencyRate?: number | null, date?: string | null, price: number, type: GreenInvoicePaymentType, subType?: GreenInvoicePaymentSubType | null, bankName?: string | null, bankBranch?: string | null, bankAccount?: string | null, chequeNum?: string | null, accountId?: string | null, transactionId?: string | null, appType?: GreenInvoicePaymentAppType | null, cardType?: GreenInvoicePaymentCardType | null, cardNum?: string | null, dealType?: GreenInvoicePaymentDealType | null, numPayments?: number | null, firstPayment?: number | null }> | null } & { ' $fragmentName'?: 'NewDocumentInfoFragment' };

export type SimilarChargesByBusinessQueryVariables = Exact<{
  businessId: Scalars['UUID']['input'];
  tagsDifferentThan?: InputMaybe<Array<Scalars['String']['input']> | Scalars['String']['input']>;
  descriptionDifferentThan?: InputMaybe<Scalars['String']['input']>;
}>;


export type SimilarChargesByBusinessQuery = { __typename?: 'Query', similarChargesByBusiness: Array<(
    { __typename?: 'BankDepositCharge', id: string }
    & { ' $fragmentRefs'?: { 'SimilarChargesTable_BankDepositCharge_Fragment': SimilarChargesTable_BankDepositCharge_Fragment } }
  ) | (
    { __typename?: 'BusinessTripCharge', id: string }
    & { ' $fragmentRefs'?: { 'SimilarChargesTable_BusinessTripCharge_Fragment': SimilarChargesTable_BusinessTripCharge_Fragment } }
  ) | (
    { __typename?: 'CommonCharge', id: string }
    & { ' $fragmentRefs'?: { 'SimilarChargesTable_CommonCharge_Fragment': SimilarChargesTable_CommonCharge_Fragment } }
  ) | (
    { __typename?: 'ConversionCharge', id: string }
    & { ' $fragmentRefs'?: { 'SimilarChargesTable_ConversionCharge_Fragment': SimilarChargesTable_ConversionCharge_Fragment } }
  ) | (
    { __typename?: 'CreditcardBankCharge', id: string }
    & { ' $fragmentRefs'?: { 'SimilarChargesTable_CreditcardBankCharge_Fragment': SimilarChargesTable_CreditcardBankCharge_Fragment } }
  ) | (
    { __typename?: 'DividendCharge', id: string }
    & { ' $fragmentRefs'?: { 'SimilarChargesTable_DividendCharge_Fragment': SimilarChargesTable_DividendCharge_Fragment } }
  ) | (
    { __typename?: 'FinancialCharge', id: string }
    & { ' $fragmentRefs'?: { 'SimilarChargesTable_FinancialCharge_Fragment': SimilarChargesTable_FinancialCharge_Fragment } }
  ) | (
    { __typename?: 'ForeignSecuritiesCharge', id: string }
    & { ' $fragmentRefs'?: { 'SimilarChargesTable_ForeignSecuritiesCharge_Fragment': SimilarChargesTable_ForeignSecuritiesCharge_Fragment } }
  ) | (
    { __typename?: 'InternalTransferCharge', id: string }
    & { ' $fragmentRefs'?: { 'SimilarChargesTable_InternalTransferCharge_Fragment': SimilarChargesTable_InternalTransferCharge_Fragment } }
  ) | (
    { __typename?: 'MonthlyVatCharge', id: string }
    & { ' $fragmentRefs'?: { 'SimilarChargesTable_MonthlyVatCharge_Fragment': SimilarChargesTable_MonthlyVatCharge_Fragment } }
  ) | (
    { __typename?: 'SalaryCharge', id: string }
    & { ' $fragmentRefs'?: { 'SimilarChargesTable_SalaryCharge_Fragment': SimilarChargesTable_SalaryCharge_Fragment } }
  )> };

export type SimilarChargesQueryVariables = Exact<{
  chargeId: Scalars['UUID']['input'];
  withMissingTags: Scalars['Boolean']['input'];
  withMissingDescription: Scalars['Boolean']['input'];
  tagsDifferentThan?: InputMaybe<Array<Scalars['String']['input']> | Scalars['String']['input']>;
  descriptionDifferentThan?: InputMaybe<Scalars['String']['input']>;
}>;


export type SimilarChargesQuery = { __typename?: 'Query', similarCharges: Array<(
    { __typename?: 'BankDepositCharge', id: string }
    & { ' $fragmentRefs'?: { 'SimilarChargesTable_BankDepositCharge_Fragment': SimilarChargesTable_BankDepositCharge_Fragment } }
  ) | (
    { __typename?: 'BusinessTripCharge', id: string }
    & { ' $fragmentRefs'?: { 'SimilarChargesTable_BusinessTripCharge_Fragment': SimilarChargesTable_BusinessTripCharge_Fragment } }
  ) | (
    { __typename?: 'CommonCharge', id: string }
    & { ' $fragmentRefs'?: { 'SimilarChargesTable_CommonCharge_Fragment': SimilarChargesTable_CommonCharge_Fragment } }
  ) | (
    { __typename?: 'ConversionCharge', id: string }
    & { ' $fragmentRefs'?: { 'SimilarChargesTable_ConversionCharge_Fragment': SimilarChargesTable_ConversionCharge_Fragment } }
  ) | (
    { __typename?: 'CreditcardBankCharge', id: string }
    & { ' $fragmentRefs'?: { 'SimilarChargesTable_CreditcardBankCharge_Fragment': SimilarChargesTable_CreditcardBankCharge_Fragment } }
  ) | (
    { __typename?: 'DividendCharge', id: string }
    & { ' $fragmentRefs'?: { 'SimilarChargesTable_DividendCharge_Fragment': SimilarChargesTable_DividendCharge_Fragment } }
  ) | (
    { __typename?: 'FinancialCharge', id: string }
    & { ' $fragmentRefs'?: { 'SimilarChargesTable_FinancialCharge_Fragment': SimilarChargesTable_FinancialCharge_Fragment } }
  ) | (
    { __typename?: 'ForeignSecuritiesCharge', id: string }
    & { ' $fragmentRefs'?: { 'SimilarChargesTable_ForeignSecuritiesCharge_Fragment': SimilarChargesTable_ForeignSecuritiesCharge_Fragment } }
  ) | (
    { __typename?: 'InternalTransferCharge', id: string }
    & { ' $fragmentRefs'?: { 'SimilarChargesTable_InternalTransferCharge_Fragment': SimilarChargesTable_InternalTransferCharge_Fragment } }
  ) | (
    { __typename?: 'MonthlyVatCharge', id: string }
    & { ' $fragmentRefs'?: { 'SimilarChargesTable_MonthlyVatCharge_Fragment': SimilarChargesTable_MonthlyVatCharge_Fragment } }
  ) | (
    { __typename?: 'SalaryCharge', id: string }
    & { ' $fragmentRefs'?: { 'SimilarChargesTable_SalaryCharge_Fragment': SimilarChargesTable_SalaryCharge_Fragment } }
  )> };

type SimilarChargesTable_BankDepositCharge_Fragment = { __typename: 'BankDepositCharge', id: string, minEventDate?: Date | null, minDebitDate?: Date | null, minDocumentsDate?: Date | null, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', name: string, id: string } | { __typename?: 'PersonalFinancialEntity', name: string, id: string } | { __typename?: 'TaxCategory', name: string, id: string } | null, totalAmount?: { __typename?: 'FinancialAmount', raw: number, formatted: string } | null, vat?: { __typename?: 'FinancialAmount', raw: number, formatted: string } | null, tags: Array<{ __typename?: 'Tag', id: string, name: string }>, taxCategory?: { __typename?: 'TaxCategory', id: string, name: string } | null, metadata?: { __typename?: 'ChargeMetadata', transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } | null } & { ' $fragmentName'?: 'SimilarChargesTable_BankDepositCharge_Fragment' };

type SimilarChargesTable_BusinessTripCharge_Fragment = { __typename: 'BusinessTripCharge', id: string, minEventDate?: Date | null, minDebitDate?: Date | null, minDocumentsDate?: Date | null, userDescription?: string | null, businessTrip?: { __typename?: 'BusinessTrip', id: string, name: string } | null, counterparty?: { __typename?: 'LtdFinancialEntity', name: string, id: string } | { __typename?: 'PersonalFinancialEntity', name: string, id: string } | { __typename?: 'TaxCategory', name: string, id: string } | null, totalAmount?: { __typename?: 'FinancialAmount', raw: number, formatted: string } | null, vat?: { __typename?: 'FinancialAmount', raw: number, formatted: string } | null, tags: Array<{ __typename?: 'Tag', id: string, name: string }>, taxCategory?: { __typename?: 'TaxCategory', id: string, name: string } | null, metadata?: { __typename?: 'ChargeMetadata', transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } | null } & { ' $fragmentName'?: 'SimilarChargesTable_BusinessTripCharge_Fragment' };

type SimilarChargesTable_CommonCharge_Fragment = { __typename: 'CommonCharge', id: string, minEventDate?: Date | null, minDebitDate?: Date | null, minDocumentsDate?: Date | null, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', name: string, id: string } | { __typename?: 'PersonalFinancialEntity', name: string, id: string } | { __typename?: 'TaxCategory', name: string, id: string } | null, totalAmount?: { __typename?: 'FinancialAmount', raw: number, formatted: string } | null, vat?: { __typename?: 'FinancialAmount', raw: number, formatted: string } | null, tags: Array<{ __typename?: 'Tag', id: string, name: string }>, taxCategory?: { __typename?: 'TaxCategory', id: string, name: string } | null, metadata?: { __typename?: 'ChargeMetadata', transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } | null } & { ' $fragmentName'?: 'SimilarChargesTable_CommonCharge_Fragment' };

type SimilarChargesTable_ConversionCharge_Fragment = { __typename: 'ConversionCharge', id: string, minEventDate?: Date | null, minDebitDate?: Date | null, minDocumentsDate?: Date | null, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', name: string, id: string } | { __typename?: 'PersonalFinancialEntity', name: string, id: string } | { __typename?: 'TaxCategory', name: string, id: string } | null, totalAmount?: { __typename?: 'FinancialAmount', raw: number, formatted: string } | null, vat?: { __typename?: 'FinancialAmount', raw: number, formatted: string } | null, tags: Array<{ __typename?: 'Tag', id: string, name: string }>, taxCategory?: { __typename?: 'TaxCategory', id: string, name: string } | null, metadata?: { __typename?: 'ChargeMetadata', transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } | null } & { ' $fragmentName'?: 'SimilarChargesTable_ConversionCharge_Fragment' };

type SimilarChargesTable_CreditcardBankCharge_Fragment = { __typename: 'CreditcardBankCharge', id: string, minEventDate?: Date | null, minDebitDate?: Date | null, minDocumentsDate?: Date | null, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', name: string, id: string } | { __typename?: 'PersonalFinancialEntity', name: string, id: string } | { __typename?: 'TaxCategory', name: string, id: string } | null, totalAmount?: { __typename?: 'FinancialAmount', raw: number, formatted: string } | null, vat?: { __typename?: 'FinancialAmount', raw: number, formatted: string } | null, tags: Array<{ __typename?: 'Tag', id: string, name: string }>, taxCategory?: { __typename?: 'TaxCategory', id: string, name: string } | null, metadata?: { __typename?: 'ChargeMetadata', transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } | null } & { ' $fragmentName'?: 'SimilarChargesTable_CreditcardBankCharge_Fragment' };

type SimilarChargesTable_DividendCharge_Fragment = { __typename: 'DividendCharge', id: string, minEventDate?: Date | null, minDebitDate?: Date | null, minDocumentsDate?: Date | null, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', name: string, id: string } | { __typename?: 'PersonalFinancialEntity', name: string, id: string } | { __typename?: 'TaxCategory', name: string, id: string } | null, totalAmount?: { __typename?: 'FinancialAmount', raw: number, formatted: string } | null, vat?: { __typename?: 'FinancialAmount', raw: number, formatted: string } | null, tags: Array<{ __typename?: 'Tag', id: string, name: string }>, taxCategory?: { __typename?: 'TaxCategory', id: string, name: string } | null, metadata?: { __typename?: 'ChargeMetadata', transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } | null } & { ' $fragmentName'?: 'SimilarChargesTable_DividendCharge_Fragment' };

type SimilarChargesTable_FinancialCharge_Fragment = { __typename: 'FinancialCharge', id: string, minEventDate?: Date | null, minDebitDate?: Date | null, minDocumentsDate?: Date | null, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', name: string, id: string } | { __typename?: 'PersonalFinancialEntity', name: string, id: string } | { __typename?: 'TaxCategory', name: string, id: string } | null, totalAmount?: { __typename?: 'FinancialAmount', raw: number, formatted: string } | null, vat?: { __typename?: 'FinancialAmount', raw: number, formatted: string } | null, tags: Array<{ __typename?: 'Tag', id: string, name: string }>, taxCategory?: { __typename?: 'TaxCategory', id: string, name: string } | null, metadata?: { __typename?: 'ChargeMetadata', transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } | null } & { ' $fragmentName'?: 'SimilarChargesTable_FinancialCharge_Fragment' };

type SimilarChargesTable_ForeignSecuritiesCharge_Fragment = { __typename: 'ForeignSecuritiesCharge', id: string, minEventDate?: Date | null, minDebitDate?: Date | null, minDocumentsDate?: Date | null, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', name: string, id: string } | { __typename?: 'PersonalFinancialEntity', name: string, id: string } | { __typename?: 'TaxCategory', name: string, id: string } | null, totalAmount?: { __typename?: 'FinancialAmount', raw: number, formatted: string } | null, vat?: { __typename?: 'FinancialAmount', raw: number, formatted: string } | null, tags: Array<{ __typename?: 'Tag', id: string, name: string }>, taxCategory?: { __typename?: 'TaxCategory', id: string, name: string } | null, metadata?: { __typename?: 'ChargeMetadata', transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } | null } & { ' $fragmentName'?: 'SimilarChargesTable_ForeignSecuritiesCharge_Fragment' };

type SimilarChargesTable_InternalTransferCharge_Fragment = { __typename: 'InternalTransferCharge', id: string, minEventDate?: Date | null, minDebitDate?: Date | null, minDocumentsDate?: Date | null, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', name: string, id: string } | { __typename?: 'PersonalFinancialEntity', name: string, id: string } | { __typename?: 'TaxCategory', name: string, id: string } | null, totalAmount?: { __typename?: 'FinancialAmount', raw: number, formatted: string } | null, vat?: { __typename?: 'FinancialAmount', raw: number, formatted: string } | null, tags: Array<{ __typename?: 'Tag', id: string, name: string }>, taxCategory?: { __typename?: 'TaxCategory', id: string, name: string } | null, metadata?: { __typename?: 'ChargeMetadata', transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } | null } & { ' $fragmentName'?: 'SimilarChargesTable_InternalTransferCharge_Fragment' };

type SimilarChargesTable_MonthlyVatCharge_Fragment = { __typename: 'MonthlyVatCharge', id: string, minEventDate?: Date | null, minDebitDate?: Date | null, minDocumentsDate?: Date | null, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', name: string, id: string } | { __typename?: 'PersonalFinancialEntity', name: string, id: string } | { __typename?: 'TaxCategory', name: string, id: string } | null, totalAmount?: { __typename?: 'FinancialAmount', raw: number, formatted: string } | null, vat?: { __typename?: 'FinancialAmount', raw: number, formatted: string } | null, tags: Array<{ __typename?: 'Tag', id: string, name: string }>, taxCategory?: { __typename?: 'TaxCategory', id: string, name: string } | null, metadata?: { __typename?: 'ChargeMetadata', transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } | null } & { ' $fragmentName'?: 'SimilarChargesTable_MonthlyVatCharge_Fragment' };

type SimilarChargesTable_SalaryCharge_Fragment = { __typename: 'SalaryCharge', id: string, minEventDate?: Date | null, minDebitDate?: Date | null, minDocumentsDate?: Date | null, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', name: string, id: string } | { __typename?: 'PersonalFinancialEntity', name: string, id: string } | { __typename?: 'TaxCategory', name: string, id: string } | null, totalAmount?: { __typename?: 'FinancialAmount', raw: number, formatted: string } | null, vat?: { __typename?: 'FinancialAmount', raw: number, formatted: string } | null, tags: Array<{ __typename?: 'Tag', id: string, name: string }>, taxCategory?: { __typename?: 'TaxCategory', id: string, name: string } | null, metadata?: { __typename?: 'ChargeMetadata', transactionsCount: number, documentsCount: number, ledgerCount: number, miscExpensesCount: number } | null } & { ' $fragmentName'?: 'SimilarChargesTable_SalaryCharge_Fragment' };

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: Scalars['UUID']['input'];
  withMissingInfo: Scalars['Boolean']['input'];
}>;


export type SimilarTransactionsQuery = { __typename?: 'Query', similarTransactions: Array<{ __typename?: 'CommonTransaction', id: string, effectiveDate?: TimelessDateString | null, eventDate: TimelessDateString, sourceDescription: string, account: { __typename?: 'BankFinancialAccount', id: string, name: string, type: string } | { __typename?: 'CardFinancialAccount', id: string, name: string, type: string } | { __typename?: 'CryptoWalletFinancialAccount', id: string, name: string, type: string } | { __typename?: 'ForeignSecuritiesFinancialAccount', id: string, name: string, type: string }, amount: { __typename?: 'FinancialAmount', formatted: string, raw: number } } | { __typename?: 'ConversionTransaction', id: string, effectiveDate: TimelessDateString, eventDate: TimelessDateString, sourceDescription: string, account: { __typename?: 'BankFinancialAccount', id: string, name: string, type: string } | { __typename?: 'CardFinancialAccount', id: string, name: string, type: string } | { __typename?: 'CryptoWalletFinancialAccount', id: string, name: string, type: string } | { __typename?: 'ForeignSecuritiesFinancialAccount', id: string, name: string, type: string }, amount: { __typename?: 'FinancialAmount', formatted: string, raw: number } }> };

export type UniformFormatQueryVariables = Exact<{
  fromDate: Scalars['TimelessDate']['input'];
  toDate: Scalars['TimelessDate']['input'];
}>;


export type UniformFormatQuery = { __typename?: 'Query', uniformFormat?: { __typename?: 'UniformFormat', bkmvdata: string, ini: string } | null };

type NewFetchedDocumentFields_CreditInvoice_Fragment = { __typename?: 'CreditInvoice', id: string, documentType?: DocumentType | null, charge?: { __typename?: 'BankDepositCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'BusinessTripCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'CommonCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'ConversionCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'CreditcardBankCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'DividendCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'FinancialCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'ForeignSecuritiesCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'InternalTransferCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'MonthlyVatCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'SalaryCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | null } & { ' $fragmentName'?: 'NewFetchedDocumentFields_CreditInvoice_Fragment' };

type NewFetchedDocumentFields_Invoice_Fragment = { __typename?: 'Invoice', id: string, documentType?: DocumentType | null, charge?: { __typename?: 'BankDepositCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'BusinessTripCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'CommonCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'ConversionCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'CreditcardBankCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'DividendCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'FinancialCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'ForeignSecuritiesCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'InternalTransferCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'MonthlyVatCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'SalaryCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | null } & { ' $fragmentName'?: 'NewFetchedDocumentFields_Invoice_Fragment' };

type NewFetchedDocumentFields_InvoiceReceipt_Fragment = { __typename?: 'InvoiceReceipt', id: string, documentType?: DocumentType | null, charge?: { __typename?: 'BankDepositCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'BusinessTripCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'CommonCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'ConversionCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'CreditcardBankCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'DividendCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'FinancialCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'ForeignSecuritiesCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'InternalTransferCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'MonthlyVatCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'SalaryCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | null } & { ' $fragmentName'?: 'NewFetchedDocumentFields_InvoiceReceipt_Fragment' };

type NewFetchedDocumentFields_OtherDocument_Fragment = { __typename?: 'OtherDocument', id: string, documentType?: DocumentType | null, charge?: { __typename?: 'BankDepositCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'BusinessTripCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'CommonCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'ConversionCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'CreditcardBankCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'DividendCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'FinancialCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'ForeignSecuritiesCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'InternalTransferCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'MonthlyVatCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'SalaryCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | null } & { ' $fragmentName'?: 'NewFetchedDocumentFields_OtherDocument_Fragment' };

type NewFetchedDocumentFields_Proforma_Fragment = { __typename?: 'Proforma', id: string, documentType?: DocumentType | null, charge?: { __typename?: 'BankDepositCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'BusinessTripCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'CommonCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'ConversionCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'CreditcardBankCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'DividendCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'FinancialCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'ForeignSecuritiesCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'InternalTransferCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'MonthlyVatCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'SalaryCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | null } & { ' $fragmentName'?: 'NewFetchedDocumentFields_Proforma_Fragment' };

type NewFetchedDocumentFields_Receipt_Fragment = { __typename?: 'Receipt', id: string, documentType?: DocumentType | null, charge?: { __typename?: 'BankDepositCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'BusinessTripCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'CommonCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'ConversionCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'CreditcardBankCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'DividendCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'FinancialCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'ForeignSecuritiesCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'InternalTransferCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'MonthlyVatCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'SalaryCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | null } & { ' $fragmentName'?: 'NewFetchedDocumentFields_Receipt_Fragment' };

type NewFetchedDocumentFields_Unprocessed_Fragment = { __typename?: 'Unprocessed', id: string, documentType?: DocumentType | null, charge?: { __typename?: 'BankDepositCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'BusinessTripCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'CommonCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'ConversionCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'CreditcardBankCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'DividendCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'FinancialCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'ForeignSecuritiesCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'InternalTransferCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'MonthlyVatCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | { __typename?: 'SalaryCharge', id: string, userDescription?: string | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | null } & { ' $fragmentName'?: 'NewFetchedDocumentFields_Unprocessed_Fragment' };

export type NewFetchedDocumentFieldsFragment = NewFetchedDocumentFields_CreditInvoice_Fragment | NewFetchedDocumentFields_Invoice_Fragment | NewFetchedDocumentFields_InvoiceReceipt_Fragment | NewFetchedDocumentFields_OtherDocument_Fragment | NewFetchedDocumentFields_Proforma_Fragment | NewFetchedDocumentFields_Receipt_Fragment | NewFetchedDocumentFields_Unprocessed_Fragment;

type TableDocumentsRowFields_CreditInvoice_Fragment = { __typename?: 'CreditInvoice', date?: TimelessDateString | null, serialNumber?: string | null, allocationNumber?: string | null, id: string, documentType?: DocumentType | null, image?: URL | string | null, file?: URL | string | null, amount?: { __typename?: 'FinancialAmount', raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions?: { __typename?: 'DocumentSuggestions', isIncome?: boolean | null, amount?: { __typename?: 'FinancialAmount', raw: number, formatted: string, currency: Currency } | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, owner?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | null, vat?: { __typename?: 'FinancialAmount', raw: number, formatted: string, currency: Currency } | null, creditor?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, debtor?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, issuedDocumentInfo?: { __typename?: 'IssuedDocumentInfo', id: string, status: DocumentStatus, originalDocument?: { __typename?: 'NewDocumentInfo', income?: Array<{ __typename?: 'GreenInvoiceIncome', description: string }> | null } | null } | null, charge?: { __typename?: 'BankDepositCharge', id: string } | { __typename?: 'BusinessTripCharge', id: string } | { __typename?: 'CommonCharge', id: string } | { __typename?: 'ConversionCharge', id: string } | { __typename?: 'CreditcardBankCharge', id: string } | { __typename?: 'DividendCharge', id: string } | { __typename?: 'FinancialCharge', id: string } | { __typename?: 'ForeignSecuritiesCharge', id: string } | { __typename?: 'InternalTransferCharge', id: string } | { __typename?: 'MonthlyVatCharge', id: string } | { __typename?: 'SalaryCharge', id: string } | null } & { ' $fragmentName'?: 'TableDocumentsRowFields_CreditInvoice_Fragment' };

type TableDocumentsRowFields_Invoice_Fragment = { __typename?: 'Invoice', date?: TimelessDateString | null, serialNumber?: string | null, allocationNumber?: string | null, id: string, documentType?: DocumentType | null, image?: URL | string | null, file?: URL | string | null, amount?: { __typename?: 'FinancialAmount', raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions?: { __typename?: 'DocumentSuggestions', isIncome?: boolean | null, amount?: { __typename?: 'FinancialAmount', raw: number, formatted: string, currency: Currency } | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, owner?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | null, vat?: { __typename?: 'FinancialAmount', raw: number, formatted: string, currency: Currency } | null, creditor?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, debtor?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, issuedDocumentInfo?: { __typename?: 'IssuedDocumentInfo', id: string, status: DocumentStatus, originalDocument?: { __typename?: 'NewDocumentInfo', income?: Array<{ __typename?: 'GreenInvoiceIncome', description: string }> | null } | null } | null, charge?: { __typename?: 'BankDepositCharge', id: string } | { __typename?: 'BusinessTripCharge', id: string } | { __typename?: 'CommonCharge', id: string } | { __typename?: 'ConversionCharge', id: string } | { __typename?: 'CreditcardBankCharge', id: string } | { __typename?: 'DividendCharge', id: string } | { __typename?: 'FinancialCharge', id: string } | { __typename?: 'ForeignSecuritiesCharge', id: string } | { __typename?: 'InternalTransferCharge', id: string } | { __typename?: 'MonthlyVatCharge', id: string } | { __typename?: 'SalaryCharge', id: string } | null } & { ' $fragmentName'?: 'TableDocumentsRowFields_Invoice_Fragment' };

type TableDocumentsRowFields_InvoiceReceipt_Fragment = { __typename?: 'InvoiceReceipt', date?: TimelessDateString | null, serialNumber?: string | null, allocationNumber?: string | null, id: string, documentType?: DocumentType | null, image?: URL | string | null, file?: URL | string | null, amount?: { __typename?: 'FinancialAmount', raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions?: { __typename?: 'DocumentSuggestions', isIncome?: boolean | null, amount?: { __typename?: 'FinancialAmount', raw: number, formatted: string, currency: Currency } | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, owner?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | null, vat?: { __typename?: 'FinancialAmount', raw: number, formatted: string, currency: Currency } | null, creditor?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, debtor?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, issuedDocumentInfo?: { __typename?: 'IssuedDocumentInfo', id: string, status: DocumentStatus, originalDocument?: { __typename?: 'NewDocumentInfo', income?: Array<{ __typename?: 'GreenInvoiceIncome', description: string }> | null } | null } | null, charge?: { __typename?: 'BankDepositCharge', id: string } | { __typename?: 'BusinessTripCharge', id: string } | { __typename?: 'CommonCharge', id: string } | { __typename?: 'ConversionCharge', id: string } | { __typename?: 'CreditcardBankCharge', id: string } | { __typename?: 'DividendCharge', id: string } | { __typename?: 'FinancialCharge', id: string } | { __typename?: 'ForeignSecuritiesCharge', id: string } | { __typename?: 'InternalTransferCharge', id: string } | { __typename?: 'MonthlyVatCharge', id: string } | { __typename?: 'SalaryCharge', id: string } | null } & { ' $fragmentName'?: 'TableDocumentsRowFields_InvoiceReceipt_Fragment' };

type TableDocumentsRowFields_OtherDocument_Fragment = { __typename?: 'OtherDocument', id: string, documentType?: DocumentType | null, image?: URL | string | null, file?: URL | string | null, charge?: { __typename?: 'BankDepositCharge', id: string } | { __typename?: 'BusinessTripCharge', id: string } | { __typename?: 'CommonCharge', id: string } | { __typename?: 'ConversionCharge', id: string } | { __typename?: 'CreditcardBankCharge', id: string } | { __typename?: 'DividendCharge', id: string } | { __typename?: 'FinancialCharge', id: string } | { __typename?: 'ForeignSecuritiesCharge', id: string } | { __typename?: 'InternalTransferCharge', id: string } | { __typename?: 'MonthlyVatCharge', id: string } | { __typename?: 'SalaryCharge', id: string } | null } & { ' $fragmentName'?: 'TableDocumentsRowFields_OtherDocument_Fragment' };

type TableDocumentsRowFields_Proforma_Fragment = { __typename?: 'Proforma', date?: TimelessDateString | null, serialNumber?: string | null, allocationNumber?: string | null, id: string, documentType?: DocumentType | null, image?: URL | string | null, file?: URL | string | null, amount?: { __typename?: 'FinancialAmount', raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions?: { __typename?: 'DocumentSuggestions', isIncome?: boolean | null, amount?: { __typename?: 'FinancialAmount', raw: number, formatted: string, currency: Currency } | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, owner?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | null, vat?: { __typename?: 'FinancialAmount', raw: number, formatted: string, currency: Currency } | null, creditor?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, debtor?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, issuedDocumentInfo?: { __typename?: 'IssuedDocumentInfo', id: string, status: DocumentStatus, originalDocument?: { __typename?: 'NewDocumentInfo', income?: Array<{ __typename?: 'GreenInvoiceIncome', description: string }> | null } | null } | null, charge?: { __typename?: 'BankDepositCharge', id: string } | { __typename?: 'BusinessTripCharge', id: string } | { __typename?: 'CommonCharge', id: string } | { __typename?: 'ConversionCharge', id: string } | { __typename?: 'CreditcardBankCharge', id: string } | { __typename?: 'DividendCharge', id: string } | { __typename?: 'FinancialCharge', id: string } | { __typename?: 'ForeignSecuritiesCharge', id: string } | { __typename?: 'InternalTransferCharge', id: string } | { __typename?: 'MonthlyVatCharge', id: string } | { __typename?: 'SalaryCharge', id: string } | null } & { ' $fragmentName'?: 'TableDocumentsRowFields_Proforma_Fragment' };

type TableDocumentsRowFields_Receipt_Fragment = { __typename?: 'Receipt', date?: TimelessDateString | null, serialNumber?: string | null, allocationNumber?: string | null, id: string, documentType?: DocumentType | null, image?: URL | string | null, file?: URL | string | null, amount?: { __typename?: 'FinancialAmount', raw: number, formatted: string, currency: Currency } | null, missingInfoSuggestions?: { __typename?: 'DocumentSuggestions', isIncome?: boolean | null, amount?: { __typename?: 'FinancialAmount', raw: number, formatted: string, currency: Currency } | null, counterparty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, owner?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null } | null, vat?: { __typename?: 'FinancialAmount', raw: number, formatted: string, currency: Currency } | null, creditor?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, debtor?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, issuedDocumentInfo?: { __typename?: 'IssuedDocumentInfo', id: string, status: DocumentStatus, originalDocument?: { __typename?: 'NewDocumentInfo', income?: Array<{ __typename?: 'GreenInvoiceIncome', description: string }> | null } | null } | null, charge?: { __typename?: 'BankDepositCharge', id: string } | { __typename?: 'BusinessTripCharge', id: string } | { __typename?: 'CommonCharge', id: string } | { __typename?: 'ConversionCharge', id: string } | { __typename?: 'CreditcardBankCharge', id: string } | { __typename?: 'DividendCharge', id: string } | { __typename?: 'FinancialCharge', id: string } | { __typename?: 'ForeignSecuritiesCharge', id: string } | { __typename?: 'InternalTransferCharge', id: string } | { __typename?: 'MonthlyVatCharge', id: string } | { __typename?: 'SalaryCharge', id: string } | null } & { ' $fragmentName'?: 'TableDocumentsRowFields_Receipt_Fragment' };

type TableDocumentsRowFields_Unprocessed_Fragment = { __typename?: 'Unprocessed', id: string, documentType?: DocumentType | null, image?: URL | string | null, file?: URL | string | null, charge?: { __typename?: 'BankDepositCharge', id: string } | { __typename?: 'BusinessTripCharge', id: string } | { __typename?: 'CommonCharge', id: string } | { __typename?: 'ConversionCharge', id: string } | { __typename?: 'CreditcardBankCharge', id: string } | { __typename?: 'DividendCharge', id: string } | { __typename?: 'FinancialCharge', id: string } | { __typename?: 'ForeignSecuritiesCharge', id: string } | { __typename?: 'InternalTransferCharge', id: string } | { __typename?: 'MonthlyVatCharge', id: string } | { __typename?: 'SalaryCharge', id: string } | null } & { ' $fragmentName'?: 'TableDocumentsRowFields_Unprocessed_Fragment' };

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 = { __typename?: 'BankDepositCharge', id: string, additionalDocuments: Array<{ __typename?: 'CreditInvoice', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'Invoice', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'InvoiceReceipt', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'OtherDocument', id: string, image?: URL | string | null } | { __typename?: 'Proforma', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'Receipt', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'Unprocessed', id: string, image?: URL | string | null }> } & { ' $fragmentName'?: 'DocumentsGalleryFields_BankDepositCharge_Fragment' };

type DocumentsGalleryFields_BusinessTripCharge_Fragment = { __typename?: 'BusinessTripCharge', id: string, additionalDocuments: Array<{ __typename?: 'CreditInvoice', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'Invoice', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'InvoiceReceipt', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'OtherDocument', id: string, image?: URL | string | null } | { __typename?: 'Proforma', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'Receipt', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'Unprocessed', id: string, image?: URL | string | null }> } & { ' $fragmentName'?: 'DocumentsGalleryFields_BusinessTripCharge_Fragment' };

type DocumentsGalleryFields_CommonCharge_Fragment = { __typename?: 'CommonCharge', id: string, additionalDocuments: Array<{ __typename?: 'CreditInvoice', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'Invoice', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'InvoiceReceipt', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'OtherDocument', id: string, image?: URL | string | null } | { __typename?: 'Proforma', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'Receipt', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'Unprocessed', id: string, image?: URL | string | null }> } & { ' $fragmentName'?: 'DocumentsGalleryFields_CommonCharge_Fragment' };

type DocumentsGalleryFields_ConversionCharge_Fragment = { __typename?: 'ConversionCharge', id: string, additionalDocuments: Array<{ __typename?: 'CreditInvoice', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'Invoice', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'InvoiceReceipt', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'OtherDocument', id: string, image?: URL | string | null } | { __typename?: 'Proforma', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'Receipt', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'Unprocessed', id: string, image?: URL | string | null }> } & { ' $fragmentName'?: 'DocumentsGalleryFields_ConversionCharge_Fragment' };

type DocumentsGalleryFields_CreditcardBankCharge_Fragment = { __typename?: 'CreditcardBankCharge', id: string, additionalDocuments: Array<{ __typename?: 'CreditInvoice', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'Invoice', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'InvoiceReceipt', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'OtherDocument', id: string, image?: URL | string | null } | { __typename?: 'Proforma', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'Receipt', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'Unprocessed', id: string, image?: URL | string | null }> } & { ' $fragmentName'?: 'DocumentsGalleryFields_CreditcardBankCharge_Fragment' };

type DocumentsGalleryFields_DividendCharge_Fragment = { __typename?: 'DividendCharge', id: string, additionalDocuments: Array<{ __typename?: 'CreditInvoice', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'Invoice', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'InvoiceReceipt', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'OtherDocument', id: string, image?: URL | string | null } | { __typename?: 'Proforma', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'Receipt', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'Unprocessed', id: string, image?: URL | string | null }> } & { ' $fragmentName'?: 'DocumentsGalleryFields_DividendCharge_Fragment' };

type DocumentsGalleryFields_FinancialCharge_Fragment = { __typename?: 'FinancialCharge', id: string, additionalDocuments: Array<{ __typename?: 'CreditInvoice', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'Invoice', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'InvoiceReceipt', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'OtherDocument', id: string, image?: URL | string | null } | { __typename?: 'Proforma', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'Receipt', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'Unprocessed', id: string, image?: URL | string | null }> } & { ' $fragmentName'?: 'DocumentsGalleryFields_FinancialCharge_Fragment' };

type DocumentsGalleryFields_ForeignSecuritiesCharge_Fragment = { __typename?: 'ForeignSecuritiesCharge', id: string, additionalDocuments: Array<{ __typename?: 'CreditInvoice', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'Invoice', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'InvoiceReceipt', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'OtherDocument', id: string, image?: URL | string | null } | { __typename?: 'Proforma', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'Receipt', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'Unprocessed', id: string, image?: URL | string | null }> } & { ' $fragmentName'?: 'DocumentsGalleryFields_ForeignSecuritiesCharge_Fragment' };

type DocumentsGalleryFields_InternalTransferCharge_Fragment = { __typename?: 'InternalTransferCharge', id: string, additionalDocuments: Array<{ __typename?: 'CreditInvoice', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'Invoice', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'InvoiceReceipt', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'OtherDocument', id: string, image?: URL | string | null } | { __typename?: 'Proforma', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'Receipt', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'Unprocessed', id: string, image?: URL | string | null }> } & { ' $fragmentName'?: 'DocumentsGalleryFields_InternalTransferCharge_Fragment' };

type DocumentsGalleryFields_MonthlyVatCharge_Fragment = { __typename?: 'MonthlyVatCharge', id: string, additionalDocuments: Array<{ __typename?: 'CreditInvoice', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'Invoice', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'InvoiceReceipt', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'OtherDocument', id: string, image?: URL | string | null } | { __typename?: 'Proforma', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'Receipt', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'Unprocessed', id: string, image?: URL | string | null }> } & { ' $fragmentName'?: 'DocumentsGalleryFields_MonthlyVatCharge_Fragment' };

type DocumentsGalleryFields_SalaryCharge_Fragment = { __typename?: 'SalaryCharge', id: string, additionalDocuments: Array<{ __typename?: 'CreditInvoice', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'Invoice', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'InvoiceReceipt', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'OtherDocument', id: string, image?: URL | string | null } | { __typename?: 'Proforma', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'Receipt', documentType?: DocumentType | null, id: string, image?: URL | string | null } | { __typename?: 'Unprocessed', id: string, image?: URL | string | null }> } & { ' $fragmentName'?: 'DocumentsGalleryFields_SalaryCharge_Fragment' };

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;

type TableLedgerRecordsFields_BankDepositCharge_Fragment = { __typename?: 'BankDepositCharge', id: string, ledger: { __typename: 'Ledger', records: Array<{ __typename?: 'LedgerRecord', id: string, invoiceDate: Date, valueDate: Date, 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?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, creditAmount2?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, debitAmount1?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, debitAmount2?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { __typename?: 'FinancialAmount', formatted: string, raw: number }, localCurrencyCreditAmount2?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null, localCurrencyDebitAmount1: { __typename?: 'FinancialAmount', formatted: string, raw: number }, localCurrencyDebitAmount2?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null }> } & ({ __typename?: 'Ledger', validate: { __typename?: 'LedgerValidation' } & ({ __typename?: 'LedgerValidation', matches: Array<string> } | { __typename?: 'LedgerValidation', matches?: never }) & ({ __typename?: 'LedgerValidation', differences: Array<{ __typename?: 'LedgerRecord', id: string, invoiceDate: Date, valueDate: Date, 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?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, creditAmount2?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, debitAmount1?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, debitAmount2?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { __typename?: 'FinancialAmount', formatted: string, raw: number }, localCurrencyCreditAmount2?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null, localCurrencyDebitAmount1: { __typename?: 'FinancialAmount', formatted: string, raw: number }, localCurrencyDebitAmount2?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null }> } | { __typename?: 'LedgerValidation', differences?: never }) } | { __typename?: 'Ledger', validate?: never }) } & { ' $fragmentName'?: 'TableLedgerRecordsFields_BankDepositCharge_Fragment' };

type TableLedgerRecordsFields_BusinessTripCharge_Fragment = { __typename?: 'BusinessTripCharge', id: string, ledger: { __typename: 'Ledger', records: Array<{ __typename?: 'LedgerRecord', id: string, invoiceDate: Date, valueDate: Date, 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?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, creditAmount2?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, debitAmount1?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, debitAmount2?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { __typename?: 'FinancialAmount', formatted: string, raw: number }, localCurrencyCreditAmount2?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null, localCurrencyDebitAmount1: { __typename?: 'FinancialAmount', formatted: string, raw: number }, localCurrencyDebitAmount2?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null }> } & ({ __typename?: 'Ledger', validate: { __typename?: 'LedgerValidation' } & ({ __typename?: 'LedgerValidation', matches: Array<string> } | { __typename?: 'LedgerValidation', matches?: never }) & ({ __typename?: 'LedgerValidation', differences: Array<{ __typename?: 'LedgerRecord', id: string, invoiceDate: Date, valueDate: Date, 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?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, creditAmount2?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, debitAmount1?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, debitAmount2?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { __typename?: 'FinancialAmount', formatted: string, raw: number }, localCurrencyCreditAmount2?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null, localCurrencyDebitAmount1: { __typename?: 'FinancialAmount', formatted: string, raw: number }, localCurrencyDebitAmount2?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null }> } | { __typename?: 'LedgerValidation', differences?: never }) } | { __typename?: 'Ledger', validate?: never }) } & { ' $fragmentName'?: 'TableLedgerRecordsFields_BusinessTripCharge_Fragment' };

type TableLedgerRecordsFields_CommonCharge_Fragment = { __typename?: 'CommonCharge', id: string, ledger: { __typename: 'Ledger', records: Array<{ __typename?: 'LedgerRecord', id: string, invoiceDate: Date, valueDate: Date, 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?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, creditAmount2?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, debitAmount1?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, debitAmount2?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { __typename?: 'FinancialAmount', formatted: string, raw: number }, localCurrencyCreditAmount2?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null, localCurrencyDebitAmount1: { __typename?: 'FinancialAmount', formatted: string, raw: number }, localCurrencyDebitAmount2?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null }> } & ({ __typename?: 'Ledger', validate: { __typename?: 'LedgerValidation' } & ({ __typename?: 'LedgerValidation', matches: Array<string> } | { __typename?: 'LedgerValidation', matches?: never }) & ({ __typename?: 'LedgerValidation', differences: Array<{ __typename?: 'LedgerRecord', id: string, invoiceDate: Date, valueDate: Date, 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?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, creditAmount2?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, debitAmount1?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, debitAmount2?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { __typename?: 'FinancialAmount', formatted: string, raw: number }, localCurrencyCreditAmount2?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null, localCurrencyDebitAmount1: { __typename?: 'FinancialAmount', formatted: string, raw: number }, localCurrencyDebitAmount2?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null }> } | { __typename?: 'LedgerValidation', differences?: never }) } | { __typename?: 'Ledger', validate?: never }) } & { ' $fragmentName'?: 'TableLedgerRecordsFields_CommonCharge_Fragment' };

type TableLedgerRecordsFields_ConversionCharge_Fragment = { __typename?: 'ConversionCharge', id: string, ledger: { __typename: 'Ledger', records: Array<{ __typename?: 'LedgerRecord', id: string, invoiceDate: Date, valueDate: Date, 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?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, creditAmount2?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, debitAmount1?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, debitAmount2?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { __typename?: 'FinancialAmount', formatted: string, raw: number }, localCurrencyCreditAmount2?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null, localCurrencyDebitAmount1: { __typename?: 'FinancialAmount', formatted: string, raw: number }, localCurrencyDebitAmount2?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null }> } & ({ __typename?: 'Ledger', validate: { __typename?: 'LedgerValidation' } & ({ __typename?: 'LedgerValidation', matches: Array<string> } | { __typename?: 'LedgerValidation', matches?: never }) & ({ __typename?: 'LedgerValidation', differences: Array<{ __typename?: 'LedgerRecord', id: string, invoiceDate: Date, valueDate: Date, 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?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, creditAmount2?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, debitAmount1?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, debitAmount2?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { __typename?: 'FinancialAmount', formatted: string, raw: number }, localCurrencyCreditAmount2?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null, localCurrencyDebitAmount1: { __typename?: 'FinancialAmount', formatted: string, raw: number }, localCurrencyDebitAmount2?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null }> } | { __typename?: 'LedgerValidation', differences?: never }) } | { __typename?: 'Ledger', validate?: never }) } & { ' $fragmentName'?: 'TableLedgerRecordsFields_ConversionCharge_Fragment' };

type TableLedgerRecordsFields_CreditcardBankCharge_Fragment = { __typename?: 'CreditcardBankCharge', id: string, ledger: { __typename: 'Ledger', records: Array<{ __typename?: 'LedgerRecord', id: string, invoiceDate: Date, valueDate: Date, 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?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, creditAmount2?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, debitAmount1?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, debitAmount2?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { __typename?: 'FinancialAmount', formatted: string, raw: number }, localCurrencyCreditAmount2?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null, localCurrencyDebitAmount1: { __typename?: 'FinancialAmount', formatted: string, raw: number }, localCurrencyDebitAmount2?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null }> } & ({ __typename?: 'Ledger', validate: { __typename?: 'LedgerValidation' } & ({ __typename?: 'LedgerValidation', matches: Array<string> } | { __typename?: 'LedgerValidation', matches?: never }) & ({ __typename?: 'LedgerValidation', differences: Array<{ __typename?: 'LedgerRecord', id: string, invoiceDate: Date, valueDate: Date, 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?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, creditAmount2?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, debitAmount1?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, debitAmount2?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { __typename?: 'FinancialAmount', formatted: string, raw: number }, localCurrencyCreditAmount2?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null, localCurrencyDebitAmount1: { __typename?: 'FinancialAmount', formatted: string, raw: number }, localCurrencyDebitAmount2?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null }> } | { __typename?: 'LedgerValidation', differences?: never }) } | { __typename?: 'Ledger', validate?: never }) } & { ' $fragmentName'?: 'TableLedgerRecordsFields_CreditcardBankCharge_Fragment' };

type TableLedgerRecordsFields_DividendCharge_Fragment = { __typename?: 'DividendCharge', id: string, ledger: { __typename: 'Ledger', records: Array<{ __typename?: 'LedgerRecord', id: string, invoiceDate: Date, valueDate: Date, 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?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, creditAmount2?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, debitAmount1?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, debitAmount2?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { __typename?: 'FinancialAmount', formatted: string, raw: number }, localCurrencyCreditAmount2?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null, localCurrencyDebitAmount1: { __typename?: 'FinancialAmount', formatted: string, raw: number }, localCurrencyDebitAmount2?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null }> } & ({ __typename?: 'Ledger', validate: { __typename?: 'LedgerValidation' } & ({ __typename?: 'LedgerValidation', matches: Array<string> } | { __typename?: 'LedgerValidation', matches?: never }) & ({ __typename?: 'LedgerValidation', differences: Array<{ __typename?: 'LedgerRecord', id: string, invoiceDate: Date, valueDate: Date, 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?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, creditAmount2?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, debitAmount1?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, debitAmount2?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { __typename?: 'FinancialAmount', formatted: string, raw: number }, localCurrencyCreditAmount2?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null, localCurrencyDebitAmount1: { __typename?: 'FinancialAmount', formatted: string, raw: number }, localCurrencyDebitAmount2?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null }> } | { __typename?: 'LedgerValidation', differences?: never }) } | { __typename?: 'Ledger', validate?: never }) } & { ' $fragmentName'?: 'TableLedgerRecordsFields_DividendCharge_Fragment' };

type TableLedgerRecordsFields_FinancialCharge_Fragment = { __typename?: 'FinancialCharge', id: string, ledger: { __typename: 'Ledger', records: Array<{ __typename?: 'LedgerRecord', id: string, invoiceDate: Date, valueDate: Date, 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?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, creditAmount2?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, debitAmount1?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, debitAmount2?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { __typename?: 'FinancialAmount', formatted: string, raw: number }, localCurrencyCreditAmount2?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null, localCurrencyDebitAmount1: { __typename?: 'FinancialAmount', formatted: string, raw: number }, localCurrencyDebitAmount2?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null }> } & ({ __typename?: 'Ledger', validate: { __typename?: 'LedgerValidation' } & ({ __typename?: 'LedgerValidation', matches: Array<string> } | { __typename?: 'LedgerValidation', matches?: never }) & ({ __typename?: 'LedgerValidation', differences: Array<{ __typename?: 'LedgerRecord', id: string, invoiceDate: Date, valueDate: Date, 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?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, creditAmount2?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, debitAmount1?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, debitAmount2?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { __typename?: 'FinancialAmount', formatted: string, raw: number }, localCurrencyCreditAmount2?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null, localCurrencyDebitAmount1: { __typename?: 'FinancialAmount', formatted: string, raw: number }, localCurrencyDebitAmount2?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null }> } | { __typename?: 'LedgerValidation', differences?: never }) } | { __typename?: 'Ledger', validate?: never }) } & { ' $fragmentName'?: 'TableLedgerRecordsFields_FinancialCharge_Fragment' };

type TableLedgerRecordsFields_ForeignSecuritiesCharge_Fragment = { __typename?: 'ForeignSecuritiesCharge', id: string, ledger: { __typename: 'Ledger', records: Array<{ __typename?: 'LedgerRecord', id: string, invoiceDate: Date, valueDate: Date, 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?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, creditAmount2?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, debitAmount1?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, debitAmount2?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { __typename?: 'FinancialAmount', formatted: string, raw: number }, localCurrencyCreditAmount2?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null, localCurrencyDebitAmount1: { __typename?: 'FinancialAmount', formatted: string, raw: number }, localCurrencyDebitAmount2?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null }> } & ({ __typename?: 'Ledger', validate: { __typename?: 'LedgerValidation' } & ({ __typename?: 'LedgerValidation', matches: Array<string> } | { __typename?: 'LedgerValidation', matches?: never }) & ({ __typename?: 'LedgerValidation', differences: Array<{ __typename?: 'LedgerRecord', id: string, invoiceDate: Date, valueDate: Date, 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?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, creditAmount2?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, debitAmount1?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, debitAmount2?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { __typename?: 'FinancialAmount', formatted: string, raw: number }, localCurrencyCreditAmount2?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null, localCurrencyDebitAmount1: { __typename?: 'FinancialAmount', formatted: string, raw: number }, localCurrencyDebitAmount2?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null }> } | { __typename?: 'LedgerValidation', differences?: never }) } | { __typename?: 'Ledger', validate?: never }) } & { ' $fragmentName'?: 'TableLedgerRecordsFields_ForeignSecuritiesCharge_Fragment' };

type TableLedgerRecordsFields_InternalTransferCharge_Fragment = { __typename?: 'InternalTransferCharge', id: string, ledger: { __typename: 'Ledger', records: Array<{ __typename?: 'LedgerRecord', id: string, invoiceDate: Date, valueDate: Date, 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?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, creditAmount2?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, debitAmount1?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, debitAmount2?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { __typename?: 'FinancialAmount', formatted: string, raw: number }, localCurrencyCreditAmount2?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null, localCurrencyDebitAmount1: { __typename?: 'FinancialAmount', formatted: string, raw: number }, localCurrencyDebitAmount2?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null }> } & ({ __typename?: 'Ledger', validate: { __typename?: 'LedgerValidation' } & ({ __typename?: 'LedgerValidation', matches: Array<string> } | { __typename?: 'LedgerValidation', matches?: never }) & ({ __typename?: 'LedgerValidation', differences: Array<{ __typename?: 'LedgerRecord', id: string, invoiceDate: Date, valueDate: Date, 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?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, creditAmount2?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, debitAmount1?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, debitAmount2?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { __typename?: 'FinancialAmount', formatted: string, raw: number }, localCurrencyCreditAmount2?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null, localCurrencyDebitAmount1: { __typename?: 'FinancialAmount', formatted: string, raw: number }, localCurrencyDebitAmount2?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null }> } | { __typename?: 'LedgerValidation', differences?: never }) } | { __typename?: 'Ledger', validate?: never }) } & { ' $fragmentName'?: 'TableLedgerRecordsFields_InternalTransferCharge_Fragment' };

type TableLedgerRecordsFields_MonthlyVatCharge_Fragment = { __typename?: 'MonthlyVatCharge', id: string, ledger: { __typename: 'Ledger', records: Array<{ __typename?: 'LedgerRecord', id: string, invoiceDate: Date, valueDate: Date, 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?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, creditAmount2?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, debitAmount1?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, debitAmount2?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { __typename?: 'FinancialAmount', formatted: string, raw: number }, localCurrencyCreditAmount2?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null, localCurrencyDebitAmount1: { __typename?: 'FinancialAmount', formatted: string, raw: number }, localCurrencyDebitAmount2?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null }> } & ({ __typename?: 'Ledger', validate: { __typename?: 'LedgerValidation' } & ({ __typename?: 'LedgerValidation', matches: Array<string> } | { __typename?: 'LedgerValidation', matches?: never }) & ({ __typename?: 'LedgerValidation', differences: Array<{ __typename?: 'LedgerRecord', id: string, invoiceDate: Date, valueDate: Date, 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?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, creditAmount2?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, debitAmount1?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, debitAmount2?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { __typename?: 'FinancialAmount', formatted: string, raw: number }, localCurrencyCreditAmount2?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null, localCurrencyDebitAmount1: { __typename?: 'FinancialAmount', formatted: string, raw: number }, localCurrencyDebitAmount2?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null }> } | { __typename?: 'LedgerValidation', differences?: never }) } | { __typename?: 'Ledger', validate?: never }) } & { ' $fragmentName'?: 'TableLedgerRecordsFields_MonthlyVatCharge_Fragment' };

type TableLedgerRecordsFields_SalaryCharge_Fragment = { __typename?: 'SalaryCharge', id: string, ledger: { __typename: 'Ledger', records: Array<{ __typename?: 'LedgerRecord', id: string, invoiceDate: Date, valueDate: Date, 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?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, creditAmount2?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, debitAmount1?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, debitAmount2?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { __typename?: 'FinancialAmount', formatted: string, raw: number }, localCurrencyCreditAmount2?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null, localCurrencyDebitAmount1: { __typename?: 'FinancialAmount', formatted: string, raw: number }, localCurrencyDebitAmount2?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null }> } & ({ __typename?: 'Ledger', validate: { __typename?: 'LedgerValidation' } & ({ __typename?: 'LedgerValidation', matches: Array<string> } | { __typename?: 'LedgerValidation', matches?: never }) & ({ __typename?: 'LedgerValidation', differences: Array<{ __typename?: 'LedgerRecord', id: string, invoiceDate: Date, valueDate: Date, 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?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, creditAmount2?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, debitAmount1?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, debitAmount2?: { __typename?: 'FinancialAmount', formatted: string, currency: Currency } | null, localCurrencyCreditAmount1: { __typename?: 'FinancialAmount', formatted: string, raw: number }, localCurrencyCreditAmount2?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null, localCurrencyDebitAmount1: { __typename?: 'FinancialAmount', formatted: string, raw: number }, localCurrencyDebitAmount2?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null }> } | { __typename?: 'LedgerValidation', differences?: never }) } | { __typename?: 'Ledger', validate?: never }) } & { ' $fragmentName'?: 'TableLedgerRecordsFields_SalaryCharge_Fragment' };

export type TableLedgerRecordsFieldsFragment = TableLedgerRecordsFields_BankDepositCharge_Fragment | TableLedgerRecordsFields_BusinessTripCharge_Fragment | TableLedgerRecordsFields_CommonCharge_Fragment | TableLedgerRecordsFields_ConversionCharge_Fragment | TableLedgerRecordsFields_CreditcardBankCharge_Fragment | TableLedgerRecordsFields_DividendCharge_Fragment | TableLedgerRecordsFields_FinancialCharge_Fragment | TableLedgerRecordsFields_ForeignSecuritiesCharge_Fragment | TableLedgerRecordsFields_InternalTransferCharge_Fragment | TableLedgerRecordsFields_MonthlyVatCharge_Fragment | TableLedgerRecordsFields_SalaryCharge_Fragment;

export type AccountantApprovalsChargesTableQueryVariables = Exact<{
  page?: InputMaybe<Scalars['Int']['input']>;
  limit?: InputMaybe<Scalars['Int']['input']>;
  filters?: InputMaybe<ChargeFilter>;
}>;


export type AccountantApprovalsChargesTableQuery = { __typename?: 'Query', allCharges: { __typename?: 'PaginatedCharges', nodes: Array<{ __typename?: 'BankDepositCharge', id: string, accountantApproval: AccountantStatus } | { __typename?: 'BusinessTripCharge', id: string, accountantApproval: AccountantStatus } | { __typename?: 'CommonCharge', id: string, accountantApproval: AccountantStatus } | { __typename?: 'ConversionCharge', id: string, accountantApproval: AccountantStatus } | { __typename?: 'CreditcardBankCharge', id: string, accountantApproval: AccountantStatus } | { __typename?: 'DividendCharge', id: string, accountantApproval: AccountantStatus } | { __typename?: 'FinancialCharge', id: string, accountantApproval: AccountantStatus } | { __typename?: 'ForeignSecuritiesCharge', id: string, accountantApproval: AccountantStatus } | { __typename?: 'InternalTransferCharge', id: string, accountantApproval: AccountantStatus } | { __typename?: 'MonthlyVatCharge', id: string, accountantApproval: AccountantStatus } | { __typename?: 'SalaryCharge', id: string, accountantApproval: AccountantStatus }> } };

export type AllContoReportsQueryVariables = Exact<{ [key: string]: never; }>;


export type AllContoReportsQuery = { __typename?: 'Query', allDynamicReports: Array<{ __typename?: 'DynamicReportInfo', id: string, name: string, updated: Date }> };

export type ContoReportQueryVariables = Exact<{
  filters?: InputMaybe<BusinessTransactionsFilter>;
}>;


export type ContoReportQuery = { __typename?: 'Query', businessTransactionsSumFromLedgerRecords: { __typename?: 'BusinessTransactionsSumFromLedgerRecordsSuccessfulResult', businessTransactionsSum: Array<{ __typename?: 'BusinessTransactionSum', business: { __typename?: 'LtdFinancialEntity', id: string, name: string, sortCode?: { __typename?: 'SortCode', id: string, key: number, name?: string | null } | null } | { __typename?: 'PersonalFinancialEntity', id: string, name: string, sortCode?: { __typename?: 'SortCode', id: string, key: number, name?: string | null } | null } | { __typename?: 'TaxCategory', id: string, name: string, sortCode?: { __typename?: 'SortCode', id: string, key: number, name?: string | null } | null }, credit: { __typename?: 'FinancialAmount', formatted: string, raw: number }, debit: { __typename?: 'FinancialAmount', formatted: string, raw: number }, total: { __typename?: 'FinancialAmount', formatted: string, raw: number } }> } | { __typename: 'CommonError' } };

export type TemplateForContoReportQueryVariables = Exact<{
  name: Scalars['String']['input'];
}>;


export type TemplateForContoReportQuery = { __typename?: 'Query', dynamicReport: { __typename?: 'DynamicReportInfo', id: string, name: string, template: Array<{ __typename?: 'DynamicReportNode', id: string, parent: string, text: string, droppable: boolean, data: { __typename?: 'DynamicReportNodeData', descendantSortCodes?: Array<number> | null, descendantFinancialEntities?: Array<string> | null, mergedSortCodes?: Array<number> | null, isOpen: boolean, hebrewText?: string | null } }> } };

export type CorporateTaxRulingComplianceReportQueryVariables = Exact<{
  years: Array<Scalars['Int']['input']> | Scalars['Int']['input'];
}>;


export type CorporateTaxRulingComplianceReportQuery = { __typename?: 'Query', corporateTaxRulingComplianceReport: Array<{ __typename?: 'CorporateTaxRulingComplianceReport', id: string, year: number, totalIncome: { __typename?: 'FinancialAmount', formatted: string, raw: number, currency: Currency }, researchAndDevelopmentExpenses: { __typename?: 'FinancialAmount', formatted: string, raw: number, currency: Currency }, rndRelativeToIncome: (
      { __typename?: 'CorporateTaxRule', rule: string }
      & { ' $fragmentRefs'?: { 'CorporateTaxRulingReportRuleCellFieldsFragment': CorporateTaxRulingReportRuleCellFieldsFragment } }
    ), localDevelopmentExpenses: { __typename?: 'FinancialAmount', formatted: string, raw: number, currency: Currency }, localDevelopmentRelativeToRnd: (
      { __typename?: 'CorporateTaxRule', rule: string }
      & { ' $fragmentRefs'?: { 'CorporateTaxRulingReportRuleCellFieldsFragment': CorporateTaxRulingReportRuleCellFieldsFragment } }
    ), foreignDevelopmentExpenses: { __typename?: 'FinancialAmount', formatted: string, raw: number, currency: Currency }, foreignDevelopmentRelativeToRnd: (
      { __typename?: 'CorporateTaxRule', rule: string }
      & { ' $fragmentRefs'?: { 'CorporateTaxRulingReportRuleCellFieldsFragment': CorporateTaxRulingReportRuleCellFieldsFragment } }
    ), businessTripRndExpenses: { __typename?: 'FinancialAmount', formatted: string, raw: number, currency: Currency } } & ({ __typename?: 'CorporateTaxRulingComplianceReport', differences: { __typename?: 'CorporateTaxRulingComplianceReportDifferences', id: string, totalIncome?: { __typename?: 'FinancialAmount', formatted: string, raw: number, currency: Currency } | null, researchAndDevelopmentExpenses?: { __typename?: 'FinancialAmount', formatted: string, raw: number, currency: Currency } | null, rndRelativeToIncome?: (
        { __typename?: 'CorporateTaxRule' }
        & { ' $fragmentRefs'?: { 'CorporateTaxRulingReportRuleCellFieldsFragment': CorporateTaxRulingReportRuleCellFieldsFragment } }
      ) | null, localDevelopmentExpenses?: { __typename?: 'FinancialAmount', formatted: string, raw: number, currency: Currency } | null, localDevelopmentRelativeToRnd?: (
        { __typename?: 'CorporateTaxRule' }
        & { ' $fragmentRefs'?: { 'CorporateTaxRulingReportRuleCellFieldsFragment': CorporateTaxRulingReportRuleCellFieldsFragment } }
      ) | null, foreignDevelopmentExpenses?: { __typename?: 'FinancialAmount', formatted: string, raw: number, currency: Currency } | null, foreignDevelopmentRelativeToRnd?: (
        { __typename?: 'CorporateTaxRule' }
        & { ' $fragmentRefs'?: { 'CorporateTaxRulingReportRuleCellFieldsFragment': CorporateTaxRulingReportRuleCellFieldsFragment } }
      ) | null, businessTripRndExpenses?: { __typename?: 'FinancialAmount', formatted: string, raw: number, currency: Currency } | null } } | { __typename?: 'CorporateTaxRulingComplianceReport', differences?: never })> };

export type CorporateTaxRulingReportRuleCellFieldsFragment = { __typename?: 'CorporateTaxRule', id: string, rule: string, isCompliant: boolean, percentage: { __typename?: 'CorporateTaxRulePercentage', formatted: string } } & { ' $fragmentName'?: 'CorporateTaxRulingReportRuleCellFieldsFragment' };

export type ProfitAndLossReportQueryVariables = Exact<{
  reportYear: Scalars['Int']['input'];
  referenceYears: Array<Scalars['Int']['input']> | Scalars['Int']['input'];
}>;


export type ProfitAndLossReportQuery = { __typename?: 'Query', profitAndLossReport: { __typename?: 'ProfitAndLossReport', id: string, report: { __typename?: 'ProfitAndLossReportYear', id: string, year: number, revenue: (
        { __typename?: 'ReportCommentary', amount: { __typename?: 'FinancialAmount', formatted: string } }
        & { ' $fragmentRefs'?: { 'ReportCommentaryTableFieldsFragment': ReportCommentaryTableFieldsFragment } }
      ), costOfSales: (
        { __typename?: 'ReportCommentary', amount: { __typename?: 'FinancialAmount', formatted: string } }
        & { ' $fragmentRefs'?: { 'ReportCommentaryTableFieldsFragment': ReportCommentaryTableFieldsFragment } }
      ), grossProfit: { __typename?: 'FinancialAmount', formatted: string }, researchAndDevelopmentExpenses: (
        { __typename?: 'ReportCommentary', amount: { __typename?: 'FinancialAmount', formatted: string } }
        & { ' $fragmentRefs'?: { 'ReportCommentaryTableFieldsFragment': ReportCommentaryTableFieldsFragment } }
      ), marketingExpenses: (
        { __typename?: 'ReportCommentary', amount: { __typename?: 'FinancialAmount', formatted: string } }
        & { ' $fragmentRefs'?: { 'ReportCommentaryTableFieldsFragment': ReportCommentaryTableFieldsFragment } }
      ), managementAndGeneralExpenses: (
        { __typename?: 'ReportCommentary', amount: { __typename?: 'FinancialAmount', formatted: string } }
        & { ' $fragmentRefs'?: { 'ReportCommentaryTableFieldsFragment': ReportCommentaryTableFieldsFragment } }
      ), operatingProfit: { __typename?: 'FinancialAmount', formatted: string }, financialExpenses: (
        { __typename?: 'ReportCommentary', amount: { __typename?: 'FinancialAmount', formatted: string } }
        & { ' $fragmentRefs'?: { 'ReportCommentaryTableFieldsFragment': ReportCommentaryTableFieldsFragment } }
      ), otherIncome: (
        { __typename?: 'ReportCommentary', amount: { __typename?: 'FinancialAmount', formatted: string } }
        & { ' $fragmentRefs'?: { 'ReportCommentaryTableFieldsFragment': ReportCommentaryTableFieldsFragment } }
      ), profitBeforeTax: { __typename?: 'FinancialAmount', formatted: string }, tax: { __typename?: 'FinancialAmount', formatted: string }, netProfit: { __typename?: 'FinancialAmount', formatted: string } }, reference: Array<{ __typename?: 'ProfitAndLossReportYear', id: string, year: number, revenue: { __typename?: 'ReportCommentary', amount: { __typename?: 'FinancialAmount', formatted: string } }, costOfSales: { __typename?: 'ReportCommentary', amount: { __typename?: 'FinancialAmount', formatted: string } }, grossProfit: { __typename?: 'FinancialAmount', formatted: string }, researchAndDevelopmentExpenses: { __typename?: 'ReportCommentary', amount: { __typename?: 'FinancialAmount', formatted: string } }, marketingExpenses: { __typename?: 'ReportCommentary', amount: { __typename?: 'FinancialAmount', formatted: string } }, managementAndGeneralExpenses: { __typename?: 'ReportCommentary', amount: { __typename?: 'FinancialAmount', formatted: string } }, operatingProfit: { __typename?: 'FinancialAmount', formatted: string }, financialExpenses: { __typename?: 'ReportCommentary', amount: { __typename?: 'FinancialAmount', formatted: string } }, otherIncome: { __typename?: 'ReportCommentary', amount: { __typename?: 'FinancialAmount', formatted: string } }, profitBeforeTax: { __typename?: 'FinancialAmount', formatted: string }, tax: { __typename?: 'FinancialAmount', formatted: string }, netProfit: { __typename?: 'FinancialAmount', formatted: string } }> } };

export type ReportCommentaryTableFieldsFragment = { __typename?: 'ReportCommentary', records: Array<{ __typename?: 'ReportCommentaryRecord', sortCode: { __typename?: 'SortCode', id: string, key: number, name?: string | null }, amount: { __typename?: 'FinancialAmount', formatted: string }, records: Array<(
      { __typename?: 'ReportCommentarySubRecord' }
      & { ' $fragmentRefs'?: { 'ReportSubCommentaryTableFieldsFragment': ReportSubCommentaryTableFieldsFragment } }
    )> }> } & { ' $fragmentName'?: 'ReportCommentaryTableFieldsFragment' };

export type ReportSubCommentaryTableFieldsFragment = { __typename?: 'ReportCommentarySubRecord', financialEntity: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string }, amount: { __typename?: 'FinancialAmount', formatted: string } } & { ' $fragmentName'?: 'ReportSubCommentaryTableFieldsFragment' };

export type TaxReportQueryVariables = Exact<{
  reportYear: Scalars['Int']['input'];
  referenceYears: Array<Scalars['Int']['input']> | Scalars['Int']['input'];
}>;


export type TaxReportQuery = { __typename?: 'Query', taxReport: { __typename?: 'TaxReport', id: string, report: { __typename?: 'TaxReportYear', id: string, year: number, taxRate: number, specialTaxRate: number, profitBeforeTax: (
        { __typename?: 'ReportCommentary', amount: { __typename?: 'FinancialAmount', formatted: string } }
        & { ' $fragmentRefs'?: { 'ReportCommentaryTableFieldsFragment': ReportCommentaryTableFieldsFragment } }
      ), researchAndDevelopmentExpensesByRecords: (
        { __typename?: 'ReportCommentary', amount: { __typename?: 'FinancialAmount', formatted: string } }
        & { ' $fragmentRefs'?: { 'ReportCommentaryTableFieldsFragment': ReportCommentaryTableFieldsFragment } }
      ), researchAndDevelopmentExpensesForTax: { __typename?: 'FinancialAmount', formatted: string }, fines: (
        { __typename?: 'ReportCommentary', amount: { __typename?: 'FinancialAmount', formatted: string } }
        & { ' $fragmentRefs'?: { 'ReportCommentaryTableFieldsFragment': ReportCommentaryTableFieldsFragment } }
      ), untaxableGifts: (
        { __typename?: 'ReportCommentary', amount: { __typename?: 'FinancialAmount', formatted: string } }
        & { ' $fragmentRefs'?: { 'ReportCommentaryTableFieldsFragment': ReportCommentaryTableFieldsFragment } }
      ), businessTripsExcessExpensesAmount: { __typename?: 'FinancialAmount', formatted: string }, salaryExcessExpensesAmount: { __typename?: 'FinancialAmount', formatted: string }, reserves: (
        { __typename?: 'ReportCommentary', amount: { __typename?: 'FinancialAmount', formatted: string } }
        & { ' $fragmentRefs'?: { 'ReportCommentaryTableFieldsFragment': ReportCommentaryTableFieldsFragment } }
      ), nontaxableLinkage: (
        { __typename?: 'ReportCommentary', amount: { __typename?: 'FinancialAmount', formatted: string } }
        & { ' $fragmentRefs'?: { 'ReportCommentaryTableFieldsFragment': ReportCommentaryTableFieldsFragment } }
      ), taxableIncome: { __typename?: 'FinancialAmount', formatted: string }, specialTaxableIncome: (
        { __typename?: 'ReportCommentary', amount: { __typename?: 'FinancialAmount', formatted: string } }
        & { ' $fragmentRefs'?: { 'ReportCommentaryTableFieldsFragment': ReportCommentaryTableFieldsFragment } }
      ), annualTaxExpense: { __typename?: 'FinancialAmount', formatted: string } }, reference: Array<{ __typename?: 'TaxReportYear', id: string, year: number, taxRate: number, specialTaxRate: number, profitBeforeTax: { __typename?: 'ReportCommentary', amount: { __typename?: 'FinancialAmount', formatted: string } }, researchAndDevelopmentExpensesByRecords: { __typename?: 'ReportCommentary', amount: { __typename?: 'FinancialAmount', formatted: string } }, researchAndDevelopmentExpensesForTax: { __typename?: 'FinancialAmount', formatted: string }, fines: { __typename?: 'ReportCommentary', amount: { __typename?: 'FinancialAmount', formatted: string } }, untaxableGifts: { __typename?: 'ReportCommentary', amount: { __typename?: 'FinancialAmount', formatted: string } }, businessTripsExcessExpensesAmount: { __typename?: 'FinancialAmount', formatted: string }, salaryExcessExpensesAmount: { __typename?: 'FinancialAmount', formatted: string }, reserves: { __typename?: 'ReportCommentary', amount: { __typename?: 'FinancialAmount', formatted: string } }, nontaxableLinkage: { __typename?: 'ReportCommentary', amount: { __typename?: 'FinancialAmount', formatted: string } }, taxableIncome: { __typename?: 'FinancialAmount', formatted: string }, specialTaxableIncome: (
        { __typename?: 'ReportCommentary', amount: { __typename?: 'FinancialAmount', formatted: string } }
        & { ' $fragmentRefs'?: { 'ReportCommentaryTableFieldsFragment': ReportCommentaryTableFieldsFragment } }
      ), annualTaxExpense: { __typename?: 'FinancialAmount', formatted: string } }> } };

export type TrialBalanceReportQueryVariables = Exact<{
  filters?: InputMaybe<BusinessTransactionsFilter>;
}>;


export type TrialBalanceReportQuery = { __typename?: 'Query', businessTransactionsSumFromLedgerRecords: (
    { __typename?: 'BusinessTransactionsSumFromLedgerRecordsSuccessfulResult' }
    & { ' $fragmentRefs'?: { 'TrialBalanceTableFieldsFragment': TrialBalanceTableFieldsFragment } }
  ) | { __typename: 'CommonError' } };

export type TrialBalanceTableFieldsFragment = { __typename?: 'BusinessTransactionsSumFromLedgerRecordsSuccessfulResult', businessTransactionsSum: Array<{ __typename?: 'BusinessTransactionSum', business: { __typename?: 'LtdFinancialEntity', id: string, name: string, sortCode?: { __typename?: 'SortCode', id: string, key: number, name?: string | null } | null } | { __typename?: 'PersonalFinancialEntity', id: string, name: string, sortCode?: { __typename?: 'SortCode', id: string, key: number, name?: string | null } | null } | { __typename?: 'TaxCategory', id: string, name: string, sortCode?: { __typename?: 'SortCode', id: string, key: number, name?: string | null } | null }, credit: { __typename?: 'FinancialAmount', formatted: string, raw: number }, debit: { __typename?: 'FinancialAmount', formatted: string, raw: number }, total: { __typename?: 'FinancialAmount', formatted: string, raw: number } }> } & { ' $fragmentName'?: 'TrialBalanceTableFieldsFragment' };

export type ValidatePcn874ReportsQueryVariables = Exact<{
  businessId?: InputMaybe<Scalars['UUID']['input']>;
  fromMonthDate: Scalars['TimelessDate']['input'];
  toMonthDate: Scalars['TimelessDate']['input'];
}>;


export type ValidatePcn874ReportsQuery = { __typename?: 'Query', pcnByDate: Array<{ __typename?: 'Pcn874Records', id: string, date: TimelessDateString, content: string, diffContent?: string | null, business: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } }> };

export type VatReportBusinessTripsFieldsFragment = { __typename?: 'VatReportResult', businessTrips: Array<(
    { __typename?: 'BankDepositCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableFields_BankDepositCharge_Fragment': ChargesTableFields_BankDepositCharge_Fragment } }
  ) | (
    { __typename?: 'BusinessTripCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableFields_BusinessTripCharge_Fragment': ChargesTableFields_BusinessTripCharge_Fragment } }
  ) | (
    { __typename?: 'CommonCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableFields_CommonCharge_Fragment': ChargesTableFields_CommonCharge_Fragment } }
  ) | (
    { __typename?: 'ConversionCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableFields_ConversionCharge_Fragment': ChargesTableFields_ConversionCharge_Fragment } }
  ) | (
    { __typename?: 'CreditcardBankCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableFields_CreditcardBankCharge_Fragment': ChargesTableFields_CreditcardBankCharge_Fragment } }
  ) | (
    { __typename?: 'DividendCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableFields_DividendCharge_Fragment': ChargesTableFields_DividendCharge_Fragment } }
  ) | (
    { __typename?: 'FinancialCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableFields_FinancialCharge_Fragment': ChargesTableFields_FinancialCharge_Fragment } }
  ) | (
    { __typename?: 'ForeignSecuritiesCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableFields_ForeignSecuritiesCharge_Fragment': ChargesTableFields_ForeignSecuritiesCharge_Fragment } }
  ) | (
    { __typename?: 'InternalTransferCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableFields_InternalTransferCharge_Fragment': ChargesTableFields_InternalTransferCharge_Fragment } }
  ) | (
    { __typename?: 'MonthlyVatCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableFields_MonthlyVatCharge_Fragment': ChargesTableFields_MonthlyVatCharge_Fragment } }
  ) | (
    { __typename?: 'SalaryCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableFields_SalaryCharge_Fragment': ChargesTableFields_SalaryCharge_Fragment } }
  )> } & { ' $fragmentName'?: 'VatReportBusinessTripsFieldsFragment' };

export type VatReportAccountantApprovalFieldsFragment = { __typename?: 'VatReportRecord', chargeId: string, chargeAccountantStatus?: AccountantStatus | null } & { ' $fragmentName'?: 'VatReportAccountantApprovalFieldsFragment' };

export type VatReportExpensesRowFieldsFragment = (
  { __typename?: 'VatReportRecord', vatNumber?: string | null, image?: string | null, documentSerial?: string | null, documentDate?: TimelessDateString | null, chargeDate?: TimelessDateString | null, chargeId: string, business?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, amount: { __typename?: 'FinancialAmount', formatted: string }, localAmount?: { __typename?: 'FinancialAmount', formatted: string } | null, localVat?: { __typename?: 'FinancialAmount', formatted: string } | null, foreignVatAfterDeduction?: { __typename?: 'FinancialAmount', formatted: string } | null, localVatAfterDeduction?: { __typename?: 'FinancialAmount', formatted: string } | null, roundedLocalVatAfterDeduction?: { __typename?: 'FinancialIntAmount', formatted: string } | null, taxReducedLocalAmount?: { __typename?: 'FinancialIntAmount', formatted: string } | null }
  & { ' $fragmentRefs'?: { 'VatReportAccountantApprovalFieldsFragment': VatReportAccountantApprovalFieldsFragment } }
) & { ' $fragmentName'?: 'VatReportExpensesRowFieldsFragment' };

export type VatReportExpensesFieldsFragment = { __typename?: 'VatReportResult', expenses: Array<(
    { __typename?: 'VatReportRecord', roundedLocalVatAfterDeduction?: { __typename?: 'FinancialIntAmount', raw: number } | null, taxReducedLocalAmount?: { __typename?: 'FinancialIntAmount', raw: number } | null }
    & { ' $fragmentRefs'?: { 'VatReportExpensesRowFieldsFragment': VatReportExpensesRowFieldsFragment } }
  )> } & { ' $fragmentName'?: 'VatReportExpensesFieldsFragment' };

export type VatReportIncomeRowFieldsFragment = (
  { __typename?: 'VatReportRecord', chargeId: string, vatNumber?: string | null, image?: string | null, documentSerial?: string | null, documentDate?: TimelessDateString | null, chargeDate?: TimelessDateString | null, business?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, taxReducedForeignAmount?: { __typename?: 'FinancialIntAmount', formatted: string } | null, taxReducedLocalAmount?: { __typename?: 'FinancialIntAmount', formatted: string } | null }
  & { ' $fragmentRefs'?: { 'VatReportAccountantApprovalFieldsFragment': VatReportAccountantApprovalFieldsFragment } }
) & { ' $fragmentName'?: 'VatReportIncomeRowFieldsFragment' };

export type VatReportIncomeFieldsFragment = { __typename?: 'VatReportResult', income: Array<(
    { __typename?: 'VatReportRecord', taxReducedLocalAmount?: { __typename?: 'FinancialIntAmount', raw: number } | null }
    & { ' $fragmentRefs'?: { 'VatReportIncomeRowFieldsFragment': VatReportIncomeRowFieldsFragment } }
  )> } & { ' $fragmentName'?: 'VatReportIncomeFieldsFragment' };

export type VatMonthlyReportQueryVariables = Exact<{
  filters?: InputMaybe<VatReportFilter>;
}>;


export type VatMonthlyReportQuery = { __typename?: 'Query', vatReport: (
    { __typename?: 'VatReportResult' }
    & { ' $fragmentRefs'?: { 'VatReportIncomeFieldsFragment': VatReportIncomeFieldsFragment;'VatReportExpensesFieldsFragment': VatReportExpensesFieldsFragment;'VatReportMissingInfoFieldsFragment': VatReportMissingInfoFieldsFragment;'VatReportMiscTableFieldsFragment': VatReportMiscTableFieldsFragment;'VatReportBusinessTripsFieldsFragment': VatReportBusinessTripsFieldsFragment } }
  ) };

export type VatReportMiscTableFieldsFragment = { __typename?: 'VatReportResult', differentMonthDoc: Array<(
    { __typename?: 'BankDepositCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableFields_BankDepositCharge_Fragment': ChargesTableFields_BankDepositCharge_Fragment } }
  ) | (
    { __typename?: 'BusinessTripCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableFields_BusinessTripCharge_Fragment': ChargesTableFields_BusinessTripCharge_Fragment } }
  ) | (
    { __typename?: 'CommonCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableFields_CommonCharge_Fragment': ChargesTableFields_CommonCharge_Fragment } }
  ) | (
    { __typename?: 'ConversionCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableFields_ConversionCharge_Fragment': ChargesTableFields_ConversionCharge_Fragment } }
  ) | (
    { __typename?: 'CreditcardBankCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableFields_CreditcardBankCharge_Fragment': ChargesTableFields_CreditcardBankCharge_Fragment } }
  ) | (
    { __typename?: 'DividendCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableFields_DividendCharge_Fragment': ChargesTableFields_DividendCharge_Fragment } }
  ) | (
    { __typename?: 'FinancialCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableFields_FinancialCharge_Fragment': ChargesTableFields_FinancialCharge_Fragment } }
  ) | (
    { __typename?: 'ForeignSecuritiesCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableFields_ForeignSecuritiesCharge_Fragment': ChargesTableFields_ForeignSecuritiesCharge_Fragment } }
  ) | (
    { __typename?: 'InternalTransferCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableFields_InternalTransferCharge_Fragment': ChargesTableFields_InternalTransferCharge_Fragment } }
  ) | (
    { __typename?: 'MonthlyVatCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableFields_MonthlyVatCharge_Fragment': ChargesTableFields_MonthlyVatCharge_Fragment } }
  ) | (
    { __typename?: 'SalaryCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableFields_SalaryCharge_Fragment': ChargesTableFields_SalaryCharge_Fragment } }
  )> } & { ' $fragmentName'?: 'VatReportMiscTableFieldsFragment' };

export type VatReportMissingInfoFieldsFragment = { __typename?: 'VatReportResult', missingInfo: Array<(
    { __typename?: 'BankDepositCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableFields_BankDepositCharge_Fragment': ChargesTableFields_BankDepositCharge_Fragment } }
  ) | (
    { __typename?: 'BusinessTripCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableFields_BusinessTripCharge_Fragment': ChargesTableFields_BusinessTripCharge_Fragment } }
  ) | (
    { __typename?: 'CommonCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableFields_CommonCharge_Fragment': ChargesTableFields_CommonCharge_Fragment } }
  ) | (
    { __typename?: 'ConversionCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableFields_ConversionCharge_Fragment': ChargesTableFields_ConversionCharge_Fragment } }
  ) | (
    { __typename?: 'CreditcardBankCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableFields_CreditcardBankCharge_Fragment': ChargesTableFields_CreditcardBankCharge_Fragment } }
  ) | (
    { __typename?: 'DividendCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableFields_DividendCharge_Fragment': ChargesTableFields_DividendCharge_Fragment } }
  ) | (
    { __typename?: 'FinancialCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableFields_FinancialCharge_Fragment': ChargesTableFields_FinancialCharge_Fragment } }
  ) | (
    { __typename?: 'ForeignSecuritiesCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableFields_ForeignSecuritiesCharge_Fragment': ChargesTableFields_ForeignSecuritiesCharge_Fragment } }
  ) | (
    { __typename?: 'InternalTransferCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableFields_InternalTransferCharge_Fragment': ChargesTableFields_InternalTransferCharge_Fragment } }
  ) | (
    { __typename?: 'MonthlyVatCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableFields_MonthlyVatCharge_Fragment': ChargesTableFields_MonthlyVatCharge_Fragment } }
  ) | (
    { __typename?: 'SalaryCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableFields_SalaryCharge_Fragment': ChargesTableFields_SalaryCharge_Fragment } }
  )> } & { ' $fragmentName'?: 'VatReportMissingInfoFieldsFragment' };

export type GeneratePcnQueryVariables = Exact<{
  monthDate: Scalars['TimelessDate']['input'];
  financialEntityId: Scalars['UUID']['input'];
}>;


export type GeneratePcnQuery = { __typename?: 'Query', pcnFile: { __typename?: 'PCNFileResult', reportContent: string, fileName: string } };

export type LedgerCsvFieldsFragment = { __typename?: 'YearlyLedgerReport', id: string, year: number, financialEntitiesInfo: Array<{ __typename?: 'YearlyLedgerReportFinancialEntityInfo', entity: { __typename?: 'LtdFinancialEntity', id: string, name: string, sortCode?: { __typename?: 'SortCode', id: string, key: number } | null } | { __typename?: 'PersonalFinancialEntity', id: string, name: string, sortCode?: { __typename?: 'SortCode', id: string, key: number } | null } | { __typename?: 'TaxCategory', id: string, name: string, sortCode?: { __typename?: 'SortCode', id: string, key: number } | null }, openingBalance: { __typename?: 'FinancialAmount', raw: number }, totalCredit: { __typename?: 'FinancialAmount', raw: number }, totalDebit: { __typename?: 'FinancialAmount', raw: number }, closingBalance: { __typename?: 'FinancialAmount', raw: number }, records: Array<{ __typename?: 'SingleSidedLedgerRecord', id: string, invoiceDate: Date, valueDate: Date, description?: string | null, reference?: string | null, balance: number, amount: { __typename?: 'FinancialAmount', raw: number, formatted: string }, counterParty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null }> }> } & { ' $fragmentName'?: 'LedgerCsvFieldsFragment' };

export type YearlyLedgerQueryVariables = Exact<{
  year: Scalars['Int']['input'];
}>;


export type YearlyLedgerQuery = { __typename?: 'Query', yearlyLedgerReport: (
    { __typename?: 'YearlyLedgerReport', id: string, year: number, financialEntitiesInfo: Array<{ __typename?: 'YearlyLedgerReportFinancialEntityInfo', entity: { __typename?: 'LtdFinancialEntity', id: string, name: string, sortCode?: { __typename?: 'SortCode', id: string, key: number } | null } | { __typename?: 'PersonalFinancialEntity', id: string, name: string, sortCode?: { __typename?: 'SortCode', id: string, key: number } | null } | { __typename?: 'TaxCategory', id: string, name: string, sortCode?: { __typename?: 'SortCode', id: string, key: number } | null }, openingBalance: { __typename?: 'FinancialAmount', raw: number }, totalCredit: { __typename?: 'FinancialAmount', raw: number }, totalDebit: { __typename?: 'FinancialAmount', raw: number }, closingBalance: { __typename?: 'FinancialAmount', raw: number }, records: Array<{ __typename?: 'SingleSidedLedgerRecord', id: string, invoiceDate: Date, valueDate: Date, description?: string | null, reference?: string | null, balance: number, amount: { __typename?: 'FinancialAmount', raw: number, formatted: string }, counterParty?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null }> }> }
    & { ' $fragmentRefs'?: { 'LedgerCsvFieldsFragment': LedgerCsvFieldsFragment } }
  ) };

export type SalaryScreenRecordsQueryVariables = Exact<{
  fromDate: Scalars['TimelessDate']['input'];
  toDate: Scalars['TimelessDate']['input'];
  employeeIDs?: InputMaybe<Array<Scalars['UUID']['input']> | Scalars['UUID']['input']>;
}>;


export type SalaryScreenRecordsQuery = { __typename?: 'Query', salaryRecordsByDates: Array<(
    { __typename?: 'Salary', month: string, employee?: { __typename?: 'LtdFinancialEntity', id: string } | null }
    & { ' $fragmentRefs'?: { 'SalariesTableFieldsFragment': SalariesTableFieldsFragment } }
  )> };

export type SalariesRecordEmployeeFieldsFragment = { __typename?: 'Salary', month: string, employee?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | null } & { ' $fragmentName'?: 'SalariesRecordEmployeeFieldsFragment' };

export type SalariesRecordFundsFieldsFragment = { __typename?: 'Salary', month: string, pensionEmployeePercentage?: number | null, pensionEmployerPercentage?: number | null, compensationsPercentage?: number | null, trainingFundEmployeePercentage?: number | null, trainingFundEmployerPercentage?: number | null, employee?: { __typename?: 'LtdFinancialEntity', id: string } | null, pensionFund?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | null, pensionEmployeeAmount?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null, pensionEmployerAmount?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null, compensationsAmount?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null, trainingFund?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | null, trainingFundEmployeeAmount?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null, trainingFundEmployerAmount?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null } & { ' $fragmentName'?: 'SalariesRecordFundsFieldsFragment' };

export type SalariesRecordInsurancesAndTaxesFieldsFragment = { __typename?: 'Salary', month: string, employee?: { __typename?: 'LtdFinancialEntity', id: string } | null, healthInsuranceAmount?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null, socialSecurityEmployeeAmount?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null, socialSecurityEmployerAmount?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null, incomeTaxAmount?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null, notionalExpense?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null } & { ' $fragmentName'?: 'SalariesRecordInsurancesAndTaxesFieldsFragment' };

export type SalariesRecordMainSalaryFieldsFragment = { __typename?: 'Salary', month: string, employee?: { __typename?: 'LtdFinancialEntity', id: string } | null, baseAmount?: { __typename?: 'FinancialAmount', formatted: string } | null, directAmount: { __typename?: 'FinancialAmount', formatted: string }, globalAdditionalHoursAmount?: { __typename?: 'FinancialAmount', formatted: string } | null, bonus?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null, gift?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null, recovery?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null, vacationTakeout?: { __typename?: 'FinancialAmount', formatted: string, raw: number } | null } & { ' $fragmentName'?: 'SalariesRecordMainSalaryFieldsFragment' };

export type SalariesRecordWorkFrameFieldsFragment = { __typename?: 'Salary', month: string, workDays?: number | null, employee?: { __typename?: 'LtdFinancialEntity', id: string } | null, vacationDays?: { __typename?: 'VacationDays', added?: number | null, taken?: number | null, balance?: number | null } | null, sicknessDays?: { __typename?: 'SicknessDays', balance?: number | null } | null } & { ' $fragmentName'?: 'SalariesRecordWorkFrameFieldsFragment' };

export type SalariesMonthFieldsFragment = (
  { __typename?: 'Salary', month: string, employee?: { __typename?: 'LtdFinancialEntity', id: string } | null }
  & { ' $fragmentRefs'?: { 'SalariesRecordFieldsFragment': SalariesRecordFieldsFragment } }
) & { ' $fragmentName'?: 'SalariesMonthFieldsFragment' };

export type SalariesTableFieldsFragment = (
  { __typename?: 'Salary', month: string, employee?: { __typename?: 'LtdFinancialEntity', id: string } | null }
  & { ' $fragmentRefs'?: { 'SalariesMonthFieldsFragment': SalariesMonthFieldsFragment } }
) & { ' $fragmentName'?: 'SalariesTableFieldsFragment' };

export type SalariesRecordFieldsFragment = (
  { __typename?: 'Salary', month: string, employee?: { __typename?: 'LtdFinancialEntity', id: string } | null }
  & { ' $fragmentRefs'?: { 'SalariesRecordEmployeeFieldsFragment': SalariesRecordEmployeeFieldsFragment;'SalariesRecordMainSalaryFieldsFragment': SalariesRecordMainSalaryFieldsFragment;'SalariesRecordFundsFieldsFragment': SalariesRecordFundsFieldsFragment;'SalariesRecordInsurancesAndTaxesFieldsFragment': SalariesRecordInsurancesAndTaxesFieldsFragment;'SalariesRecordWorkFrameFieldsFragment': SalariesRecordWorkFrameFieldsFragment } }
) & { ' $fragmentName'?: 'SalariesRecordFieldsFragment' };

export type AllChargesQueryVariables = Exact<{
  page?: InputMaybe<Scalars['Int']['input']>;
  limit?: InputMaybe<Scalars['Int']['input']>;
  filters?: InputMaybe<ChargeFilter>;
}>;


export type AllChargesQuery = { __typename?: 'Query', allCharges: { __typename?: 'PaginatedCharges', nodes: Array<(
      { __typename?: 'BankDepositCharge', id: string }
      & { ' $fragmentRefs'?: { 'ChargesTableFields_BankDepositCharge_Fragment': ChargesTableFields_BankDepositCharge_Fragment } }
    ) | (
      { __typename?: 'BusinessTripCharge', id: string }
      & { ' $fragmentRefs'?: { 'ChargesTableFields_BusinessTripCharge_Fragment': ChargesTableFields_BusinessTripCharge_Fragment } }
    ) | (
      { __typename?: 'CommonCharge', id: string }
      & { ' $fragmentRefs'?: { 'ChargesTableFields_CommonCharge_Fragment': ChargesTableFields_CommonCharge_Fragment } }
    ) | (
      { __typename?: 'ConversionCharge', id: string }
      & { ' $fragmentRefs'?: { 'ChargesTableFields_ConversionCharge_Fragment': ChargesTableFields_ConversionCharge_Fragment } }
    ) | (
      { __typename?: 'CreditcardBankCharge', id: string }
      & { ' $fragmentRefs'?: { 'ChargesTableFields_CreditcardBankCharge_Fragment': ChargesTableFields_CreditcardBankCharge_Fragment } }
    ) | (
      { __typename?: 'DividendCharge', id: string }
      & { ' $fragmentRefs'?: { 'ChargesTableFields_DividendCharge_Fragment': ChargesTableFields_DividendCharge_Fragment } }
    ) | (
      { __typename?: 'FinancialCharge', id: string }
      & { ' $fragmentRefs'?: { 'ChargesTableFields_FinancialCharge_Fragment': ChargesTableFields_FinancialCharge_Fragment } }
    ) | (
      { __typename?: 'ForeignSecuritiesCharge', id: string }
      & { ' $fragmentRefs'?: { 'ChargesTableFields_ForeignSecuritiesCharge_Fragment': ChargesTableFields_ForeignSecuritiesCharge_Fragment } }
    ) | (
      { __typename?: 'InternalTransferCharge', id: string }
      & { ' $fragmentRefs'?: { 'ChargesTableFields_InternalTransferCharge_Fragment': ChargesTableFields_InternalTransferCharge_Fragment } }
    ) | (
      { __typename?: 'MonthlyVatCharge', id: string }
      & { ' $fragmentRefs'?: { 'ChargesTableFields_MonthlyVatCharge_Fragment': ChargesTableFields_MonthlyVatCharge_Fragment } }
    ) | (
      { __typename?: 'SalaryCharge', id: string }
      & { ' $fragmentRefs'?: { 'ChargesTableFields_SalaryCharge_Fragment': ChargesTableFields_SalaryCharge_Fragment } }
    )>, pageInfo: { __typename?: 'PageInfo', totalPages: number } } };

export type ChargeScreenQueryVariables = Exact<{
  chargeId: Scalars['UUID']['input'];
}>;


export type ChargeScreenQuery = { __typename?: 'Query', charge: (
    { __typename?: 'BankDepositCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableFields_BankDepositCharge_Fragment': ChargesTableFields_BankDepositCharge_Fragment } }
  ) | (
    { __typename?: 'BusinessTripCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableFields_BusinessTripCharge_Fragment': ChargesTableFields_BusinessTripCharge_Fragment } }
  ) | (
    { __typename?: 'CommonCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableFields_CommonCharge_Fragment': ChargesTableFields_CommonCharge_Fragment } }
  ) | (
    { __typename?: 'ConversionCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableFields_ConversionCharge_Fragment': ChargesTableFields_ConversionCharge_Fragment } }
  ) | (
    { __typename?: 'CreditcardBankCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableFields_CreditcardBankCharge_Fragment': ChargesTableFields_CreditcardBankCharge_Fragment } }
  ) | (
    { __typename?: 'DividendCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableFields_DividendCharge_Fragment': ChargesTableFields_DividendCharge_Fragment } }
  ) | (
    { __typename?: 'FinancialCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableFields_FinancialCharge_Fragment': ChargesTableFields_FinancialCharge_Fragment } }
  ) | (
    { __typename?: 'ForeignSecuritiesCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableFields_ForeignSecuritiesCharge_Fragment': ChargesTableFields_ForeignSecuritiesCharge_Fragment } }
  ) | (
    { __typename?: 'InternalTransferCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableFields_InternalTransferCharge_Fragment': ChargesTableFields_InternalTransferCharge_Fragment } }
  ) | (
    { __typename?: 'MonthlyVatCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableFields_MonthlyVatCharge_Fragment': ChargesTableFields_MonthlyVatCharge_Fragment } }
  ) | (
    { __typename?: 'SalaryCharge', id: string }
    & { ' $fragmentRefs'?: { 'ChargesTableFields_SalaryCharge_Fragment': ChargesTableFields_SalaryCharge_Fragment } }
  ) };

export type MissingInfoChargesQueryVariables = Exact<{
  page?: InputMaybe<Scalars['Int']['input']>;
  limit?: InputMaybe<Scalars['Int']['input']>;
}>;


export type MissingInfoChargesQuery = { __typename?: 'Query', chargesWithMissingRequiredInfo: { __typename?: 'PaginatedCharges', nodes: Array<(
      { __typename?: 'BankDepositCharge', id: string }
      & { ' $fragmentRefs'?: { 'ChargesTableFields_BankDepositCharge_Fragment': ChargesTableFields_BankDepositCharge_Fragment } }
    ) | (
      { __typename?: 'BusinessTripCharge', id: string }
      & { ' $fragmentRefs'?: { 'ChargesTableFields_BusinessTripCharge_Fragment': ChargesTableFields_BusinessTripCharge_Fragment } }
    ) | (
      { __typename?: 'CommonCharge', id: string }
      & { ' $fragmentRefs'?: { 'ChargesTableFields_CommonCharge_Fragment': ChargesTableFields_CommonCharge_Fragment } }
    ) | (
      { __typename?: 'ConversionCharge', id: string }
      & { ' $fragmentRefs'?: { 'ChargesTableFields_ConversionCharge_Fragment': ChargesTableFields_ConversionCharge_Fragment } }
    ) | (
      { __typename?: 'CreditcardBankCharge', id: string }
      & { ' $fragmentRefs'?: { 'ChargesTableFields_CreditcardBankCharge_Fragment': ChargesTableFields_CreditcardBankCharge_Fragment } }
    ) | (
      { __typename?: 'DividendCharge', id: string }
      & { ' $fragmentRefs'?: { 'ChargesTableFields_DividendCharge_Fragment': ChargesTableFields_DividendCharge_Fragment } }
    ) | (
      { __typename?: 'FinancialCharge', id: string }
      & { ' $fragmentRefs'?: { 'ChargesTableFields_FinancialCharge_Fragment': ChargesTableFields_FinancialCharge_Fragment } }
    ) | (
      { __typename?: 'ForeignSecuritiesCharge', id: string }
      & { ' $fragmentRefs'?: { 'ChargesTableFields_ForeignSecuritiesCharge_Fragment': ChargesTableFields_ForeignSecuritiesCharge_Fragment } }
    ) | (
      { __typename?: 'InternalTransferCharge', id: string }
      & { ' $fragmentRefs'?: { 'ChargesTableFields_InternalTransferCharge_Fragment': ChargesTableFields_InternalTransferCharge_Fragment } }
    ) | (
      { __typename?: 'MonthlyVatCharge', id: string }
      & { ' $fragmentRefs'?: { 'ChargesTableFields_MonthlyVatCharge_Fragment': ChargesTableFields_MonthlyVatCharge_Fragment } }
    ) | (
      { __typename?: 'SalaryCharge', id: string }
      & { ' $fragmentRefs'?: { 'ChargesTableFields_SalaryCharge_Fragment': ChargesTableFields_SalaryCharge_Fragment } }
    )>, pageInfo: { __typename?: 'PageInfo', totalPages: number } } };

export type DocumentsScreenQueryVariables = Exact<{
  filters: DocumentsFilters;
}>;


export type DocumentsScreenQuery = { __typename?: 'Query', documentsByFilters: Array<{ __typename: 'CreditInvoice', serialNumber?: string | null, date?: TimelessDateString | null, id: string, image?: URL | string | null, file?: URL | string | null, creditor?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, debtor?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, vat?: { __typename?: 'FinancialAmount', raw: number, formatted: string, currency: Currency } | null, amount?: { __typename?: 'FinancialAmount', raw: number, formatted: string, currency: Currency } | null, charge?: { __typename: 'BankDepositCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'BusinessTripCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'CommonCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'ConversionCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'CreditcardBankCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'DividendCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'FinancialCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'ForeignSecuritiesCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'InternalTransferCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'MonthlyVatCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'SalaryCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | null } | { __typename: 'Invoice', serialNumber?: string | null, date?: TimelessDateString | null, id: string, image?: URL | string | null, file?: URL | string | null, creditor?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, debtor?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, vat?: { __typename?: 'FinancialAmount', raw: number, formatted: string, currency: Currency } | null, amount?: { __typename?: 'FinancialAmount', raw: number, formatted: string, currency: Currency } | null, charge?: { __typename: 'BankDepositCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'BusinessTripCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'CommonCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'ConversionCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'CreditcardBankCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'DividendCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'FinancialCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'ForeignSecuritiesCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'InternalTransferCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'MonthlyVatCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'SalaryCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | null } | { __typename: 'InvoiceReceipt', serialNumber?: string | null, date?: TimelessDateString | null, id: string, image?: URL | string | null, file?: URL | string | null, creditor?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, debtor?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, vat?: { __typename?: 'FinancialAmount', raw: number, formatted: string, currency: Currency } | null, amount?: { __typename?: 'FinancialAmount', raw: number, formatted: string, currency: Currency } | null, charge?: { __typename: 'BankDepositCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'BusinessTripCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'CommonCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'ConversionCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'CreditcardBankCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'DividendCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'FinancialCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'ForeignSecuritiesCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'InternalTransferCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'MonthlyVatCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'SalaryCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | null } | { __typename: 'OtherDocument', id: string, image?: URL | string | null, file?: URL | string | null, charge?: { __typename: 'BankDepositCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'BusinessTripCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'CommonCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'ConversionCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'CreditcardBankCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'DividendCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'FinancialCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'ForeignSecuritiesCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'InternalTransferCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'MonthlyVatCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'SalaryCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | null } | { __typename: 'Proforma', serialNumber?: string | null, date?: TimelessDateString | null, id: string, image?: URL | string | null, file?: URL | string | null, creditor?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, debtor?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, vat?: { __typename?: 'FinancialAmount', raw: number, formatted: string, currency: Currency } | null, amount?: { __typename?: 'FinancialAmount', raw: number, formatted: string, currency: Currency } | null, charge?: { __typename: 'BankDepositCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'BusinessTripCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'CommonCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'ConversionCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'CreditcardBankCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'DividendCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'FinancialCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'ForeignSecuritiesCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'InternalTransferCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'MonthlyVatCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'SalaryCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | null } | { __typename: 'Receipt', serialNumber?: string | null, date?: TimelessDateString | null, id: string, image?: URL | string | null, file?: URL | string | null, creditor?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, debtor?: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } | null, vat?: { __typename?: 'FinancialAmount', raw: number, formatted: string, currency: Currency } | null, amount?: { __typename?: 'FinancialAmount', raw: number, formatted: string, currency: Currency } | null, charge?: { __typename: 'BankDepositCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'BusinessTripCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'CommonCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'ConversionCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'CreditcardBankCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'DividendCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'FinancialCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'ForeignSecuritiesCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'InternalTransferCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'MonthlyVatCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'SalaryCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | null } | { __typename: 'Unprocessed', id: string, image?: URL | string | null, file?: URL | string | null, charge?: { __typename: 'BankDepositCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'BusinessTripCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'CommonCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'ConversionCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'CreditcardBankCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'DividendCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'FinancialCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'ForeignSecuritiesCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'InternalTransferCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'MonthlyVatCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | { __typename: 'SalaryCharge', id: string, userDescription?: string | null, vat?: { __typename: 'FinancialAmount', formatted: string } | null, transactions: Array<{ __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate?: TimelessDateString | null, amount: { __typename: 'FinancialAmount', formatted: string } } | { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString, sourceDescription: string, effectiveDate: TimelessDateString, amount: { __typename: 'FinancialAmount', formatted: string } }> } | null }> };

export type MonthlyDocumentDraftByClientQueryVariables = Exact<{
  clientId: Scalars['UUID']['input'];
  issueMonth: Scalars['TimelessDate']['input'];
}>;


export type MonthlyDocumentDraftByClientQuery = { __typename?: 'Query', clientMonthlyChargeDraft: (
    { __typename?: 'NewDocumentInfo' }
    & { ' $fragmentRefs'?: { 'NewDocumentInfoFragment': NewDocumentInfoFragment } }
  ) };

export type MonthlyDocumentsDraftsQueryVariables = Exact<{
  issueMonth: Scalars['TimelessDate']['input'];
}>;


export type MonthlyDocumentsDraftsQuery = { __typename?: 'Query', clientMonthlyChargesDrafts: Array<(
    { __typename?: 'NewDocumentInfo' }
    & { ' $fragmentRefs'?: { 'NewDocumentInfoFragment': NewDocumentInfoFragment } }
  )> };

export type AccountantApprovalStatusQueryVariables = Exact<{
  fromDate: Scalars['TimelessDate']['input'];
  toDate: Scalars['TimelessDate']['input'];
}>;


export type AccountantApprovalStatusQuery = { __typename?: 'Query', accountantApprovalStatus: { __typename?: 'AccountantApprovalStatus', totalCharges: number, approvedCount: number, pendingCount: number, unapprovedCount: number } };

export type LedgerValidationStatusQueryVariables = Exact<{
  limit?: InputMaybe<Scalars['Int']['input']>;
  filters?: InputMaybe<ChargeFilter>;
}>;


export type LedgerValidationStatusQuery = { __typename?: 'Query', chargesWithLedgerChanges: Array<{ __typename?: 'ChargesWithLedgerChangesResult', charge?: { __typename?: 'BankDepositCharge', id: string } | { __typename?: 'BusinessTripCharge', id: string } | { __typename?: 'CommonCharge', id: string } | { __typename?: 'ConversionCharge', id: string } | { __typename?: 'CreditcardBankCharge', id: string } | { __typename?: 'DividendCharge', id: string } | { __typename?: 'FinancialCharge', id: string } | { __typename?: 'ForeignSecuritiesCharge', id: string } | { __typename?: 'InternalTransferCharge', id: string } | { __typename?: 'MonthlyVatCharge', id: string } | { __typename?: 'SalaryCharge', id: string } | null }> };

export type BalanceReportExtendedTransactionsQueryVariables = Exact<{
  transactionIDs: Array<Scalars['UUID']['input']> | Scalars['UUID']['input'];
}>;


export type BalanceReportExtendedTransactionsQuery = { __typename?: 'Query', transactionsByIDs: Array<(
    { __typename?: 'CommonTransaction', id: string }
    & { ' $fragmentRefs'?: { 'TransactionForTransactionsTableFields_CommonTransaction_Fragment': TransactionForTransactionsTableFields_CommonTransaction_Fragment } }
  ) | (
    { __typename?: 'ConversionTransaction', id: string }
    & { ' $fragmentRefs'?: { 'TransactionForTransactionsTableFields_ConversionTransaction_Fragment': TransactionForTransactionsTableFields_ConversionTransaction_Fragment } }
  )> };

export type BalanceReportScreenQueryVariables = Exact<{
  fromDate: Scalars['TimelessDate']['input'];
  toDate: Scalars['TimelessDate']['input'];
  ownerId?: InputMaybe<Scalars['UUID']['input']>;
}>;


export type BalanceReportScreenQuery = { __typename?: 'Query', transactionsForBalanceReport: Array<{ __typename?: 'BalanceTransactions', id: string, date: TimelessDateString, month: number, year: number, isFee: boolean, description?: string | null, amountUsd: { __typename?: 'FinancialAmount', formatted: string, raw: number }, counterparty?: { __typename?: 'LtdFinancialEntity', id: string } | { __typename?: 'PersonalFinancialEntity', id: string } | { __typename?: 'TaxCategory', id: string } | null, charge: { __typename?: 'BankDepositCharge', id: string, tags: Array<{ __typename?: 'Tag', id: string, name: string }> } | { __typename?: 'BusinessTripCharge', id: string, tags: Array<{ __typename?: 'Tag', id: string, name: string }> } | { __typename?: 'CommonCharge', id: string, tags: Array<{ __typename?: 'Tag', id: string, name: string }> } | { __typename?: 'ConversionCharge', id: string, tags: Array<{ __typename?: 'Tag', id: string, name: string }> } | { __typename?: 'CreditcardBankCharge', id: string, tags: Array<{ __typename?: 'Tag', id: string, name: string }> } | { __typename?: 'DividendCharge', id: string, tags: Array<{ __typename?: 'Tag', id: string, name: string }> } | { __typename?: 'FinancialCharge', id: string, tags: Array<{ __typename?: 'Tag', id: string, name: string }> } | { __typename?: 'ForeignSecuritiesCharge', id: string, tags: Array<{ __typename?: 'Tag', id: string, name: string }> } | { __typename?: 'InternalTransferCharge', id: string, tags: Array<{ __typename?: 'Tag', id: string, name: string }> } | { __typename?: 'MonthlyVatCharge', id: string, tags: Array<{ __typename?: 'Tag', id: string, name: string }> } | { __typename?: 'SalaryCharge', id: string, tags: Array<{ __typename?: 'Tag', id: string, name: string }> } }> };

type DepreciationReportRecordCore_DepreciationReportRecord_Fragment = { __typename?: 'DepreciationReportRecord', id: string, originalCost?: number | null, reportYearDelta?: number | null, totalDepreciableCosts: number, reportYearClaimedDepreciation: number, pastYearsAccumulatedDepreciation: number, totalDepreciation: number, netValue: number } & { ' $fragmentName'?: 'DepreciationReportRecordCore_DepreciationReportRecord_Fragment' };

type DepreciationReportRecordCore_DepreciationReportSummaryRecord_Fragment = { __typename?: 'DepreciationReportSummaryRecord', id: string, originalCost?: number | null, reportYearDelta?: number | null, totalDepreciableCosts: number, reportYearClaimedDepreciation: number, pastYearsAccumulatedDepreciation: number, totalDepreciation: number, netValue: number } & { ' $fragmentName'?: 'DepreciationReportRecordCore_DepreciationReportSummaryRecord_Fragment' };

export type DepreciationReportRecordCoreFragment = DepreciationReportRecordCore_DepreciationReportRecord_Fragment | DepreciationReportRecordCore_DepreciationReportSummaryRecord_Fragment;

export type DepreciationReportScreenQueryVariables = Exact<{
  filters: DepreciationReportFilter;
}>;


export type DepreciationReportScreenQuery = { __typename?: 'Query', depreciationReport: { __typename?: 'DepreciationReportResult', id: string, year: number, categories: Array<{ __typename?: 'DepreciationReportCategory', id: string, category: { __typename?: 'DepreciationCategory', id: string, name: string, percentage: number }, records: Array<(
        { __typename?: 'DepreciationReportRecord', id: string, chargeId: string, description?: string | null, purchaseDate: TimelessDateString, activationDate?: TimelessDateString | null, statutoryDepreciationRate: number, claimedDepreciationRate?: number | null }
        & { ' $fragmentRefs'?: { 'DepreciationReportRecordCore_DepreciationReportRecord_Fragment': DepreciationReportRecordCore_DepreciationReportRecord_Fragment } }
      )>, summary: (
        { __typename?: 'DepreciationReportSummaryRecord', id: string }
        & { ' $fragmentRefs'?: { 'DepreciationReportRecordCore_DepreciationReportSummaryRecord_Fragment': DepreciationReportRecordCore_DepreciationReportSummaryRecord_Fragment } }
      ) }>, summary: (
      { __typename?: 'DepreciationReportSummaryRecord', id: string }
      & { ' $fragmentRefs'?: { 'DepreciationReportRecordCore_DepreciationReportSummaryRecord_Fragment': DepreciationReportRecordCore_DepreciationReportSummaryRecord_Fragment } }
    ) } };

export type Shaam6111DataContentBalanceSheetFragment = { __typename?: 'Shaam6111Data', id: string, balanceSheet?: Array<{ __typename?: 'Shaam6111ReportEntry', code: number, amount: number, label: string }> | null } & { ' $fragmentName'?: 'Shaam6111DataContentBalanceSheetFragment' };

export type Shaam6111DataContentHeaderFragment = { __typename?: 'Shaam6111Data', id: string, header: { __typename?: 'Shaam6111Header', 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 } } & { ' $fragmentName'?: 'Shaam6111DataContentHeaderFragment' };

type Shaam6111DataContentHeaderBusiness_LtdFinancialEntity_Fragment = { __typename?: 'LtdFinancialEntity', id: string, name: string } & { ' $fragmentName'?: 'Shaam6111DataContentHeaderBusiness_LtdFinancialEntity_Fragment' };

type Shaam6111DataContentHeaderBusiness_PersonalFinancialEntity_Fragment = { __typename?: 'PersonalFinancialEntity', id: string, name: string } & { ' $fragmentName'?: 'Shaam6111DataContentHeaderBusiness_PersonalFinancialEntity_Fragment' };

export type Shaam6111DataContentHeaderBusinessFragment = Shaam6111DataContentHeaderBusiness_LtdFinancialEntity_Fragment | Shaam6111DataContentHeaderBusiness_PersonalFinancialEntity_Fragment;

export type Shaam6111ReportScreenQueryVariables = Exact<{
  year: Scalars['Int']['input'];
  businessId?: InputMaybe<Scalars['UUID']['input']>;
}>;


export type Shaam6111ReportScreenQuery = { __typename?: 'Query', shaam6111: { __typename?: 'Shaam6111Report', id: string, year: number, data: (
      { __typename?: 'Shaam6111Data', id: string }
      & { ' $fragmentRefs'?: { 'Shaam6111DataContentFragment': Shaam6111DataContentFragment } }
    ), business: (
      { __typename?: 'LtdFinancialEntity', id: string }
      & { ' $fragmentRefs'?: { 'Shaam6111DataContentHeaderBusiness_LtdFinancialEntity_Fragment': Shaam6111DataContentHeaderBusiness_LtdFinancialEntity_Fragment } }
    ) | (
      { __typename?: 'PersonalFinancialEntity', id: string }
      & { ' $fragmentRefs'?: { 'Shaam6111DataContentHeaderBusiness_PersonalFinancialEntity_Fragment': Shaam6111DataContentHeaderBusiness_PersonalFinancialEntity_Fragment } }
    ) } };

export type Shaam6111DataContentProfitLossFragment = { __typename?: 'Shaam6111Data', id: string, profitAndLoss: Array<{ __typename?: 'Shaam6111ReportEntry', code: number, amount: number, label: string }> } & { ' $fragmentName'?: 'Shaam6111DataContentProfitLossFragment' };

export type Shaam6111DataContentFragment = (
  { __typename?: 'Shaam6111Data', id: string }
  & { ' $fragmentRefs'?: { 'Shaam6111DataContentHeaderFragment': Shaam6111DataContentHeaderFragment;'Shaam6111DataContentProfitLossFragment': Shaam6111DataContentProfitLossFragment;'Shaam6111DataContentTaxAdjustmentFragment': Shaam6111DataContentTaxAdjustmentFragment;'Shaam6111DataContentBalanceSheetFragment': Shaam6111DataContentBalanceSheetFragment } }
) & { ' $fragmentName'?: 'Shaam6111DataContentFragment' };

export type Shaam6111DataContentTaxAdjustmentFragment = { __typename?: 'Shaam6111Data', id: string, taxAdjustment: Array<{ __typename?: 'Shaam6111ReportEntry', code: number, amount: number, label: string }> } & { ' $fragmentName'?: 'Shaam6111DataContentTaxAdjustmentFragment' };

export type AllSortCodesForScreenQueryVariables = Exact<{ [key: string]: never; }>;


export type AllSortCodesForScreenQuery = { __typename?: 'Query', allSortCodes: Array<{ __typename?: 'SortCode', id: string, key: number, name?: string | null, defaultIrsCode?: number | null }> };

export type AllTagsScreenQueryVariables = Exact<{ [key: string]: never; }>;


export type AllTagsScreenQuery = { __typename?: 'Query', allTags: Array<(
    { __typename?: 'Tag', id: string, name: string, namePath?: Array<string> | null }
    & { ' $fragmentRefs'?: { 'EditTagFieldsFragment': EditTagFieldsFragment } }
  )> };

export type AllTaxCategoriesForScreenQueryVariables = Exact<{ [key: string]: never; }>;


export type AllTaxCategoriesForScreenQuery = { __typename?: 'Query', taxCategories: Array<{ __typename?: 'TaxCategory', id: string, name: string, sortCode?: { __typename?: 'SortCode', id: string, key: number, name?: string | null } | null }> };

type TransactionsTableAccountFields_CommonTransaction_Fragment = { __typename?: 'CommonTransaction', id: string, account: { __typename: 'BankFinancialAccount', id: string, name: string, type: string } | { __typename: 'CardFinancialAccount', id: string, name: string, type: string } | { __typename: 'CryptoWalletFinancialAccount', id: string, name: string, type: string } | { __typename: 'ForeignSecuritiesFinancialAccount', id: string, name: string, type: string } } & { ' $fragmentName'?: 'TransactionsTableAccountFields_CommonTransaction_Fragment' };

type TransactionsTableAccountFields_ConversionTransaction_Fragment = { __typename?: 'ConversionTransaction', id: string, account: { __typename: 'BankFinancialAccount', id: string, name: string, type: string } | { __typename: 'CardFinancialAccount', id: string, name: string, type: string } | { __typename: 'CryptoWalletFinancialAccount', id: string, name: string, type: string } | { __typename: 'ForeignSecuritiesFinancialAccount', id: string, name: string, type: string } } & { ' $fragmentName'?: 'TransactionsTableAccountFields_ConversionTransaction_Fragment' };

export type TransactionsTableAccountFieldsFragment = TransactionsTableAccountFields_CommonTransaction_Fragment | TransactionsTableAccountFields_ConversionTransaction_Fragment;

type TransactionsTableEntityFields_CommonTransaction_Fragment = { __typename?: 'CommonTransaction', id: string, sourceDescription: string, counterparty?: { __typename?: 'LtdFinancialEntity', name: string, id: string } | { __typename?: 'PersonalFinancialEntity', name: string, id: string } | { __typename?: 'TaxCategory', name: string, id: string } | null, missingInfoSuggestions?: { __typename?: 'TransactionSuggestions', business: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } } | null } & { ' $fragmentName'?: 'TransactionsTableEntityFields_CommonTransaction_Fragment' };

type TransactionsTableEntityFields_ConversionTransaction_Fragment = { __typename?: 'ConversionTransaction', id: string, sourceDescription: string, counterparty?: { __typename?: 'LtdFinancialEntity', name: string, id: string } | { __typename?: 'PersonalFinancialEntity', name: string, id: string } | { __typename?: 'TaxCategory', name: string, id: string } | null, missingInfoSuggestions?: { __typename?: 'TransactionSuggestions', business: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } } | null } & { ' $fragmentName'?: 'TransactionsTableEntityFields_ConversionTransaction_Fragment' };

export type TransactionsTableEntityFieldsFragment = TransactionsTableEntityFields_CommonTransaction_Fragment | TransactionsTableEntityFields_ConversionTransaction_Fragment;

type TransactionsTableDebitDateFields_CommonTransaction_Fragment = { __typename?: 'CommonTransaction', id: string, effectiveDate?: TimelessDateString | null, sourceEffectiveDate?: TimelessDateString | null } & { ' $fragmentName'?: 'TransactionsTableDebitDateFields_CommonTransaction_Fragment' };

type TransactionsTableDebitDateFields_ConversionTransaction_Fragment = { __typename?: 'ConversionTransaction', id: string, effectiveDate: TimelessDateString, sourceEffectiveDate?: TimelessDateString | null } & { ' $fragmentName'?: 'TransactionsTableDebitDateFields_ConversionTransaction_Fragment' };

export type TransactionsTableDebitDateFieldsFragment = TransactionsTableDebitDateFields_CommonTransaction_Fragment | TransactionsTableDebitDateFields_ConversionTransaction_Fragment;

type TransactionsTableDescriptionFields_CommonTransaction_Fragment = { __typename?: 'CommonTransaction', id: string, sourceDescription: string } & { ' $fragmentName'?: 'TransactionsTableDescriptionFields_CommonTransaction_Fragment' };

type TransactionsTableDescriptionFields_ConversionTransaction_Fragment = { __typename?: 'ConversionTransaction', id: string, sourceDescription: string } & { ' $fragmentName'?: 'TransactionsTableDescriptionFields_ConversionTransaction_Fragment' };

export type TransactionsTableDescriptionFieldsFragment = TransactionsTableDescriptionFields_CommonTransaction_Fragment | TransactionsTableDescriptionFields_ConversionTransaction_Fragment;

type TransactionsTableEventDateFields_CommonTransaction_Fragment = { __typename?: 'CommonTransaction', id: string, eventDate: TimelessDateString } & { ' $fragmentName'?: 'TransactionsTableEventDateFields_CommonTransaction_Fragment' };

type TransactionsTableEventDateFields_ConversionTransaction_Fragment = { __typename?: 'ConversionTransaction', id: string, eventDate: TimelessDateString } & { ' $fragmentName'?: 'TransactionsTableEventDateFields_ConversionTransaction_Fragment' };

export type TransactionsTableEventDateFieldsFragment = TransactionsTableEventDateFields_CommonTransaction_Fragment | TransactionsTableEventDateFields_ConversionTransaction_Fragment;

type TransactionsTableSourceIdFields_CommonTransaction_Fragment = { __typename?: 'CommonTransaction', id: string, referenceKey?: string | null } & { ' $fragmentName'?: 'TransactionsTableSourceIdFields_CommonTransaction_Fragment' };

type TransactionsTableSourceIdFields_ConversionTransaction_Fragment = { __typename?: 'ConversionTransaction', id: string, referenceKey?: string | null } & { ' $fragmentName'?: 'TransactionsTableSourceIdFields_ConversionTransaction_Fragment' };

export type TransactionsTableSourceIdFieldsFragment = TransactionsTableSourceIdFields_CommonTransaction_Fragment | TransactionsTableSourceIdFields_ConversionTransaction_Fragment;

type TransactionForTransactionsTableFields_CommonTransaction_Fragment = { __typename?: 'CommonTransaction', id: string, chargeId: string, eventDate: TimelessDateString, effectiveDate?: TimelessDateString | null, sourceEffectiveDate?: TimelessDateString | null, sourceDescription: string, referenceKey?: string | null, amount: { __typename?: 'FinancialAmount', raw: number, formatted: string }, cryptoExchangeRate?: { __typename?: 'ConversionRate', rate: number } | null, account: { __typename: 'BankFinancialAccount', id: string, name: string, type: string } | { __typename: 'CardFinancialAccount', id: string, name: string, type: string } | { __typename: 'CryptoWalletFinancialAccount', id: string, name: string, type: string } | { __typename: 'ForeignSecuritiesFinancialAccount', id: string, name: string, type: string }, counterparty?: { __typename?: 'LtdFinancialEntity', name: string, id: string } | { __typename?: 'PersonalFinancialEntity', name: string, id: string } | { __typename?: 'TaxCategory', name: string, id: string } | null, missingInfoSuggestions?: { __typename?: 'TransactionSuggestions', business: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } } | null } & { ' $fragmentName'?: 'TransactionForTransactionsTableFields_CommonTransaction_Fragment' };

type TransactionForTransactionsTableFields_ConversionTransaction_Fragment = { __typename?: 'ConversionTransaction', id: string, chargeId: string, eventDate: TimelessDateString, effectiveDate: TimelessDateString, sourceEffectiveDate?: TimelessDateString | null, sourceDescription: string, referenceKey?: string | null, amount: { __typename?: 'FinancialAmount', raw: number, formatted: string }, cryptoExchangeRate?: { __typename?: 'ConversionRate', rate: number } | null, account: { __typename: 'BankFinancialAccount', id: string, name: string, type: string } | { __typename: 'CardFinancialAccount', id: string, name: string, type: string } | { __typename: 'CryptoWalletFinancialAccount', id: string, name: string, type: string } | { __typename: 'ForeignSecuritiesFinancialAccount', id: string, name: string, type: string }, counterparty?: { __typename?: 'LtdFinancialEntity', name: string, id: string } | { __typename?: 'PersonalFinancialEntity', name: string, id: string } | { __typename?: 'TaxCategory', name: string, id: string } | null, missingInfoSuggestions?: { __typename?: 'TransactionSuggestions', business: { __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string } } | null } & { ' $fragmentName'?: 'TransactionForTransactionsTableFields_ConversionTransaction_Fragment' };

export type TransactionForTransactionsTableFieldsFragment = TransactionForTransactionsTableFields_CommonTransaction_Fragment | TransactionForTransactionsTableFields_ConversionTransaction_Fragment;

export type AddBusinessTripAccommodationsExpenseMutationVariables = Exact<{
  fields: AddBusinessTripAccommodationsExpenseInput;
}>;


export type AddBusinessTripAccommodationsExpenseMutation = { __typename?: 'Mutation', addBusinessTripAccommodationsExpense: string };

export type AddBusinessTripCarRentalExpenseMutationVariables = Exact<{
  fields: AddBusinessTripCarRentalExpenseInput;
}>;


export type AddBusinessTripCarRentalExpenseMutation = { __typename?: 'Mutation', addBusinessTripCarRentalExpense: string };

export type AddBusinessTripFlightsExpenseMutationVariables = Exact<{
  fields: AddBusinessTripFlightsExpenseInput;
}>;


export type AddBusinessTripFlightsExpenseMutation = { __typename?: 'Mutation', addBusinessTripFlightsExpense: string };

export type AddBusinessTripOtherExpenseMutationVariables = Exact<{
  fields: AddBusinessTripOtherExpenseInput;
}>;


export type AddBusinessTripOtherExpenseMutation = { __typename?: 'Mutation', addBusinessTripOtherExpense: string };

export type AddBusinessTripTravelAndSubsistenceExpenseMutationVariables = Exact<{
  fields: AddBusinessTripTravelAndSubsistenceExpenseInput;
}>;


export type AddBusinessTripTravelAndSubsistenceExpenseMutation = { __typename?: 'Mutation', addBusinessTripTravelAndSubsistenceExpense: string };

export type AddDepreciationRecordMutationVariables = Exact<{
  fields: InsertDepreciationRecordInput;
}>;


export type AddDepreciationRecordMutation = { __typename?: 'Mutation', insertDepreciationRecord: { __typename: 'CommonError', message: string } | { __typename: 'DepreciationRecord', id: string } };

export type AddSortCodeMutationVariables = Exact<{
  key: Scalars['Int']['input'];
  name: Scalars['String']['input'];
  defaultIrsCode?: InputMaybe<Scalars['Int']['input']>;
}>;


export type AddSortCodeMutation = { __typename?: 'Mutation', addSortCode: boolean };

export type AddTagMutationVariables = Exact<{
  tagName: Scalars['String']['input'];
}>;


export type AddTagMutation = { __typename?: 'Mutation', addTag: boolean };

export type GenerateBalanceChargeMutationVariables = Exact<{
  description: Scalars['String']['input'];
  balanceRecords: Array<InsertMiscExpenseInput> | InsertMiscExpenseInput;
}>;


export type GenerateBalanceChargeMutation = { __typename?: 'Mutation', generateBalanceCharge: { __typename?: 'FinancialCharge', id: string } };

export type BatchUpdateChargesMutationVariables = Exact<{
  chargeIds: Array<Scalars['UUID']['input']> | Scalars['UUID']['input'];
  fields: UpdateChargeInput;
}>;


export type BatchUpdateChargesMutation = { __typename?: 'Mutation', batchUpdateCharges: { __typename: 'BatchUpdateChargesSuccessfulResult', charges: Array<{ __typename?: 'BankDepositCharge', id: string } | { __typename?: 'BusinessTripCharge', id: string } | { __typename?: 'CommonCharge', id: string } | { __typename?: 'ConversionCharge', id: string } | { __typename?: 'CreditcardBankCharge', id: string } | { __typename?: 'DividendCharge', id: string } | { __typename?: 'FinancialCharge', id: string } | { __typename?: 'ForeignSecuritiesCharge', id: string } | { __typename?: 'InternalTransferCharge', id: string } | { __typename?: 'MonthlyVatCharge', id: string } | { __typename?: 'SalaryCharge', id: string }> } | { __typename: 'CommonError', message: string } };

export type CategorizeBusinessTripExpenseMutationVariables = Exact<{
  fields: CategorizeBusinessTripExpenseInput;
}>;


export type CategorizeBusinessTripExpenseMutation = { __typename?: 'Mutation', categorizeBusinessTripExpense: string };

export type CategorizeIntoExistingBusinessTripExpenseMutationVariables = Exact<{
  fields: CategorizeIntoExistingBusinessTripExpenseInput;
}>;


export type CategorizeIntoExistingBusinessTripExpenseMutation = { __typename?: 'Mutation', categorizeIntoExistingBusinessTripExpense: string };

export type CloseDocumentMutationVariables = Exact<{
  documentId: Scalars['UUID']['input'];
}>;


export type CloseDocumentMutation = { __typename?: 'Mutation', closeDocument: boolean };

export type FlagForeignFeeTransactionsMutationVariables = Exact<{ [key: string]: never; }>;


export type FlagForeignFeeTransactionsMutation = { __typename?: 'Mutation', flagForeignFeeTransactions: { __typename?: 'FlagForeignFeeTransactionsResult', success: boolean, errors?: Array<string> | null } };

export type MergeChargesByTransactionReferenceMutationVariables = Exact<{ [key: string]: never; }>;


export type MergeChargesByTransactionReferenceMutation = { __typename?: 'Mutation', mergeChargesByTransactionReference: { __typename?: 'MergeChargesByTransactionReferenceResult', success: boolean, errors?: Array<string> | null } };

export type CalculateCreditcardTransactionsDebitDateMutationVariables = Exact<{ [key: string]: never; }>;


export type CalculateCreditcardTransactionsDebitDateMutation = { __typename?: 'Mutation', calculateCreditcardTransactionsDebitDate: boolean };

export type CreditShareholdersBusinessTripTravelAndSubsistenceMutationVariables = Exact<{
  businessTripId: Scalars['UUID']['input'];
}>;


export type CreditShareholdersBusinessTripTravelAndSubsistenceMutation = { __typename?: 'Mutation', creditShareholdersBusinessTripTravelAndSubsistence: Array<string> };

export type DeleteBusinessTripAttendeeMutationVariables = Exact<{
  fields: DeleteBusinessTripAttendeeInput;
}>;


export type DeleteBusinessTripAttendeeMutation = { __typename?: 'Mutation', deleteBusinessTripAttendee: boolean };

export type DeleteBusinessTripExpenseMutationVariables = Exact<{
  businessTripExpenseId: Scalars['UUID']['input'];
}>;


export type DeleteBusinessTripExpenseMutation = { __typename?: 'Mutation', deleteBusinessTripExpense: boolean };

export type DeleteChargeMutationVariables = Exact<{
  chargeId: Scalars['UUID']['input'];
}>;


export type DeleteChargeMutation = { __typename?: 'Mutation', deleteCharge: boolean };

export type DeleteDepreciationRecordMutationVariables = Exact<{
  depreciationRecordId: Scalars['UUID']['input'];
}>;


export type DeleteDepreciationRecordMutation = { __typename?: 'Mutation', deleteDepreciationRecord: boolean };

export type DeleteDocumentMutationVariables = Exact<{
  documentId: Scalars['UUID']['input'];
}>;


export type DeleteDocumentMutation = { __typename?: 'Mutation', deleteDocument: boolean };

export type DeleteDynamicReportTemplateMutationVariables = Exact<{
  name: Scalars['String']['input'];
}>;


export type DeleteDynamicReportTemplateMutation = { __typename?: 'Mutation', deleteDynamicReportTemplate: string };

export type DeleteMiscExpenseMutationVariables = Exact<{
  id: Scalars['UUID']['input'];
}>;


export type DeleteMiscExpenseMutation = { __typename?: 'Mutation', deleteMiscExpense: boolean };

export type DeleteTagMutationVariables = Exact<{
  tagId: Scalars['UUID']['input'];
}>;


export type DeleteTagMutation = { __typename?: 'Mutation', deleteTag: boolean };

export type FetchIncomeDocumentsMutationVariables = Exact<{
  ownerId: Scalars['UUID']['input'];
}>;


export type FetchIncomeDocumentsMutation = { __typename?: 'Mutation', fetchIncomeDocuments: Array<(
    { __typename?: 'CreditInvoice', id: string }
    & { ' $fragmentRefs'?: { 'NewFetchedDocumentFields_CreditInvoice_Fragment': NewFetchedDocumentFields_CreditInvoice_Fragment } }
  ) | (
    { __typename?: 'Invoice', id: string }
    & { ' $fragmentRefs'?: { 'NewFetchedDocumentFields_Invoice_Fragment': NewFetchedDocumentFields_Invoice_Fragment } }
  ) | (
    { __typename?: 'InvoiceReceipt', id: string }
    & { ' $fragmentRefs'?: { 'NewFetchedDocumentFields_InvoiceReceipt_Fragment': NewFetchedDocumentFields_InvoiceReceipt_Fragment } }
  ) | (
    { __typename?: 'OtherDocument', id: string }
    & { ' $fragmentRefs'?: { 'NewFetchedDocumentFields_OtherDocument_Fragment': NewFetchedDocumentFields_OtherDocument_Fragment } }
  ) | (
    { __typename?: 'Proforma', id: string }
    & { ' $fragmentRefs'?: { 'NewFetchedDocumentFields_Proforma_Fragment': NewFetchedDocumentFields_Proforma_Fragment } }
  ) | (
    { __typename?: 'Receipt', id: string }
    & { ' $fragmentRefs'?: { 'NewFetchedDocumentFields_Receipt_Fragment': NewFetchedDocumentFields_Receipt_Fragment } }
  ) | (
    { __typename?: 'Unprocessed', id: string }
    & { ' $fragmentRefs'?: { 'NewFetchedDocumentFields_Unprocessed_Fragment': NewFetchedDocumentFields_Unprocessed_Fragment } }
  )> };

export type AdminBusinessesQueryVariables = Exact<{ [key: string]: never; }>;


export type AdminBusinessesQuery = { __typename?: 'Query', allAdminBusinesses: Array<{ __typename?: 'AdminBusiness', id: string, name: string, governmentId: string }> };

export type AllClientsQueryVariables = Exact<{ [key: string]: never; }>;


export type AllClientsQuery = { __typename?: 'Query', allClients: Array<{ __typename?: 'Client', id: string, greenInvoiceId: string, emails: Array<string>, originalBusiness: { __typename?: 'LtdFinancialEntity', id: string, name: string } }> };

export type AllOpenContractsQueryVariables = Exact<{ [key: string]: never; }>;


export type AllOpenContractsQuery = { __typename?: 'Query', allOpenContracts: Array<{ __typename?: 'Contract', id: string, purchaseOrder?: string | null, startDate: TimelessDateString, endDate: TimelessDateString, remarks?: string | null, documentType: DocumentType, billingCycle: BillingCycle, isActive: boolean, product?: Product | null, plan?: SubscriptionPlan | null, signedAgreement?: URL | string | null, msCloud?: URL | string | null, client: { __typename?: 'Client', id: string, greenInvoiceId: string, emails: Array<string>, originalBusiness: { __typename?: 'LtdFinancialEntity', id: string, name: string } }, amount: { __typename?: 'FinancialAmount', raw: number, currency: Currency, formatted: string } }> };

export type AllBusinessesQueryVariables = Exact<{ [key: string]: never; }>;


export type AllBusinessesQuery = { __typename?: 'Query', allBusinesses?: { __typename?: 'PaginatedBusinesses', nodes: Array<{ __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string }> } | null };

export type AllCountriesQueryVariables = Exact<{ [key: string]: never; }>;


export type AllCountriesQuery = { __typename?: 'Query', allCountries: Array<{ __typename?: 'Country', id: string, name: string, code: string }> };

export type AllFinancialEntitiesQueryVariables = Exact<{ [key: string]: never; }>;


export type AllFinancialEntitiesQuery = { __typename?: 'Query', allFinancialEntities?: { __typename?: 'PaginatedFinancialEntities', nodes: Array<{ __typename?: 'LtdFinancialEntity', id: string, name: string } | { __typename?: 'PersonalFinancialEntity', id: string, name: string } | { __typename?: 'TaxCategory', id: string, name: string }> } | null };

export type AllSortCodesQueryVariables = Exact<{ [key: string]: never; }>;


export type AllSortCodesQuery = { __typename?: 'Query', allSortCodes: Array<{ __typename?: 'SortCode', id: string, key: number, name?: string | null, defaultIrsCode?: number | null }> };

export type AllTagsQueryVariables = Exact<{ [key: string]: never; }>;


export type AllTagsQuery = { __typename?: 'Query', allTags: Array<{ __typename?: 'Tag', id: string, name: string, namePath?: Array<string> | null }> };

export type AllTaxCategoriesQueryVariables = Exact<{ [key: string]: never; }>;


export type AllTaxCategoriesQuery = { __typename?: 'Query', taxCategories: Array<{ __typename?: 'TaxCategory', id: string, name: string }> };

export type InsertBusinessTripAttendeeMutationVariables = Exact<{
  fields: InsertBusinessTripAttendeeInput;
}>;


export type InsertBusinessTripAttendeeMutation = { __typename?: 'Mutation', insertBusinessTripAttendee: string };

export type InsertBusinessTripMutationVariables = Exact<{
  fields: InsertBusinessTripInput;
}>;


export type InsertBusinessTripMutation = { __typename?: 'Mutation', insertBusinessTrip: string };

export type InsertBusinessMutationVariables = Exact<{
  fields: InsertNewBusinessInput;
}>;


export type InsertBusinessMutation = { __typename?: 'Mutation', insertNewBusiness: { __typename: 'CommonError', message: string } | { __typename: 'LtdFinancialEntity', id: string } };

export type InsertDocumentMutationVariables = Exact<{
  record: InsertDocumentInput;
}>;


export type InsertDocumentMutation = { __typename?: 'Mutation', insertDocument: { __typename: 'CommonError', message: string } | { __typename: 'InsertDocumentSuccessfulResult', document?: { __typename?: 'CreditInvoice', id: string } | { __typename?: 'Invoice', id: string } | { __typename?: 'InvoiceReceipt', id: string } | { __typename?: 'OtherDocument', id: string } | { __typename?: 'Proforma', id: string } | { __typename?: 'Receipt', id: string } | { __typename?: 'Unprocessed', id: string } | null } };

export type InsertDynamicReportTemplateMutationVariables = Exact<{
  name: Scalars['String']['input'];
  template: Scalars['String']['input'];
}>;


export type InsertDynamicReportTemplateMutation = { __typename?: 'Mutation', insertDynamicReportTemplate: { __typename?: 'DynamicReportInfo', id: string, name: string } };

export type InsertMiscExpenseMutationVariables = Exact<{
  chargeId: Scalars['UUID']['input'];
  fields: InsertMiscExpenseInput;
}>;


export type InsertMiscExpenseMutation = { __typename?: 'Mutation', insertMiscExpense: { __typename?: 'MiscExpense', id: string } };

export type InsertMiscExpensesMutationVariables = Exact<{
  chargeId: Scalars['UUID']['input'];
  expenses: Array<InsertMiscExpenseInput> | InsertMiscExpenseInput;
}>;


export type InsertMiscExpensesMutation = { __typename?: 'Mutation', insertMiscExpenses: { __typename?: 'BankDepositCharge', id: string } | { __typename?: 'BusinessTripCharge', id: string } | { __typename?: 'CommonCharge', id: string } | { __typename?: 'ConversionCharge', id: string } | { __typename?: 'CreditcardBankCharge', id: string } | { __typename?: 'DividendCharge', id: string } | { __typename?: 'FinancialCharge', id: string } | { __typename?: 'ForeignSecuritiesCharge', id: string } | { __typename?: 'InternalTransferCharge', id: string } | { __typename?: 'MonthlyVatCharge', id: string } | { __typename?: 'SalaryCharge', id: string } };

export type InsertSalaryRecordMutationVariables = Exact<{
  salaryRecords: Array<SalaryRecordInput> | SalaryRecordInput;
}>;


export type InsertSalaryRecordMutation = { __typename?: 'Mutation', insertSalaryRecords: { __typename: 'CommonError', message: string } | { __typename: 'InsertSalaryRecordsSuccessfulResult', salaryRecords: Array<{ __typename?: 'Salary', month: string, employee?: { __typename?: 'LtdFinancialEntity', id: string } | null }> } };

export type InsertTaxCategoryMutationVariables = Exact<{
  fields: InsertTaxCategoryInput;
}>;


export type InsertTaxCategoryMutation = { __typename?: 'Mutation', insertTaxCategory: { __typename?: 'TaxCategory', id: string, name: string } };

export type IssueGreenInvoiceDocumentMutationVariables = Exact<{
  input: NewDocumentInput;
  emailContent?: InputMaybe<Scalars['String']['input']>;
  attachment?: InputMaybe<Scalars['Boolean']['input']>;
  chargeId?: InputMaybe<Scalars['UUID']['input']>;
}>;


export type IssueGreenInvoiceDocumentMutation = { __typename?: 'Mutation', issueGreenInvoiceDocument: { __typename?: 'BankDepositCharge', id: string } | { __typename?: 'BusinessTripCharge', id: string } | { __typename?: 'CommonCharge', id: string } | { __typename?: 'ConversionCharge', id: string } | { __typename?: 'CreditcardBankCharge', id: string } | { __typename?: 'DividendCharge', id: string } | { __typename?: 'FinancialCharge', id: string } | { __typename?: 'ForeignSecuritiesCharge', id: string } | { __typename?: 'InternalTransferCharge', id: string } | { __typename?: 'MonthlyVatCharge', id: string } | { __typename?: 'SalaryCharge', id: string } };

export type IssueMonthlyDocumentsMutationVariables = Exact<{
  generateDocumentsInfo: Array<NewDocumentInput> | NewDocumentInput;
}>;


export type IssueMonthlyDocumentsMutation = { __typename?: 'Mutation', issueGreenInvoiceDocuments: { __typename?: 'GenerateMonthlyClientDocumentsResult', success: boolean, errors?: Array<string> | null } };

export type MergeBusinessesMutationVariables = Exact<{
  targetBusinessId: Scalars['UUID']['input'];
  businessIdsToMerge: Array<Scalars['UUID']['input']> | Scalars['UUID']['input'];
}>;


export type MergeBusinessesMutation = { __typename?: 'Mutation', mergeBusinesses: { __typename: 'LtdFinancialEntity', id: string } | { __typename: 'PersonalFinancialEntity', id: string } };

export type MergeChargesMutationVariables = Exact<{
  baseChargeID: Scalars['UUID']['input'];
  chargeIdsToMerge: Array<Scalars['UUID']['input']> | Scalars['UUID']['input'];
  fields?: InputMaybe<UpdateChargeInput>;
}>;


export type MergeChargesMutation = { __typename?: 'Mutation', mergeCharges: { __typename: 'CommonError', message: string } | { __typename: 'MergeChargeSuccessfulResult', charge: { __typename?: 'BankDepositCharge', id: string } | { __typename?: 'BusinessTripCharge', id: string } | { __typename?: 'CommonCharge', id: string } | { __typename?: 'ConversionCharge', id: string } | { __typename?: 'CreditcardBankCharge', id: string } | { __typename?: 'DividendCharge', id: string } | { __typename?: 'FinancialCharge', id: string } | { __typename?: 'ForeignSecuritiesCharge', id: string } | { __typename?: 'InternalTransferCharge', id: string } | { __typename?: 'MonthlyVatCharge', id: string } | { __typename?: 'SalaryCharge', id: string } } };

export type PreviewGreenInvoiceDocumentMutationVariables = Exact<{
  input: NewDocumentInput;
}>;


export type PreviewGreenInvoiceDocumentMutation = { __typename?: 'Mutation', previewGreenInvoiceDocument: string };

export type RegenerateLedgerMutationVariables = Exact<{
  chargeId: Scalars['UUID']['input'];
}>;


export type RegenerateLedgerMutation = { __typename?: 'Mutation', regenerateLedgerRecords: { __typename: 'CommonError', message: string } | { __typename: 'Ledger', records: Array<{ __typename?: 'LedgerRecord', id: string }> } };

export type UpdateBusinessTripAccommodationsExpenseMutationVariables = Exact<{
  fields: UpdateBusinessTripAccommodationsExpenseInput;
}>;


export type UpdateBusinessTripAccommodationsExpenseMutation = { __typename?: 'Mutation', updateBusinessTripAccommodationsExpense: string };

export type UpdateBusinessTripAccountantApprovalMutationVariables = Exact<{
  businessTripId: Scalars['UUID']['input'];
  status: AccountantStatus;
}>;


export type UpdateBusinessTripAccountantApprovalMutation = { __typename?: 'Mutation', updateBusinessTripAccountantApproval: AccountantStatus };

export type UpdateBusinessTripAttendeeMutationVariables = Exact<{
  fields: BusinessTripAttendeeUpdateInput;
}>;


export type UpdateBusinessTripAttendeeMutation = { __typename?: 'Mutation', updateBusinessTripAttendee: string };

export type UpdateBusinessTripCarRentalExpenseMutationVariables = Exact<{
  fields: UpdateBusinessTripCarRentalExpenseInput;
}>;


export type UpdateBusinessTripCarRentalExpenseMutation = { __typename?: 'Mutation', updateBusinessTripCarRentalExpense: string };

export type UpdateBusinessTripFlightsExpenseMutationVariables = Exact<{
  fields: UpdateBusinessTripFlightsExpenseInput;
}>;


export type UpdateBusinessTripFlightsExpenseMutation = { __typename?: 'Mutation', updateBusinessTripFlightsExpense: string };

export type UpdateBusinessTripOtherExpenseMutationVariables = Exact<{
  fields: UpdateBusinessTripOtherExpenseInput;
}>;


export type UpdateBusinessTripOtherExpenseMutation = { __typename?: 'Mutation', updateBusinessTripOtherExpense: string };

export type UpdateBusinessTripTravelAndSubsistenceExpenseMutationVariables = Exact<{
  fields: UpdateBusinessTripTravelAndSubsistenceExpenseInput;
}>;


export type UpdateBusinessTripTravelAndSubsistenceExpenseMutation = { __typename?: 'Mutation', updateBusinessTripTravelAndSubsistenceExpense: string };

export type UpdateBusinessMutationVariables = Exact<{
  businessId: Scalars['UUID']['input'];
  ownerId: Scalars['UUID']['input'];
  fields: UpdateBusinessInput;
}>;


export type UpdateBusinessMutation = { __typename?: 'Mutation', updateBusiness: { __typename: 'CommonError', message: string } | { __typename: 'LtdFinancialEntity', id: string, name: string } };

export type UpdateChargeAccountantApprovalMutationVariables = Exact<{
  chargeId: Scalars['UUID']['input'];
  status: AccountantStatus;
}>;


export type UpdateChargeAccountantApprovalMutation = { __typename?: 'Mutation', updateChargeAccountantApproval: AccountantStatus };

export type UpdateChargeMutationVariables = Exact<{
  chargeId: Scalars['UUID']['input'];
  fields: UpdateChargeInput;
}>;


export type UpdateChargeMutation = { __typename?: 'Mutation', updateCharge: { __typename: 'CommonError', message: string } | { __typename: 'UpdateChargeSuccessfulResult', charge: { __typename?: 'BankDepositCharge', id: string } | { __typename?: 'BusinessTripCharge', id: string } | { __typename?: 'CommonCharge', id: string } | { __typename?: 'ConversionCharge', id: string } | { __typename?: 'CreditcardBankCharge', id: string } | { __typename?: 'DividendCharge', id: string } | { __typename?: 'FinancialCharge', id: string } | { __typename?: 'ForeignSecuritiesCharge', id: string } | { __typename?: 'InternalTransferCharge', id: string } | { __typename?: 'MonthlyVatCharge', id: string } | { __typename?: 'SalaryCharge', id: string } } };

export type UpdateDepreciationRecordMutationVariables = Exact<{
  fields: UpdateDepreciationRecordInput;
}>;


export type UpdateDepreciationRecordMutation = { __typename?: 'Mutation', updateDepreciationRecord: { __typename: 'CommonError', message: string } | { __typename: 'DepreciationRecord', id: string } };

export type UpdateDocumentMutationVariables = Exact<{
  documentId: Scalars['UUID']['input'];
  fields: UpdateDocumentFieldsInput;
}>;


export type UpdateDocumentMutation = { __typename?: 'Mutation', updateDocument: { __typename: 'CommonError', message: string } | { __typename: 'UpdateDocumentSuccessfulResult', document?: { __typename?: 'CreditInvoice', id: string } | { __typename?: 'Invoice', id: string } | { __typename?: 'InvoiceReceipt', id: string } | { __typename?: 'OtherDocument', id: string } | { __typename?: 'Proforma', id: string } | { __typename?: 'Receipt', id: string } | { __typename?: 'Unprocessed', id: string } | null } };

export type UpdateDynamicReportTemplateNameMutationVariables = Exact<{
  name: Scalars['String']['input'];
  newName: Scalars['String']['input'];
}>;


export type UpdateDynamicReportTemplateNameMutation = { __typename?: 'Mutation', updateDynamicReportTemplateName: { __typename?: 'DynamicReportInfo', id: string, name: string } };

export type UpdateDynamicReportTemplateMutationVariables = Exact<{
  name: Scalars['String']['input'];
  template: Scalars['String']['input'];
}>;


export type UpdateDynamicReportTemplateMutation = { __typename?: 'Mutation', updateDynamicReportTemplate: { __typename?: 'DynamicReportInfo', id: string, name: string } };

export type UpdateMiscExpenseMutationVariables = Exact<{
  id: Scalars['UUID']['input'];
  fields: UpdateMiscExpenseInput;
}>;


export type UpdateMiscExpenseMutation = { __typename?: 'Mutation', updateMiscExpense: { __typename?: 'MiscExpense', id: string } };

export type UpdateOrInsertSalaryRecordsMutationVariables = Exact<{
  salaryRecords: Array<SalaryRecordInput> | SalaryRecordInput;
}>;


export type UpdateOrInsertSalaryRecordsMutation = { __typename?: 'Mutation', insertOrUpdateSalaryRecords: { __typename: 'CommonError', message: string } | { __typename: 'InsertSalaryRecordsSuccessfulResult', salaryRecords: Array<{ __typename?: 'Salary', month: string, employee?: { __typename?: 'LtdFinancialEntity', id: string } | null }> } };

export type UpdateSalaryRecordMutationVariables = Exact<{
  salaryRecord: SalaryRecordEditInput;
}>;


export type UpdateSalaryRecordMutation = { __typename?: 'Mutation', updateSalaryRecord: { __typename: 'CommonError', message: string } | { __typename: 'UpdateSalaryRecordSuccessfulResult', salaryRecord: { __typename?: 'Salary', month: string, employee?: { __typename?: 'LtdFinancialEntity', id: string } | null } } };

export type UpdateSortCodeMutationVariables = Exact<{
  key: Scalars['Int']['input'];
  fields: UpdateSortCodeFieldsInput;
}>;


export type UpdateSortCodeMutation = { __typename?: 'Mutation', updateSortCode: boolean };

export type UpdateTagMutationVariables = Exact<{
  tagId: Scalars['UUID']['input'];
  fields: UpdateTagFieldsInput;
}>;


export type UpdateTagMutation = { __typename?: 'Mutation', updateTag: boolean };

export type UpdateTaxCategoryMutationVariables = Exact<{
  taxCategoryId: Scalars['UUID']['input'];
  fields: UpdateTaxCategoryInput;
}>;


export type UpdateTaxCategoryMutation = { __typename?: 'Mutation', updateTaxCategory: { __typename: 'CommonError', message: string } | { __typename: 'TaxCategory', id: string, name: string } };

export type UpdateTransactionMutationVariables = Exact<{
  transactionId: Scalars['UUID']['input'];
  fields: UpdateTransactionInput;
}>;


export type UpdateTransactionMutation = { __typename?: 'Mutation', updateTransaction: { __typename: 'CommonError', message: string } | { __typename: 'CommonTransaction', id: string } | { __typename: 'ConversionTransaction', id: string } };

export type UploadDocumentMutationVariables = Exact<{
  file: Scalars['FileScalar']['input'];
  chargeId?: InputMaybe<Scalars['UUID']['input']>;
}>;


export type UploadDocumentMutation = { __typename?: 'Mutation', uploadDocument: { __typename: 'CommonError', message: string } | { __typename: 'UploadDocumentSuccessfulResult', document?: { __typename?: 'CreditInvoice', id: string, charge?: { __typename?: 'BankDepositCharge', id: string } | { __typename?: 'BusinessTripCharge', id: string } | { __typename?: 'CommonCharge', id: string } | { __typename?: 'ConversionCharge', id: string } | { __typename?: 'CreditcardBankCharge', id: string } | { __typename?: 'DividendCharge', id: string } | { __typename?: 'FinancialCharge', id: string } | { __typename?: 'ForeignSecuritiesCharge', id: string } | { __typename?: 'InternalTransferCharge', id: string } | { __typename?: 'MonthlyVatCharge', id: string } | { __typename?: 'SalaryCharge', id: string } | null } | { __typename?: 'Invoice', id: string, charge?: { __typename?: 'BankDepositCharge', id: string } | { __typename?: 'BusinessTripCharge', id: string } | { __typename?: 'CommonCharge', id: string } | { __typename?: 'ConversionCharge', id: string } | { __typename?: 'CreditcardBankCharge', id: string } | { __typename?: 'DividendCharge', id: string } | { __typename?: 'FinancialCharge', id: string } | { __typename?: 'ForeignSecuritiesCharge', id: string } | { __typename?: 'InternalTransferCharge', id: string } | { __typename?: 'MonthlyVatCharge', id: string } | { __typename?: 'SalaryCharge', id: string } | null } | { __typename?: 'InvoiceReceipt', id: string, charge?: { __typename?: 'BankDepositCharge', id: string } | { __typename?: 'BusinessTripCharge', id: string } | { __typename?: 'CommonCharge', id: string } | { __typename?: 'ConversionCharge', id: string } | { __typename?: 'CreditcardBankCharge', id: string } | { __typename?: 'DividendCharge', id: string } | { __typename?: 'FinancialCharge', id: string } | { __typename?: 'ForeignSecuritiesCharge', id: string } | { __typename?: 'InternalTransferCharge', id: string } | { __typename?: 'MonthlyVatCharge', id: string } | { __typename?: 'SalaryCharge', id: string } | null } | { __typename?: 'OtherDocument', id: string, charge?: { __typename?: 'BankDepositCharge', id: string } | { __typename?: 'BusinessTripCharge', id: string } | { __typename?: 'CommonCharge', id: string } | { __typename?: 'ConversionCharge', id: string } | { __typename?: 'CreditcardBankCharge', id: string } | { __typename?: 'DividendCharge', id: string } | { __typename?: 'FinancialCharge', id: string } | { __typename?: 'ForeignSecuritiesCharge', id: string } | { __typename?: 'InternalTransferCharge', id: string } | { __typename?: 'MonthlyVatCharge', id: string } | { __typename?: 'SalaryCharge', id: string } | null } | { __typename?: 'Proforma', id: string, charge?: { __typename?: 'BankDepositCharge', id: string } | { __typename?: 'BusinessTripCharge', id: string } | { __typename?: 'CommonCharge', id: string } | { __typename?: 'ConversionCharge', id: string } | { __typename?: 'CreditcardBankCharge', id: string } | { __typename?: 'DividendCharge', id: string } | { __typename?: 'FinancialCharge', id: string } | { __typename?: 'ForeignSecuritiesCharge', id: string } | { __typename?: 'InternalTransferCharge', id: string } | { __typename?: 'MonthlyVatCharge', id: string } | { __typename?: 'SalaryCharge', id: string } | null } | { __typename?: 'Receipt', id: string, charge?: { __typename?: 'BankDepositCharge', id: string } | { __typename?: 'BusinessTripCharge', id: string } | { __typename?: 'CommonCharge', id: string } | { __typename?: 'ConversionCharge', id: string } | { __typename?: 'CreditcardBankCharge', id: string } | { __typename?: 'DividendCharge', id: string } | { __typename?: 'FinancialCharge', id: string } | { __typename?: 'ForeignSecuritiesCharge', id: string } | { __typename?: 'InternalTransferCharge', id: string } | { __typename?: 'MonthlyVatCharge', id: string } | { __typename?: 'SalaryCharge', id: string } | null } | { __typename?: 'Unprocessed', id: string, charge?: { __typename?: 'BankDepositCharge', id: string } | { __typename?: 'BusinessTripCharge', id: string } | { __typename?: 'CommonCharge', id: string } | { __typename?: 'ConversionCharge', id: string } | { __typename?: 'CreditcardBankCharge', id: string } | { __typename?: 'DividendCharge', id: string } | { __typename?: 'FinancialCharge', id: string } | { __typename?: 'ForeignSecuritiesCharge', id: string } | { __typename?: 'InternalTransferCharge', id: string } | { __typename?: 'MonthlyVatCharge', id: string } | { __typename?: 'SalaryCharge', id: string } | null } | null } };

export type UploadDocumentsFromGoogleDriveMutationVariables = Exact<{
  sharedFolderUrl: Scalars['String']['input'];
  chargeId?: InputMaybe<Scalars['UUID']['input']>;
  isSensitive?: InputMaybe<Scalars['Boolean']['input']>;
}>;


export type UploadDocumentsFromGoogleDriveMutation = { __typename?: 'Mutation', batchUploadDocumentsFromGoogleDrive: Array<{ __typename?: 'CommonError', message: string } | { __typename?: 'UploadDocumentSuccessfulResult', document?: (
      { __typename?: 'CreditInvoice', id: string }
      & { ' $fragmentRefs'?: { 'NewFetchedDocumentFields_CreditInvoice_Fragment': NewFetchedDocumentFields_CreditInvoice_Fragment } }
    ) | (
      { __typename?: 'Invoice', id: string }
      & { ' $fragmentRefs'?: { 'NewFetchedDocumentFields_Invoice_Fragment': NewFetchedDocumentFields_Invoice_Fragment } }
    ) | (
      { __typename?: 'InvoiceReceipt', id: string }
      & { ' $fragmentRefs'?: { 'NewFetchedDocumentFields_InvoiceReceipt_Fragment': NewFetchedDocumentFields_InvoiceReceipt_Fragment } }
    ) | (
      { __typename?: 'OtherDocument', id: string }
      & { ' $fragmentRefs'?: { 'NewFetchedDocumentFields_OtherDocument_Fragment': NewFetchedDocumentFields_OtherDocument_Fragment } }
    ) | (
      { __typename?: 'Proforma', id: string }
      & { ' $fragmentRefs'?: { 'NewFetchedDocumentFields_Proforma_Fragment': NewFetchedDocumentFields_Proforma_Fragment } }
    ) | (
      { __typename?: 'Receipt', id: string }
      & { ' $fragmentRefs'?: { 'NewFetchedDocumentFields_Receipt_Fragment': NewFetchedDocumentFields_Receipt_Fragment } }
    ) | (
      { __typename?: 'Unprocessed', id: string }
      & { ' $fragmentRefs'?: { 'NewFetchedDocumentFields_Unprocessed_Fragment': NewFetchedDocumentFields_Unprocessed_Fragment } }
    ) | null }> };

export type UploadMultipleDocumentsMutationVariables = Exact<{
  documents: Array<Scalars['FileScalar']['input']> | Scalars['FileScalar']['input'];
  chargeId?: InputMaybe<Scalars['UUID']['input']>;
  isSensitive?: InputMaybe<Scalars['Boolean']['input']>;
}>;


export type UploadMultipleDocumentsMutation = { __typename?: 'Mutation', batchUploadDocuments: Array<{ __typename?: 'CommonError', message: string } | { __typename?: 'UploadDocumentSuccessfulResult', document?: (
      { __typename?: 'CreditInvoice', id: string }
      & { ' $fragmentRefs'?: { 'NewFetchedDocumentFields_CreditInvoice_Fragment': NewFetchedDocumentFields_CreditInvoice_Fragment } }
    ) | (
      { __typename?: 'Invoice', id: string }
      & { ' $fragmentRefs'?: { 'NewFetchedDocumentFields_Invoice_Fragment': NewFetchedDocumentFields_Invoice_Fragment } }
    ) | (
      { __typename?: 'InvoiceReceipt', id: string }
      & { ' $fragmentRefs'?: { 'NewFetchedDocumentFields_InvoiceReceipt_Fragment': NewFetchedDocumentFields_InvoiceReceipt_Fragment } }
    ) | (
      { __typename?: 'OtherDocument', id: string }
      & { ' $fragmentRefs'?: { 'NewFetchedDocumentFields_OtherDocument_Fragment': NewFetchedDocumentFields_OtherDocument_Fragment } }
    ) | (
      { __typename?: 'Proforma', id: string }
      & { ' $fragmentRefs'?: { 'NewFetchedDocumentFields_Proforma_Fragment': NewFetchedDocumentFields_Proforma_Fragment } }
    ) | (
      { __typename?: 'Receipt', id: string }
      & { ' $fragmentRefs'?: { 'NewFetchedDocumentFields_Receipt_Fragment': NewFetchedDocumentFields_Receipt_Fragment } }
    ) | (
      { __typename?: 'Unprocessed', id: string }
      & { ' $fragmentRefs'?: { 'NewFetchedDocumentFields_Unprocessed_Fragment': NewFetchedDocumentFields_Unprocessed_Fragment } }
    ) | null }> };

export type UploadPayrollFileMutationVariables = Exact<{
  file: Scalars['FileScalar']['input'];
  chargeId: Scalars['UUID']['input'];
}>;


export type UploadPayrollFileMutation = { __typename?: 'Mutation', insertSalaryRecordsFromFile: boolean };

export type UserContextQueryVariables = Exact<{ [key: string]: never; }>;


export type UserContextQuery = { __typename?: 'Query', userContext?: { __typename?: 'UserContext', adminBusinessId: string, defaultLocalCurrency: Currency, defaultCryptoConversionFiatCurrency: Currency, ledgerLock?: TimelessDateString | null, financialAccountsBusinessesIds: Array<string> } | null };

export const BusinessTripsRowFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripsRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"accountantApproval"}}]}}]} as unknown as DocumentNode<BusinessTripsRowFieldsFragment, unknown>;
export const AllBusinessesNameFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AllBusinessesNameFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LtdFinancialEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]} as unknown as DocumentNode<AllBusinessesNameFieldsFragment, unknown>;
export const AllBusinessesHebrewNameFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AllBusinessesHebrewNameFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LtdFinancialEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"hebrewName"}}]}}]} as unknown as DocumentNode<AllBusinessesHebrewNameFieldsFragment, unknown>;
export const AllBusinessesRowFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AllBusinessesRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LtdFinancialEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"AllBusinessesNameFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"AllBusinessesHebrewNameFields"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AllBusinessesNameFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LtdFinancialEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AllBusinessesHebrewNameFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LtdFinancialEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"hebrewName"}}]}}]} as unknown as DocumentNode<AllBusinessesRowFieldsFragment, unknown>;
export const ChargesTableErrorsFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableErrorsFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"errorsLedger"},"name":{"kind":"Name","value":"ledger"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Ledger"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LedgerValidation"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"errors"}}]}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode<ChargesTableErrorsFieldsFragment, unknown>;
export const TableDocumentsRowFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TableDocumentsRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Document"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"documentType"}},{"kind":"Field","name":{"kind":"Name","value":"image"}},{"kind":"Field","name":{"kind":"Name","value":"file"}},{"kind":"Field","name":{"kind":"Name","value":"charge"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FinancialDocument"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"missingInfoSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"isIncome"}},{"kind":"Field","name":{"kind":"Name","value":"counterparty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"owner"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"vat"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"serialNumber"}},{"kind":"Field","name":{"kind":"Name","value":"allocationNumber"}},{"kind":"Field","name":{"kind":"Name","value":"creditor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"debtor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"issuedDocumentInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"originalDocument"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"income"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"description"}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode<TableDocumentsRowFieldsFragment, unknown>;
export const TableDocumentsFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TableDocumentsFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"additionalDocuments"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"TableDocumentsRowFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TableDocumentsRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Document"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"documentType"}},{"kind":"Field","name":{"kind":"Name","value":"image"}},{"kind":"Field","name":{"kind":"Name","value":"file"}},{"kind":"Field","name":{"kind":"Name","value":"charge"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FinancialDocument"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"missingInfoSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"isIncome"}},{"kind":"Field","name":{"kind":"Name","value":"counterparty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"owner"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"vat"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"serialNumber"}},{"kind":"Field","name":{"kind":"Name","value":"allocationNumber"}},{"kind":"Field","name":{"kind":"Name","value":"creditor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"debtor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"issuedDocumentInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"originalDocument"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"income"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"description"}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode<TableDocumentsFieldsFragment, unknown>;
export const TransactionForTransactionsTableFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TransactionForTransactionsTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Transaction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"chargeId"}},{"kind":"Field","name":{"kind":"Name","value":"eventDate"}},{"kind":"Field","name":{"kind":"Name","value":"effectiveDate"}},{"kind":"Field","name":{"kind":"Name","value":"sourceEffectiveDate"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"cryptoExchangeRate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"rate"}}]}},{"kind":"Field","name":{"kind":"Name","value":"account"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sourceDescription"}},{"kind":"Field","name":{"kind":"Name","value":"referenceKey"}},{"kind":"Field","name":{"kind":"Name","value":"counterparty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"missingInfoSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"business"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]} as unknown as DocumentNode<TransactionForTransactionsTableFieldsFragment, unknown>;
export const ChargeTableTransactionsFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargeTableTransactionsFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"transactions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"TransactionForTransactionsTableFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TransactionForTransactionsTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Transaction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"chargeId"}},{"kind":"Field","name":{"kind":"Name","value":"eventDate"}},{"kind":"Field","name":{"kind":"Name","value":"effectiveDate"}},{"kind":"Field","name":{"kind":"Name","value":"sourceEffectiveDate"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"cryptoExchangeRate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"rate"}}]}},{"kind":"Field","name":{"kind":"Name","value":"account"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sourceDescription"}},{"kind":"Field","name":{"kind":"Name","value":"referenceKey"}},{"kind":"Field","name":{"kind":"Name","value":"counterparty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"missingInfoSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"business"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]} as unknown as DocumentNode<ChargeTableTransactionsFieldsFragment, unknown>;
export const ConversionChargeInfoFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ConversionChargeInfo"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ConversionCharge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"eventRate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"from"}},{"kind":"Field","name":{"kind":"Name","value":"to"}},{"kind":"Field","name":{"kind":"Name","value":"rate"}}]}},{"kind":"Field","name":{"kind":"Name","value":"officialRate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"from"}},{"kind":"Field","name":{"kind":"Name","value":"to"}},{"kind":"Field","name":{"kind":"Name","value":"rate"}}]}}]}}]}}]} as unknown as DocumentNode<ConversionChargeInfoFragment, unknown>;
export const CreditcardBankChargeInfoFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CreditcardBankChargeInfo"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CreditcardBankCharge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"creditCardTransactions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"TransactionForTransactionsTableFields"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TransactionForTransactionsTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Transaction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"chargeId"}},{"kind":"Field","name":{"kind":"Name","value":"eventDate"}},{"kind":"Field","name":{"kind":"Name","value":"effectiveDate"}},{"kind":"Field","name":{"kind":"Name","value":"sourceEffectiveDate"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"cryptoExchangeRate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"rate"}}]}},{"kind":"Field","name":{"kind":"Name","value":"account"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sourceDescription"}},{"kind":"Field","name":{"kind":"Name","value":"referenceKey"}},{"kind":"Field","name":{"kind":"Name","value":"counterparty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"missingInfoSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"business"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]} as unknown as DocumentNode<CreditcardBankChargeInfoFragment, unknown>;
export const ExchangeRatesInfoFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ExchangeRatesInfo"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FinancialCharge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"exchangeRates"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"aud"}},{"kind":"Field","name":{"kind":"Name","value":"cad"}},{"kind":"Field","name":{"kind":"Name","value":"eur"}},{"kind":"Field","name":{"kind":"Name","value":"gbp"}},{"kind":"Field","name":{"kind":"Name","value":"ils"}},{"kind":"Field","name":{"kind":"Name","value":"jpy"}},{"kind":"Field","name":{"kind":"Name","value":"sek"}},{"kind":"Field","name":{"kind":"Name","value":"usd"}},{"kind":"Field","name":{"kind":"Name","value":"eth"}},{"kind":"Field","name":{"kind":"Name","value":"grt"}},{"kind":"Field","name":{"kind":"Name","value":"usdc"}}]}}]}}]}}]} as unknown as DocumentNode<ExchangeRatesInfoFragment, unknown>;
export const EditMiscExpenseFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EditMiscExpenseFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MiscExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"invoiceDate"}},{"kind":"Field","name":{"kind":"Name","value":"valueDate"}},{"kind":"Field","name":{"kind":"Name","value":"creditor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"debtor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode<EditMiscExpenseFieldsFragment, unknown>;
export const TableMiscExpensesFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TableMiscExpensesFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"miscExpenses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"invoiceDate"}},{"kind":"Field","name":{"kind":"Name","value":"valueDate"}},{"kind":"Field","name":{"kind":"Name","value":"creditor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"debtor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"chargeId"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"EditMiscExpenseFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EditMiscExpenseFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MiscExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"invoiceDate"}},{"kind":"Field","name":{"kind":"Name","value":"valueDate"}},{"kind":"Field","name":{"kind":"Name","value":"creditor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"debtor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode<TableMiscExpensesFieldsFragment, unknown>;
export const TableSalariesFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TableSalariesFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SalaryCharge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"salaryRecords"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"directAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"baseAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pensionFund"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pensionEmployeeAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pensionEmployerAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"compensationsAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"trainingFund"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"trainingFundEmployeeAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"trainingFundEmployerAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"socialSecurityEmployeeAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"socialSecurityEmployerAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"incomeTaxAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"healthInsuranceAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}}]}}]}}]}}]} as unknown as DocumentNode<TableSalariesFieldsFragment, unknown>;
export const MonthlyIncomeExpenseChartInfoFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MonthlyIncomeExpenseChartInfo"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IncomeExpenseChart"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"monthlyData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"income"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"expense"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"balance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"date"}}]}}]}}]} as unknown as DocumentNode<MonthlyIncomeExpenseChartInfoFragment, unknown>;
export const BusinessTripAccountantApprovalFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripAccountantApprovalFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"accountantApproval"}}]}}]} as unknown as DocumentNode<BusinessTripAccountantApprovalFieldsFragment, unknown>;
export const BusinessTripReportHeaderFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportHeaderFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"dates"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"start"}},{"kind":"Field","name":{"kind":"Name","value":"end"}}]}},{"kind":"Field","name":{"kind":"Name","value":"purpose"}},{"kind":"Field","name":{"kind":"Name","value":"destination"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripAccountantApprovalFields"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripAccountantApprovalFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"accountantApproval"}}]}}]} as unknown as DocumentNode<BusinessTripReportHeaderFieldsFragment, unknown>;
export const BusinessTripReportSummaryFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportSummaryFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"summary"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"excessExpenditure"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"excessTax"}},{"kind":"Field","name":{"kind":"Name","value":"rows"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"totalForeignCurrency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"totalLocalCurrency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"taxableForeignCurrency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"taxableLocalCurrency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"maxTaxableForeignCurrency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"maxTaxableLocalCurrency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"excessExpenditure"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"errors"}}]}}]}}]}}]} as unknown as DocumentNode<BusinessTripReportSummaryFieldsFragment, unknown>;
export const BusinessTripReportFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportHeaderFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportSummaryFields"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripAccountantApprovalFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"accountantApproval"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportHeaderFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"dates"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"start"}},{"kind":"Field","name":{"kind":"Name","value":"end"}}]}},{"kind":"Field","name":{"kind":"Name","value":"purpose"}},{"kind":"Field","name":{"kind":"Name","value":"destination"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripAccountantApprovalFields"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportSummaryFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"summary"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"excessExpenditure"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"excessTax"}},{"kind":"Field","name":{"kind":"Name","value":"rows"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"totalForeignCurrency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"totalLocalCurrency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"taxableForeignCurrency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"taxableLocalCurrency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"maxTaxableForeignCurrency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"maxTaxableLocalCurrency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"excessExpenditure"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"errors"}}]}}]}}]}}]} as unknown as DocumentNode<BusinessTripReportFieldsFragment, unknown>;
export const BusinessTripReportCoreExpenseRowFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportCoreExpenseRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"valueDate"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"payedByEmployee"}},{"kind":"Field","name":{"kind":"Name","value":"charges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode<BusinessTripReportCoreExpenseRowFieldsFragment, unknown>;
export const BusinessTripReportAccommodationsRowFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportAccommodationsRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripAccommodationExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportCoreExpenseRowFields"}},{"kind":"Field","name":{"kind":"Name","value":"payedByEmployee"}},{"kind":"Field","name":{"kind":"Name","value":"country"}},{"kind":"Field","name":{"kind":"Name","value":"nightsCount"}},{"kind":"Field","name":{"kind":"Name","value":"attendeesStay"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"attendee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"nightsCount"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportCoreExpenseRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"valueDate"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"payedByEmployee"}},{"kind":"Field","name":{"kind":"Name","value":"charges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode<BusinessTripReportAccommodationsRowFieldsFragment, unknown>;
export const BusinessTripReportAccommodationsTableFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportAccommodationsTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripAccommodationExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportAccommodationsRowFields"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportCoreExpenseRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"valueDate"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"payedByEmployee"}},{"kind":"Field","name":{"kind":"Name","value":"charges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportAccommodationsRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripAccommodationExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportCoreExpenseRowFields"}},{"kind":"Field","name":{"kind":"Name","value":"payedByEmployee"}},{"kind":"Field","name":{"kind":"Name","value":"country"}},{"kind":"Field","name":{"kind":"Name","value":"nightsCount"}},{"kind":"Field","name":{"kind":"Name","value":"attendeesStay"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"attendee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"nightsCount"}}]}}]}}]} as unknown as DocumentNode<BusinessTripReportAccommodationsTableFieldsFragment, unknown>;
export const BusinessTripReportAccommodationsFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportAccommodationsFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"accommodationExpenses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportAccommodationsTableFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportCoreExpenseRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"valueDate"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"payedByEmployee"}},{"kind":"Field","name":{"kind":"Name","value":"charges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportAccommodationsRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripAccommodationExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportCoreExpenseRowFields"}},{"kind":"Field","name":{"kind":"Name","value":"payedByEmployee"}},{"kind":"Field","name":{"kind":"Name","value":"country"}},{"kind":"Field","name":{"kind":"Name","value":"nightsCount"}},{"kind":"Field","name":{"kind":"Name","value":"attendeesStay"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"attendee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"nightsCount"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportAccommodationsTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripAccommodationExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportAccommodationsRowFields"}}]}}]} as unknown as DocumentNode<BusinessTripReportAccommodationsFieldsFragment, unknown>;
export const BusinessTripReportFlightsRowFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportFlightsRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripFlightExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"payedByEmployee"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportCoreExpenseRowFields"}},{"kind":"Field","name":{"kind":"Name","value":"path"}},{"kind":"Field","name":{"kind":"Name","value":"class"}},{"kind":"Field","name":{"kind":"Name","value":"attendees"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportCoreExpenseRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"valueDate"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"payedByEmployee"}},{"kind":"Field","name":{"kind":"Name","value":"charges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode<BusinessTripReportFlightsRowFieldsFragment, unknown>;
export const BusinessTripReportFlightsTableFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportFlightsTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripFlightExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportFlightsRowFields"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportCoreExpenseRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"valueDate"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"payedByEmployee"}},{"kind":"Field","name":{"kind":"Name","value":"charges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportFlightsRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripFlightExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"payedByEmployee"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportCoreExpenseRowFields"}},{"kind":"Field","name":{"kind":"Name","value":"path"}},{"kind":"Field","name":{"kind":"Name","value":"class"}},{"kind":"Field","name":{"kind":"Name","value":"attendees"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode<BusinessTripReportFlightsTableFieldsFragment, unknown>;
export const BusinessTripReportAttendeeRowFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportAttendeeRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripAttendee"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"arrivalDate"}},{"kind":"Field","name":{"kind":"Name","value":"departureDate"}},{"kind":"Field","name":{"kind":"Name","value":"flights"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportFlightsTableFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"accommodations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportAccommodationsTableFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportCoreExpenseRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"valueDate"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"payedByEmployee"}},{"kind":"Field","name":{"kind":"Name","value":"charges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportFlightsRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripFlightExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"payedByEmployee"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportCoreExpenseRowFields"}},{"kind":"Field","name":{"kind":"Name","value":"path"}},{"kind":"Field","name":{"kind":"Name","value":"class"}},{"kind":"Field","name":{"kind":"Name","value":"attendees"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportAccommodationsRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripAccommodationExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportCoreExpenseRowFields"}},{"kind":"Field","name":{"kind":"Name","value":"payedByEmployee"}},{"kind":"Field","name":{"kind":"Name","value":"country"}},{"kind":"Field","name":{"kind":"Name","value":"nightsCount"}},{"kind":"Field","name":{"kind":"Name","value":"attendeesStay"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"attendee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"nightsCount"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportFlightsTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripFlightExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportFlightsRowFields"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportAccommodationsTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripAccommodationExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportAccommodationsRowFields"}}]}}]} as unknown as DocumentNode<BusinessTripReportAttendeeRowFieldsFragment, unknown>;
export const BusinessTripReportAttendeesFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportAttendeesFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"attendees"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportAttendeeRowFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportCoreExpenseRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"valueDate"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"payedByEmployee"}},{"kind":"Field","name":{"kind":"Name","value":"charges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportFlightsRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripFlightExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"payedByEmployee"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportCoreExpenseRowFields"}},{"kind":"Field","name":{"kind":"Name","value":"path"}},{"kind":"Field","name":{"kind":"Name","value":"class"}},{"kind":"Field","name":{"kind":"Name","value":"attendees"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportFlightsTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripFlightExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportFlightsRowFields"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportAccommodationsRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripAccommodationExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportCoreExpenseRowFields"}},{"kind":"Field","name":{"kind":"Name","value":"payedByEmployee"}},{"kind":"Field","name":{"kind":"Name","value":"country"}},{"kind":"Field","name":{"kind":"Name","value":"nightsCount"}},{"kind":"Field","name":{"kind":"Name","value":"attendeesStay"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"attendee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"nightsCount"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportAccommodationsTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripAccommodationExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportAccommodationsRowFields"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportAttendeeRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripAttendee"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"arrivalDate"}},{"kind":"Field","name":{"kind":"Name","value":"departureDate"}},{"kind":"Field","name":{"kind":"Name","value":"flights"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportFlightsTableFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"accommodations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportAccommodationsTableFields"}}]}}]}}]} as unknown as DocumentNode<BusinessTripReportAttendeesFieldsFragment, unknown>;
export const BusinessTripReportCarRentalRowFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportCarRentalRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripCarRentalExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"payedByEmployee"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportCoreExpenseRowFields"}},{"kind":"Field","name":{"kind":"Name","value":"days"}},{"kind":"Field","name":{"kind":"Name","value":"isFuelExpense"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportCoreExpenseRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"valueDate"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"payedByEmployee"}},{"kind":"Field","name":{"kind":"Name","value":"charges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode<BusinessTripReportCarRentalRowFieldsFragment, unknown>;
export const BusinessTripReportCarRentalFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportCarRentalFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"carRentalExpenses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportCarRentalRowFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportCoreExpenseRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"valueDate"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"payedByEmployee"}},{"kind":"Field","name":{"kind":"Name","value":"charges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportCarRentalRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripCarRentalExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"payedByEmployee"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportCoreExpenseRowFields"}},{"kind":"Field","name":{"kind":"Name","value":"days"}},{"kind":"Field","name":{"kind":"Name","value":"isFuelExpense"}}]}}]} as unknown as DocumentNode<BusinessTripReportCarRentalFieldsFragment, unknown>;
export const BusinessTripReportFlightsFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportFlightsFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"flightExpenses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportFlightsTableFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"attendees"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportCoreExpenseRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"valueDate"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"payedByEmployee"}},{"kind":"Field","name":{"kind":"Name","value":"charges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportFlightsRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripFlightExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"payedByEmployee"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportCoreExpenseRowFields"}},{"kind":"Field","name":{"kind":"Name","value":"path"}},{"kind":"Field","name":{"kind":"Name","value":"class"}},{"kind":"Field","name":{"kind":"Name","value":"attendees"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportFlightsTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripFlightExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportFlightsRowFields"}}]}}]} as unknown as DocumentNode<BusinessTripReportFlightsFieldsFragment, unknown>;
export const BusinessTripReportOtherRowFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportOtherRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripOtherExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportCoreExpenseRowFields"}},{"kind":"Field","name":{"kind":"Name","value":"payedByEmployee"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"deductibleExpense"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportCoreExpenseRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"valueDate"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"payedByEmployee"}},{"kind":"Field","name":{"kind":"Name","value":"charges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode<BusinessTripReportOtherRowFieldsFragment, unknown>;
export const BusinessTripReportOtherFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportOtherFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"otherExpenses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportOtherRowFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportCoreExpenseRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"valueDate"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"payedByEmployee"}},{"kind":"Field","name":{"kind":"Name","value":"charges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportOtherRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripOtherExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportCoreExpenseRowFields"}},{"kind":"Field","name":{"kind":"Name","value":"payedByEmployee"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"deductibleExpense"}}]}}]} as unknown as DocumentNode<BusinessTripReportOtherFieldsFragment, unknown>;
export const BusinessTripReportTravelAndSubsistenceRowFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportTravelAndSubsistenceRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripTravelAndSubsistenceExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportCoreExpenseRowFields"}},{"kind":"Field","name":{"kind":"Name","value":"payedByEmployee"}},{"kind":"Field","name":{"kind":"Name","value":"expenseType"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportCoreExpenseRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"valueDate"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"payedByEmployee"}},{"kind":"Field","name":{"kind":"Name","value":"charges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode<BusinessTripReportTravelAndSubsistenceRowFieldsFragment, unknown>;
export const BusinessTripReportTravelAndSubsistenceFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportTravelAndSubsistenceFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"travelAndSubsistenceExpenses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportTravelAndSubsistenceRowFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportCoreExpenseRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"valueDate"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"payedByEmployee"}},{"kind":"Field","name":{"kind":"Name","value":"charges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportTravelAndSubsistenceRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripTravelAndSubsistenceExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportCoreExpenseRowFields"}},{"kind":"Field","name":{"kind":"Name","value":"payedByEmployee"}},{"kind":"Field","name":{"kind":"Name","value":"expenseType"}}]}}]} as unknown as DocumentNode<BusinessTripReportTravelAndSubsistenceFieldsFragment, unknown>;
export const TransactionsTableEventDateFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TransactionsTableEventDateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Transaction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"eventDate"}}]}}]} as unknown as DocumentNode<TransactionsTableEventDateFieldsFragment, unknown>;
export const TransactionsTableDebitDateFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TransactionsTableDebitDateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Transaction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"effectiveDate"}},{"kind":"Field","name":{"kind":"Name","value":"sourceEffectiveDate"}}]}}]} as unknown as DocumentNode<TransactionsTableDebitDateFieldsFragment, unknown>;
export const TransactionsTableAccountFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TransactionsTableAccountFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Transaction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"account"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}}]}}]} as unknown as DocumentNode<TransactionsTableAccountFieldsFragment, unknown>;
export const TransactionsTableDescriptionFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TransactionsTableDescriptionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Transaction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"sourceDescription"}}]}}]} as unknown as DocumentNode<TransactionsTableDescriptionFieldsFragment, unknown>;
export const TransactionsTableSourceIdFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TransactionsTableSourceIDFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Transaction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"referenceKey"}}]}}]} as unknown as DocumentNode<TransactionsTableSourceIdFieldsFragment, unknown>;
export const TransactionsTableEntityFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TransactionsTableEntityFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Transaction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"counterparty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sourceDescription"}},{"kind":"Field","name":{"kind":"Name","value":"missingInfoSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"business"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]} as unknown as DocumentNode<TransactionsTableEntityFieldsFragment, unknown>;
export const UncategorizedTransactionsTableAmountFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"UncategorizedTransactionsTableAmountFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UncategorizedTransaction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"transaction"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"cryptoExchangeRate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"rate"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"categorizedAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"errors"}}]}}]} as unknown as DocumentNode<UncategorizedTransactionsTableAmountFieldsFragment, unknown>;
export const BusinessTripUncategorizedTransactionsFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripUncategorizedTransactionsFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"uncategorizedTransactions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"transaction"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"eventDate"}},{"kind":"Field","name":{"kind":"Name","value":"chargeId"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"TransactionsTableEventDateFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"TransactionsTableDebitDateFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"TransactionsTableAccountFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"TransactionsTableDescriptionFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"TransactionsTableSourceIDFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"TransactionsTableEntityFields"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"UncategorizedTransactionsTableAmountFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TransactionsTableEventDateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Transaction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"eventDate"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TransactionsTableDebitDateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Transaction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"effectiveDate"}},{"kind":"Field","name":{"kind":"Name","value":"sourceEffectiveDate"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TransactionsTableAccountFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Transaction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"account"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TransactionsTableDescriptionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Transaction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"sourceDescription"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TransactionsTableSourceIDFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Transaction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"referenceKey"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TransactionsTableEntityFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Transaction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"counterparty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sourceDescription"}},{"kind":"Field","name":{"kind":"Name","value":"missingInfoSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"business"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"UncategorizedTransactionsTableAmountFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UncategorizedTransaction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"transaction"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"cryptoExchangeRate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"rate"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"categorizedAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"errors"}}]}}]} as unknown as DocumentNode<BusinessTripUncategorizedTransactionsFieldsFragment, unknown>;
export const DepreciationRecordRowFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"DepreciationRecordRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DepreciationRecord"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"activationDate"}},{"kind":"Field","name":{"kind":"Name","value":"category"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"percentage"}}]}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"charge"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"totalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}}]}}]}}]} as unknown as DocumentNode<DepreciationRecordRowFieldsFragment, unknown>;
export const ChargeToMatchDocumentsFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargeToMatchDocumentsFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"totalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"counterparty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"transactions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"eventDate"}},{"kind":"Field","name":{"kind":"Name","value":"sourceDescription"}}]}}]}}]} as unknown as DocumentNode<ChargeToMatchDocumentsFieldsFragment, unknown>;
export const DocumentsToMatchFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"DocumentsToMatchFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Document"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"charge"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"image"}},{"kind":"Field","name":{"kind":"Name","value":"file"}},{"kind":"Field","name":{"kind":"Name","value":"documentType"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FinancialDocument"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"creditor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"serialNumber"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}}]}}]}}]} as unknown as DocumentNode<DocumentsToMatchFieldsFragment, unknown>;
export const EditTagFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EditTagFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Tag"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"parent"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode<EditTagFieldsFragment, unknown>;
export const IssueDocumentClientFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"IssueDocumentClientFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GreenInvoiceClient"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"country"}},{"kind":"Field","name":{"kind":"Name","value":"emails"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"phone"}},{"kind":"Field","name":{"kind":"Name","value":"taxId"}},{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"city"}},{"kind":"Field","name":{"kind":"Name","value":"zip"}},{"kind":"Field","name":{"kind":"Name","value":"fax"}},{"kind":"Field","name":{"kind":"Name","value":"mobile"}}]}}]} as unknown as DocumentNode<IssueDocumentClientFieldsFragment, unknown>;
export const NewDocumentInfoFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"NewDocumentInfo"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NewDocumentInfo"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"remarks"}},{"kind":"Field","name":{"kind":"Name","value":"footer"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"dueDate"}},{"kind":"Field","name":{"kind":"Name","value":"lang"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"vatType"}},{"kind":"Field","name":{"kind":"Name","value":"discount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rounding"}},{"kind":"Field","name":{"kind":"Name","value":"signed"}},{"kind":"Field","name":{"kind":"Name","value":"maxPayments"}},{"kind":"Field","name":{"kind":"Name","value":"client"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"IssueDocumentClientFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"income"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"currencyRate"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"itemId"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"vatRate"}},{"kind":"Field","name":{"kind":"Name","value":"vatType"}}]}},{"kind":"Field","name":{"kind":"Name","value":"payment"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"currencyRate"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"subType"}},{"kind":"Field","name":{"kind":"Name","value":"bankName"}},{"kind":"Field","name":{"kind":"Name","value":"bankBranch"}},{"kind":"Field","name":{"kind":"Name","value":"bankAccount"}},{"kind":"Field","name":{"kind":"Name","value":"chequeNum"}},{"kind":"Field","name":{"kind":"Name","value":"accountId"}},{"kind":"Field","name":{"kind":"Name","value":"transactionId"}},{"kind":"Field","name":{"kind":"Name","value":"appType"}},{"kind":"Field","name":{"kind":"Name","value":"cardType"}},{"kind":"Field","name":{"kind":"Name","value":"cardNum"}},{"kind":"Field","name":{"kind":"Name","value":"dealType"}},{"kind":"Field","name":{"kind":"Name","value":"numPayments"}},{"kind":"Field","name":{"kind":"Name","value":"firstPayment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"linkedDocumentIds"}},{"kind":"Field","name":{"kind":"Name","value":"linkedPaymentId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"IssueDocumentClientFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GreenInvoiceClient"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"country"}},{"kind":"Field","name":{"kind":"Name","value":"emails"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"phone"}},{"kind":"Field","name":{"kind":"Name","value":"taxId"}},{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"city"}},{"kind":"Field","name":{"kind":"Name","value":"zip"}},{"kind":"Field","name":{"kind":"Name","value":"fax"}},{"kind":"Field","name":{"kind":"Name","value":"mobile"}}]}}]} as unknown as DocumentNode<NewDocumentInfoFragment, unknown>;
export const SimilarChargesTableFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SimilarChargesTable"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"counterparty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"minEventDate"}},{"kind":"Field","name":{"kind":"Name","value":"minDebitDate"}},{"kind":"Field","name":{"kind":"Name","value":"minDocumentsDate"}},{"kind":"Field","name":{"kind":"Name","value":"totalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"vat"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"userDescription"}},{"kind":"Field","name":{"kind":"Name","value":"tags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"taxCategory"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripCharge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"businessTrip"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"transactionsCount"}},{"kind":"Field","name":{"kind":"Name","value":"documentsCount"}},{"kind":"Field","name":{"kind":"Name","value":"ledgerCount"}},{"kind":"Field","name":{"kind":"Name","value":"miscExpensesCount"}}]}}]}}]} as unknown as DocumentNode<SimilarChargesTableFragment, unknown>;
export const NewFetchedDocumentFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"NewFetchedDocumentFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Document"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"documentType"}},{"kind":"Field","name":{"kind":"Name","value":"charge"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"userDescription"}},{"kind":"Field","name":{"kind":"Name","value":"counterparty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]} as unknown as DocumentNode<NewFetchedDocumentFieldsFragment, unknown>;
export const DocumentsGalleryFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"DocumentsGalleryFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"additionalDocuments"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"image"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FinancialDocument"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"documentType"}}]}}]}}]}}]} as unknown as DocumentNode<DocumentsGalleryFieldsFragment, unknown>;
export const TableLedgerRecordsFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TableLedgerRecordsFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"ledger"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"records"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"creditAccount1"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"creditAccount2"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"debitAccount1"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"debitAccount2"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"creditAmount1"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"creditAmount2"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"debitAmount1"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"debitAmount2"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"localCurrencyCreditAmount1"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"localCurrencyCreditAmount2"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"localCurrencyDebitAmount1"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"localCurrencyDebitAmount2"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"invoiceDate"}},{"kind":"Field","name":{"kind":"Name","value":"valueDate"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"reference"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Ledger"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LedgerValidation"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"matches"}},{"kind":"Field","name":{"kind":"Name","value":"differences"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"creditAccount1"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"creditAccount2"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"debitAccount1"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"debitAccount2"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"creditAmount1"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"creditAmount2"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"debitAmount1"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"debitAmount2"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"localCurrencyCreditAmount1"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"localCurrencyCreditAmount2"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"localCurrencyDebitAmount1"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"localCurrencyDebitAmount2"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"invoiceDate"}},{"kind":"Field","name":{"kind":"Name","value":"valueDate"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"reference"}}]}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode<TableLedgerRecordsFieldsFragment, unknown>;
export const CorporateTaxRulingReportRuleCellFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CorporateTaxRulingReportRuleCellFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CorporateTaxRule"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"rule"}},{"kind":"Field","name":{"kind":"Name","value":"percentage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"isCompliant"}}]}}]} as unknown as DocumentNode<CorporateTaxRulingReportRuleCellFieldsFragment, unknown>;
export const ReportSubCommentaryTableFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ReportSubCommentaryTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ReportCommentarySubRecord"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"financialEntity"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}}]}}]} as unknown as DocumentNode<ReportSubCommentaryTableFieldsFragment, unknown>;
export const ReportCommentaryTableFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ReportCommentaryTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ReportCommentary"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"records"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sortCode"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"records"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ReportSubCommentaryTableFields"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ReportSubCommentaryTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ReportCommentarySubRecord"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"financialEntity"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}}]}}]} as unknown as DocumentNode<ReportCommentaryTableFieldsFragment, unknown>;
export const TrialBalanceTableFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TrialBalanceTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTransactionsSumFromLedgerRecordsSuccessfulResult"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"businessTransactionsSum"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"business"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"sortCode"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"credit"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"debit"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"total"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}}]}}]}}]} as unknown as DocumentNode<TrialBalanceTableFieldsFragment, unknown>;
export const ChargesTableAccountantApprovalFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableAccountantApprovalFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"accountantApproval"}}]}}]} as unknown as DocumentNode<ChargesTableAccountantApprovalFieldsFragment, unknown>;
export const ChargesTableAmountFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableAmountFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"totalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CreditcardBankCharge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validCreditCardAmount"}}]}}]}}]} as unknown as DocumentNode<ChargesTableAmountFieldsFragment, unknown>;
export const ChargesTableBusinessTripFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableBusinessTripFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripCharge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"businessTrip"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]} as unknown as DocumentNode<ChargesTableBusinessTripFieldsFragment, unknown>;
export const ChargesTableDateFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableDateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"minEventDate"}},{"kind":"Field","name":{"kind":"Name","value":"minDebitDate"}},{"kind":"Field","name":{"kind":"Name","value":"minDocumentsDate"}}]}}]} as unknown as DocumentNode<ChargesTableDateFieldsFragment, unknown>;
export const ChargesTableDescriptionFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableDescriptionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"userDescription"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}},{"kind":"Field","name":{"kind":"Name","value":"missingInfoSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"description"}}]}}]}}]}}]} as unknown as DocumentNode<ChargesTableDescriptionFieldsFragment, unknown>;
export const ChargesTableEntityFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableEntityFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"counterparty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}}]} as unknown as DocumentNode<ChargesTableEntityFieldsFragment, unknown>;
export const ChargesTableMoreInfoFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableMoreInfoFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"transactionsCount"}},{"kind":"Field","name":{"kind":"Name","value":"documentsCount"}},{"kind":"Field","name":{"kind":"Name","value":"ledgerCount"}},{"kind":"Field","name":{"kind":"Name","value":"miscExpensesCount"}},{"kind":"Field","name":{"kind":"Name","value":"isSalary"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeMetadata"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"invalidLedger"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}}]} as unknown as DocumentNode<ChargesTableMoreInfoFieldsFragment, unknown>;
export const ChargesTableTagsFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableTagsFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"tags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"namePath"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ValidationData"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"missingInfoSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeSuggestions"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"tags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"namePath"}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode<ChargesTableTagsFieldsFragment, unknown>;
export const ChargesTableTaxCategoryFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableTaxCategoryFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"taxCategory"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}}]} as unknown as DocumentNode<ChargesTableTaxCategoryFieldsFragment, unknown>;
export const ChargesTableTypeFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableTypeFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]} as unknown as DocumentNode<ChargesTableTypeFieldsFragment, unknown>;
export const ChargesTableVatFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableVatFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"vat"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"totalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}}]} as unknown as DocumentNode<ChargesTableVatFieldsFragment, unknown>;
export const ChargesTableRowFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeMetadata"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"documentsCount"}},{"kind":"Field","name":{"kind":"Name","value":"ledgerCount"}},{"kind":"Field","name":{"kind":"Name","value":"transactionsCount"}},{"kind":"Field","name":{"kind":"Name","value":"miscExpensesCount"}}]}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableAccountantApprovalFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableAmountFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableBusinessTripFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableDateFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableDescriptionFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableEntityFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableMoreInfoFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableTagsFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableTaxCategoryFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableTypeFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableVatFields"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableAccountantApprovalFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"accountantApproval"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableAmountFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"totalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CreditcardBankCharge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validCreditCardAmount"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableBusinessTripFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripCharge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"businessTrip"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableDateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"minEventDate"}},{"kind":"Field","name":{"kind":"Name","value":"minDebitDate"}},{"kind":"Field","name":{"kind":"Name","value":"minDocumentsDate"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableDescriptionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"userDescription"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}},{"kind":"Field","name":{"kind":"Name","value":"missingInfoSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"description"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableEntityFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"counterparty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableMoreInfoFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"transactionsCount"}},{"kind":"Field","name":{"kind":"Name","value":"documentsCount"}},{"kind":"Field","name":{"kind":"Name","value":"ledgerCount"}},{"kind":"Field","name":{"kind":"Name","value":"miscExpensesCount"}},{"kind":"Field","name":{"kind":"Name","value":"isSalary"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeMetadata"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"invalidLedger"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableTagsFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"tags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"namePath"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ValidationData"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"missingInfoSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeSuggestions"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"tags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"namePath"}}]}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableTaxCategoryFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"taxCategory"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableTypeFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableVatFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"vat"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"totalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}}]} as unknown as DocumentNode<ChargesTableRowFieldsFragment, unknown>;
export const ChargesTableFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"owner"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableRowFields"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableAccountantApprovalFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"accountantApproval"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableAmountFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"totalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CreditcardBankCharge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validCreditCardAmount"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableBusinessTripFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripCharge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"businessTrip"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableDateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"minEventDate"}},{"kind":"Field","name":{"kind":"Name","value":"minDebitDate"}},{"kind":"Field","name":{"kind":"Name","value":"minDocumentsDate"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableDescriptionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"userDescription"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}},{"kind":"Field","name":{"kind":"Name","value":"missingInfoSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"description"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableEntityFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"counterparty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableMoreInfoFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"transactionsCount"}},{"kind":"Field","name":{"kind":"Name","value":"documentsCount"}},{"kind":"Field","name":{"kind":"Name","value":"ledgerCount"}},{"kind":"Field","name":{"kind":"Name","value":"miscExpensesCount"}},{"kind":"Field","name":{"kind":"Name","value":"isSalary"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeMetadata"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"invalidLedger"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableTagsFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"tags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"namePath"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ValidationData"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"missingInfoSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeSuggestions"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"tags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"namePath"}}]}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableTaxCategoryFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"taxCategory"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableTypeFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableVatFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"vat"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"totalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeMetadata"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"documentsCount"}},{"kind":"Field","name":{"kind":"Name","value":"ledgerCount"}},{"kind":"Field","name":{"kind":"Name","value":"transactionsCount"}},{"kind":"Field","name":{"kind":"Name","value":"miscExpensesCount"}}]}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableAccountantApprovalFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableAmountFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableBusinessTripFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableDateFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableDescriptionFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableEntityFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableMoreInfoFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableTagsFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableTaxCategoryFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableTypeFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableVatFields"}}]}}]} as unknown as DocumentNode<ChargesTableFieldsFragment, unknown>;
export const VatReportBusinessTripsFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"VatReportBusinessTripsFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"VatReportResult"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"businessTrips"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableAccountantApprovalFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"accountantApproval"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableAmountFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"totalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CreditcardBankCharge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validCreditCardAmount"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableBusinessTripFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripCharge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"businessTrip"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableDateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"minEventDate"}},{"kind":"Field","name":{"kind":"Name","value":"minDebitDate"}},{"kind":"Field","name":{"kind":"Name","value":"minDocumentsDate"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableDescriptionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"userDescription"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}},{"kind":"Field","name":{"kind":"Name","value":"missingInfoSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"description"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableEntityFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"counterparty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableMoreInfoFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"transactionsCount"}},{"kind":"Field","name":{"kind":"Name","value":"documentsCount"}},{"kind":"Field","name":{"kind":"Name","value":"ledgerCount"}},{"kind":"Field","name":{"kind":"Name","value":"miscExpensesCount"}},{"kind":"Field","name":{"kind":"Name","value":"isSalary"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeMetadata"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"invalidLedger"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableTagsFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"tags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"namePath"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ValidationData"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"missingInfoSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeSuggestions"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"tags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"namePath"}}]}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableTaxCategoryFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"taxCategory"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableTypeFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableVatFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"vat"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"totalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeMetadata"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"documentsCount"}},{"kind":"Field","name":{"kind":"Name","value":"ledgerCount"}},{"kind":"Field","name":{"kind":"Name","value":"transactionsCount"}},{"kind":"Field","name":{"kind":"Name","value":"miscExpensesCount"}}]}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableAccountantApprovalFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableAmountFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableBusinessTripFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableDateFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableDescriptionFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableEntityFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableMoreInfoFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableTagsFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableTaxCategoryFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableTypeFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableVatFields"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"owner"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableRowFields"}}]}}]} as unknown as DocumentNode<VatReportBusinessTripsFieldsFragment, unknown>;
export const VatReportAccountantApprovalFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"VatReportAccountantApprovalFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"VatReportRecord"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"chargeId"}},{"kind":"Field","name":{"kind":"Name","value":"chargeAccountantStatus"}}]}}]} as unknown as DocumentNode<VatReportAccountantApprovalFieldsFragment, unknown>;
export const VatReportExpensesRowFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"VatReportExpensesRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"VatReportRecord"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"VatReportAccountantApprovalFields"}},{"kind":"Field","name":{"kind":"Name","value":"business"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"vatNumber"}},{"kind":"Field","name":{"kind":"Name","value":"image"}},{"kind":"Field","name":{"kind":"Name","value":"documentSerial"}},{"kind":"Field","name":{"kind":"Name","value":"documentDate"}},{"kind":"Field","name":{"kind":"Name","value":"chargeDate"}},{"kind":"Field","name":{"kind":"Name","value":"chargeId"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"localAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"localVat"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"foreignVatAfterDeduction"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"localVatAfterDeduction"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"roundedLocalVatAfterDeduction"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"taxReducedLocalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"VatReportAccountantApprovalFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"VatReportRecord"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"chargeId"}},{"kind":"Field","name":{"kind":"Name","value":"chargeAccountantStatus"}}]}}]} as unknown as DocumentNode<VatReportExpensesRowFieldsFragment, unknown>;
export const VatReportExpensesFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"VatReportExpensesFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"VatReportResult"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"expenses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"VatReportExpensesRowFields"}},{"kind":"Field","name":{"kind":"Name","value":"roundedLocalVatAfterDeduction"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"taxReducedLocalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"VatReportAccountantApprovalFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"VatReportRecord"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"chargeId"}},{"kind":"Field","name":{"kind":"Name","value":"chargeAccountantStatus"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"VatReportExpensesRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"VatReportRecord"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"VatReportAccountantApprovalFields"}},{"kind":"Field","name":{"kind":"Name","value":"business"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"vatNumber"}},{"kind":"Field","name":{"kind":"Name","value":"image"}},{"kind":"Field","name":{"kind":"Name","value":"documentSerial"}},{"kind":"Field","name":{"kind":"Name","value":"documentDate"}},{"kind":"Field","name":{"kind":"Name","value":"chargeDate"}},{"kind":"Field","name":{"kind":"Name","value":"chargeId"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"localAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"localVat"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"foreignVatAfterDeduction"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"localVatAfterDeduction"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"roundedLocalVatAfterDeduction"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"taxReducedLocalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}}]}}]} as unknown as DocumentNode<VatReportExpensesFieldsFragment, unknown>;
export const VatReportIncomeRowFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"VatReportIncomeRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"VatReportRecord"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"VatReportAccountantApprovalFields"}},{"kind":"Field","name":{"kind":"Name","value":"chargeId"}},{"kind":"Field","name":{"kind":"Name","value":"business"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"vatNumber"}},{"kind":"Field","name":{"kind":"Name","value":"image"}},{"kind":"Field","name":{"kind":"Name","value":"documentSerial"}},{"kind":"Field","name":{"kind":"Name","value":"documentDate"}},{"kind":"Field","name":{"kind":"Name","value":"chargeDate"}},{"kind":"Field","name":{"kind":"Name","value":"taxReducedForeignAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"taxReducedLocalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"VatReportAccountantApprovalFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"VatReportRecord"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"chargeId"}},{"kind":"Field","name":{"kind":"Name","value":"chargeAccountantStatus"}}]}}]} as unknown as DocumentNode<VatReportIncomeRowFieldsFragment, unknown>;
export const VatReportIncomeFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"VatReportIncomeFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"VatReportResult"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"income"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"VatReportIncomeRowFields"}},{"kind":"Field","name":{"kind":"Name","value":"taxReducedLocalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"VatReportAccountantApprovalFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"VatReportRecord"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"chargeId"}},{"kind":"Field","name":{"kind":"Name","value":"chargeAccountantStatus"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"VatReportIncomeRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"VatReportRecord"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"VatReportAccountantApprovalFields"}},{"kind":"Field","name":{"kind":"Name","value":"chargeId"}},{"kind":"Field","name":{"kind":"Name","value":"business"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"vatNumber"}},{"kind":"Field","name":{"kind":"Name","value":"image"}},{"kind":"Field","name":{"kind":"Name","value":"documentSerial"}},{"kind":"Field","name":{"kind":"Name","value":"documentDate"}},{"kind":"Field","name":{"kind":"Name","value":"chargeDate"}},{"kind":"Field","name":{"kind":"Name","value":"taxReducedForeignAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"taxReducedLocalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}}]}}]} as unknown as DocumentNode<VatReportIncomeFieldsFragment, unknown>;
export const VatReportMiscTableFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"VatReportMiscTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"VatReportResult"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"differentMonthDoc"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableAccountantApprovalFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"accountantApproval"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableAmountFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"totalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CreditcardBankCharge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validCreditCardAmount"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableBusinessTripFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripCharge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"businessTrip"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableDateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"minEventDate"}},{"kind":"Field","name":{"kind":"Name","value":"minDebitDate"}},{"kind":"Field","name":{"kind":"Name","value":"minDocumentsDate"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableDescriptionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"userDescription"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}},{"kind":"Field","name":{"kind":"Name","value":"missingInfoSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"description"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableEntityFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"counterparty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableMoreInfoFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"transactionsCount"}},{"kind":"Field","name":{"kind":"Name","value":"documentsCount"}},{"kind":"Field","name":{"kind":"Name","value":"ledgerCount"}},{"kind":"Field","name":{"kind":"Name","value":"miscExpensesCount"}},{"kind":"Field","name":{"kind":"Name","value":"isSalary"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeMetadata"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"invalidLedger"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableTagsFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"tags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"namePath"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ValidationData"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"missingInfoSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeSuggestions"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"tags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"namePath"}}]}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableTaxCategoryFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"taxCategory"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableTypeFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableVatFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"vat"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"totalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeMetadata"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"documentsCount"}},{"kind":"Field","name":{"kind":"Name","value":"ledgerCount"}},{"kind":"Field","name":{"kind":"Name","value":"transactionsCount"}},{"kind":"Field","name":{"kind":"Name","value":"miscExpensesCount"}}]}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableAccountantApprovalFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableAmountFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableBusinessTripFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableDateFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableDescriptionFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableEntityFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableMoreInfoFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableTagsFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableTaxCategoryFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableTypeFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableVatFields"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"owner"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableRowFields"}}]}}]} as unknown as DocumentNode<VatReportMiscTableFieldsFragment, unknown>;
export const VatReportMissingInfoFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"VatReportMissingInfoFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"VatReportResult"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableAccountantApprovalFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"accountantApproval"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableAmountFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"totalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CreditcardBankCharge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validCreditCardAmount"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableBusinessTripFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripCharge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"businessTrip"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableDateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"minEventDate"}},{"kind":"Field","name":{"kind":"Name","value":"minDebitDate"}},{"kind":"Field","name":{"kind":"Name","value":"minDocumentsDate"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableDescriptionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"userDescription"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}},{"kind":"Field","name":{"kind":"Name","value":"missingInfoSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"description"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableEntityFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"counterparty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableMoreInfoFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"transactionsCount"}},{"kind":"Field","name":{"kind":"Name","value":"documentsCount"}},{"kind":"Field","name":{"kind":"Name","value":"ledgerCount"}},{"kind":"Field","name":{"kind":"Name","value":"miscExpensesCount"}},{"kind":"Field","name":{"kind":"Name","value":"isSalary"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeMetadata"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"invalidLedger"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableTagsFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"tags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"namePath"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ValidationData"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"missingInfoSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeSuggestions"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"tags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"namePath"}}]}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableTaxCategoryFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"taxCategory"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableTypeFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableVatFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"vat"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"totalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeMetadata"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"documentsCount"}},{"kind":"Field","name":{"kind":"Name","value":"ledgerCount"}},{"kind":"Field","name":{"kind":"Name","value":"transactionsCount"}},{"kind":"Field","name":{"kind":"Name","value":"miscExpensesCount"}}]}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableAccountantApprovalFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableAmountFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableBusinessTripFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableDateFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableDescriptionFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableEntityFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableMoreInfoFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableTagsFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableTaxCategoryFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableTypeFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableVatFields"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"owner"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableRowFields"}}]}}]} as unknown as DocumentNode<VatReportMissingInfoFieldsFragment, unknown>;
export const LedgerCsvFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"LedgerCsvFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"YearlyLedgerReport"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"year"}},{"kind":"Field","name":{"kind":"Name","value":"financialEntitiesInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"entity"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"sortCode"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"key"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"openingBalance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"totalCredit"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"totalDebit"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"closingBalance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"records"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"invoiceDate"}},{"kind":"Field","name":{"kind":"Name","value":"valueDate"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"reference"}},{"kind":"Field","name":{"kind":"Name","value":"counterParty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"balance"}}]}}]}}]}}]} as unknown as DocumentNode<LedgerCsvFieldsFragment, unknown>;
export const SalariesRecordEmployeeFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SalariesRecordEmployeeFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Salary"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"month"}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode<SalariesRecordEmployeeFieldsFragment, unknown>;
export const SalariesRecordMainSalaryFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SalariesRecordMainSalaryFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Salary"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"month"}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"baseAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"directAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"globalAdditionalHoursAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"bonus"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"gift"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"recovery"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"vacationTakeout"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}}]}}]} as unknown as DocumentNode<SalariesRecordMainSalaryFieldsFragment, unknown>;
export const SalariesRecordFundsFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SalariesRecordFundsFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Salary"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"month"}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pensionFund"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pensionEmployeeAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pensionEmployeePercentage"}},{"kind":"Field","name":{"kind":"Name","value":"pensionEmployerAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pensionEmployerPercentage"}},{"kind":"Field","name":{"kind":"Name","value":"compensationsAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"compensationsPercentage"}},{"kind":"Field","name":{"kind":"Name","value":"trainingFund"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"trainingFundEmployeeAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"trainingFundEmployeePercentage"}},{"kind":"Field","name":{"kind":"Name","value":"trainingFundEmployerAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"trainingFundEmployerPercentage"}}]}}]} as unknown as DocumentNode<SalariesRecordFundsFieldsFragment, unknown>;
export const SalariesRecordInsurancesAndTaxesFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SalariesRecordInsurancesAndTaxesFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Salary"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"month"}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"healthInsuranceAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"socialSecurityEmployeeAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"socialSecurityEmployerAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"incomeTaxAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"notionalExpense"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}}]}}]} as unknown as DocumentNode<SalariesRecordInsurancesAndTaxesFieldsFragment, unknown>;
export const SalariesRecordWorkFrameFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SalariesRecordWorkFrameFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Salary"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"month"}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"vacationDays"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"added"}},{"kind":"Field","name":{"kind":"Name","value":"taken"}},{"kind":"Field","name":{"kind":"Name","value":"balance"}}]}},{"kind":"Field","name":{"kind":"Name","value":"workDays"}},{"kind":"Field","name":{"kind":"Name","value":"sicknessDays"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"balance"}}]}}]}}]} as unknown as DocumentNode<SalariesRecordWorkFrameFieldsFragment, unknown>;
export const SalariesRecordFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SalariesRecordFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Salary"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"month"}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"SalariesRecordEmployeeFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"SalariesRecordMainSalaryFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"SalariesRecordFundsFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"SalariesRecordInsurancesAndTaxesFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"SalariesRecordWorkFrameFields"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SalariesRecordEmployeeFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Salary"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"month"}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SalariesRecordMainSalaryFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Salary"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"month"}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"baseAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"directAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"globalAdditionalHoursAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"bonus"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"gift"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"recovery"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"vacationTakeout"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SalariesRecordFundsFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Salary"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"month"}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pensionFund"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pensionEmployeeAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pensionEmployeePercentage"}},{"kind":"Field","name":{"kind":"Name","value":"pensionEmployerAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pensionEmployerPercentage"}},{"kind":"Field","name":{"kind":"Name","value":"compensationsAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"compensationsPercentage"}},{"kind":"Field","name":{"kind":"Name","value":"trainingFund"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"trainingFundEmployeeAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"trainingFundEmployeePercentage"}},{"kind":"Field","name":{"kind":"Name","value":"trainingFundEmployerAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"trainingFundEmployerPercentage"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SalariesRecordInsurancesAndTaxesFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Salary"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"month"}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"healthInsuranceAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"socialSecurityEmployeeAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"socialSecurityEmployerAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"incomeTaxAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"notionalExpense"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SalariesRecordWorkFrameFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Salary"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"month"}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"vacationDays"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"added"}},{"kind":"Field","name":{"kind":"Name","value":"taken"}},{"kind":"Field","name":{"kind":"Name","value":"balance"}}]}},{"kind":"Field","name":{"kind":"Name","value":"workDays"}},{"kind":"Field","name":{"kind":"Name","value":"sicknessDays"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"balance"}}]}}]}}]} as unknown as DocumentNode<SalariesRecordFieldsFragment, unknown>;
export const SalariesMonthFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SalariesMonthFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Salary"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"month"}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"SalariesRecordFields"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SalariesRecordEmployeeFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Salary"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"month"}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SalariesRecordMainSalaryFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Salary"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"month"}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"baseAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"directAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"globalAdditionalHoursAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"bonus"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"gift"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"recovery"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"vacationTakeout"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SalariesRecordFundsFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Salary"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"month"}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pensionFund"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pensionEmployeeAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pensionEmployeePercentage"}},{"kind":"Field","name":{"kind":"Name","value":"pensionEmployerAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pensionEmployerPercentage"}},{"kind":"Field","name":{"kind":"Name","value":"compensationsAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"compensationsPercentage"}},{"kind":"Field","name":{"kind":"Name","value":"trainingFund"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"trainingFundEmployeeAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"trainingFundEmployeePercentage"}},{"kind":"Field","name":{"kind":"Name","value":"trainingFundEmployerAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"trainingFundEmployerPercentage"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SalariesRecordInsurancesAndTaxesFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Salary"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"month"}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"healthInsuranceAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"socialSecurityEmployeeAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"socialSecurityEmployerAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"incomeTaxAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"notionalExpense"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SalariesRecordWorkFrameFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Salary"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"month"}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"vacationDays"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"added"}},{"kind":"Field","name":{"kind":"Name","value":"taken"}},{"kind":"Field","name":{"kind":"Name","value":"balance"}}]}},{"kind":"Field","name":{"kind":"Name","value":"workDays"}},{"kind":"Field","name":{"kind":"Name","value":"sicknessDays"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"balance"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SalariesRecordFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Salary"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"month"}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"SalariesRecordEmployeeFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"SalariesRecordMainSalaryFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"SalariesRecordFundsFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"SalariesRecordInsurancesAndTaxesFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"SalariesRecordWorkFrameFields"}}]}}]} as unknown as DocumentNode<SalariesMonthFieldsFragment, unknown>;
export const SalariesTableFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SalariesTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Salary"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"month"}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"SalariesMonthFields"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SalariesRecordEmployeeFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Salary"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"month"}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SalariesRecordMainSalaryFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Salary"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"month"}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"baseAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"directAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"globalAdditionalHoursAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"bonus"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"gift"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"recovery"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"vacationTakeout"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SalariesRecordFundsFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Salary"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"month"}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pensionFund"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pensionEmployeeAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pensionEmployeePercentage"}},{"kind":"Field","name":{"kind":"Name","value":"pensionEmployerAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pensionEmployerPercentage"}},{"kind":"Field","name":{"kind":"Name","value":"compensationsAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"compensationsPercentage"}},{"kind":"Field","name":{"kind":"Name","value":"trainingFund"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"trainingFundEmployeeAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"trainingFundEmployeePercentage"}},{"kind":"Field","name":{"kind":"Name","value":"trainingFundEmployerAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"trainingFundEmployerPercentage"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SalariesRecordInsurancesAndTaxesFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Salary"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"month"}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"healthInsuranceAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"socialSecurityEmployeeAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"socialSecurityEmployerAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"incomeTaxAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"notionalExpense"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SalariesRecordWorkFrameFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Salary"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"month"}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"vacationDays"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"added"}},{"kind":"Field","name":{"kind":"Name","value":"taken"}},{"kind":"Field","name":{"kind":"Name","value":"balance"}}]}},{"kind":"Field","name":{"kind":"Name","value":"workDays"}},{"kind":"Field","name":{"kind":"Name","value":"sicknessDays"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"balance"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SalariesRecordFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Salary"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"month"}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"SalariesRecordEmployeeFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"SalariesRecordMainSalaryFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"SalariesRecordFundsFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"SalariesRecordInsurancesAndTaxesFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"SalariesRecordWorkFrameFields"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SalariesMonthFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Salary"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"month"}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"SalariesRecordFields"}}]}}]} as unknown as DocumentNode<SalariesTableFieldsFragment, unknown>;
export const DepreciationReportRecordCoreFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"DepreciationReportRecordCore"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DepreciationCoreRecord"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"originalCost"}},{"kind":"Field","name":{"kind":"Name","value":"reportYearDelta"}},{"kind":"Field","name":{"kind":"Name","value":"totalDepreciableCosts"}},{"kind":"Field","name":{"kind":"Name","value":"reportYearClaimedDepreciation"}},{"kind":"Field","name":{"kind":"Name","value":"pastYearsAccumulatedDepreciation"}},{"kind":"Field","name":{"kind":"Name","value":"totalDepreciation"}},{"kind":"Field","name":{"kind":"Name","value":"netValue"}}]}}]} as unknown as DocumentNode<DepreciationReportRecordCoreFragment, unknown>;
export const Shaam6111DataContentHeaderBusinessFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Shaam6111DataContentHeaderBusiness"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Business"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]} as unknown as DocumentNode<Shaam6111DataContentHeaderBusinessFragment, unknown>;
export const Shaam6111DataContentHeaderFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Shaam6111DataContentHeader"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Shaam6111Data"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"header"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"taxYear"}},{"kind":"Field","name":{"kind":"Name","value":"businessDescription"}},{"kind":"Field","name":{"kind":"Name","value":"taxFileNumber"}},{"kind":"Field","name":{"kind":"Name","value":"idNumber"}},{"kind":"Field","name":{"kind":"Name","value":"vatFileNumber"}},{"kind":"Field","name":{"kind":"Name","value":"withholdingTaxFileNumber"}},{"kind":"Field","name":{"kind":"Name","value":"businessType"}},{"kind":"Field","name":{"kind":"Name","value":"reportingMethod"}},{"kind":"Field","name":{"kind":"Name","value":"currencyType"}},{"kind":"Field","name":{"kind":"Name","value":"amountsInThousands"}},{"kind":"Field","name":{"kind":"Name","value":"accountingMethod"}},{"kind":"Field","name":{"kind":"Name","value":"accountingSystem"}},{"kind":"Field","name":{"kind":"Name","value":"softwareRegistrationNumber"}},{"kind":"Field","name":{"kind":"Name","value":"isPartnership"}},{"kind":"Field","name":{"kind":"Name","value":"partnershipCount"}},{"kind":"Field","name":{"kind":"Name","value":"partnershipProfitShare"}},{"kind":"Field","name":{"kind":"Name","value":"ifrsImplementationYear"}},{"kind":"Field","name":{"kind":"Name","value":"ifrsReportingOption"}},{"kind":"Field","name":{"kind":"Name","value":"includesProfitLoss"}},{"kind":"Field","name":{"kind":"Name","value":"includesTaxAdjustment"}},{"kind":"Field","name":{"kind":"Name","value":"includesBalanceSheet"}},{"kind":"Field","name":{"kind":"Name","value":"industryCode"}},{"kind":"Field","name":{"kind":"Name","value":"auditOpinionType"}}]}}]}}]} as unknown as DocumentNode<Shaam6111DataContentHeaderFragment, unknown>;
export const Shaam6111DataContentProfitLossFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Shaam6111DataContentProfitLoss"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Shaam6111Data"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"profitAndLoss"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"amount"}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}}]}}]} as unknown as DocumentNode<Shaam6111DataContentProfitLossFragment, unknown>;
export const Shaam6111DataContentTaxAdjustmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Shaam6111DataContentTaxAdjustment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Shaam6111Data"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"taxAdjustment"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"amount"}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}}]}}]} as unknown as DocumentNode<Shaam6111DataContentTaxAdjustmentFragment, unknown>;
export const Shaam6111DataContentBalanceSheetFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Shaam6111DataContentBalanceSheet"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Shaam6111Data"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"balanceSheet"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"amount"}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}}]}}]} as unknown as DocumentNode<Shaam6111DataContentBalanceSheetFragment, unknown>;
export const Shaam6111DataContentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Shaam6111DataContent"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Shaam6111Data"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"Shaam6111DataContentHeader"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"Shaam6111DataContentProfitLoss"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"Shaam6111DataContentTaxAdjustment"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"Shaam6111DataContentBalanceSheet"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Shaam6111DataContentHeader"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Shaam6111Data"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"header"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"taxYear"}},{"kind":"Field","name":{"kind":"Name","value":"businessDescription"}},{"kind":"Field","name":{"kind":"Name","value":"taxFileNumber"}},{"kind":"Field","name":{"kind":"Name","value":"idNumber"}},{"kind":"Field","name":{"kind":"Name","value":"vatFileNumber"}},{"kind":"Field","name":{"kind":"Name","value":"withholdingTaxFileNumber"}},{"kind":"Field","name":{"kind":"Name","value":"businessType"}},{"kind":"Field","name":{"kind":"Name","value":"reportingMethod"}},{"kind":"Field","name":{"kind":"Name","value":"currencyType"}},{"kind":"Field","name":{"kind":"Name","value":"amountsInThousands"}},{"kind":"Field","name":{"kind":"Name","value":"accountingMethod"}},{"kind":"Field","name":{"kind":"Name","value":"accountingSystem"}},{"kind":"Field","name":{"kind":"Name","value":"softwareRegistrationNumber"}},{"kind":"Field","name":{"kind":"Name","value":"isPartnership"}},{"kind":"Field","name":{"kind":"Name","value":"partnershipCount"}},{"kind":"Field","name":{"kind":"Name","value":"partnershipProfitShare"}},{"kind":"Field","name":{"kind":"Name","value":"ifrsImplementationYear"}},{"kind":"Field","name":{"kind":"Name","value":"ifrsReportingOption"}},{"kind":"Field","name":{"kind":"Name","value":"includesProfitLoss"}},{"kind":"Field","name":{"kind":"Name","value":"includesTaxAdjustment"}},{"kind":"Field","name":{"kind":"Name","value":"includesBalanceSheet"}},{"kind":"Field","name":{"kind":"Name","value":"industryCode"}},{"kind":"Field","name":{"kind":"Name","value":"auditOpinionType"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Shaam6111DataContentProfitLoss"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Shaam6111Data"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"profitAndLoss"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"amount"}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Shaam6111DataContentTaxAdjustment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Shaam6111Data"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"taxAdjustment"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"amount"}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Shaam6111DataContentBalanceSheet"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Shaam6111Data"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"balanceSheet"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"amount"}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}}]}}]} as unknown as DocumentNode<Shaam6111DataContentFragment, unknown>;
export const BusinessTransactionsInfoDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"BusinessTransactionsInfo"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"filters"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTransactionsFilter"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"businessTransactionsFromLedgerRecords"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"Variable","name":{"kind":"Name","value":"filters"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTransactionsFromLedgerRecordsSuccessfulResult"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"businessTransactions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"business"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"foreignAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"invoiceDate"}},{"kind":"Field","name":{"kind":"Name","value":"reference"}},{"kind":"Field","name":{"kind":"Name","value":"details"}},{"kind":"Field","name":{"kind":"Name","value":"counterAccount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"chargeId"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CommonError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"message"}}]}}]}}]}}]} as unknown as DocumentNode<BusinessTransactionsInfoQuery, BusinessTransactionsInfoQueryVariables>;
export const BusinessTransactionsSummeryDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"BusinessTransactionsSummery"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"filters"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTransactionsFilter"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"businessTransactionsSumFromLedgerRecords"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"Variable","name":{"kind":"Name","value":"filters"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTransactionsSumFromLedgerRecordsSuccessfulResult"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"businessTransactionsSum"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"business"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"credit"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"debit"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"total"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"foreignCurrenciesSum"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"credit"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"debit"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"total"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}}]}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CommonError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"message"}}]}}]}}]}}]} as unknown as DocumentNode<BusinessTransactionsSummeryQuery, BusinessTransactionsSummeryQueryVariables>;
export const BusinessTripScreenDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"BusinessTripScreen"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"businessTripId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"businessTrip"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"businessTripId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"dates"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"start"}}]}}]}}]}}]} as unknown as DocumentNode<BusinessTripScreenQuery, BusinessTripScreenQueryVariables>;
export const BusinessTripsRowValidationDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"BusinessTripsRowValidation"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"businessTrip"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"uncategorizedTransactions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"transaction"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Transaction"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"summary"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripSummary"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"errors"}}]}}]}}]}}]}}]} as unknown as DocumentNode<BusinessTripsRowValidationQuery, BusinessTripsRowValidationQueryVariables>;
export const EditableBusinessTripDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"EditableBusinessTrip"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"businessTripId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"businessTrip"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"businessTripId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportHeaderFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportAttendeesFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripUncategorizedTransactionsFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportFlightsFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportAccommodationsFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportTravelAndSubsistenceFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportCarRentalFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportOtherFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportSummaryFields"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uncategorizedTransactions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"transaction"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripAccountantApprovalFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"accountantApproval"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportCoreExpenseRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"valueDate"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"payedByEmployee"}},{"kind":"Field","name":{"kind":"Name","value":"charges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportFlightsRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripFlightExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"payedByEmployee"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportCoreExpenseRowFields"}},{"kind":"Field","name":{"kind":"Name","value":"path"}},{"kind":"Field","name":{"kind":"Name","value":"class"}},{"kind":"Field","name":{"kind":"Name","value":"attendees"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportFlightsTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripFlightExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportFlightsRowFields"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportAccommodationsRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripAccommodationExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportCoreExpenseRowFields"}},{"kind":"Field","name":{"kind":"Name","value":"payedByEmployee"}},{"kind":"Field","name":{"kind":"Name","value":"country"}},{"kind":"Field","name":{"kind":"Name","value":"nightsCount"}},{"kind":"Field","name":{"kind":"Name","value":"attendeesStay"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"attendee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"nightsCount"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportAccommodationsTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripAccommodationExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportAccommodationsRowFields"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportAttendeeRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripAttendee"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"arrivalDate"}},{"kind":"Field","name":{"kind":"Name","value":"departureDate"}},{"kind":"Field","name":{"kind":"Name","value":"flights"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportFlightsTableFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"accommodations"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportAccommodationsTableFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TransactionsTableEventDateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Transaction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"eventDate"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TransactionsTableDebitDateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Transaction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"effectiveDate"}},{"kind":"Field","name":{"kind":"Name","value":"sourceEffectiveDate"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TransactionsTableAccountFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Transaction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"account"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TransactionsTableDescriptionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Transaction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"sourceDescription"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TransactionsTableSourceIDFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Transaction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"referenceKey"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TransactionsTableEntityFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Transaction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"counterparty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sourceDescription"}},{"kind":"Field","name":{"kind":"Name","value":"missingInfoSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"business"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"UncategorizedTransactionsTableAmountFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UncategorizedTransaction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"transaction"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"cryptoExchangeRate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"rate"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"categorizedAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"errors"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportTravelAndSubsistenceRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripTravelAndSubsistenceExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportCoreExpenseRowFields"}},{"kind":"Field","name":{"kind":"Name","value":"payedByEmployee"}},{"kind":"Field","name":{"kind":"Name","value":"expenseType"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportCarRentalRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripCarRentalExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"payedByEmployee"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportCoreExpenseRowFields"}},{"kind":"Field","name":{"kind":"Name","value":"days"}},{"kind":"Field","name":{"kind":"Name","value":"isFuelExpense"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportOtherRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripOtherExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportCoreExpenseRowFields"}},{"kind":"Field","name":{"kind":"Name","value":"payedByEmployee"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"deductibleExpense"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportHeaderFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"dates"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"start"}},{"kind":"Field","name":{"kind":"Name","value":"end"}}]}},{"kind":"Field","name":{"kind":"Name","value":"purpose"}},{"kind":"Field","name":{"kind":"Name","value":"destination"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripAccountantApprovalFields"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportAttendeesFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"attendees"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportAttendeeRowFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripUncategorizedTransactionsFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"uncategorizedTransactions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"transaction"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"eventDate"}},{"kind":"Field","name":{"kind":"Name","value":"chargeId"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"TransactionsTableEventDateFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"TransactionsTableDebitDateFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"TransactionsTableAccountFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"TransactionsTableDescriptionFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"TransactionsTableSourceIDFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"TransactionsTableEntityFields"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"UncategorizedTransactionsTableAmountFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportFlightsFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"flightExpenses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportFlightsTableFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"attendees"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportAccommodationsFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"accommodationExpenses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportAccommodationsTableFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportTravelAndSubsistenceFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"travelAndSubsistenceExpenses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportTravelAndSubsistenceRowFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportCarRentalFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"carRentalExpenses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportCarRentalRowFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportOtherFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"otherExpenses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportOtherRowFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportSummaryFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"summary"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"excessExpenditure"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"excessTax"}},{"kind":"Field","name":{"kind":"Name","value":"rows"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"totalForeignCurrency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"totalLocalCurrency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"taxableForeignCurrency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"taxableLocalCurrency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"maxTaxableForeignCurrency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"maxTaxableLocalCurrency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"excessExpenditure"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"errors"}}]}}]}}]}}]} as unknown as DocumentNode<EditableBusinessTripQuery, EditableBusinessTripQueryVariables>;
export const BusinessTripsScreenDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"BusinessTripsScreen"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"allBusinessTrips"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"dates"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"start"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripsRowFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripsRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"accountantApproval"}}]}}]} as unknown as DocumentNode<BusinessTripsScreenQuery, BusinessTripsScreenQueryVariables>;
export const AllBusinessesForScreenDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AllBusinessesForScreen"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"page"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"name"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"allBusinesses"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"page"},"value":{"kind":"Variable","name":{"kind":"Name","value":"page"}}},{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"name"},"value":{"kind":"Variable","name":{"kind":"Name","value":"name"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"nodes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LtdFinancialEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AllBusinessesRowFields"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalPages"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AllBusinessesNameFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LtdFinancialEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AllBusinessesHebrewNameFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LtdFinancialEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"hebrewName"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AllBusinessesRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LtdFinancialEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"AllBusinessesNameFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"AllBusinessesHebrewNameFields"}}]}}]} as unknown as DocumentNode<AllBusinessesForScreenQuery, AllBusinessesForScreenQueryVariables>;
export const ChargesLedgerValidationDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ChargesLedgerValidation"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"filters"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeFilter"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"chargesWithLedgerChanges"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"Variable","name":{"kind":"Name","value":"filters"}}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"stream"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"progress"}},{"kind":"Field","name":{"kind":"Name","value":"charge"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableFields"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableAccountantApprovalFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"accountantApproval"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableAmountFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"totalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CreditcardBankCharge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validCreditCardAmount"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableBusinessTripFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripCharge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"businessTrip"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableDateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"minEventDate"}},{"kind":"Field","name":{"kind":"Name","value":"minDebitDate"}},{"kind":"Field","name":{"kind":"Name","value":"minDocumentsDate"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableDescriptionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"userDescription"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}},{"kind":"Field","name":{"kind":"Name","value":"missingInfoSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"description"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableEntityFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"counterparty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableMoreInfoFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"transactionsCount"}},{"kind":"Field","name":{"kind":"Name","value":"documentsCount"}},{"kind":"Field","name":{"kind":"Name","value":"ledgerCount"}},{"kind":"Field","name":{"kind":"Name","value":"miscExpensesCount"}},{"kind":"Field","name":{"kind":"Name","value":"isSalary"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeMetadata"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"invalidLedger"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableTagsFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"tags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"namePath"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ValidationData"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"missingInfoSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeSuggestions"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"tags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"namePath"}}]}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableTaxCategoryFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"taxCategory"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableTypeFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableVatFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"vat"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"totalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeMetadata"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"documentsCount"}},{"kind":"Field","name":{"kind":"Name","value":"ledgerCount"}},{"kind":"Field","name":{"kind":"Name","value":"transactionsCount"}},{"kind":"Field","name":{"kind":"Name","value":"miscExpensesCount"}}]}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableAccountantApprovalFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableAmountFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableBusinessTripFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableDateFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableDescriptionFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableEntityFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableMoreInfoFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableTagsFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableTaxCategoryFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableTypeFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableVatFields"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"owner"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableRowFields"}}]}}]} as unknown as DocumentNode<ChargesLedgerValidationQuery, ChargesLedgerValidationQueryVariables>;
export const FetchChargeDocument = {"__meta__":{"deferredFields":{"DocumentsGalleryFields":["id","additionalDocuments"],"TableDocumentsFields":["id","additionalDocuments"],"TableLedgerRecordsFields":["id","ledger"],"ChargeTableTransactionsFields":["id","transactions"],"ConversionChargeInfo":["id","__typename"],"CreditcardBankChargeInfo":["id","__typename"],"TableSalariesFields":["id","__typename"],"ChargesTableErrorsFields":["id"],"TableMiscExpensesFields":["id","miscExpenses"],"ExchangeRatesInfo":["id","__typename"]}},"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FetchCharge"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"chargeId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"charge"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"chargeId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"chargeId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"transactionsCount"}},{"kind":"Field","name":{"kind":"Name","value":"documentsCount"}},{"kind":"Field","name":{"kind":"Name","value":"ledgerCount"}},{"kind":"Field","name":{"kind":"Name","value":"isLedgerLocked"}},{"kind":"Field","name":{"kind":"Name","value":"openDocuments"}}]}},{"kind":"Field","name":{"kind":"Name","value":"totalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"DocumentsGalleryFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"TableDocumentsFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"TableLedgerRecordsFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargeTableTransactionsFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ConversionChargeInfo"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"CreditcardBankChargeInfo"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"TableSalariesFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripCharge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"businessTrip"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportFields"}}]}}]}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableErrorsFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"Field","name":{"kind":"Name","value":"miscExpenses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"TableMiscExpensesFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ExchangeRatesInfo"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TableDocumentsRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Document"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"documentType"}},{"kind":"Field","name":{"kind":"Name","value":"image"}},{"kind":"Field","name":{"kind":"Name","value":"file"}},{"kind":"Field","name":{"kind":"Name","value":"charge"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FinancialDocument"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"missingInfoSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"isIncome"}},{"kind":"Field","name":{"kind":"Name","value":"counterparty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"owner"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"vat"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"serialNumber"}},{"kind":"Field","name":{"kind":"Name","value":"allocationNumber"}},{"kind":"Field","name":{"kind":"Name","value":"creditor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"debtor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"issuedDocumentInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"originalDocument"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"income"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"description"}}]}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TransactionForTransactionsTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Transaction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"chargeId"}},{"kind":"Field","name":{"kind":"Name","value":"eventDate"}},{"kind":"Field","name":{"kind":"Name","value":"effectiveDate"}},{"kind":"Field","name":{"kind":"Name","value":"sourceEffectiveDate"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"cryptoExchangeRate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"rate"}}]}},{"kind":"Field","name":{"kind":"Name","value":"account"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sourceDescription"}},{"kind":"Field","name":{"kind":"Name","value":"referenceKey"}},{"kind":"Field","name":{"kind":"Name","value":"counterparty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"missingInfoSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"business"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripAccountantApprovalFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"accountantApproval"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportHeaderFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"dates"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"start"}},{"kind":"Field","name":{"kind":"Name","value":"end"}}]}},{"kind":"Field","name":{"kind":"Name","value":"purpose"}},{"kind":"Field","name":{"kind":"Name","value":"destination"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripAccountantApprovalFields"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportSummaryFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"summary"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"excessExpenditure"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"excessTax"}},{"kind":"Field","name":{"kind":"Name","value":"rows"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"totalForeignCurrency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"totalLocalCurrency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"taxableForeignCurrency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"taxableLocalCurrency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"maxTaxableForeignCurrency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"maxTaxableLocalCurrency"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"excessExpenditure"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"errors"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EditMiscExpenseFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MiscExpense"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"invoiceDate"}},{"kind":"Field","name":{"kind":"Name","value":"valueDate"}},{"kind":"Field","name":{"kind":"Name","value":"creditor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"debtor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"DocumentsGalleryFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"additionalDocuments"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"image"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FinancialDocument"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"documentType"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TableDocumentsFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"additionalDocuments"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"TableDocumentsRowFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TableLedgerRecordsFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"ledger"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"records"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"creditAccount1"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"creditAccount2"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"debitAccount1"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"debitAccount2"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"creditAmount1"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"creditAmount2"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"debitAmount1"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"debitAmount2"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"localCurrencyCreditAmount1"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"localCurrencyCreditAmount2"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"localCurrencyDebitAmount1"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"localCurrencyDebitAmount2"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"invoiceDate"}},{"kind":"Field","name":{"kind":"Name","value":"valueDate"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"reference"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Ledger"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LedgerValidation"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"matches"}},{"kind":"Field","name":{"kind":"Name","value":"differences"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"creditAccount1"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"creditAccount2"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"debitAccount1"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"debitAccount2"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"creditAmount1"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"creditAmount2"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"debitAmount1"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"debitAmount2"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"localCurrencyCreditAmount1"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"localCurrencyCreditAmount2"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"localCurrencyDebitAmount1"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"localCurrencyDebitAmount2"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"invoiceDate"}},{"kind":"Field","name":{"kind":"Name","value":"valueDate"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"reference"}}]}}]}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargeTableTransactionsFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"transactions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"TransactionForTransactionsTableFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ConversionChargeInfo"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ConversionCharge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"eventRate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"from"}},{"kind":"Field","name":{"kind":"Name","value":"to"}},{"kind":"Field","name":{"kind":"Name","value":"rate"}}]}},{"kind":"Field","name":{"kind":"Name","value":"officialRate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"from"}},{"kind":"Field","name":{"kind":"Name","value":"to"}},{"kind":"Field","name":{"kind":"Name","value":"rate"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CreditcardBankChargeInfo"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CreditcardBankCharge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"creditCardTransactions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"TransactionForTransactionsTableFields"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TableSalariesFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"SalaryCharge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"salaryRecords"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"directAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"baseAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pensionFund"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pensionEmployeeAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pensionEmployerAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"compensationsAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"trainingFund"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"trainingFundEmployeeAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"trainingFundEmployerAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"socialSecurityEmployeeAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"socialSecurityEmployerAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"incomeTaxAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"healthInsuranceAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"BusinessTripReportFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTrip"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportHeaderFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"BusinessTripReportSummaryFields"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableErrorsFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","alias":{"kind":"Name","value":"errorsLedger"},"name":{"kind":"Name","value":"ledger"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Ledger"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LedgerValidation"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"errors"}}]}}]}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TableMiscExpensesFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"miscExpenses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"invoiceDate"}},{"kind":"Field","name":{"kind":"Name","value":"valueDate"}},{"kind":"Field","name":{"kind":"Name","value":"creditor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"debtor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"chargeId"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"EditMiscExpenseFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ExchangeRatesInfo"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FinancialCharge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"exchangeRates"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"aud"}},{"kind":"Field","name":{"kind":"Name","value":"cad"}},{"kind":"Field","name":{"kind":"Name","value":"eur"}},{"kind":"Field","name":{"kind":"Name","value":"gbp"}},{"kind":"Field","name":{"kind":"Name","value":"ils"}},{"kind":"Field","name":{"kind":"Name","value":"jpy"}},{"kind":"Field","name":{"kind":"Name","value":"sek"}},{"kind":"Field","name":{"kind":"Name","value":"usd"}},{"kind":"Field","name":{"kind":"Name","value":"eth"}},{"kind":"Field","name":{"kind":"Name","value":"grt"}},{"kind":"Field","name":{"kind":"Name","value":"usdc"}}]}}]}}]}}]} as unknown as DocumentNode<FetchChargeQuery, FetchChargeQueryVariables>;
export const ChargeForRowDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ChargeForRow"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"chargeId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"charge"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"chargeId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"chargeId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableRowFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableAccountantApprovalFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"accountantApproval"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableAmountFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"totalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CreditcardBankCharge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validCreditCardAmount"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableBusinessTripFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripCharge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"businessTrip"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableDateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"minEventDate"}},{"kind":"Field","name":{"kind":"Name","value":"minDebitDate"}},{"kind":"Field","name":{"kind":"Name","value":"minDocumentsDate"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableDescriptionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"userDescription"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}},{"kind":"Field","name":{"kind":"Name","value":"missingInfoSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"description"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableEntityFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"counterparty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableMoreInfoFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"transactionsCount"}},{"kind":"Field","name":{"kind":"Name","value":"documentsCount"}},{"kind":"Field","name":{"kind":"Name","value":"ledgerCount"}},{"kind":"Field","name":{"kind":"Name","value":"miscExpensesCount"}},{"kind":"Field","name":{"kind":"Name","value":"isSalary"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeMetadata"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"invalidLedger"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableTagsFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"tags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"namePath"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ValidationData"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"missingInfoSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeSuggestions"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"tags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"namePath"}}]}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableTaxCategoryFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"taxCategory"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableTypeFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableVatFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"vat"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"totalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeMetadata"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"documentsCount"}},{"kind":"Field","name":{"kind":"Name","value":"ledgerCount"}},{"kind":"Field","name":{"kind":"Name","value":"transactionsCount"}},{"kind":"Field","name":{"kind":"Name","value":"miscExpensesCount"}}]}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableAccountantApprovalFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableAmountFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableBusinessTripFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableDateFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableDescriptionFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableEntityFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableMoreInfoFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableTagsFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableTaxCategoryFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableTypeFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableVatFields"}}]}}]} as unknown as DocumentNode<ChargeForRowQuery, ChargeForRowQueryVariables>;
export const BankDepositInfoDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"BankDepositInfo"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"chargeId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"depositByCharge"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"chargeId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"chargeId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"balance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"transactions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"chargeId"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"TransactionForTransactionsTableFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"isOpen"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TransactionForTransactionsTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Transaction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"chargeId"}},{"kind":"Field","name":{"kind":"Name","value":"eventDate"}},{"kind":"Field","name":{"kind":"Name","value":"effectiveDate"}},{"kind":"Field","name":{"kind":"Name","value":"sourceEffectiveDate"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"cryptoExchangeRate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"rate"}}]}},{"kind":"Field","name":{"kind":"Name","value":"account"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sourceDescription"}},{"kind":"Field","name":{"kind":"Name","value":"referenceKey"}},{"kind":"Field","name":{"kind":"Name","value":"counterparty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"missingInfoSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"business"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]} as unknown as DocumentNode<BankDepositInfoQuery, BankDepositInfoQueryVariables>;
export const IncomeChargesChartDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"IncomeChargesChart"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"filters"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeFilter"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"allCharges"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"Variable","name":{"kind":"Name","value":"filters"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"nodes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"transactions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"eventDate"}},{"kind":"Field","name":{"kind":"Name","value":"effectiveDate"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"eventExchangeRates"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"aud"}},{"kind":"Field","name":{"kind":"Name","value":"cad"}},{"kind":"Field","name":{"kind":"Name","value":"eur"}},{"kind":"Field","name":{"kind":"Name","value":"gbp"}},{"kind":"Field","name":{"kind":"Name","value":"jpy"}},{"kind":"Field","name":{"kind":"Name","value":"sek"}},{"kind":"Field","name":{"kind":"Name","value":"usd"}},{"kind":"Field","name":{"kind":"Name","value":"date"}}]}},{"kind":"Field","name":{"kind":"Name","value":"debitExchangeRates"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"aud"}},{"kind":"Field","name":{"kind":"Name","value":"cad"}},{"kind":"Field","name":{"kind":"Name","value":"eur"}},{"kind":"Field","name":{"kind":"Name","value":"gbp"}},{"kind":"Field","name":{"kind":"Name","value":"jpy"}},{"kind":"Field","name":{"kind":"Name","value":"sek"}},{"kind":"Field","name":{"kind":"Name","value":"usd"}},{"kind":"Field","name":{"kind":"Name","value":"date"}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode<IncomeChargesChartQuery, IncomeChargesChartQueryVariables>;
export const MonthlyIncomeExpenseChartDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MonthlyIncomeExpenseChart"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"filters"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"IncomeExpenseChartFilters"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"incomeExpenseChart"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"Variable","name":{"kind":"Name","value":"filters"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fromDate"}},{"kind":"Field","name":{"kind":"Name","value":"toDate"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"MonthlyIncomeExpenseChartInfo"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"MonthlyIncomeExpenseChartInfo"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IncomeExpenseChart"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"monthlyData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"income"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"expense"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"balance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"date"}}]}}]}}]} as unknown as DocumentNode<MonthlyIncomeExpenseChartQuery, MonthlyIncomeExpenseChartQueryVariables>;
export const UncategorizedTransactionsByBusinessTripDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"UncategorizedTransactionsByBusinessTrip"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"businessTripId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"businessTrip"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"businessTripId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"uncategorizedTransactions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"transaction"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"eventDate"}},{"kind":"Field","name":{"kind":"Name","value":"sourceDescription"}},{"kind":"Field","name":{"kind":"Name","value":"referenceKey"}},{"kind":"Field","name":{"kind":"Name","value":"counterparty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode<UncategorizedTransactionsByBusinessTripQuery, UncategorizedTransactionsByBusinessTripQueryVariables>;
export const ChargeDepreciationDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ChargeDepreciation"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"chargeId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"depreciationRecordsByCharge"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"chargeId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"chargeId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"DepreciationRecordRowFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"DepreciationRecordRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DepreciationRecord"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"activationDate"}},{"kind":"Field","name":{"kind":"Name","value":"category"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"percentage"}}]}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"charge"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"totalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}}]}}]}}]} as unknown as DocumentNode<ChargeDepreciationQuery, ChargeDepreciationQueryVariables>;
export const DocumentsToChargeMatcherDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"DocumentsToChargeMatcher"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"chargeId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"filters"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"DocumentsFilters"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"documentsByFilters"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"Variable","name":{"kind":"Name","value":"filters"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"DocumentsToMatchFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"charge"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"chargeId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"chargeId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"transactions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"eventDate"}}]}},{"kind":"Field","name":{"kind":"Name","value":"totalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargeToMatchDocumentsFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"DocumentsToMatchFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Document"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"charge"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"image"}},{"kind":"Field","name":{"kind":"Name","value":"file"}},{"kind":"Field","name":{"kind":"Name","value":"documentType"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FinancialDocument"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"creditor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"serialNumber"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargeToMatchDocumentsFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"totalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"counterparty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"transactions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"eventDate"}},{"kind":"Field","name":{"kind":"Name","value":"sourceDescription"}}]}}]}}]} as unknown as DocumentNode<DocumentsToChargeMatcherQuery, DocumentsToChargeMatcherQueryVariables>;
export const RecentClientIssuedDocumentsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"RecentClientIssuedDocuments"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"clientId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"recentDocumentsByClient"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"clientId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"clientId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FinancialDocument"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"issuedDocumentInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"externalId"}}]}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"TableDocumentsRowFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TableDocumentsRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Document"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"documentType"}},{"kind":"Field","name":{"kind":"Name","value":"image"}},{"kind":"Field","name":{"kind":"Name","value":"file"}},{"kind":"Field","name":{"kind":"Name","value":"charge"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FinancialDocument"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"missingInfoSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"isIncome"}},{"kind":"Field","name":{"kind":"Name","value":"counterparty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"owner"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"vat"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"serialNumber"}},{"kind":"Field","name":{"kind":"Name","value":"allocationNumber"}},{"kind":"Field","name":{"kind":"Name","value":"creditor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"debtor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"issuedDocumentInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"originalDocument"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"income"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"description"}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode<RecentClientIssuedDocumentsQuery, RecentClientIssuedDocumentsQueryVariables>;
export const RecentIssuedDocumentsOfSameTypeDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"RecentIssuedDocumentsOfSameType"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"documentType"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"DocumentType"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"recentIssuedDocumentsByType"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"documentType"},"value":{"kind":"Variable","name":{"kind":"Name","value":"documentType"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"TableDocumentsRowFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TableDocumentsRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Document"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"documentType"}},{"kind":"Field","name":{"kind":"Name","value":"image"}},{"kind":"Field","name":{"kind":"Name","value":"file"}},{"kind":"Field","name":{"kind":"Name","value":"charge"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FinancialDocument"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"missingInfoSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"isIncome"}},{"kind":"Field","name":{"kind":"Name","value":"counterparty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"owner"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"vat"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"serialNumber"}},{"kind":"Field","name":{"kind":"Name","value":"allocationNumber"}},{"kind":"Field","name":{"kind":"Name","value":"creditor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"debtor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"issuedDocumentInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"originalDocument"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"income"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"description"}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode<RecentIssuedDocumentsOfSameTypeQuery, RecentIssuedDocumentsOfSameTypeQueryVariables>;
export const FetchBusinessDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FetchBusiness"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"business"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LtdFinancialEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"country"}},{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"exemptDealer"}},{"kind":"Field","name":{"kind":"Name","value":"governmentId"}},{"kind":"Field","name":{"kind":"Name","value":"hebrewName"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"phoneNumber"}},{"kind":"Field","name":{"kind":"Name","value":"sortCode"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"taxCategory"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"website"}},{"kind":"Field","name":{"kind":"Name","value":"suggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"phrases"}},{"kind":"Field","name":{"kind":"Name","value":"tags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"description"}}]}},{"kind":"Field","name":{"kind":"Name","value":"optionalVAT"}},{"kind":"Field","name":{"kind":"Name","value":"irsCode"}}]}}]}}]}}]} as unknown as DocumentNode<FetchBusinessQuery, FetchBusinessQueryVariables>;
export const EditDocumentDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"EditDocument"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"documentId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"documentById"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"documentId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"documentId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"image"}},{"kind":"Field","name":{"kind":"Name","value":"file"}},{"kind":"Field","name":{"kind":"Name","value":"documentType"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FinancialDocument"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"vat"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"serialNumber"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"debtor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"creditor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"vatReportDateOverride"}},{"kind":"Field","name":{"kind":"Name","value":"noVatAmount"}},{"kind":"Field","name":{"kind":"Name","value":"allocationNumber"}},{"kind":"Field","name":{"kind":"Name","value":"exchangeRateOverride"}}]}}]}}]}}]} as unknown as DocumentNode<EditDocumentQuery, EditDocumentQueryVariables>;
export const EditTransactionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"EditTransaction"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"transactionIDs"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"transactionsByIDs"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"transactionIDs"},"value":{"kind":"Variable","name":{"kind":"Name","value":"transactionIDs"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"counterparty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"effectiveDate"}},{"kind":"Field","name":{"kind":"Name","value":"isFee"}},{"kind":"Field","name":{"kind":"Name","value":"account"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}}]} as unknown as DocumentNode<EditTransactionQuery, EditTransactionQueryVariables>;
export const ClientInfoForDocumentIssuingDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ClientInfoForDocumentIssuing"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"businessId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"client"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"businessId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"businessId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"greenInvoiceInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"IssueDocumentClientFields"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"IssueDocumentClientFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GreenInvoiceClient"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"country"}},{"kind":"Field","name":{"kind":"Name","value":"emails"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"phone"}},{"kind":"Field","name":{"kind":"Name","value":"taxId"}},{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"city"}},{"kind":"Field","name":{"kind":"Name","value":"zip"}},{"kind":"Field","name":{"kind":"Name","value":"fax"}},{"kind":"Field","name":{"kind":"Name","value":"mobile"}}]}}]} as unknown as DocumentNode<ClientInfoForDocumentIssuingQuery, ClientInfoForDocumentIssuingQueryVariables>;
export const AllBusinessTripsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AllBusinessTrips"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"allBusinessTrips"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode<AllBusinessTripsQuery, AllBusinessTripsQueryVariables>;
export const AllDepreciationCategoriesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AllDepreciationCategories"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"depreciationCategories"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"percentage"}}]}}]}}]} as unknown as DocumentNode<AllDepreciationCategoriesQuery, AllDepreciationCategoriesQueryVariables>;
export const AllEmployeesByEmployerDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AllEmployeesByEmployer"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"employerId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"employeesByEmployerId"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"employerId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"employerId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode<AllEmployeesByEmployerQuery, AllEmployeesByEmployerQueryVariables>;
export const AllFinancialAccountsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AllFinancialAccounts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"allFinancialAccounts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BankFinancialAccount"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CardFinancialAccount"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CryptoWalletFinancialAccount"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ForeignSecuritiesFinancialAccount"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]} as unknown as DocumentNode<AllFinancialAccountsQuery, AllFinancialAccountsQueryVariables>;
export const AllPensionFundsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AllPensionFunds"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"allPensionFunds"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode<AllPensionFundsQuery, AllPensionFundsQueryVariables>;
export const AllTrainingFundsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AllTrainingFunds"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"allTrainingFunds"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode<AllTrainingFundsQuery, AllTrainingFundsQueryVariables>;
export const AttendeesByBusinessTripDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AttendeesByBusinessTrip"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"businessTripId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"businessTrip"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"businessTripId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"attendees"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]} as unknown as DocumentNode<AttendeesByBusinessTripQuery, AttendeesByBusinessTripQueryVariables>;
export const FetchMultipleBusinessesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FetchMultipleBusinesses"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"businessIds"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"businesses"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"ids"},"value":{"kind":"Variable","name":{"kind":"Name","value":"businessIds"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode<FetchMultipleBusinessesQuery, FetchMultipleBusinessesQueryVariables>;
export const FetchMultipleChargesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FetchMultipleCharges"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"chargeIds"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"chargesByIDs"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"chargeIDs"},"value":{"kind":"Variable","name":{"kind":"Name","value":"chargeIds"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"transactionsCount"}},{"kind":"Field","name":{"kind":"Name","value":"invoicesCount"}}]}},{"kind":"Field","name":{"kind":"Name","value":"owner"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"tags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"namePath"}}]}},{"kind":"Field","name":{"kind":"Name","value":"conversion"}},{"kind":"Field","name":{"kind":"Name","value":"property"}},{"kind":"Field","name":{"kind":"Name","value":"isInvoicePaymentDifferentCurrency"}},{"kind":"Field","name":{"kind":"Name","value":"userDescription"}},{"kind":"Field","name":{"kind":"Name","value":"optionalVAT"}},{"kind":"Field","name":{"kind":"Name","value":"optionalDocuments"}}]}}]}}]} as unknown as DocumentNode<FetchMultipleChargesQuery, FetchMultipleChargesQueryVariables>;
export const EditChargeDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"EditCharge"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"chargeId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"charge"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"chargeId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"chargeId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"counterparty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"owner"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"property"}},{"kind":"Field","name":{"kind":"Name","value":"conversion"}},{"kind":"Field","name":{"kind":"Name","value":"isInvoicePaymentDifferentCurrency"}},{"kind":"Field","name":{"kind":"Name","value":"userDescription"}},{"kind":"Field","name":{"kind":"Name","value":"taxCategory"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"tags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"missingInfoSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeSuggestions"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"tags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"optionalVAT"}},{"kind":"Field","name":{"kind":"Name","value":"optionalDocuments"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripCharge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"businessTrip"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"yearsOfRelevance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"year"}},{"kind":"Field","name":{"kind":"Name","value":"amount"}}]}}]}}]}}]} as unknown as DocumentNode<EditChargeQuery, EditChargeQueryVariables>;
export const EditSalaryRecordDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"EditSalaryRecord"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"month"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"TimelessDate"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"employeeIDs"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"salaryRecordsByDates"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"fromDate"},"value":{"kind":"Variable","name":{"kind":"Name","value":"month"}}},{"kind":"Argument","name":{"kind":"Name","value":"toDate"},"value":{"kind":"Variable","name":{"kind":"Name","value":"month"}}},{"kind":"Argument","name":{"kind":"Name","value":"employeeIDs"},"value":{"kind":"Variable","name":{"kind":"Name","value":"employeeIDs"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"month"}},{"kind":"Field","name":{"kind":"Name","value":"charge"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"directAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"baseAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"employer"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pensionFund"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pensionEmployeeAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pensionEmployeePercentage"}},{"kind":"Field","name":{"kind":"Name","value":"pensionEmployerAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pensionEmployerPercentage"}},{"kind":"Field","name":{"kind":"Name","value":"compensationsAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"compensationsPercentage"}},{"kind":"Field","name":{"kind":"Name","value":"trainingFund"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"trainingFundEmployeeAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"trainingFundEmployeePercentage"}},{"kind":"Field","name":{"kind":"Name","value":"trainingFundEmployerAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"trainingFundEmployerPercentage"}},{"kind":"Field","name":{"kind":"Name","value":"socialSecurityEmployeeAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"socialSecurityEmployerAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"incomeTaxAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"healthInsuranceAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"globalAdditionalHoursAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"bonus"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"gift"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"travelAndSubsistence"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"recovery"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"notionalExpense"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"vacationDays"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"added"}},{"kind":"Field","name":{"kind":"Name","value":"balance"}}]}},{"kind":"Field","name":{"kind":"Name","value":"vacationTakeout"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"workDays"}},{"kind":"Field","name":{"kind":"Name","value":"sicknessDays"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"balance"}}]}}]}}]}}]} as unknown as DocumentNode<EditSalaryRecordQuery, EditSalaryRecordQueryVariables>;
export const SortCodeToUpdateDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"SortCodeToUpdate"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"key"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sortCode"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"key"},"value":{"kind":"Variable","name":{"kind":"Name","value":"key"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"defaultIrsCode"}}]}}]}}]} as unknown as DocumentNode<SortCodeToUpdateQuery, SortCodeToUpdateQueryVariables>;
export const TaxCategoryToUpdateDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"TaxCategoryToUpdate"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"taxCategory"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"sortCode"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"irsCode"}}]}}]}}]} as unknown as DocumentNode<TaxCategoryToUpdateQuery, TaxCategoryToUpdateQueryVariables>;
export const MiscExpenseTransactionFieldsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MiscExpenseTransactionFields"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"transactionId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"transactionsByIDs"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"transactionIDs"},"value":{"kind":"ListValue","values":[{"kind":"Variable","name":{"kind":"Name","value":"transactionId"}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"chargeId"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"eventDate"}},{"kind":"Field","name":{"kind":"Name","value":"effectiveDate"}},{"kind":"Field","name":{"kind":"Name","value":"exactEffectiveDate"}},{"kind":"Field","name":{"kind":"Name","value":"counterparty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}}]} as unknown as DocumentNode<MiscExpenseTransactionFieldsQuery, MiscExpenseTransactionFieldsQueryVariables>;
export const NewDocumentDraftByChargeDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"NewDocumentDraftByCharge"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"chargeId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"newDocumentInfoDraftByCharge"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"chargeId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"chargeId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"NewDocumentInfo"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"IssueDocumentClientFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GreenInvoiceClient"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"country"}},{"kind":"Field","name":{"kind":"Name","value":"emails"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"phone"}},{"kind":"Field","name":{"kind":"Name","value":"taxId"}},{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"city"}},{"kind":"Field","name":{"kind":"Name","value":"zip"}},{"kind":"Field","name":{"kind":"Name","value":"fax"}},{"kind":"Field","name":{"kind":"Name","value":"mobile"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"NewDocumentInfo"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NewDocumentInfo"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"remarks"}},{"kind":"Field","name":{"kind":"Name","value":"footer"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"dueDate"}},{"kind":"Field","name":{"kind":"Name","value":"lang"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"vatType"}},{"kind":"Field","name":{"kind":"Name","value":"discount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rounding"}},{"kind":"Field","name":{"kind":"Name","value":"signed"}},{"kind":"Field","name":{"kind":"Name","value":"maxPayments"}},{"kind":"Field","name":{"kind":"Name","value":"client"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"IssueDocumentClientFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"income"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"currencyRate"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"itemId"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"vatRate"}},{"kind":"Field","name":{"kind":"Name","value":"vatType"}}]}},{"kind":"Field","name":{"kind":"Name","value":"payment"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"currencyRate"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"subType"}},{"kind":"Field","name":{"kind":"Name","value":"bankName"}},{"kind":"Field","name":{"kind":"Name","value":"bankBranch"}},{"kind":"Field","name":{"kind":"Name","value":"bankAccount"}},{"kind":"Field","name":{"kind":"Name","value":"chequeNum"}},{"kind":"Field","name":{"kind":"Name","value":"accountId"}},{"kind":"Field","name":{"kind":"Name","value":"transactionId"}},{"kind":"Field","name":{"kind":"Name","value":"appType"}},{"kind":"Field","name":{"kind":"Name","value":"cardType"}},{"kind":"Field","name":{"kind":"Name","value":"cardNum"}},{"kind":"Field","name":{"kind":"Name","value":"dealType"}},{"kind":"Field","name":{"kind":"Name","value":"numPayments"}},{"kind":"Field","name":{"kind":"Name","value":"firstPayment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"linkedDocumentIds"}},{"kind":"Field","name":{"kind":"Name","value":"linkedPaymentId"}}]}}]} as unknown as DocumentNode<NewDocumentDraftByChargeQuery, NewDocumentDraftByChargeQueryVariables>;
export const NewDocumentDraftByDocumentDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"NewDocumentDraftByDocument"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"documentId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"newDocumentInfoDraftByDocument"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"documentId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"documentId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"NewDocumentInfo"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"IssueDocumentClientFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GreenInvoiceClient"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"country"}},{"kind":"Field","name":{"kind":"Name","value":"emails"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"phone"}},{"kind":"Field","name":{"kind":"Name","value":"taxId"}},{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"city"}},{"kind":"Field","name":{"kind":"Name","value":"zip"}},{"kind":"Field","name":{"kind":"Name","value":"fax"}},{"kind":"Field","name":{"kind":"Name","value":"mobile"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"NewDocumentInfo"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NewDocumentInfo"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"remarks"}},{"kind":"Field","name":{"kind":"Name","value":"footer"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"dueDate"}},{"kind":"Field","name":{"kind":"Name","value":"lang"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"vatType"}},{"kind":"Field","name":{"kind":"Name","value":"discount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rounding"}},{"kind":"Field","name":{"kind":"Name","value":"signed"}},{"kind":"Field","name":{"kind":"Name","value":"maxPayments"}},{"kind":"Field","name":{"kind":"Name","value":"client"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"IssueDocumentClientFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"income"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"currencyRate"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"itemId"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"vatRate"}},{"kind":"Field","name":{"kind":"Name","value":"vatType"}}]}},{"kind":"Field","name":{"kind":"Name","value":"payment"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"currencyRate"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"subType"}},{"kind":"Field","name":{"kind":"Name","value":"bankName"}},{"kind":"Field","name":{"kind":"Name","value":"bankBranch"}},{"kind":"Field","name":{"kind":"Name","value":"bankAccount"}},{"kind":"Field","name":{"kind":"Name","value":"chequeNum"}},{"kind":"Field","name":{"kind":"Name","value":"accountId"}},{"kind":"Field","name":{"kind":"Name","value":"transactionId"}},{"kind":"Field","name":{"kind":"Name","value":"appType"}},{"kind":"Field","name":{"kind":"Name","value":"cardType"}},{"kind":"Field","name":{"kind":"Name","value":"cardNum"}},{"kind":"Field","name":{"kind":"Name","value":"dealType"}},{"kind":"Field","name":{"kind":"Name","value":"numPayments"}},{"kind":"Field","name":{"kind":"Name","value":"firstPayment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"linkedDocumentIds"}},{"kind":"Field","name":{"kind":"Name","value":"linkedPaymentId"}}]}}]} as unknown as DocumentNode<NewDocumentDraftByDocumentQuery, NewDocumentDraftByDocumentQueryVariables>;
export const SimilarChargesByBusinessDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"SimilarChargesByBusiness"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"businessId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"tagsDifferentThan"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"descriptionDifferentThan"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"similarChargesByBusiness"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"businessId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"businessId"}}},{"kind":"Argument","name":{"kind":"Name","value":"tagsDifferentThan"},"value":{"kind":"Variable","name":{"kind":"Name","value":"tagsDifferentThan"}}},{"kind":"Argument","name":{"kind":"Name","value":"descriptionDifferentThan"},"value":{"kind":"Variable","name":{"kind":"Name","value":"descriptionDifferentThan"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"SimilarChargesTable"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SimilarChargesTable"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"counterparty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"minEventDate"}},{"kind":"Field","name":{"kind":"Name","value":"minDebitDate"}},{"kind":"Field","name":{"kind":"Name","value":"minDocumentsDate"}},{"kind":"Field","name":{"kind":"Name","value":"totalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"vat"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"userDescription"}},{"kind":"Field","name":{"kind":"Name","value":"tags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"taxCategory"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripCharge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"businessTrip"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"transactionsCount"}},{"kind":"Field","name":{"kind":"Name","value":"documentsCount"}},{"kind":"Field","name":{"kind":"Name","value":"ledgerCount"}},{"kind":"Field","name":{"kind":"Name","value":"miscExpensesCount"}}]}}]}}]} as unknown as DocumentNode<SimilarChargesByBusinessQuery, SimilarChargesByBusinessQueryVariables>;
export const SimilarChargesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"SimilarCharges"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"chargeId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"withMissingTags"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"withMissingDescription"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"tagsDifferentThan"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"descriptionDifferentThan"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"similarCharges"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"chargeId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"chargeId"}}},{"kind":"Argument","name":{"kind":"Name","value":"withMissingTags"},"value":{"kind":"Variable","name":{"kind":"Name","value":"withMissingTags"}}},{"kind":"Argument","name":{"kind":"Name","value":"withMissingDescription"},"value":{"kind":"Variable","name":{"kind":"Name","value":"withMissingDescription"}}},{"kind":"Argument","name":{"kind":"Name","value":"tagsDifferentThan"},"value":{"kind":"Variable","name":{"kind":"Name","value":"tagsDifferentThan"}}},{"kind":"Argument","name":{"kind":"Name","value":"descriptionDifferentThan"},"value":{"kind":"Variable","name":{"kind":"Name","value":"descriptionDifferentThan"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"SimilarChargesTable"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SimilarChargesTable"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"counterparty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"minEventDate"}},{"kind":"Field","name":{"kind":"Name","value":"minDebitDate"}},{"kind":"Field","name":{"kind":"Name","value":"minDocumentsDate"}},{"kind":"Field","name":{"kind":"Name","value":"totalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"vat"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"userDescription"}},{"kind":"Field","name":{"kind":"Name","value":"tags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"taxCategory"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripCharge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"businessTrip"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"transactionsCount"}},{"kind":"Field","name":{"kind":"Name","value":"documentsCount"}},{"kind":"Field","name":{"kind":"Name","value":"ledgerCount"}},{"kind":"Field","name":{"kind":"Name","value":"miscExpensesCount"}}]}}]}}]} as unknown as DocumentNode<SimilarChargesQuery, SimilarChargesQueryVariables>;
export const SimilarTransactionsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"SimilarTransactions"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"transactionId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"withMissingInfo"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"similarTransactions"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"transactionId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"transactionId"}}},{"kind":"Argument","name":{"kind":"Name","value":"withMissingInfo"},"value":{"kind":"Variable","name":{"kind":"Name","value":"withMissingInfo"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"account"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"effectiveDate"}},{"kind":"Field","name":{"kind":"Name","value":"eventDate"}},{"kind":"Field","name":{"kind":"Name","value":"sourceDescription"}}]}}]}}]} as unknown as DocumentNode<SimilarTransactionsQuery, SimilarTransactionsQueryVariables>;
export const UniformFormatDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"UniformFormat"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fromDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"TimelessDate"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"toDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"TimelessDate"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uniformFormat"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"fromDate"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fromDate"}}},{"kind":"Argument","name":{"kind":"Name","value":"toDate"},"value":{"kind":"Variable","name":{"kind":"Name","value":"toDate"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"bkmvdata"}},{"kind":"Field","name":{"kind":"Name","value":"ini"}}]}}]}}]} as unknown as DocumentNode<UniformFormatQuery, UniformFormatQueryVariables>;
export const AccountantApprovalsChargesTableDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AccountantApprovalsChargesTable"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"page"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"filters"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeFilter"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"allCharges"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"page"},"value":{"kind":"Variable","name":{"kind":"Name","value":"page"}}},{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"Variable","name":{"kind":"Name","value":"filters"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"nodes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"accountantApproval"}}]}}]}}]}}]} as unknown as DocumentNode<AccountantApprovalsChargesTableQuery, AccountantApprovalsChargesTableQueryVariables>;
export const AllContoReportsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AllContoReports"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"allDynamicReports"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"updated"}}]}}]}}]} as unknown as DocumentNode<AllContoReportsQuery, AllContoReportsQueryVariables>;
export const ContoReportDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ContoReport"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"filters"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTransactionsFilter"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"businessTransactionsSumFromLedgerRecords"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"Variable","name":{"kind":"Name","value":"filters"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTransactionsSumFromLedgerRecordsSuccessfulResult"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"businessTransactionsSum"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"business"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"sortCode"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"credit"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"debit"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"total"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CommonError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}}]}}]}}]} as unknown as DocumentNode<ContoReportQuery, ContoReportQueryVariables>;
export const TemplateForContoReportDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"TemplateForContoReport"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"name"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"dynamicReport"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"name"},"value":{"kind":"Variable","name":{"kind":"Name","value":"name"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"template"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"parent"}},{"kind":"Field","name":{"kind":"Name","value":"text"}},{"kind":"Field","name":{"kind":"Name","value":"droppable"}},{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"descendantSortCodes"}},{"kind":"Field","name":{"kind":"Name","value":"descendantFinancialEntities"}},{"kind":"Field","name":{"kind":"Name","value":"mergedSortCodes"}},{"kind":"Field","name":{"kind":"Name","value":"isOpen"}},{"kind":"Field","name":{"kind":"Name","value":"hebrewText"}}]}}]}}]}}]}}]} as unknown as DocumentNode<TemplateForContoReportQuery, TemplateForContoReportQueryVariables>;
export const CorporateTaxRulingComplianceReportDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CorporateTaxRulingComplianceReport"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"years"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"corporateTaxRulingComplianceReport"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"years"},"value":{"kind":"Variable","name":{"kind":"Name","value":"years"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"year"}},{"kind":"Field","name":{"kind":"Name","value":"totalIncome"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"researchAndDevelopmentExpenses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rndRelativeToIncome"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"rule"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"CorporateTaxRulingReportRuleCellFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"localDevelopmentExpenses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"localDevelopmentRelativeToRnd"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"rule"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"CorporateTaxRulingReportRuleCellFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"foreignDevelopmentExpenses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"foreignDevelopmentRelativeToRnd"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"rule"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"CorporateTaxRulingReportRuleCellFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"businessTripRndExpenses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CorporateTaxRulingComplianceReport"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"differences"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"totalIncome"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"researchAndDevelopmentExpenses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rndRelativeToIncome"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CorporateTaxRulingReportRuleCellFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"localDevelopmentExpenses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"localDevelopmentRelativeToRnd"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CorporateTaxRulingReportRuleCellFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"foreignDevelopmentExpenses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"foreignDevelopmentRelativeToRnd"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CorporateTaxRulingReportRuleCellFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"businessTripRndExpenses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CorporateTaxRulingReportRuleCellFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CorporateTaxRule"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"rule"}},{"kind":"Field","name":{"kind":"Name","value":"percentage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"isCompliant"}}]}}]} as unknown as DocumentNode<CorporateTaxRulingComplianceReportQuery, CorporateTaxRulingComplianceReportQueryVariables>;
export const ProfitAndLossReportDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ProfitAndLossReport"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"reportYear"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"referenceYears"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"profitAndLossReport"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"reportYear"},"value":{"kind":"Variable","name":{"kind":"Name","value":"reportYear"}}},{"kind":"Argument","name":{"kind":"Name","value":"referenceYears"},"value":{"kind":"Variable","name":{"kind":"Name","value":"referenceYears"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"report"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"year"}},{"kind":"Field","name":{"kind":"Name","value":"revenue"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ReportCommentaryTableFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"costOfSales"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ReportCommentaryTableFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"grossProfit"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"researchAndDevelopmentExpenses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ReportCommentaryTableFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"marketingExpenses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ReportCommentaryTableFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"managementAndGeneralExpenses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ReportCommentaryTableFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"operatingProfit"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"financialExpenses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ReportCommentaryTableFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"otherIncome"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ReportCommentaryTableFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"profitBeforeTax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"netProfit"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"reference"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"year"}},{"kind":"Field","name":{"kind":"Name","value":"revenue"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"costOfSales"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"grossProfit"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"researchAndDevelopmentExpenses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"marketingExpenses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"managementAndGeneralExpenses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"operatingProfit"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"financialExpenses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"otherIncome"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"profitBeforeTax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"netProfit"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ReportSubCommentaryTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ReportCommentarySubRecord"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"financialEntity"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ReportCommentaryTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ReportCommentary"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"records"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sortCode"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"records"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ReportSubCommentaryTableFields"}}]}}]}}]}}]} as unknown as DocumentNode<ProfitAndLossReportQuery, ProfitAndLossReportQueryVariables>;
export const TaxReportDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"TaxReport"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"reportYear"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"referenceYears"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"taxReport"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"reportYear"},"value":{"kind":"Variable","name":{"kind":"Name","value":"reportYear"}}},{"kind":"Argument","name":{"kind":"Name","value":"referenceYears"},"value":{"kind":"Variable","name":{"kind":"Name","value":"referenceYears"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"report"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"year"}},{"kind":"Field","name":{"kind":"Name","value":"profitBeforeTax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ReportCommentaryTableFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"researchAndDevelopmentExpensesByRecords"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ReportCommentaryTableFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"researchAndDevelopmentExpensesForTax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"fines"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ReportCommentaryTableFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"untaxableGifts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ReportCommentaryTableFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"businessTripsExcessExpensesAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"salaryExcessExpensesAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"reserves"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ReportCommentaryTableFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"nontaxableLinkage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ReportCommentaryTableFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"taxableIncome"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"taxRate"}},{"kind":"Field","name":{"kind":"Name","value":"specialTaxableIncome"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ReportCommentaryTableFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"specialTaxRate"}},{"kind":"Field","name":{"kind":"Name","value":"annualTaxExpense"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"reference"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"year"}},{"kind":"Field","name":{"kind":"Name","value":"profitBeforeTax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"researchAndDevelopmentExpensesByRecords"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"researchAndDevelopmentExpensesForTax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"fines"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"untaxableGifts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"businessTripsExcessExpensesAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"salaryExcessExpensesAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"reserves"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"nontaxableLinkage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"taxableIncome"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"taxRate"}},{"kind":"Field","name":{"kind":"Name","value":"specialTaxableIncome"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ReportCommentaryTableFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"specialTaxRate"}},{"kind":"Field","name":{"kind":"Name","value":"annualTaxExpense"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ReportSubCommentaryTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ReportCommentarySubRecord"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"financialEntity"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ReportCommentaryTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ReportCommentary"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"records"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sortCode"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"records"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ReportSubCommentaryTableFields"}}]}}]}}]}}]} as unknown as DocumentNode<TaxReportQuery, TaxReportQueryVariables>;
export const TrialBalanceReportDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"TrialBalanceReport"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"filters"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTransactionsFilter"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"businessTransactionsSumFromLedgerRecords"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"Variable","name":{"kind":"Name","value":"filters"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTransactionsSumFromLedgerRecordsSuccessfulResult"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"TrialBalanceTableFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CommonError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TrialBalanceTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTransactionsSumFromLedgerRecordsSuccessfulResult"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"businessTransactionsSum"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"business"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"sortCode"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"credit"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"debit"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"total"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}}]}}]}}]} as unknown as DocumentNode<TrialBalanceReportQuery, TrialBalanceReportQueryVariables>;
export const ValidatePcn874ReportsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ValidatePcn874Reports"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"businessId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fromMonthDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"TimelessDate"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"toMonthDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"TimelessDate"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"pcnByDate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"businessId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"businessId"}}},{"kind":"Argument","name":{"kind":"Name","value":"fromMonthDate"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fromMonthDate"}}},{"kind":"Argument","name":{"kind":"Name","value":"toMonthDate"},"value":{"kind":"Variable","name":{"kind":"Name","value":"toMonthDate"}}}],"directives":[{"kind":"Directive","name":{"kind":"Name","value":"stream"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"business"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"diffContent"}}]}}]}}]} as unknown as DocumentNode<ValidatePcn874ReportsQuery, ValidatePcn874ReportsQueryVariables>;
export const VatMonthlyReportDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"VatMonthlyReport"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"filters"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"VatReportFilter"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"vatReport"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"Variable","name":{"kind":"Name","value":"filters"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"VatReportIncomeFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"VatReportExpensesFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"VatReportMissingInfoFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"VatReportMiscTableFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"VatReportBusinessTripsFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"VatReportAccountantApprovalFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"VatReportRecord"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"chargeId"}},{"kind":"Field","name":{"kind":"Name","value":"chargeAccountantStatus"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"VatReportIncomeRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"VatReportRecord"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"VatReportAccountantApprovalFields"}},{"kind":"Field","name":{"kind":"Name","value":"chargeId"}},{"kind":"Field","name":{"kind":"Name","value":"business"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"vatNumber"}},{"kind":"Field","name":{"kind":"Name","value":"image"}},{"kind":"Field","name":{"kind":"Name","value":"documentSerial"}},{"kind":"Field","name":{"kind":"Name","value":"documentDate"}},{"kind":"Field","name":{"kind":"Name","value":"chargeDate"}},{"kind":"Field","name":{"kind":"Name","value":"taxReducedForeignAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"taxReducedLocalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"VatReportExpensesRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"VatReportRecord"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"VatReportAccountantApprovalFields"}},{"kind":"Field","name":{"kind":"Name","value":"business"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"vatNumber"}},{"kind":"Field","name":{"kind":"Name","value":"image"}},{"kind":"Field","name":{"kind":"Name","value":"documentSerial"}},{"kind":"Field","name":{"kind":"Name","value":"documentDate"}},{"kind":"Field","name":{"kind":"Name","value":"chargeDate"}},{"kind":"Field","name":{"kind":"Name","value":"chargeId"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"localAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"localVat"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"foreignVatAfterDeduction"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"localVatAfterDeduction"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"roundedLocalVatAfterDeduction"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"taxReducedLocalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableAccountantApprovalFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"accountantApproval"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableAmountFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"totalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CreditcardBankCharge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validCreditCardAmount"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableBusinessTripFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripCharge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"businessTrip"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableDateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"minEventDate"}},{"kind":"Field","name":{"kind":"Name","value":"minDebitDate"}},{"kind":"Field","name":{"kind":"Name","value":"minDocumentsDate"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableDescriptionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"userDescription"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}},{"kind":"Field","name":{"kind":"Name","value":"missingInfoSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"description"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableEntityFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"counterparty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableMoreInfoFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"transactionsCount"}},{"kind":"Field","name":{"kind":"Name","value":"documentsCount"}},{"kind":"Field","name":{"kind":"Name","value":"ledgerCount"}},{"kind":"Field","name":{"kind":"Name","value":"miscExpensesCount"}},{"kind":"Field","name":{"kind":"Name","value":"isSalary"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeMetadata"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"invalidLedger"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableTagsFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"tags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"namePath"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ValidationData"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"missingInfoSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeSuggestions"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"tags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"namePath"}}]}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableTaxCategoryFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"taxCategory"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableTypeFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableVatFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"vat"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"totalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeMetadata"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"documentsCount"}},{"kind":"Field","name":{"kind":"Name","value":"ledgerCount"}},{"kind":"Field","name":{"kind":"Name","value":"transactionsCount"}},{"kind":"Field","name":{"kind":"Name","value":"miscExpensesCount"}}]}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableAccountantApprovalFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableAmountFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableBusinessTripFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableDateFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableDescriptionFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableEntityFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableMoreInfoFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableTagsFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableTaxCategoryFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableTypeFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableVatFields"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"owner"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableRowFields"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"VatReportIncomeFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"VatReportResult"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"income"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"VatReportIncomeRowFields"}},{"kind":"Field","name":{"kind":"Name","value":"taxReducedLocalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"VatReportExpensesFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"VatReportResult"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"expenses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"VatReportExpensesRowFields"}},{"kind":"Field","name":{"kind":"Name","value":"roundedLocalVatAfterDeduction"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"taxReducedLocalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"VatReportMissingInfoFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"VatReportResult"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"VatReportMiscTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"VatReportResult"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"differentMonthDoc"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"VatReportBusinessTripsFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"VatReportResult"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"businessTrips"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableFields"}}]}}]}}]} as unknown as DocumentNode<VatMonthlyReportQuery, VatMonthlyReportQueryVariables>;
export const GeneratePcnDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GeneratePCN"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"monthDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"TimelessDate"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"financialEntityId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"pcnFile"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"monthDate"},"value":{"kind":"Variable","name":{"kind":"Name","value":"monthDate"}}},{"kind":"Argument","name":{"kind":"Name","value":"financialEntityId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"financialEntityId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"reportContent"}},{"kind":"Field","name":{"kind":"Name","value":"fileName"}}]}}]}}]} as unknown as DocumentNode<GeneratePcnQuery, GeneratePcnQueryVariables>;
export const YearlyLedgerDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"YearlyLedger"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"year"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"yearlyLedgerReport"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"year"},"value":{"kind":"Variable","name":{"kind":"Name","value":"year"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"year"}},{"kind":"Field","name":{"kind":"Name","value":"financialEntitiesInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"entity"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"sortCode"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"key"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"openingBalance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"totalCredit"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"totalDebit"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"closingBalance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"records"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"invoiceDate"}},{"kind":"Field","name":{"kind":"Name","value":"valueDate"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"reference"}},{"kind":"Field","name":{"kind":"Name","value":"counterParty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"balance"}}]}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"LedgerCsvFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"LedgerCsvFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"YearlyLedgerReport"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"year"}},{"kind":"Field","name":{"kind":"Name","value":"financialEntitiesInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"entity"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"sortCode"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"key"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"openingBalance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"totalCredit"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"totalDebit"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"closingBalance"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"records"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"invoiceDate"}},{"kind":"Field","name":{"kind":"Name","value":"valueDate"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"reference"}},{"kind":"Field","name":{"kind":"Name","value":"counterParty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"balance"}}]}}]}}]}}]} as unknown as DocumentNode<YearlyLedgerQuery, YearlyLedgerQueryVariables>;
export const SalaryScreenRecordsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"SalaryScreenRecords"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fromDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"TimelessDate"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"toDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"TimelessDate"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"employeeIDs"}},"type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"salaryRecordsByDates"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"fromDate"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fromDate"}}},{"kind":"Argument","name":{"kind":"Name","value":"toDate"},"value":{"kind":"Variable","name":{"kind":"Name","value":"toDate"}}},{"kind":"Argument","name":{"kind":"Name","value":"employeeIDs"},"value":{"kind":"Variable","name":{"kind":"Name","value":"employeeIDs"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"month"}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"SalariesTableFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SalariesRecordEmployeeFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Salary"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"month"}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SalariesRecordMainSalaryFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Salary"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"month"}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"baseAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"directAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"globalAdditionalHoursAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"bonus"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"gift"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"recovery"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"vacationTakeout"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SalariesRecordFundsFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Salary"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"month"}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pensionFund"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pensionEmployeeAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pensionEmployeePercentage"}},{"kind":"Field","name":{"kind":"Name","value":"pensionEmployerAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pensionEmployerPercentage"}},{"kind":"Field","name":{"kind":"Name","value":"compensationsAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"compensationsPercentage"}},{"kind":"Field","name":{"kind":"Name","value":"trainingFund"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"trainingFundEmployeeAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"trainingFundEmployeePercentage"}},{"kind":"Field","name":{"kind":"Name","value":"trainingFundEmployerAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"trainingFundEmployerPercentage"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SalariesRecordInsurancesAndTaxesFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Salary"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"month"}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"healthInsuranceAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"socialSecurityEmployeeAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"socialSecurityEmployerAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"incomeTaxAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"notionalExpense"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SalariesRecordWorkFrameFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Salary"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"month"}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"vacationDays"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"added"}},{"kind":"Field","name":{"kind":"Name","value":"taken"}},{"kind":"Field","name":{"kind":"Name","value":"balance"}}]}},{"kind":"Field","name":{"kind":"Name","value":"workDays"}},{"kind":"Field","name":{"kind":"Name","value":"sicknessDays"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"balance"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SalariesRecordFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Salary"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"month"}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"SalariesRecordEmployeeFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"SalariesRecordMainSalaryFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"SalariesRecordFundsFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"SalariesRecordInsurancesAndTaxesFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"SalariesRecordWorkFrameFields"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SalariesMonthFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Salary"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"month"}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"SalariesRecordFields"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"SalariesTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Salary"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"month"}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"SalariesMonthFields"}}]}}]} as unknown as DocumentNode<SalaryScreenRecordsQuery, SalaryScreenRecordsQueryVariables>;
export const AllChargesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AllCharges"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"page"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"filters"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeFilter"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"allCharges"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"page"},"value":{"kind":"Variable","name":{"kind":"Name","value":"page"}}},{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"Variable","name":{"kind":"Name","value":"filters"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"nodes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalPages"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableAccountantApprovalFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"accountantApproval"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableAmountFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"totalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CreditcardBankCharge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validCreditCardAmount"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableBusinessTripFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripCharge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"businessTrip"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableDateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"minEventDate"}},{"kind":"Field","name":{"kind":"Name","value":"minDebitDate"}},{"kind":"Field","name":{"kind":"Name","value":"minDocumentsDate"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableDescriptionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"userDescription"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}},{"kind":"Field","name":{"kind":"Name","value":"missingInfoSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"description"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableEntityFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"counterparty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableMoreInfoFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"transactionsCount"}},{"kind":"Field","name":{"kind":"Name","value":"documentsCount"}},{"kind":"Field","name":{"kind":"Name","value":"ledgerCount"}},{"kind":"Field","name":{"kind":"Name","value":"miscExpensesCount"}},{"kind":"Field","name":{"kind":"Name","value":"isSalary"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeMetadata"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"invalidLedger"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableTagsFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"tags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"namePath"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ValidationData"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"missingInfoSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeSuggestions"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"tags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"namePath"}}]}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableTaxCategoryFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"taxCategory"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableTypeFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableVatFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"vat"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"totalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeMetadata"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"documentsCount"}},{"kind":"Field","name":{"kind":"Name","value":"ledgerCount"}},{"kind":"Field","name":{"kind":"Name","value":"transactionsCount"}},{"kind":"Field","name":{"kind":"Name","value":"miscExpensesCount"}}]}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableAccountantApprovalFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableAmountFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableBusinessTripFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableDateFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableDescriptionFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableEntityFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableMoreInfoFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableTagsFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableTaxCategoryFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableTypeFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableVatFields"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"owner"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableRowFields"}}]}}]} as unknown as DocumentNode<AllChargesQuery, AllChargesQueryVariables>;
export const ChargeScreenDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ChargeScreen"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"chargeId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"charge"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"chargeId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"chargeId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableAccountantApprovalFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"accountantApproval"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableAmountFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"totalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CreditcardBankCharge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validCreditCardAmount"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableBusinessTripFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripCharge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"businessTrip"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableDateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"minEventDate"}},{"kind":"Field","name":{"kind":"Name","value":"minDebitDate"}},{"kind":"Field","name":{"kind":"Name","value":"minDocumentsDate"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableDescriptionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"userDescription"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}},{"kind":"Field","name":{"kind":"Name","value":"missingInfoSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"description"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableEntityFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"counterparty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableMoreInfoFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"transactionsCount"}},{"kind":"Field","name":{"kind":"Name","value":"documentsCount"}},{"kind":"Field","name":{"kind":"Name","value":"ledgerCount"}},{"kind":"Field","name":{"kind":"Name","value":"miscExpensesCount"}},{"kind":"Field","name":{"kind":"Name","value":"isSalary"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeMetadata"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"invalidLedger"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableTagsFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"tags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"namePath"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ValidationData"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"missingInfoSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeSuggestions"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"tags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"namePath"}}]}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableTaxCategoryFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"taxCategory"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableTypeFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableVatFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"vat"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"totalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeMetadata"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"documentsCount"}},{"kind":"Field","name":{"kind":"Name","value":"ledgerCount"}},{"kind":"Field","name":{"kind":"Name","value":"transactionsCount"}},{"kind":"Field","name":{"kind":"Name","value":"miscExpensesCount"}}]}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableAccountantApprovalFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableAmountFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableBusinessTripFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableDateFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableDescriptionFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableEntityFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableMoreInfoFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableTagsFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableTaxCategoryFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableTypeFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableVatFields"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"owner"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableRowFields"}}]}}]} as unknown as DocumentNode<ChargeScreenQuery, ChargeScreenQueryVariables>;
export const MissingInfoChargesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MissingInfoCharges"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"page"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"chargesWithMissingRequiredInfo"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"page"},"value":{"kind":"Variable","name":{"kind":"Name","value":"page"}}},{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"nodes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalPages"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableAccountantApprovalFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"accountantApproval"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableAmountFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"totalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CreditcardBankCharge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validCreditCardAmount"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableBusinessTripFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripCharge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"businessTrip"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableDateFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"minEventDate"}},{"kind":"Field","name":{"kind":"Name","value":"minDebitDate"}},{"kind":"Field","name":{"kind":"Name","value":"minDocumentsDate"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableDescriptionFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"userDescription"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}},{"kind":"Field","name":{"kind":"Name","value":"missingInfoSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"description"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableEntityFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"counterparty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableMoreInfoFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"transactionsCount"}},{"kind":"Field","name":{"kind":"Name","value":"documentsCount"}},{"kind":"Field","name":{"kind":"Name","value":"ledgerCount"}},{"kind":"Field","name":{"kind":"Name","value":"miscExpensesCount"}},{"kind":"Field","name":{"kind":"Name","value":"isSalary"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeMetadata"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"invalidLedger"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableTagsFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"tags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"namePath"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ValidationData"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"missingInfoSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeSuggestions"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"tags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"namePath"}}]}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableTaxCategoryFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"taxCategory"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableTypeFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableVatFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"vat"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"totalAmount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validationData"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"missingInfo"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableRowFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeMetadata"}},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"documentsCount"}},{"kind":"Field","name":{"kind":"Name","value":"ledgerCount"}},{"kind":"Field","name":{"kind":"Name","value":"transactionsCount"}},{"kind":"Field","name":{"kind":"Name","value":"miscExpensesCount"}}]}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableAccountantApprovalFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableAmountFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableBusinessTripFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableDateFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableDescriptionFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableEntityFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableMoreInfoFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableTagsFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableTaxCategoryFields"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"defer"}}]},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableTypeFields"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableVatFields"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ChargesTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Charge"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"owner"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"ChargesTableRowFields"}}]}}]} as unknown as DocumentNode<MissingInfoChargesQuery, MissingInfoChargesQueryVariables>;
export const DocumentsScreenDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"DocumentsScreen"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"filters"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"DocumentsFilters"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"documentsByFilters"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"Variable","name":{"kind":"Name","value":"filters"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"image"}},{"kind":"Field","name":{"kind":"Name","value":"file"}},{"kind":"Field","name":{"kind":"Name","value":"charge"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"userDescription"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"vat"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}},{"kind":"Field","name":{"kind":"Name","value":"transactions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"eventDate"}},{"kind":"Field","name":{"kind":"Name","value":"sourceDescription"}},{"kind":"Field","name":{"kind":"Name","value":"effectiveDate"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FinancialDocument"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"creditor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"debtor"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"vat"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}},{"kind":"Field","name":{"kind":"Name","value":"serialNumber"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}}]}}]}}]}}]}}]} as unknown as DocumentNode<DocumentsScreenQuery, DocumentsScreenQueryVariables>;
export const MonthlyDocumentDraftByClientDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MonthlyDocumentDraftByClient"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"clientId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"issueMonth"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"TimelessDate"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"clientMonthlyChargeDraft"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"clientId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"clientId"}}},{"kind":"Argument","name":{"kind":"Name","value":"issueMonth"},"value":{"kind":"Variable","name":{"kind":"Name","value":"issueMonth"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"NewDocumentInfo"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"IssueDocumentClientFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GreenInvoiceClient"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"country"}},{"kind":"Field","name":{"kind":"Name","value":"emails"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"phone"}},{"kind":"Field","name":{"kind":"Name","value":"taxId"}},{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"city"}},{"kind":"Field","name":{"kind":"Name","value":"zip"}},{"kind":"Field","name":{"kind":"Name","value":"fax"}},{"kind":"Field","name":{"kind":"Name","value":"mobile"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"NewDocumentInfo"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NewDocumentInfo"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"remarks"}},{"kind":"Field","name":{"kind":"Name","value":"footer"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"dueDate"}},{"kind":"Field","name":{"kind":"Name","value":"lang"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"vatType"}},{"kind":"Field","name":{"kind":"Name","value":"discount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rounding"}},{"kind":"Field","name":{"kind":"Name","value":"signed"}},{"kind":"Field","name":{"kind":"Name","value":"maxPayments"}},{"kind":"Field","name":{"kind":"Name","value":"client"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"IssueDocumentClientFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"income"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"currencyRate"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"itemId"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"vatRate"}},{"kind":"Field","name":{"kind":"Name","value":"vatType"}}]}},{"kind":"Field","name":{"kind":"Name","value":"payment"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"currencyRate"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"subType"}},{"kind":"Field","name":{"kind":"Name","value":"bankName"}},{"kind":"Field","name":{"kind":"Name","value":"bankBranch"}},{"kind":"Field","name":{"kind":"Name","value":"bankAccount"}},{"kind":"Field","name":{"kind":"Name","value":"chequeNum"}},{"kind":"Field","name":{"kind":"Name","value":"accountId"}},{"kind":"Field","name":{"kind":"Name","value":"transactionId"}},{"kind":"Field","name":{"kind":"Name","value":"appType"}},{"kind":"Field","name":{"kind":"Name","value":"cardType"}},{"kind":"Field","name":{"kind":"Name","value":"cardNum"}},{"kind":"Field","name":{"kind":"Name","value":"dealType"}},{"kind":"Field","name":{"kind":"Name","value":"numPayments"}},{"kind":"Field","name":{"kind":"Name","value":"firstPayment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"linkedDocumentIds"}},{"kind":"Field","name":{"kind":"Name","value":"linkedPaymentId"}}]}}]} as unknown as DocumentNode<MonthlyDocumentDraftByClientQuery, MonthlyDocumentDraftByClientQueryVariables>;
export const MonthlyDocumentsDraftsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MonthlyDocumentsDrafts"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"issueMonth"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"TimelessDate"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"clientMonthlyChargesDrafts"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"issueMonth"},"value":{"kind":"Variable","name":{"kind":"Name","value":"issueMonth"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"NewDocumentInfo"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"IssueDocumentClientFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GreenInvoiceClient"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"country"}},{"kind":"Field","name":{"kind":"Name","value":"emails"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"phone"}},{"kind":"Field","name":{"kind":"Name","value":"taxId"}},{"kind":"Field","name":{"kind":"Name","value":"address"}},{"kind":"Field","name":{"kind":"Name","value":"city"}},{"kind":"Field","name":{"kind":"Name","value":"zip"}},{"kind":"Field","name":{"kind":"Name","value":"fax"}},{"kind":"Field","name":{"kind":"Name","value":"mobile"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"NewDocumentInfo"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NewDocumentInfo"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"remarks"}},{"kind":"Field","name":{"kind":"Name","value":"footer"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"dueDate"}},{"kind":"Field","name":{"kind":"Name","value":"lang"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"vatType"}},{"kind":"Field","name":{"kind":"Name","value":"discount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}},{"kind":"Field","name":{"kind":"Name","value":"rounding"}},{"kind":"Field","name":{"kind":"Name","value":"signed"}},{"kind":"Field","name":{"kind":"Name","value":"maxPayments"}},{"kind":"Field","name":{"kind":"Name","value":"client"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"IssueDocumentClientFields"}}]}},{"kind":"Field","name":{"kind":"Name","value":"income"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"currencyRate"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"itemId"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"vatRate"}},{"kind":"Field","name":{"kind":"Name","value":"vatType"}}]}},{"kind":"Field","name":{"kind":"Name","value":"payment"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"currencyRate"}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"subType"}},{"kind":"Field","name":{"kind":"Name","value":"bankName"}},{"kind":"Field","name":{"kind":"Name","value":"bankBranch"}},{"kind":"Field","name":{"kind":"Name","value":"bankAccount"}},{"kind":"Field","name":{"kind":"Name","value":"chequeNum"}},{"kind":"Field","name":{"kind":"Name","value":"accountId"}},{"kind":"Field","name":{"kind":"Name","value":"transactionId"}},{"kind":"Field","name":{"kind":"Name","value":"appType"}},{"kind":"Field","name":{"kind":"Name","value":"cardType"}},{"kind":"Field","name":{"kind":"Name","value":"cardNum"}},{"kind":"Field","name":{"kind":"Name","value":"dealType"}},{"kind":"Field","name":{"kind":"Name","value":"numPayments"}},{"kind":"Field","name":{"kind":"Name","value":"firstPayment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"linkedDocumentIds"}},{"kind":"Field","name":{"kind":"Name","value":"linkedPaymentId"}}]}}]} as unknown as DocumentNode<MonthlyDocumentsDraftsQuery, MonthlyDocumentsDraftsQueryVariables>;
export const AccountantApprovalStatusDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AccountantApprovalStatus"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fromDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"TimelessDate"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"toDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"TimelessDate"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accountantApprovalStatus"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"from"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fromDate"}}},{"kind":"Argument","name":{"kind":"Name","value":"to"},"value":{"kind":"Variable","name":{"kind":"Name","value":"toDate"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalCharges"}},{"kind":"Field","name":{"kind":"Name","value":"approvedCount"}},{"kind":"Field","name":{"kind":"Name","value":"pendingCount"}},{"kind":"Field","name":{"kind":"Name","value":"unapprovedCount"}}]}}]}}]} as unknown as DocumentNode<AccountantApprovalStatusQuery, AccountantApprovalStatusQueryVariables>;
export const LedgerValidationStatusDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"LedgerValidationStatus"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"limit"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"filters"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"ChargeFilter"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"chargesWithLedgerChanges"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"Variable","name":{"kind":"Name","value":"limit"}}},{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"Variable","name":{"kind":"Name","value":"filters"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"charge"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}}]} as unknown as DocumentNode<LedgerValidationStatusQuery, LedgerValidationStatusQueryVariables>;
export const BalanceReportExtendedTransactionsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"BalanceReportExtendedTransactions"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"transactionIDs"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"transactionsByIDs"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"transactionIDs"},"value":{"kind":"Variable","name":{"kind":"Name","value":"transactionIDs"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"TransactionForTransactionsTableFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"TransactionForTransactionsTableFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Transaction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"chargeId"}},{"kind":"Field","name":{"kind":"Name","value":"eventDate"}},{"kind":"Field","name":{"kind":"Name","value":"effectiveDate"}},{"kind":"Field","name":{"kind":"Name","value":"sourceEffectiveDate"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"cryptoExchangeRate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"rate"}}]}},{"kind":"Field","name":{"kind":"Name","value":"account"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"type"}}]}},{"kind":"Field","name":{"kind":"Name","value":"sourceDescription"}},{"kind":"Field","name":{"kind":"Name","value":"referenceKey"}},{"kind":"Field","name":{"kind":"Name","value":"counterparty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"missingInfoSuggestions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"business"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]} as unknown as DocumentNode<BalanceReportExtendedTransactionsQuery, BalanceReportExtendedTransactionsQueryVariables>;
export const BalanceReportScreenDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"BalanceReportScreen"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fromDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"TimelessDate"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"toDate"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"TimelessDate"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"ownerId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"transactionsForBalanceReport"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"fromDate"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fromDate"}}},{"kind":"Argument","name":{"kind":"Name","value":"toDate"},"value":{"kind":"Variable","name":{"kind":"Name","value":"toDate"}}},{"kind":"Argument","name":{"kind":"Name","value":"ownerId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"ownerId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"amountUsd"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"formatted"}},{"kind":"Field","name":{"kind":"Name","value":"raw"}}]}},{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"month"}},{"kind":"Field","name":{"kind":"Name","value":"year"}},{"kind":"Field","name":{"kind":"Name","value":"counterparty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"isFee"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"charge"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"tags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]}}]} as unknown as DocumentNode<BalanceReportScreenQuery, BalanceReportScreenQueryVariables>;
export const DepreciationReportScreenDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"DepreciationReportScreen"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"filters"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"DepreciationReportFilter"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"depreciationReport"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"filters"},"value":{"kind":"Variable","name":{"kind":"Name","value":"filters"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"year"}},{"kind":"Field","name":{"kind":"Name","value":"categories"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"category"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"percentage"}}]}},{"kind":"Field","name":{"kind":"Name","value":"records"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"chargeId"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"purchaseDate"}},{"kind":"Field","name":{"kind":"Name","value":"activationDate"}},{"kind":"Field","name":{"kind":"Name","value":"statutoryDepreciationRate"}},{"kind":"Field","name":{"kind":"Name","value":"claimedDepreciationRate"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"DepreciationReportRecordCore"}}]}},{"kind":"Field","name":{"kind":"Name","value":"summary"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"DepreciationReportRecordCore"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"summary"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"DepreciationReportRecordCore"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"DepreciationReportRecordCore"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DepreciationCoreRecord"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"originalCost"}},{"kind":"Field","name":{"kind":"Name","value":"reportYearDelta"}},{"kind":"Field","name":{"kind":"Name","value":"totalDepreciableCosts"}},{"kind":"Field","name":{"kind":"Name","value":"reportYearClaimedDepreciation"}},{"kind":"Field","name":{"kind":"Name","value":"pastYearsAccumulatedDepreciation"}},{"kind":"Field","name":{"kind":"Name","value":"totalDepreciation"}},{"kind":"Field","name":{"kind":"Name","value":"netValue"}}]}}]} as unknown as DocumentNode<DepreciationReportScreenQuery, DepreciationReportScreenQueryVariables>;
export const Shaam6111ReportScreenDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"Shaam6111ReportScreen"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"year"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"businessId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"shaam6111"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"year"},"value":{"kind":"Variable","name":{"kind":"Name","value":"year"}}},{"kind":"Argument","name":{"kind":"Name","value":"businessId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"businessId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"year"}},{"kind":"Field","name":{"kind":"Name","value":"data"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"Shaam6111DataContent"}}]}},{"kind":"Field","name":{"kind":"Name","value":"business"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"Shaam6111DataContentHeaderBusiness"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Shaam6111DataContentHeader"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Shaam6111Data"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"header"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"taxYear"}},{"kind":"Field","name":{"kind":"Name","value":"businessDescription"}},{"kind":"Field","name":{"kind":"Name","value":"taxFileNumber"}},{"kind":"Field","name":{"kind":"Name","value":"idNumber"}},{"kind":"Field","name":{"kind":"Name","value":"vatFileNumber"}},{"kind":"Field","name":{"kind":"Name","value":"withholdingTaxFileNumber"}},{"kind":"Field","name":{"kind":"Name","value":"businessType"}},{"kind":"Field","name":{"kind":"Name","value":"reportingMethod"}},{"kind":"Field","name":{"kind":"Name","value":"currencyType"}},{"kind":"Field","name":{"kind":"Name","value":"amountsInThousands"}},{"kind":"Field","name":{"kind":"Name","value":"accountingMethod"}},{"kind":"Field","name":{"kind":"Name","value":"accountingSystem"}},{"kind":"Field","name":{"kind":"Name","value":"softwareRegistrationNumber"}},{"kind":"Field","name":{"kind":"Name","value":"isPartnership"}},{"kind":"Field","name":{"kind":"Name","value":"partnershipCount"}},{"kind":"Field","name":{"kind":"Name","value":"partnershipProfitShare"}},{"kind":"Field","name":{"kind":"Name","value":"ifrsImplementationYear"}},{"kind":"Field","name":{"kind":"Name","value":"ifrsReportingOption"}},{"kind":"Field","name":{"kind":"Name","value":"includesProfitLoss"}},{"kind":"Field","name":{"kind":"Name","value":"includesTaxAdjustment"}},{"kind":"Field","name":{"kind":"Name","value":"includesBalanceSheet"}},{"kind":"Field","name":{"kind":"Name","value":"industryCode"}},{"kind":"Field","name":{"kind":"Name","value":"auditOpinionType"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Shaam6111DataContentProfitLoss"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Shaam6111Data"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"profitAndLoss"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"amount"}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Shaam6111DataContentTaxAdjustment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Shaam6111Data"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"taxAdjustment"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"amount"}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Shaam6111DataContentBalanceSheet"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Shaam6111Data"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"balanceSheet"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"amount"}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Shaam6111DataContent"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Shaam6111Data"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"Shaam6111DataContentHeader"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"Shaam6111DataContentProfitLoss"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"Shaam6111DataContentTaxAdjustment"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"Shaam6111DataContentBalanceSheet"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"Shaam6111DataContentHeaderBusiness"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Business"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]} as unknown as DocumentNode<Shaam6111ReportScreenQuery, Shaam6111ReportScreenQueryVariables>;
export const AllSortCodesForScreenDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AllSortCodesForScreen"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"allSortCodes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"defaultIrsCode"}}]}}]}}]} as unknown as DocumentNode<AllSortCodesForScreenQuery, AllSortCodesForScreenQueryVariables>;
export const AllTagsScreenDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AllTagsScreen"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"allTags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"namePath"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"EditTagFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"EditTagFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Tag"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"parent"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode<AllTagsScreenQuery, AllTagsScreenQueryVariables>;
export const AllTaxCategoriesForScreenDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AllTaxCategoriesForScreen"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"taxCategories"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"sortCode"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]} as unknown as DocumentNode<AllTaxCategoriesForScreenQuery, AllTaxCategoriesForScreenQueryVariables>;
export const AddBusinessTripAccommodationsExpenseDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AddBusinessTripAccommodationsExpense"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fields"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"AddBusinessTripAccommodationsExpenseInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"addBusinessTripAccommodationsExpense"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"fields"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fields"}}}]}]}}]} as unknown as DocumentNode<AddBusinessTripAccommodationsExpenseMutation, AddBusinessTripAccommodationsExpenseMutationVariables>;
export const AddBusinessTripCarRentalExpenseDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AddBusinessTripCarRentalExpense"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fields"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"AddBusinessTripCarRentalExpenseInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"addBusinessTripCarRentalExpense"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"fields"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fields"}}}]}]}}]} as unknown as DocumentNode<AddBusinessTripCarRentalExpenseMutation, AddBusinessTripCarRentalExpenseMutationVariables>;
export const AddBusinessTripFlightsExpenseDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AddBusinessTripFlightsExpense"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fields"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"AddBusinessTripFlightsExpenseInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"addBusinessTripFlightsExpense"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"fields"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fields"}}}]}]}}]} as unknown as DocumentNode<AddBusinessTripFlightsExpenseMutation, AddBusinessTripFlightsExpenseMutationVariables>;
export const AddBusinessTripOtherExpenseDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AddBusinessTripOtherExpense"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fields"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"AddBusinessTripOtherExpenseInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"addBusinessTripOtherExpense"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"fields"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fields"}}}]}]}}]} as unknown as DocumentNode<AddBusinessTripOtherExpenseMutation, AddBusinessTripOtherExpenseMutationVariables>;
export const AddBusinessTripTravelAndSubsistenceExpenseDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AddBusinessTripTravelAndSubsistenceExpense"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fields"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"AddBusinessTripTravelAndSubsistenceExpenseInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"addBusinessTripTravelAndSubsistenceExpense"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"fields"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fields"}}}]}]}}]} as unknown as DocumentNode<AddBusinessTripTravelAndSubsistenceExpenseMutation, AddBusinessTripTravelAndSubsistenceExpenseMutationVariables>;
export const AddDepreciationRecordDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AddDepreciationRecord"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fields"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"InsertDepreciationRecordInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"insertDepreciationRecord"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fields"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CommonError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"message"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DepreciationRecord"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}}]} as unknown as DocumentNode<AddDepreciationRecordMutation, AddDepreciationRecordMutationVariables>;
export const AddSortCodeDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AddSortCode"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"key"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"name"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"defaultIrsCode"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"addSortCode"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"key"},"value":{"kind":"Variable","name":{"kind":"Name","value":"key"}}},{"kind":"Argument","name":{"kind":"Name","value":"name"},"value":{"kind":"Variable","name":{"kind":"Name","value":"name"}}},{"kind":"Argument","name":{"kind":"Name","value":"defaultIrsCode"},"value":{"kind":"Variable","name":{"kind":"Name","value":"defaultIrsCode"}}}]}]}}]} as unknown as DocumentNode<AddSortCodeMutation, AddSortCodeMutationVariables>;
export const AddTagDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"AddTag"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"tagName"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"addTag"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"name"},"value":{"kind":"Variable","name":{"kind":"Name","value":"tagName"}}}]}]}}]} as unknown as DocumentNode<AddTagMutation, AddTagMutationVariables>;
export const GenerateBalanceChargeDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"GenerateBalanceCharge"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"description"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"balanceRecords"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"InsertMiscExpenseInput"}}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"generateBalanceCharge"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"description"},"value":{"kind":"Variable","name":{"kind":"Name","value":"description"}}},{"kind":"Argument","name":{"kind":"Name","value":"balanceRecords"},"value":{"kind":"Variable","name":{"kind":"Name","value":"balanceRecords"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode<GenerateBalanceChargeMutation, GenerateBalanceChargeMutationVariables>;
export const BatchUpdateChargesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"BatchUpdateCharges"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"chargeIds"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fields"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateChargeInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"batchUpdateCharges"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"chargeIds"},"value":{"kind":"Variable","name":{"kind":"Name","value":"chargeIds"}}},{"kind":"Argument","name":{"kind":"Name","value":"fields"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fields"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BatchUpdateChargesSuccessfulResult"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"charges"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CommonError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"message"}}]}}]}}]}}]} as unknown as DocumentNode<BatchUpdateChargesMutation, BatchUpdateChargesMutationVariables>;
export const CategorizeBusinessTripExpenseDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CategorizeBusinessTripExpense"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fields"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CategorizeBusinessTripExpenseInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"categorizeBusinessTripExpense"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"fields"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fields"}}}]}]}}]} as unknown as DocumentNode<CategorizeBusinessTripExpenseMutation, CategorizeBusinessTripExpenseMutationVariables>;
export const CategorizeIntoExistingBusinessTripExpenseDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CategorizeIntoExistingBusinessTripExpense"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fields"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CategorizeIntoExistingBusinessTripExpenseInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"categorizeIntoExistingBusinessTripExpense"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"fields"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fields"}}}]}]}}]} as unknown as DocumentNode<CategorizeIntoExistingBusinessTripExpenseMutation, CategorizeIntoExistingBusinessTripExpenseMutationVariables>;
export const CloseDocumentDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CloseDocument"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"documentId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"closeDocument"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"documentId"}}}]}]}}]} as unknown as DocumentNode<CloseDocumentMutation, CloseDocumentMutationVariables>;
export const FlagForeignFeeTransactionsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"FlagForeignFeeTransactions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"flagForeignFeeTransactions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"success"}},{"kind":"Field","name":{"kind":"Name","value":"errors"}}]}}]}}]} as unknown as DocumentNode<FlagForeignFeeTransactionsMutation, FlagForeignFeeTransactionsMutationVariables>;
export const MergeChargesByTransactionReferenceDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"MergeChargesByTransactionReference"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"mergeChargesByTransactionReference"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"success"}},{"kind":"Field","name":{"kind":"Name","value":"errors"}}]}}]}}]} as unknown as DocumentNode<MergeChargesByTransactionReferenceMutation, MergeChargesByTransactionReferenceMutationVariables>;
export const CalculateCreditcardTransactionsDebitDateDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CalculateCreditcardTransactionsDebitDate"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"calculateCreditcardTransactionsDebitDate"}}]}}]} as unknown as DocumentNode<CalculateCreditcardTransactionsDebitDateMutation, CalculateCreditcardTransactionsDebitDateMutationVariables>;
export const CreditShareholdersBusinessTripTravelAndSubsistenceDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreditShareholdersBusinessTripTravelAndSubsistence"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"businessTripId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"creditShareholdersBusinessTripTravelAndSubsistence"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"businessTripId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"businessTripId"}}}]}]}}]} as unknown as DocumentNode<CreditShareholdersBusinessTripTravelAndSubsistenceMutation, CreditShareholdersBusinessTripTravelAndSubsistenceMutationVariables>;
export const DeleteBusinessTripAttendeeDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteBusinessTripAttendee"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fields"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"DeleteBusinessTripAttendeeInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteBusinessTripAttendee"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"fields"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fields"}}}]}]}}]} as unknown as DocumentNode<DeleteBusinessTripAttendeeMutation, DeleteBusinessTripAttendeeMutationVariables>;
export const DeleteBusinessTripExpenseDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteBusinessTripExpense"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"businessTripExpenseId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteBusinessTripExpense"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"businessTripExpenseId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"businessTripExpenseId"}}}]}]}}]} as unknown as DocumentNode<DeleteBusinessTripExpenseMutation, DeleteBusinessTripExpenseMutationVariables>;
export const DeleteChargeDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteCharge"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"chargeId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteCharge"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"chargeId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"chargeId"}}}]}]}}]} as unknown as DocumentNode<DeleteChargeMutation, DeleteChargeMutationVariables>;
export const DeleteDepreciationRecordDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteDepreciationRecord"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"depreciationRecordId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteDepreciationRecord"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"depreciationRecordId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"depreciationRecordId"}}}]}]}}]} as unknown as DocumentNode<DeleteDepreciationRecordMutation, DeleteDepreciationRecordMutationVariables>;
export const DeleteDocumentDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteDocument"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"documentId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteDocument"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"documentId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"documentId"}}}]}]}}]} as unknown as DocumentNode<DeleteDocumentMutation, DeleteDocumentMutationVariables>;
export const DeleteDynamicReportTemplateDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteDynamicReportTemplate"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"name"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteDynamicReportTemplate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"name"},"value":{"kind":"Variable","name":{"kind":"Name","value":"name"}}}]}]}}]} as unknown as DocumentNode<DeleteDynamicReportTemplateMutation, DeleteDynamicReportTemplateMutationVariables>;
export const DeleteMiscExpenseDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteMiscExpense"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteMiscExpense"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}]}]}}]} as unknown as DocumentNode<DeleteMiscExpenseMutation, DeleteMiscExpenseMutationVariables>;
export const DeleteTagDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteTag"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"tagId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteTag"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"tagId"}}}]}]}}]} as unknown as DocumentNode<DeleteTagMutation, DeleteTagMutationVariables>;
export const FetchIncomeDocumentsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"FetchIncomeDocuments"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"ownerId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fetchIncomeDocuments"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"ownerId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"ownerId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"NewFetchedDocumentFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"NewFetchedDocumentFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Document"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"documentType"}},{"kind":"Field","name":{"kind":"Name","value":"charge"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"userDescription"}},{"kind":"Field","name":{"kind":"Name","value":"counterparty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]} as unknown as DocumentNode<FetchIncomeDocumentsMutation, FetchIncomeDocumentsMutationVariables>;
export const AdminBusinessesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AdminBusinesses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"allAdminBusinesses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"governmentId"}}]}}]}}]} as unknown as DocumentNode<AdminBusinessesQuery, AdminBusinessesQueryVariables>;
export const AllClientsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AllClients"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"allClients"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"greenInvoiceId"}},{"kind":"Field","name":{"kind":"Name","value":"emails"}},{"kind":"Field","name":{"kind":"Name","value":"originalBusiness"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]} as unknown as DocumentNode<AllClientsQuery, AllClientsQueryVariables>;
export const AllOpenContractsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AllOpenContracts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"allOpenContracts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"client"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"greenInvoiceId"}},{"kind":"Field","name":{"kind":"Name","value":"emails"}},{"kind":"Field","name":{"kind":"Name","value":"originalBusiness"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"purchaseOrder"}},{"kind":"Field","name":{"kind":"Name","value":"startDate"}},{"kind":"Field","name":{"kind":"Name","value":"endDate"}},{"kind":"Field","name":{"kind":"Name","value":"remarks"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"raw"}},{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"formatted"}}]}},{"kind":"Field","name":{"kind":"Name","value":"documentType"}},{"kind":"Field","name":{"kind":"Name","value":"billingCycle"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"product"}},{"kind":"Field","name":{"kind":"Name","value":"plan"}},{"kind":"Field","name":{"kind":"Name","value":"signedAgreement"}},{"kind":"Field","name":{"kind":"Name","value":"msCloud"}}]}}]}}]} as unknown as DocumentNode<AllOpenContractsQuery, AllOpenContractsQueryVariables>;
export const AllBusinessesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AllBusinesses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"allBusinesses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"nodes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]} as unknown as DocumentNode<AllBusinessesQuery, AllBusinessesQueryVariables>;
export const AllCountriesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AllCountries"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"allCountries"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"code"}}]}}]}}]} as unknown as DocumentNode<AllCountriesQuery, AllCountriesQueryVariables>;
export const AllFinancialEntitiesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AllFinancialEntities"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"allFinancialEntities"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"nodes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]} as unknown as DocumentNode<AllFinancialEntitiesQuery, AllFinancialEntitiesQueryVariables>;
export const AllSortCodesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AllSortCodes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"allSortCodes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"defaultIrsCode"}}]}}]}}]} as unknown as DocumentNode<AllSortCodesQuery, AllSortCodesQueryVariables>;
export const AllTagsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AllTags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"allTags"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"namePath"}}]}}]}}]} as unknown as DocumentNode<AllTagsQuery, AllTagsQueryVariables>;
export const AllTaxCategoriesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AllTaxCategories"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"taxCategories"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode<AllTaxCategoriesQuery, AllTaxCategoriesQueryVariables>;
export const InsertBusinessTripAttendeeDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"InsertBusinessTripAttendee"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fields"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"InsertBusinessTripAttendeeInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"insertBusinessTripAttendee"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"fields"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fields"}}}]}]}}]} as unknown as DocumentNode<InsertBusinessTripAttendeeMutation, InsertBusinessTripAttendeeMutationVariables>;
export const InsertBusinessTripDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"InsertBusinessTrip"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fields"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"InsertBusinessTripInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"insertBusinessTrip"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"fields"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fields"}}}]}]}}]} as unknown as DocumentNode<InsertBusinessTripMutation, InsertBusinessTripMutationVariables>;
export const InsertBusinessDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"InsertBusiness"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fields"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"InsertNewBusinessInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"insertNewBusiness"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"fields"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fields"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LtdFinancialEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CommonError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"message"}}]}}]}}]}}]} as unknown as DocumentNode<InsertBusinessMutation, InsertBusinessMutationVariables>;
export const InsertDocumentDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"InsertDocument"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"record"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"InsertDocumentInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"insertDocument"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"record"},"value":{"kind":"Variable","name":{"kind":"Name","value":"record"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"InsertDocumentSuccessfulResult"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"document"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CommonError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"message"}}]}}]}}]}}]} as unknown as DocumentNode<InsertDocumentMutation, InsertDocumentMutationVariables>;
export const InsertDynamicReportTemplateDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"InsertDynamicReportTemplate"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"name"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"template"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"insertDynamicReportTemplate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"name"},"value":{"kind":"Variable","name":{"kind":"Name","value":"name"}}},{"kind":"Argument","name":{"kind":"Name","value":"template"},"value":{"kind":"Variable","name":{"kind":"Name","value":"template"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode<InsertDynamicReportTemplateMutation, InsertDynamicReportTemplateMutationVariables>;
export const InsertMiscExpenseDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"InsertMiscExpense"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"chargeId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fields"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"InsertMiscExpenseInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"insertMiscExpense"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"chargeId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"chargeId"}}},{"kind":"Argument","name":{"kind":"Name","value":"fields"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fields"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode<InsertMiscExpenseMutation, InsertMiscExpenseMutationVariables>;
export const InsertMiscExpensesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"InsertMiscExpenses"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"chargeId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"expenses"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"InsertMiscExpenseInput"}}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"insertMiscExpenses"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"chargeId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"chargeId"}}},{"kind":"Argument","name":{"kind":"Name","value":"expenses"},"value":{"kind":"Variable","name":{"kind":"Name","value":"expenses"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode<InsertMiscExpensesMutation, InsertMiscExpensesMutationVariables>;
export const InsertSalaryRecordDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"InsertSalaryRecord"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"salaryRecords"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"SalaryRecordInput"}}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"insertSalaryRecords"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"salaryRecords"},"value":{"kind":"Variable","name":{"kind":"Name","value":"salaryRecords"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"InsertSalaryRecordsSuccessfulResult"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"salaryRecords"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"month"}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CommonError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"message"}}]}}]}}]}}]} as unknown as DocumentNode<InsertSalaryRecordMutation, InsertSalaryRecordMutationVariables>;
export const InsertTaxCategoryDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"InsertTaxCategory"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fields"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"InsertTaxCategoryInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"insertTaxCategory"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"fields"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fields"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode<InsertTaxCategoryMutation, InsertTaxCategoryMutationVariables>;
export const IssueGreenInvoiceDocumentDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"IssueGreenInvoiceDocument"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"NewDocumentInput"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"emailContent"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"attachment"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"chargeId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"issueGreenInvoiceDocument"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}},{"kind":"Argument","name":{"kind":"Name","value":"emailContent"},"value":{"kind":"Variable","name":{"kind":"Name","value":"emailContent"}}},{"kind":"Argument","name":{"kind":"Name","value":"attachment"},"value":{"kind":"Variable","name":{"kind":"Name","value":"attachment"}}},{"kind":"Argument","name":{"kind":"Name","value":"chargeId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"chargeId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode<IssueGreenInvoiceDocumentMutation, IssueGreenInvoiceDocumentMutationVariables>;
export const IssueMonthlyDocumentsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"IssueMonthlyDocuments"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"generateDocumentsInfo"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"NewDocumentInput"}}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"issueGreenInvoiceDocuments"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"generateDocumentsInfo"},"value":{"kind":"Variable","name":{"kind":"Name","value":"generateDocumentsInfo"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"success"}},{"kind":"Field","name":{"kind":"Name","value":"errors"}}]}}]}}]} as unknown as DocumentNode<IssueMonthlyDocumentsMutation, IssueMonthlyDocumentsMutationVariables>;
export const MergeBusinessesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"MergeBusinesses"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"targetBusinessId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"businessIdsToMerge"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"mergeBusinesses"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"targetBusinessId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"targetBusinessId"}}},{"kind":"Argument","name":{"kind":"Name","value":"businessIdsToMerge"},"value":{"kind":"Variable","name":{"kind":"Name","value":"businessIdsToMerge"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode<MergeBusinessesMutation, MergeBusinessesMutationVariables>;
export const MergeChargesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"MergeCharges"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"baseChargeID"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"chargeIdsToMerge"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fields"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateChargeInput"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"mergeCharges"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"baseChargeID"},"value":{"kind":"Variable","name":{"kind":"Name","value":"baseChargeID"}}},{"kind":"Argument","name":{"kind":"Name","value":"chargeIdsToMerge"},"value":{"kind":"Variable","name":{"kind":"Name","value":"chargeIdsToMerge"}}},{"kind":"Argument","name":{"kind":"Name","value":"fields"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fields"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"MergeChargeSuccessfulResult"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"charge"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CommonError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"message"}}]}}]}}]}}]} as unknown as DocumentNode<MergeChargesMutation, MergeChargesMutationVariables>;
export const PreviewGreenInvoiceDocumentDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"PreviewGreenInvoiceDocument"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"NewDocumentInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"previewGreenInvoiceDocument"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}]}]}}]} as unknown as DocumentNode<PreviewGreenInvoiceDocumentMutation, PreviewGreenInvoiceDocumentMutationVariables>;
export const RegenerateLedgerDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RegenerateLedger"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"chargeId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"regenerateLedgerRecords"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"chargeId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"chargeId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Ledger"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"records"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CommonError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"message"}}]}}]}}]}}]} as unknown as DocumentNode<RegenerateLedgerMutation, RegenerateLedgerMutationVariables>;
export const UpdateBusinessTripAccommodationsExpenseDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateBusinessTripAccommodationsExpense"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fields"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateBusinessTripAccommodationsExpenseInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateBusinessTripAccommodationsExpense"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"fields"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fields"}}}]}]}}]} as unknown as DocumentNode<UpdateBusinessTripAccommodationsExpenseMutation, UpdateBusinessTripAccommodationsExpenseMutationVariables>;
export const UpdateBusinessTripAccountantApprovalDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateBusinessTripAccountantApproval"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"businessTripId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"status"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"AccountantStatus"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateBusinessTripAccountantApproval"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"businessTripId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"businessTripId"}}},{"kind":"Argument","name":{"kind":"Name","value":"approvalStatus"},"value":{"kind":"Variable","name":{"kind":"Name","value":"status"}}}]}]}}]} as unknown as DocumentNode<UpdateBusinessTripAccountantApprovalMutation, UpdateBusinessTripAccountantApprovalMutationVariables>;
export const UpdateBusinessTripAttendeeDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateBusinessTripAttendee"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fields"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"BusinessTripAttendeeUpdateInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateBusinessTripAttendee"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"fields"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fields"}}}]}]}}]} as unknown as DocumentNode<UpdateBusinessTripAttendeeMutation, UpdateBusinessTripAttendeeMutationVariables>;
export const UpdateBusinessTripCarRentalExpenseDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateBusinessTripCarRentalExpense"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fields"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateBusinessTripCarRentalExpenseInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateBusinessTripCarRentalExpense"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"fields"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fields"}}}]}]}}]} as unknown as DocumentNode<UpdateBusinessTripCarRentalExpenseMutation, UpdateBusinessTripCarRentalExpenseMutationVariables>;
export const UpdateBusinessTripFlightsExpenseDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateBusinessTripFlightsExpense"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fields"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateBusinessTripFlightsExpenseInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateBusinessTripFlightsExpense"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"fields"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fields"}}}]}]}}]} as unknown as DocumentNode<UpdateBusinessTripFlightsExpenseMutation, UpdateBusinessTripFlightsExpenseMutationVariables>;
export const UpdateBusinessTripOtherExpenseDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateBusinessTripOtherExpense"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fields"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateBusinessTripOtherExpenseInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateBusinessTripOtherExpense"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"fields"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fields"}}}]}]}}]} as unknown as DocumentNode<UpdateBusinessTripOtherExpenseMutation, UpdateBusinessTripOtherExpenseMutationVariables>;
export const UpdateBusinessTripTravelAndSubsistenceExpenseDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateBusinessTripTravelAndSubsistenceExpense"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fields"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateBusinessTripTravelAndSubsistenceExpenseInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateBusinessTripTravelAndSubsistenceExpense"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"fields"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fields"}}}]}]}}]} as unknown as DocumentNode<UpdateBusinessTripTravelAndSubsistenceExpenseMutation, UpdateBusinessTripTravelAndSubsistenceExpenseMutationVariables>;
export const UpdateBusinessDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateBusiness"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"businessId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"ownerId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fields"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateBusinessInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateBusiness"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"businessId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"businessId"}}},{"kind":"Argument","name":{"kind":"Name","value":"ownerId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"ownerId"}}},{"kind":"Argument","name":{"kind":"Name","value":"fields"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fields"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LtdFinancialEntity"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CommonError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"message"}}]}}]}}]}}]} as unknown as DocumentNode<UpdateBusinessMutation, UpdateBusinessMutationVariables>;
export const UpdateChargeAccountantApprovalDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateChargeAccountantApproval"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"chargeId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"status"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"AccountantStatus"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateChargeAccountantApproval"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"chargeId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"chargeId"}}},{"kind":"Argument","name":{"kind":"Name","value":"approvalStatus"},"value":{"kind":"Variable","name":{"kind":"Name","value":"status"}}}]}]}}]} as unknown as DocumentNode<UpdateChargeAccountantApprovalMutation, UpdateChargeAccountantApprovalMutationVariables>;
export const UpdateChargeDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateCharge"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"chargeId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fields"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateChargeInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateCharge"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"chargeId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"chargeId"}}},{"kind":"Argument","name":{"kind":"Name","value":"fields"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fields"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateChargeSuccessfulResult"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"charge"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CommonError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"message"}}]}}]}}]}}]} as unknown as DocumentNode<UpdateChargeMutation, UpdateChargeMutationVariables>;
export const UpdateDepreciationRecordDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateDepreciationRecord"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fields"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateDepreciationRecordInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateDepreciationRecord"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fields"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CommonError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"message"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DepreciationRecord"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}}]} as unknown as DocumentNode<UpdateDepreciationRecordMutation, UpdateDepreciationRecordMutationVariables>;
export const UpdateDocumentDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateDocument"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"documentId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fields"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateDocumentFieldsInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateDocument"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"documentId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"documentId"}}},{"kind":"Argument","name":{"kind":"Name","value":"fields"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fields"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CommonError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"message"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateDocumentSuccessfulResult"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"document"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}}]}}]} as unknown as DocumentNode<UpdateDocumentMutation, UpdateDocumentMutationVariables>;
export const UpdateDynamicReportTemplateNameDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateDynamicReportTemplateName"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"name"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"newName"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateDynamicReportTemplateName"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"name"},"value":{"kind":"Variable","name":{"kind":"Name","value":"name"}}},{"kind":"Argument","name":{"kind":"Name","value":"newName"},"value":{"kind":"Variable","name":{"kind":"Name","value":"newName"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode<UpdateDynamicReportTemplateNameMutation, UpdateDynamicReportTemplateNameMutationVariables>;
export const UpdateDynamicReportTemplateDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateDynamicReportTemplate"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"name"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"template"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateDynamicReportTemplate"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"name"},"value":{"kind":"Variable","name":{"kind":"Name","value":"name"}}},{"kind":"Argument","name":{"kind":"Name","value":"template"},"value":{"kind":"Variable","name":{"kind":"Name","value":"template"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode<UpdateDynamicReportTemplateMutation, UpdateDynamicReportTemplateMutationVariables>;
export const UpdateMiscExpenseDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateMiscExpense"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fields"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateMiscExpenseInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateMiscExpense"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}},{"kind":"Argument","name":{"kind":"Name","value":"fields"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fields"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode<UpdateMiscExpenseMutation, UpdateMiscExpenseMutationVariables>;
export const UpdateOrInsertSalaryRecordsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateOrInsertSalaryRecords"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"salaryRecords"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"SalaryRecordInput"}}}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"insertOrUpdateSalaryRecords"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"salaryRecords"},"value":{"kind":"Variable","name":{"kind":"Name","value":"salaryRecords"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"InsertSalaryRecordsSuccessfulResult"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"salaryRecords"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"month"}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CommonError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"message"}}]}}]}}]}}]} as unknown as DocumentNode<UpdateOrInsertSalaryRecordsMutation, UpdateOrInsertSalaryRecordsMutationVariables>;
export const UpdateSalaryRecordDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateSalaryRecord"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"salaryRecord"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"SalaryRecordEditInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateSalaryRecord"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"salaryRecord"},"value":{"kind":"Variable","name":{"kind":"Name","value":"salaryRecord"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateSalaryRecordSuccessfulResult"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"salaryRecord"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"month"}},{"kind":"Field","name":{"kind":"Name","value":"employee"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CommonError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"message"}}]}}]}}]}}]} as unknown as DocumentNode<UpdateSalaryRecordMutation, UpdateSalaryRecordMutationVariables>;
export const UpdateSortCodeDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateSortCode"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"key"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fields"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateSortCodeFieldsInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateSortCode"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"key"},"value":{"kind":"Variable","name":{"kind":"Name","value":"key"}}},{"kind":"Argument","name":{"kind":"Name","value":"fields"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fields"}}}]}]}}]} as unknown as DocumentNode<UpdateSortCodeMutation, UpdateSortCodeMutationVariables>;
export const UpdateTagDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateTag"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"tagId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fields"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateTagFieldsInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateTag"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"tagId"}}},{"kind":"Argument","name":{"kind":"Name","value":"fields"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fields"}}}]}]}}]} as unknown as DocumentNode<UpdateTagMutation, UpdateTagMutationVariables>;
export const UpdateTaxCategoryDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateTaxCategory"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"taxCategoryId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fields"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateTaxCategoryInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateTaxCategory"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"taxCategoryId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"taxCategoryId"}}},{"kind":"Argument","name":{"kind":"Name","value":"fields"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fields"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TaxCategory"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CommonError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"message"}}]}}]}}]}}]} as unknown as DocumentNode<UpdateTaxCategoryMutation, UpdateTaxCategoryMutationVariables>;
export const UpdateTransactionDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateTransaction"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"transactionId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fields"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateTransactionInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateTransaction"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"transactionId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"transactionId"}}},{"kind":"Argument","name":{"kind":"Name","value":"fields"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fields"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Transaction"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CommonError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"message"}}]}}]}}]}}]} as unknown as DocumentNode<UpdateTransactionMutation, UpdateTransactionMutationVariables>;
export const UploadDocumentDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UploadDocument"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"file"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"FileScalar"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"chargeId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uploadDocument"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"file"},"value":{"kind":"Variable","name":{"kind":"Name","value":"file"}}},{"kind":"Argument","name":{"kind":"Name","value":"chargeId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"chargeId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UploadDocumentSuccessfulResult"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"document"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"charge"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CommonError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"message"}}]}}]}}]}}]} as unknown as DocumentNode<UploadDocumentMutation, UploadDocumentMutationVariables>;
export const UploadDocumentsFromGoogleDriveDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UploadDocumentsFromGoogleDrive"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sharedFolderUrl"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"chargeId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"isSensitive"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"batchUploadDocumentsFromGoogleDrive"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"sharedFolderUrl"},"value":{"kind":"Variable","name":{"kind":"Name","value":"sharedFolderUrl"}}},{"kind":"Argument","name":{"kind":"Name","value":"chargeId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"chargeId"}}},{"kind":"Argument","name":{"kind":"Name","value":"isSensitive"},"value":{"kind":"Variable","name":{"kind":"Name","value":"isSensitive"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CommonError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"message"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UploadDocumentSuccessfulResult"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"document"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"NewFetchedDocumentFields"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"NewFetchedDocumentFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Document"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"documentType"}},{"kind":"Field","name":{"kind":"Name","value":"charge"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"userDescription"}},{"kind":"Field","name":{"kind":"Name","value":"counterparty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]} as unknown as DocumentNode<UploadDocumentsFromGoogleDriveMutation, UploadDocumentsFromGoogleDriveMutationVariables>;
export const UploadMultipleDocumentsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UploadMultipleDocuments"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"documents"}},"type":{"kind":"NonNullType","type":{"kind":"ListType","type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"FileScalar"}}}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"chargeId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"isSensitive"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"batchUploadDocuments"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"documents"},"value":{"kind":"Variable","name":{"kind":"Name","value":"documents"}}},{"kind":"Argument","name":{"kind":"Name","value":"chargeId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"chargeId"}}},{"kind":"Argument","name":{"kind":"Name","value":"isSensitive"},"value":{"kind":"Variable","name":{"kind":"Name","value":"isSensitive"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CommonError"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"message"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"UploadDocumentSuccessfulResult"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"document"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"FragmentSpread","name":{"kind":"Name","value":"NewFetchedDocumentFields"}}]}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"NewFetchedDocumentFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Document"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"documentType"}},{"kind":"Field","name":{"kind":"Name","value":"charge"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"userDescription"}},{"kind":"Field","name":{"kind":"Name","value":"counterparty"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]} as unknown as DocumentNode<UploadMultipleDocumentsMutation, UploadMultipleDocumentsMutationVariables>;
export const UploadPayrollFileDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UploadPayrollFile"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"file"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"FileScalar"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"chargeId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"insertSalaryRecordsFromFile"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"file"},"value":{"kind":"Variable","name":{"kind":"Name","value":"file"}}},{"kind":"Argument","name":{"kind":"Name","value":"chargeId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"chargeId"}}}]}]}}]} as unknown as DocumentNode<UploadPayrollFileMutation, UploadPayrollFileMutationVariables>;
export const UserContextDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"UserContext"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"userContext"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"adminBusinessId"}},{"kind":"Field","name":{"kind":"Name","value":"defaultLocalCurrency"}},{"kind":"Field","name":{"kind":"Name","value":"defaultCryptoConversionFiatCurrency"}},{"kind":"Field","name":{"kind":"Name","value":"ledgerLock"}},{"kind":"Field","name":{"kind":"Name","value":"financialAccountsBusinessesIds"}}]}}]}}]} as unknown as DocumentNode<UserContextQuery, UserContextQueryVariables>;