import * as Types from "../../../__generated__/types.js";
import * as gm from "graphql-modules";
export namespace DocumentsModule {
  interface DefinedFields {
    DocumentSuggestions: 'owner' | 'counterparty' | 'amount' | 'isIncome';
    Query: 'newDocumentDraftByCharge' | 'newDocumentDraftByDocument' | 'periodicalDocumentDrafts' | 'periodicalDocumentDraftsByContracts' | 'clientMonthlyChargeDraft' | 'documents' | 'documentsByFilters' | 'documentById' | 'recentDocumentsByBusiness' | 'recentDocumentsByClient' | 'recentIssuedDocumentsByType';
    Mutation: 'issueGreenInvoiceDocuments' | 'issueGreenInvoiceDocument' | 'previewDocument' | 'insertDocument' | 'updateDocument' | 'deleteDocument' | 'uploadDocument' | 'batchUploadDocuments' | 'batchUploadDocumentsFromGoogleDrive' | 'closeDocument';
    GenerateDocumentsResult: 'success' | 'errors';
    DocumentDraft: 'description' | 'remarks' | 'footer' | 'type' | 'date' | 'dueDate' | 'language' | 'currency' | 'vatType' | 'discount' | 'rounding' | 'signed' | 'maxPayments' | 'client' | 'income' | 'payment' | 'linkedDocumentIds' | 'linkedPaymentId' | 'linkType';
    DocumentIncomeRecord: 'currency' | 'currencyRate' | 'description' | 'itemId' | 'price' | 'quantity' | 'vatRate' | 'vatType';
    DocumentPaymentRecord: 'currency' | 'currencyRate' | 'date' | 'price' | 'type' | 'bankName' | 'bankBranch' | 'bankAccount' | 'chequeNum' | 'accountId' | 'transactionId' | 'cardType' | 'cardNum' | 'numPayments' | 'firstPayment';
    DocumentDiscount: 'amount' | 'type';
    Unprocessed: 'id' | 'image' | 'file' | 'documentType' | 'isReviewed' | 'description' | 'remarks';
    OtherDocument: 'id' | 'image' | 'file' | 'documentType' | 'isReviewed' | 'description' | 'remarks';
    Invoice: 'missingInfoSuggestions' | 'id' | 'image' | 'file' | 'vat' | 'documentType' | 'isReviewed' | 'description' | 'remarks' | 'serialNumber' | 'date' | 'amount' | 'vatReportDateOverride' | 'noVatAmount' | 'allocationNumber' | 'exchangeRateOverride' | 'issuedDocumentInfo';
    Proforma: 'missingInfoSuggestions' | 'id' | 'image' | 'file' | 'vat' | 'documentType' | 'isReviewed' | 'description' | 'remarks' | 'serialNumber' | 'date' | 'amount' | 'vatReportDateOverride' | 'noVatAmount' | 'allocationNumber' | 'exchangeRateOverride' | 'issuedDocumentInfo';
    Receipt: 'missingInfoSuggestions' | 'id' | 'image' | 'file' | 'documentType' | 'vat' | 'serialNumber' | 'date' | 'amount' | 'vatReportDateOverride' | 'noVatAmount' | 'isReviewed' | 'allocationNumber' | 'exchangeRateOverride' | 'description' | 'remarks' | 'issuedDocumentInfo';
    InvoiceReceipt: 'missingInfoSuggestions' | 'id' | 'image' | 'file' | 'vat' | 'documentType' | 'isReviewed' | 'description' | 'remarks' | 'serialNumber' | 'date' | 'amount' | 'vatReportDateOverride' | 'noVatAmount' | 'allocationNumber' | 'exchangeRateOverride' | 'issuedDocumentInfo';
    CreditInvoice: 'missingInfoSuggestions' | 'id' | 'image' | 'file' | 'vat' | 'documentType' | 'isReviewed' | 'description' | 'remarks' | 'serialNumber' | 'date' | 'amount' | 'vatReportDateOverride' | 'noVatAmount' | 'allocationNumber' | 'exchangeRateOverride' | 'issuedDocumentInfo';
    UpdateDocumentSuccessfulResult: 'document';
    InsertDocumentSuccessfulResult: 'document';
    UploadDocumentSuccessfulResult: 'document';
    IssuedDocumentInfo: 'id' | 'externalId' | 'status' | 'linkedDocuments';
    CommonCharge: 'additionalDocuments';
    FinancialCharge: 'additionalDocuments';
    ConversionCharge: 'additionalDocuments';
    SalaryCharge: 'additionalDocuments';
    InternalTransferCharge: 'additionalDocuments';
    DividendCharge: 'additionalDocuments';
    BusinessTripCharge: 'additionalDocuments';
    MonthlyVatCharge: 'additionalDocuments';
    BankDepositCharge: 'additionalDocuments';
    ForeignSecuritiesCharge: 'additionalDocuments';
    CreditcardBankCharge: 'additionalDocuments';
    Linkable: 'file' | 'description' | 'remarks';
    Document: 'id' | 'image' | 'file' | 'documentType' | 'isReviewed' | 'description' | 'remarks';
    FinancialDocument: 'missingInfoSuggestions' | 'id' | 'image' | 'file' | 'vat' | 'documentType' | 'isReviewed' | 'description' | 'remarks' | 'serialNumber' | 'date' | 'amount' | 'vatReportDateOverride' | 'noVatAmount' | 'allocationNumber' | 'exchangeRateOverride' | 'issuedDocumentInfo';
    Charge: 'additionalDocuments';
  };
  
  interface DefinedEnumValues {
    DocumentLanguage: 'ENGLISH' | 'HEBREW';
    DocumentVatType: 'DEFAULT' | 'EXEMPT' | 'MIXED';
    DocumentDiscountType: 'SUM' | 'PERCENTAGE';
    PaymentType: 'TAX_DEDUCTION' | 'CASH' | 'CHEQUE' | 'CREDIT_CARD' | 'WIRE_TRANSFER' | 'PAYPAL' | 'OTHER_DEDUCTION' | 'PAYMENT_APP' | 'OTHER';
    DocumentLinkType: 'LINK' | 'CANCEL';
    DocumentPaymentRecordCardType: 'UNKNOWN' | 'ISRACARD' | 'VISA' | 'MASTERCARD' | 'AMERICAN_EXPRESS' | 'DINERS';
    DocumentType: 'INVOICE' | 'RECEIPT' | 'INVOICE_RECEIPT' | 'CREDIT_INVOICE' | 'PROFORMA' | 'UNPROCESSED' | 'OTHER';
    DocumentStatus: 'OPEN' | 'CLOSED' | 'MANUALLY_CLOSED' | 'CANCELLED_BY_OTHER_DOC' | 'CANCELLED';
  };
  
  interface DefinedInputFields {
    DocumentIssueInput: 'description' | 'remarks' | 'footer' | 'type' | 'date' | 'dueDate' | 'language' | 'currency' | 'vatType' | 'discount' | 'rounding' | 'signed' | 'maxPayments' | 'client' | 'income' | 'payment' | 'linkedDocumentIds' | 'linkedPaymentId' | 'linkType';
    DocumentDiscountInput: 'amount' | 'type';
    DocumentClientInput: 'country' | 'emails' | 'id' | 'name' | 'phone' | 'taxId' | 'self' | 'address' | 'city' | 'zipCode' | 'fax' | 'mobile' | 'add';
    DocumentIncomeRecordInput: 'amount' | 'amountTotal' | 'catalogNum' | 'currency' | 'currencyRate' | 'description' | 'itemId' | 'price' | 'quantity' | 'vat' | 'vatRate' | 'vatType';
    DocumentPaymentRecordInput: 'currency' | 'currencyRate' | 'date' | 'price' | 'type' | 'bankName' | 'bankBranch' | 'bankAccount' | 'chequeNum' | 'accountId' | 'transactionId' | 'cardType' | 'cardNum' | 'numPayments' | 'firstPayment';
    DocumentsFilters: 'businessIDs' | 'ownerIDs' | 'fromDate' | 'toDate' | 'unmatched';
    UpdateDocumentFieldsInput: 'vat' | 'serialNumber' | 'date' | 'amount' | 'documentType' | 'image' | 'file' | 'chargeId' | 'creditorId' | 'debtorId' | 'vatReportDateOverride' | 'noVatAmount' | 'allocationNumber' | 'exchangeRateOverride' | 'description' | 'remarks';
    InsertDocumentInput: 'image' | 'file' | 'vat' | 'documentType' | 'serialNumber' | 'date' | 'amount' | 'chargeId' | 'creditorId' | 'debtorId' | 'vatReportDateOverride' | 'noVatAmount' | 'allocationNumber' | 'exchangeRateOverride' | 'description' | 'remarks';
  };
  
  export type FinancialDocument = Pick<Types.FinancialDocument, DefinedFields['FinancialDocument']>;
  export type DocumentSuggestions = Pick<Types.DocumentSuggestions, DefinedFields['DocumentSuggestions']>;
  export type Invoice = Pick<Types.Invoice, DefinedFields['Invoice']>;
  export type Receipt = Pick<Types.Receipt, DefinedFields['Receipt']>;
  export type InvoiceReceipt = Pick<Types.InvoiceReceipt, DefinedFields['InvoiceReceipt']>;
  export type CreditInvoice = Pick<Types.CreditInvoice, DefinedFields['CreditInvoice']>;
  export type Proforma = Pick<Types.Proforma, DefinedFields['Proforma']>;
  export type FinancialEntity = Types.FinancialEntity;
  export type FinancialAmount = Types.FinancialAmount;
  export type Query = Pick<Types.Query, DefinedFields['Query']>;
  export type DocumentDraft = Pick<Types.DocumentDraft, DefinedFields['DocumentDraft']>;
  export type UUID = Types.Uuid;
  export type TimelessDate = Types.TimelessDate;
  export type Mutation = Pick<Types.Mutation, DefinedFields['Mutation']>;
  export type GenerateDocumentsResult = Pick<Types.GenerateDocumentsResult, DefinedFields['GenerateDocumentsResult']>;
  export type DocumentIssueInput = Pick<Types.DocumentIssueInput, DefinedInputFields['DocumentIssueInput']>;
  export type Charge = Types.Charge;
  export type FileScalar = Types.FileScalar;
  export type DocumentType = DefinedEnumValues['DocumentType'];
  export type DocumentLanguage = DefinedEnumValues['DocumentLanguage'];
  export type Currency = Types.Currency;
  export type DocumentVatType = DefinedEnumValues['DocumentVatType'];
  export type DocumentDiscount = Pick<Types.DocumentDiscount, DefinedFields['DocumentDiscount']>;
  export type Client = Types.Client;
  export type DocumentIncomeRecord = Pick<Types.DocumentIncomeRecord, DefinedFields['DocumentIncomeRecord']>;
  export type DocumentPaymentRecord = Pick<Types.DocumentPaymentRecord, DefinedFields['DocumentPaymentRecord']>;
  export type DocumentLinkType = DefinedEnumValues['DocumentLinkType'];
  export type PaymentType = DefinedEnumValues['PaymentType'];
  export type DocumentPaymentRecordCardType = DefinedEnumValues['DocumentPaymentRecordCardType'];
  export type DocumentDiscountType = DefinedEnumValues['DocumentDiscountType'];
  export type DocumentDiscountInput = Pick<Types.DocumentDiscountInput, DefinedInputFields['DocumentDiscountInput']>;
  export type DocumentClientInput = Pick<Types.DocumentClientInput, DefinedInputFields['DocumentClientInput']>;
  export type DocumentIncomeRecordInput = Pick<Types.DocumentIncomeRecordInput, DefinedInputFields['DocumentIncomeRecordInput']>;
  export type DocumentPaymentRecordInput = Pick<Types.DocumentPaymentRecordInput, DefinedInputFields['DocumentPaymentRecordInput']>;
  export type CountryCode = Types.CountryCode;
  export type Document = Pick<Types.Document, DefinedFields['Document']>;
  export type DocumentsFilters = Pick<Types.DocumentsFilters, DefinedInputFields['DocumentsFilters']>;
  export type InsertDocumentResult = Types.InsertDocumentResult;
  export type InsertDocumentInput = Pick<Types.InsertDocumentInput, DefinedInputFields['InsertDocumentInput']>;
  export type UpdateDocumentResult = Types.UpdateDocumentResult;
  export type UpdateDocumentFieldsInput = Pick<Types.UpdateDocumentFieldsInput, DefinedInputFields['UpdateDocumentFieldsInput']>;
  export type UploadDocumentResult = Types.UploadDocumentResult;
  export type Linkable = Pick<Types.Linkable, DefinedFields['Linkable']>;
  export type URL = Types.Url;
  export type Unprocessed = Pick<Types.Unprocessed, DefinedFields['Unprocessed']>;
  export type OtherDocument = Pick<Types.OtherDocument, DefinedFields['OtherDocument']>;
  export type FinancialAmountInput = Types.FinancialAmountInput;
  export type UpdateDocumentSuccessfulResult = Pick<Types.UpdateDocumentSuccessfulResult, DefinedFields['UpdateDocumentSuccessfulResult']>;
  export type CommonError = Types.CommonError;
  export type InsertDocumentSuccessfulResult = Pick<Types.InsertDocumentSuccessfulResult, DefinedFields['InsertDocumentSuccessfulResult']>;
  export type UploadDocumentSuccessfulResult = Pick<Types.UploadDocumentSuccessfulResult, DefinedFields['UploadDocumentSuccessfulResult']>;
  export type CommonCharge = Types.CommonCharge;
  export type FinancialCharge = Types.FinancialCharge;
  export type ConversionCharge = Types.ConversionCharge;
  export type SalaryCharge = Types.SalaryCharge;
  export type InternalTransferCharge = Types.InternalTransferCharge;
  export type DividendCharge = Types.DividendCharge;
  export type BusinessTripCharge = Types.BusinessTripCharge;
  export type MonthlyVatCharge = Types.MonthlyVatCharge;
  export type BankDepositCharge = Types.BankDepositCharge;
  export type ForeignSecuritiesCharge = Types.ForeignSecuritiesCharge;
  export type CreditcardBankCharge = Types.CreditcardBankCharge;
  export type IssuedDocumentInfo = Pick<Types.IssuedDocumentInfo, DefinedFields['IssuedDocumentInfo']>;
  export type DocumentStatus = DefinedEnumValues['DocumentStatus'];
  
  export type DocumentSuggestionsResolvers = Pick<Types.DocumentSuggestionsResolvers, DefinedFields['DocumentSuggestions']>;
  export type QueryResolvers = Pick<Types.QueryResolvers, DefinedFields['Query']>;
  export type MutationResolvers = Pick<Types.MutationResolvers, DefinedFields['Mutation']>;
  export type GenerateDocumentsResultResolvers = Pick<Types.GenerateDocumentsResultResolvers, DefinedFields['GenerateDocumentsResult']>;
  export type DocumentDraftResolvers = Pick<Types.DocumentDraftResolvers, DefinedFields['DocumentDraft']>;
  export type DocumentIncomeRecordResolvers = Pick<Types.DocumentIncomeRecordResolvers, DefinedFields['DocumentIncomeRecord']>;
  export type DocumentPaymentRecordResolvers = Pick<Types.DocumentPaymentRecordResolvers, DefinedFields['DocumentPaymentRecord']>;
  export type DocumentDiscountResolvers = Pick<Types.DocumentDiscountResolvers, DefinedFields['DocumentDiscount']>;
  export type UnprocessedResolvers = Pick<Types.UnprocessedResolvers, DefinedFields['Unprocessed'] | '__isTypeOf'>;
  export type OtherDocumentResolvers = Pick<Types.OtherDocumentResolvers, DefinedFields['OtherDocument'] | '__isTypeOf'>;
  export type InvoiceResolvers = Pick<Types.InvoiceResolvers, DefinedFields['Invoice'] | '__isTypeOf'>;
  export type ProformaResolvers = Pick<Types.ProformaResolvers, DefinedFields['Proforma'] | '__isTypeOf'>;
  export type ReceiptResolvers = Pick<Types.ReceiptResolvers, DefinedFields['Receipt'] | '__isTypeOf'>;
  export type InvoiceReceiptResolvers = Pick<Types.InvoiceReceiptResolvers, DefinedFields['InvoiceReceipt'] | '__isTypeOf'>;
  export type CreditInvoiceResolvers = Pick<Types.CreditInvoiceResolvers, DefinedFields['CreditInvoice'] | '__isTypeOf'>;
  export type UpdateDocumentSuccessfulResultResolvers = Pick<Types.UpdateDocumentSuccessfulResultResolvers, DefinedFields['UpdateDocumentSuccessfulResult'] | '__isTypeOf'>;
  export type InsertDocumentSuccessfulResultResolvers = Pick<Types.InsertDocumentSuccessfulResultResolvers, DefinedFields['InsertDocumentSuccessfulResult'] | '__isTypeOf'>;
  export type UploadDocumentSuccessfulResultResolvers = Pick<Types.UploadDocumentSuccessfulResultResolvers, DefinedFields['UploadDocumentSuccessfulResult'] | '__isTypeOf'>;
  export type IssuedDocumentInfoResolvers = Pick<Types.IssuedDocumentInfoResolvers, DefinedFields['IssuedDocumentInfo']>;
  export type CommonChargeResolvers = Pick<Types.CommonChargeResolvers, DefinedFields['CommonCharge']>;
  export type FinancialChargeResolvers = Pick<Types.FinancialChargeResolvers, DefinedFields['FinancialCharge']>;
  export type ConversionChargeResolvers = Pick<Types.ConversionChargeResolvers, DefinedFields['ConversionCharge']>;
  export type SalaryChargeResolvers = Pick<Types.SalaryChargeResolvers, DefinedFields['SalaryCharge']>;
  export type InternalTransferChargeResolvers = Pick<Types.InternalTransferChargeResolvers, DefinedFields['InternalTransferCharge']>;
  export type DividendChargeResolvers = Pick<Types.DividendChargeResolvers, DefinedFields['DividendCharge']>;
  export type BusinessTripChargeResolvers = Pick<Types.BusinessTripChargeResolvers, DefinedFields['BusinessTripCharge']>;
  export type MonthlyVatChargeResolvers = Pick<Types.MonthlyVatChargeResolvers, DefinedFields['MonthlyVatCharge']>;
  export type BankDepositChargeResolvers = Pick<Types.BankDepositChargeResolvers, DefinedFields['BankDepositCharge']>;
  export type ForeignSecuritiesChargeResolvers = Pick<Types.ForeignSecuritiesChargeResolvers, DefinedFields['ForeignSecuritiesCharge']>;
  export type CreditcardBankChargeResolvers = Pick<Types.CreditcardBankChargeResolvers, DefinedFields['CreditcardBankCharge']>;
  export type LinkableResolvers = Pick<Types.LinkableResolvers, DefinedFields['Linkable']>;
  export type DocumentResolvers = Pick<Types.DocumentResolvers, DefinedFields['Document']>;
  export type FinancialDocumentResolvers = Pick<Types.FinancialDocumentResolvers, DefinedFields['FinancialDocument']>;
  export type ChargeResolvers = Pick<Types.ChargeResolvers, DefinedFields['Charge']>;
  
  export interface Resolvers {
    DocumentSuggestions?: DocumentSuggestionsResolvers;
    Query?: QueryResolvers;
    Mutation?: MutationResolvers;
    GenerateDocumentsResult?: GenerateDocumentsResultResolvers;
    DocumentDraft?: DocumentDraftResolvers;
    DocumentIncomeRecord?: DocumentIncomeRecordResolvers;
    DocumentPaymentRecord?: DocumentPaymentRecordResolvers;
    DocumentDiscount?: DocumentDiscountResolvers;
    Unprocessed?: UnprocessedResolvers;
    OtherDocument?: OtherDocumentResolvers;
    Invoice?: InvoiceResolvers;
    Proforma?: ProformaResolvers;
    Receipt?: ReceiptResolvers;
    InvoiceReceipt?: InvoiceReceiptResolvers;
    CreditInvoice?: CreditInvoiceResolvers;
    UpdateDocumentSuccessfulResult?: UpdateDocumentSuccessfulResultResolvers;
    InsertDocumentSuccessfulResult?: InsertDocumentSuccessfulResultResolvers;
    UploadDocumentSuccessfulResult?: UploadDocumentSuccessfulResultResolvers;
    IssuedDocumentInfo?: IssuedDocumentInfoResolvers;
    CommonCharge?: CommonChargeResolvers;
    FinancialCharge?: FinancialChargeResolvers;
    ConversionCharge?: ConversionChargeResolvers;
    SalaryCharge?: SalaryChargeResolvers;
    InternalTransferCharge?: InternalTransferChargeResolvers;
    DividendCharge?: DividendChargeResolvers;
    BusinessTripCharge?: BusinessTripChargeResolvers;
    MonthlyVatCharge?: MonthlyVatChargeResolvers;
    BankDepositCharge?: BankDepositChargeResolvers;
    ForeignSecuritiesCharge?: ForeignSecuritiesChargeResolvers;
    CreditcardBankCharge?: CreditcardBankChargeResolvers;
  };
  
  export interface MiddlewareMap {
    '*'?: {
      '*'?: gm.Middleware[];
    };
    Invoice?: {
      '*'?: gm.Middleware[];
      missingInfoSuggestions?: gm.Middleware[];
      id?: gm.Middleware[];
      image?: gm.Middleware[];
      file?: gm.Middleware[];
      vat?: gm.Middleware[];
      documentType?: gm.Middleware[];
      isReviewed?: gm.Middleware[];
      description?: gm.Middleware[];
      remarks?: gm.Middleware[];
      serialNumber?: gm.Middleware[];
      date?: gm.Middleware[];
      amount?: gm.Middleware[];
      vatReportDateOverride?: gm.Middleware[];
      noVatAmount?: gm.Middleware[];
      allocationNumber?: gm.Middleware[];
      exchangeRateOverride?: gm.Middleware[];
      issuedDocumentInfo?: gm.Middleware[];
    };
    Receipt?: {
      '*'?: gm.Middleware[];
      missingInfoSuggestions?: gm.Middleware[];
      id?: gm.Middleware[];
      image?: gm.Middleware[];
      file?: gm.Middleware[];
      documentType?: gm.Middleware[];
      vat?: gm.Middleware[];
      serialNumber?: gm.Middleware[];
      date?: gm.Middleware[];
      amount?: gm.Middleware[];
      vatReportDateOverride?: gm.Middleware[];
      noVatAmount?: gm.Middleware[];
      isReviewed?: gm.Middleware[];
      allocationNumber?: gm.Middleware[];
      exchangeRateOverride?: gm.Middleware[];
      description?: gm.Middleware[];
      remarks?: gm.Middleware[];
      issuedDocumentInfo?: gm.Middleware[];
    };
    InvoiceReceipt?: {
      '*'?: gm.Middleware[];
      missingInfoSuggestions?: gm.Middleware[];
      id?: gm.Middleware[];
      image?: gm.Middleware[];
      file?: gm.Middleware[];
      vat?: gm.Middleware[];
      documentType?: gm.Middleware[];
      isReviewed?: gm.Middleware[];
      description?: gm.Middleware[];
      remarks?: gm.Middleware[];
      serialNumber?: gm.Middleware[];
      date?: gm.Middleware[];
      amount?: gm.Middleware[];
      vatReportDateOverride?: gm.Middleware[];
      noVatAmount?: gm.Middleware[];
      allocationNumber?: gm.Middleware[];
      exchangeRateOverride?: gm.Middleware[];
      issuedDocumentInfo?: gm.Middleware[];
    };
    CreditInvoice?: {
      '*'?: gm.Middleware[];
      missingInfoSuggestions?: gm.Middleware[];
      id?: gm.Middleware[];
      image?: gm.Middleware[];
      file?: gm.Middleware[];
      vat?: gm.Middleware[];
      documentType?: gm.Middleware[];
      isReviewed?: gm.Middleware[];
      description?: gm.Middleware[];
      remarks?: gm.Middleware[];
      serialNumber?: gm.Middleware[];
      date?: gm.Middleware[];
      amount?: gm.Middleware[];
      vatReportDateOverride?: gm.Middleware[];
      noVatAmount?: gm.Middleware[];
      allocationNumber?: gm.Middleware[];
      exchangeRateOverride?: gm.Middleware[];
      issuedDocumentInfo?: gm.Middleware[];
    };
    Proforma?: {
      '*'?: gm.Middleware[];
      missingInfoSuggestions?: gm.Middleware[];
      id?: gm.Middleware[];
      image?: gm.Middleware[];
      file?: gm.Middleware[];
      vat?: gm.Middleware[];
      documentType?: gm.Middleware[];
      isReviewed?: gm.Middleware[];
      description?: gm.Middleware[];
      remarks?: gm.Middleware[];
      serialNumber?: gm.Middleware[];
      date?: gm.Middleware[];
      amount?: gm.Middleware[];
      vatReportDateOverride?: gm.Middleware[];
      noVatAmount?: gm.Middleware[];
      allocationNumber?: gm.Middleware[];
      exchangeRateOverride?: gm.Middleware[];
      issuedDocumentInfo?: gm.Middleware[];
    };
    DocumentSuggestions?: {
      '*'?: gm.Middleware[];
      owner?: gm.Middleware[];
      counterparty?: gm.Middleware[];
      amount?: gm.Middleware[];
      isIncome?: gm.Middleware[];
    };
    Query?: {
      '*'?: gm.Middleware[];
      newDocumentDraftByCharge?: gm.Middleware[];
      newDocumentDraftByDocument?: gm.Middleware[];
      periodicalDocumentDrafts?: gm.Middleware[];
      periodicalDocumentDraftsByContracts?: gm.Middleware[];
      clientMonthlyChargeDraft?: gm.Middleware[];
      documents?: gm.Middleware[];
      documentsByFilters?: gm.Middleware[];
      documentById?: gm.Middleware[];
      recentDocumentsByBusiness?: gm.Middleware[];
      recentDocumentsByClient?: gm.Middleware[];
      recentIssuedDocumentsByType?: gm.Middleware[];
    };
    Mutation?: {
      '*'?: gm.Middleware[];
      issueGreenInvoiceDocuments?: gm.Middleware[];
      issueGreenInvoiceDocument?: gm.Middleware[];
      previewDocument?: gm.Middleware[];
      insertDocument?: gm.Middleware[];
      updateDocument?: gm.Middleware[];
      deleteDocument?: gm.Middleware[];
      uploadDocument?: gm.Middleware[];
      batchUploadDocuments?: gm.Middleware[];
      batchUploadDocumentsFromGoogleDrive?: gm.Middleware[];
      closeDocument?: gm.Middleware[];
    };
    GenerateDocumentsResult?: {
      '*'?: gm.Middleware[];
      success?: gm.Middleware[];
      errors?: gm.Middleware[];
    };
    DocumentDraft?: {
      '*'?: gm.Middleware[];
      description?: gm.Middleware[];
      remarks?: gm.Middleware[];
      footer?: gm.Middleware[];
      type?: gm.Middleware[];
      date?: gm.Middleware[];
      dueDate?: gm.Middleware[];
      language?: gm.Middleware[];
      currency?: gm.Middleware[];
      vatType?: gm.Middleware[];
      discount?: gm.Middleware[];
      rounding?: gm.Middleware[];
      signed?: gm.Middleware[];
      maxPayments?: gm.Middleware[];
      client?: gm.Middleware[];
      income?: gm.Middleware[];
      payment?: gm.Middleware[];
      linkedDocumentIds?: gm.Middleware[];
      linkedPaymentId?: gm.Middleware[];
      linkType?: gm.Middleware[];
    };
    DocumentIncomeRecord?: {
      '*'?: gm.Middleware[];
      currency?: gm.Middleware[];
      currencyRate?: gm.Middleware[];
      description?: gm.Middleware[];
      itemId?: gm.Middleware[];
      price?: gm.Middleware[];
      quantity?: gm.Middleware[];
      vatRate?: gm.Middleware[];
      vatType?: gm.Middleware[];
    };
    DocumentPaymentRecord?: {
      '*'?: gm.Middleware[];
      currency?: gm.Middleware[];
      currencyRate?: gm.Middleware[];
      date?: gm.Middleware[];
      price?: gm.Middleware[];
      type?: gm.Middleware[];
      bankName?: gm.Middleware[];
      bankBranch?: gm.Middleware[];
      bankAccount?: gm.Middleware[];
      chequeNum?: gm.Middleware[];
      accountId?: gm.Middleware[];
      transactionId?: gm.Middleware[];
      cardType?: gm.Middleware[];
      cardNum?: gm.Middleware[];
      numPayments?: gm.Middleware[];
      firstPayment?: gm.Middleware[];
    };
    DocumentDiscount?: {
      '*'?: gm.Middleware[];
      amount?: gm.Middleware[];
      type?: gm.Middleware[];
    };
    Unprocessed?: {
      '*'?: gm.Middleware[];
      id?: gm.Middleware[];
      image?: gm.Middleware[];
      file?: gm.Middleware[];
      documentType?: gm.Middleware[];
      isReviewed?: gm.Middleware[];
      description?: gm.Middleware[];
      remarks?: gm.Middleware[];
    };
    OtherDocument?: {
      '*'?: gm.Middleware[];
      id?: gm.Middleware[];
      image?: gm.Middleware[];
      file?: gm.Middleware[];
      documentType?: gm.Middleware[];
      isReviewed?: gm.Middleware[];
      description?: gm.Middleware[];
      remarks?: gm.Middleware[];
    };
    UpdateDocumentSuccessfulResult?: {
      '*'?: gm.Middleware[];
      document?: gm.Middleware[];
    };
    InsertDocumentSuccessfulResult?: {
      '*'?: gm.Middleware[];
      document?: gm.Middleware[];
    };
    UploadDocumentSuccessfulResult?: {
      '*'?: gm.Middleware[];
      document?: gm.Middleware[];
    };
    CommonCharge?: {
      '*'?: gm.Middleware[];
      additionalDocuments?: gm.Middleware[];
    };
    FinancialCharge?: {
      '*'?: gm.Middleware[];
      additionalDocuments?: gm.Middleware[];
    };
    ConversionCharge?: {
      '*'?: gm.Middleware[];
      additionalDocuments?: gm.Middleware[];
    };
    SalaryCharge?: {
      '*'?: gm.Middleware[];
      additionalDocuments?: gm.Middleware[];
    };
    InternalTransferCharge?: {
      '*'?: gm.Middleware[];
      additionalDocuments?: gm.Middleware[];
    };
    DividendCharge?: {
      '*'?: gm.Middleware[];
      additionalDocuments?: gm.Middleware[];
    };
    BusinessTripCharge?: {
      '*'?: gm.Middleware[];
      additionalDocuments?: gm.Middleware[];
    };
    MonthlyVatCharge?: {
      '*'?: gm.Middleware[];
      additionalDocuments?: gm.Middleware[];
    };
    BankDepositCharge?: {
      '*'?: gm.Middleware[];
      additionalDocuments?: gm.Middleware[];
    };
    ForeignSecuritiesCharge?: {
      '*'?: gm.Middleware[];
      additionalDocuments?: gm.Middleware[];
    };
    CreditcardBankCharge?: {
      '*'?: gm.Middleware[];
      additionalDocuments?: gm.Middleware[];
    };
    IssuedDocumentInfo?: {
      '*'?: gm.Middleware[];
      id?: gm.Middleware[];
      externalId?: gm.Middleware[];
      status?: gm.Middleware[];
      linkedDocuments?: gm.Middleware[];
    };
  };
}