import * as Types from "../../../__generated__/types.js";
import * as gm from "graphql-modules";
export namespace SalariesModule {
  interface DefinedFields {
    Query: 'employeesByEmployerId' | 'allPensionFunds' | 'allTrainingFunds' | 'salaryRecordsByCharge' | 'salaryRecordsByDates';
    Employee: 'id' | 'name';
    PensionFund: 'id' | 'name';
    TrainingFund: 'id' | 'name';
    Mutation: 'insertSalaryRecords' | 'updateSalaryRecord' | 'insertOrUpdateSalaryRecords' | 'insertSalaryRecordsFromFile';
    InsertSalaryRecordsSuccessfulResult: 'salaryRecords';
    UpdateSalaryRecordSuccessfulResult: 'salaryRecord';
    Salary: 'month' | 'directAmount' | 'baseAmount' | 'employee' | 'employer' | 'pensionFund' | 'pensionEmployeeAmount' | 'pensionEmployeePercentage' | 'pensionEmployerAmount' | 'pensionEmployerPercentage' | 'compensationsAmount' | 'compensationsPercentage' | 'trainingFund' | 'trainingFundEmployeeAmount' | 'trainingFundEmployeePercentage' | 'trainingFundEmployerAmount' | 'trainingFundEmployerPercentage' | 'socialSecurityEmployeeAmount' | 'socialSecurityEmployerAmount' | 'incomeTaxAmount' | 'healthInsuranceAmount' | 'charge' | 'globalAdditionalHoursAmount' | 'bonus' | 'gift' | 'travelAndSubsistence' | 'recovery' | 'notionalExpense' | 'vacationDays' | 'vacationTakeout' | 'workDays' | 'sicknessDays';
    VacationDays: 'added' | 'taken' | 'balance';
    SicknessDays: 'balance';
    SalaryCharge: 'salaryRecords' | 'employees';
    Fund: 'id' | 'name';
  };
  
  interface DefinedInputFields {
    SalaryRecordInput: 'addedVacationDays' | 'baseSalary' | 'bonus' | 'chargeId' | 'compensationsEmployerAmount' | 'compensationsEmployerPercentage' | 'directPaymentAmount' | 'employee' | 'employeeId' | 'employer' | 'gift' | 'globalAdditionalHours' | 'healthPaymentAmount' | 'hourlyRate' | 'hours' | 'jobPercentage' | 'month' | 'pensionEmployeeAmount' | 'pensionEmployeePercentage' | 'pensionEmployerAmount' | 'pensionEmployerPercentage' | 'pensionFundId' | 'recovery' | 'sicknessDaysBalance' | 'socialSecurityAmountEmployee' | 'socialSecurityAmountEmployer' | 'taxAmount' | 'trainingFundEmployeeAmount' | 'trainingFundEmployeePercentage' | 'trainingFundEmployerAmount' | 'trainingFundEmployerPercentage' | 'trainingFundId' | 'travelAndSubsistence' | 'vacationDaysBalance' | 'vacationTakeout' | 'workDays' | 'zkufot';
    SalaryRecordEditInput: 'addedVacationDays' | 'baseSalary' | 'bonus' | 'chargeId' | 'compensationsEmployerAmount' | 'compensationsEmployerPercentage' | 'directPaymentAmount' | 'employeeId' | 'employer' | 'gift' | 'globalAdditionalHours' | 'healthPaymentAmount' | 'hourlyRate' | 'hours' | 'month' | 'pensionEmployeeAmount' | 'pensionEmployeePercentage' | 'pensionEmployerAmount' | 'pensionEmployerPercentage' | 'pensionFundId' | 'recovery' | 'sicknessDaysBalance' | 'socialSecurityAmountEmployee' | 'socialSecurityAmountEmployer' | 'taxAmount' | 'trainingFundEmployeeAmount' | 'trainingFundEmployeePercentage' | 'trainingFundEmployerAmount' | 'trainingFundEmployerPercentage' | 'trainingFundId' | 'travelAndSubsistence' | 'vacationDaysBalance' | 'vacationTakeout' | 'workDays' | 'zkufot';
  };
  
  export type Query = Pick<Types.Query, DefinedFields['Query']>;
  export type Employee = Pick<Types.Employee, DefinedFields['Employee']>;
  export type UUID = Types.Uuid;
  export type PensionFund = Pick<Types.PensionFund, DefinedFields['PensionFund']>;
  export type TrainingFund = Pick<Types.TrainingFund, DefinedFields['TrainingFund']>;
  export type Fund = Pick<Types.Fund, DefinedFields['Fund']>;
  export type Salary = Pick<Types.Salary, DefinedFields['Salary']>;
  export type TimelessDate = Types.TimelessDate;
  export type Mutation = Pick<Types.Mutation, DefinedFields['Mutation']>;
  export type InsertSalaryRecordsResult = Types.InsertSalaryRecordsResult;
  export type SalaryRecordInput = Pick<Types.SalaryRecordInput, DefinedInputFields['SalaryRecordInput']>;
  export type UpdateSalaryRecordResult = Types.UpdateSalaryRecordResult;
  export type SalaryRecordEditInput = Pick<Types.SalaryRecordEditInput, DefinedInputFields['SalaryRecordEditInput']>;
  export type FileScalar = Types.FileScalar;
  export type InsertSalaryRecordsSuccessfulResult = Pick<Types.InsertSalaryRecordsSuccessfulResult, DefinedFields['InsertSalaryRecordsSuccessfulResult']>;
  export type CommonError = Types.CommonError;
  export type UpdateSalaryRecordSuccessfulResult = Pick<Types.UpdateSalaryRecordSuccessfulResult, DefinedFields['UpdateSalaryRecordSuccessfulResult']>;
  export type SalaryCharge = Types.SalaryCharge;
  export type LtdFinancialEntity = Types.LtdFinancialEntity;
  export type FinancialAmount = Types.FinancialAmount;
  export type VacationDays = Pick<Types.VacationDays, DefinedFields['VacationDays']>;
  export type SicknessDays = Pick<Types.SicknessDays, DefinedFields['SicknessDays']>;
  
  export type QueryResolvers = Pick<Types.QueryResolvers, DefinedFields['Query']>;
  export type EmployeeResolvers = Pick<Types.EmployeeResolvers, DefinedFields['Employee']>;
  export type PensionFundResolvers = Pick<Types.PensionFundResolvers, DefinedFields['PensionFund'] | '__isTypeOf'>;
  export type TrainingFundResolvers = Pick<Types.TrainingFundResolvers, DefinedFields['TrainingFund'] | '__isTypeOf'>;
  export type MutationResolvers = Pick<Types.MutationResolvers, DefinedFields['Mutation']>;
  export type InsertSalaryRecordsSuccessfulResultResolvers = Pick<Types.InsertSalaryRecordsSuccessfulResultResolvers, DefinedFields['InsertSalaryRecordsSuccessfulResult'] | '__isTypeOf'>;
  export type UpdateSalaryRecordSuccessfulResultResolvers = Pick<Types.UpdateSalaryRecordSuccessfulResultResolvers, DefinedFields['UpdateSalaryRecordSuccessfulResult'] | '__isTypeOf'>;
  export type SalaryResolvers = Pick<Types.SalaryResolvers, DefinedFields['Salary']>;
  export type VacationDaysResolvers = Pick<Types.VacationDaysResolvers, DefinedFields['VacationDays']>;
  export type SicknessDaysResolvers = Pick<Types.SicknessDaysResolvers, DefinedFields['SicknessDays']>;
  export type SalaryChargeResolvers = Pick<Types.SalaryChargeResolvers, DefinedFields['SalaryCharge']>;
  export type FundResolvers = Pick<Types.FundResolvers, DefinedFields['Fund']>;
  
  export interface Resolvers {
    Query?: QueryResolvers;
    Employee?: EmployeeResolvers;
    PensionFund?: PensionFundResolvers;
    TrainingFund?: TrainingFundResolvers;
    Mutation?: MutationResolvers;
    InsertSalaryRecordsSuccessfulResult?: InsertSalaryRecordsSuccessfulResultResolvers;
    UpdateSalaryRecordSuccessfulResult?: UpdateSalaryRecordSuccessfulResultResolvers;
    Salary?: SalaryResolvers;
    VacationDays?: VacationDaysResolvers;
    SicknessDays?: SicknessDaysResolvers;
    SalaryCharge?: SalaryChargeResolvers;
  };
  
  export interface MiddlewareMap {
    '*'?: {
      '*'?: gm.Middleware[];
    };
    Query?: {
      '*'?: gm.Middleware[];
      employeesByEmployerId?: gm.Middleware[];
      allPensionFunds?: gm.Middleware[];
      allTrainingFunds?: gm.Middleware[];
      salaryRecordsByCharge?: gm.Middleware[];
      salaryRecordsByDates?: gm.Middleware[];
    };
    Employee?: {
      '*'?: gm.Middleware[];
      id?: gm.Middleware[];
      name?: gm.Middleware[];
    };
    PensionFund?: {
      '*'?: gm.Middleware[];
      id?: gm.Middleware[];
      name?: gm.Middleware[];
    };
    TrainingFund?: {
      '*'?: gm.Middleware[];
      id?: gm.Middleware[];
      name?: gm.Middleware[];
    };
    Mutation?: {
      '*'?: gm.Middleware[];
      insertSalaryRecords?: gm.Middleware[];
      updateSalaryRecord?: gm.Middleware[];
      insertOrUpdateSalaryRecords?: gm.Middleware[];
      insertSalaryRecordsFromFile?: gm.Middleware[];
    };
    InsertSalaryRecordsSuccessfulResult?: {
      '*'?: gm.Middleware[];
      salaryRecords?: gm.Middleware[];
    };
    UpdateSalaryRecordSuccessfulResult?: {
      '*'?: gm.Middleware[];
      salaryRecord?: gm.Middleware[];
    };
    SalaryCharge?: {
      '*'?: gm.Middleware[];
      salaryRecords?: gm.Middleware[];
      employees?: gm.Middleware[];
    };
    Salary?: {
      '*'?: gm.Middleware[];
      month?: gm.Middleware[];
      directAmount?: gm.Middleware[];
      baseAmount?: gm.Middleware[];
      employee?: gm.Middleware[];
      employer?: gm.Middleware[];
      pensionFund?: gm.Middleware[];
      pensionEmployeeAmount?: gm.Middleware[];
      pensionEmployeePercentage?: gm.Middleware[];
      pensionEmployerAmount?: gm.Middleware[];
      pensionEmployerPercentage?: gm.Middleware[];
      compensationsAmount?: gm.Middleware[];
      compensationsPercentage?: gm.Middleware[];
      trainingFund?: gm.Middleware[];
      trainingFundEmployeeAmount?: gm.Middleware[];
      trainingFundEmployeePercentage?: gm.Middleware[];
      trainingFundEmployerAmount?: gm.Middleware[];
      trainingFundEmployerPercentage?: gm.Middleware[];
      socialSecurityEmployeeAmount?: gm.Middleware[];
      socialSecurityEmployerAmount?: gm.Middleware[];
      incomeTaxAmount?: gm.Middleware[];
      healthInsuranceAmount?: gm.Middleware[];
      charge?: gm.Middleware[];
      globalAdditionalHoursAmount?: gm.Middleware[];
      bonus?: gm.Middleware[];
      gift?: gm.Middleware[];
      travelAndSubsistence?: gm.Middleware[];
      recovery?: gm.Middleware[];
      notionalExpense?: gm.Middleware[];
      vacationDays?: gm.Middleware[];
      vacationTakeout?: gm.Middleware[];
      workDays?: gm.Middleware[];
      sicknessDays?: gm.Middleware[];
    };
    VacationDays?: {
      '*'?: gm.Middleware[];
      added?: gm.Middleware[];
      taken?: gm.Middleware[];
      balance?: gm.Middleware[];
    };
    SicknessDays?: {
      '*'?: gm.Middleware[];
      balance?: gm.Middleware[];
    };
  };
}