import * as Types from "../../../__generated__/types.js";
import * as gm from "graphql-modules";
export namespace CommonModule {
  interface DefinedFields {
    Query: 'ping' | 'userContext';
    Mutation: 'pong';
    DateRange: 'start' | 'end';
    FinancialAmount: 'raw' | 'formatted' | 'currency';
    FinancialIntAmount: 'raw' | 'formatted' | 'currency';
    PageInfo: 'totalPages' | 'totalRecords' | 'currentPage' | 'pageSize';
    CommonError: 'message';
    BusinessMembership: 'businessId' | 'role' | 'businessName';
    UserContext: 'memberships' | 'activeReadScope' | 'defaultLocalCurrency' | 'defaultCryptoConversionFiatCurrency' | 'ledgerLock' | 'financialAccountsBusinessesIds' | 'locality';
    Error: 'message';
  };
  
  interface DefinedEnumValues {
    Currency: 'AUD' | 'CAD' | 'EUR' | 'GBP' | 'ILS' | 'JPY' | 'SEK' | 'USD' | 'ETH' | 'GRT' | 'USDC';
  };
  
  interface DefinedInputFields {
    FinancialAmountInput: 'raw' | 'currency';
  };
  
  export type Query = Pick<Types.Query, DefinedFields['Query']>;
  export type Mutation = Pick<Types.Mutation, DefinedFields['Mutation']>;
  export type DateRange = Pick<Types.DateRange, DefinedFields['DateRange']>;
  export type FinancialAmount = Pick<Types.FinancialAmount, DefinedFields['FinancialAmount']>;
  export type Currency = DefinedEnumValues['Currency'];
  export type FinancialAmountInput = Pick<Types.FinancialAmountInput, DefinedInputFields['FinancialAmountInput']>;
  export type FinancialIntAmount = Pick<Types.FinancialIntAmount, DefinedFields['FinancialIntAmount']>;
  export type PageInfo = Pick<Types.PageInfo, DefinedFields['PageInfo']>;
  export type Error = Pick<Types.Error, DefinedFields['Error']>;
  export type CommonError = Pick<Types.CommonError, DefinedFields['CommonError']>;
  export type UserContext = Pick<Types.UserContext, DefinedFields['UserContext']>;
  export type BusinessMembership = Pick<Types.BusinessMembership, DefinedFields['BusinessMembership']>;
  
  export type Scalars = Pick<Types.Scalars, 'DateTime' | 'TimelessDate' | 'Rate' | 'URL' | 'FileScalar' | 'UUID' | 'BigInt' | 'CountryCode'>;
  export type DateTimeScalarConfig = Types.DateTimeScalarConfig;
  export type TimelessDateScalarConfig = Types.TimelessDateScalarConfig;
  export type RateScalarConfig = Types.RateScalarConfig;
  export type UrlScalarConfig = Types.UrlScalarConfig;
  export type FileScalarScalarConfig = Types.FileScalarScalarConfig;
  export type UuidScalarConfig = Types.UuidScalarConfig;
  export type BigIntScalarConfig = Types.BigIntScalarConfig;
  export type CountryCodeScalarConfig = Types.CountryCodeScalarConfig;
  
  export type QueryResolvers = Pick<Types.QueryResolvers, DefinedFields['Query']>;
  export type MutationResolvers = Pick<Types.MutationResolvers, DefinedFields['Mutation']>;
  export type DateRangeResolvers = Pick<Types.DateRangeResolvers, DefinedFields['DateRange']>;
  export type FinancialAmountResolvers = Pick<Types.FinancialAmountResolvers, DefinedFields['FinancialAmount']>;
  export type FinancialIntAmountResolvers = Pick<Types.FinancialIntAmountResolvers, DefinedFields['FinancialIntAmount']>;
  export type PageInfoResolvers = Pick<Types.PageInfoResolvers, DefinedFields['PageInfo']>;
  export type CommonErrorResolvers = Pick<Types.CommonErrorResolvers, DefinedFields['CommonError'] | '__isTypeOf'>;
  export type BusinessMembershipResolvers = Pick<Types.BusinessMembershipResolvers, DefinedFields['BusinessMembership']>;
  export type UserContextResolvers = Pick<Types.UserContextResolvers, DefinedFields['UserContext']>;
  export type ErrorResolvers = Pick<Types.ErrorResolvers, DefinedFields['Error']>;
  
  export interface Resolvers {
    Query?: QueryResolvers;
    Mutation?: MutationResolvers;
    DateRange?: DateRangeResolvers;
    FinancialAmount?: FinancialAmountResolvers;
    FinancialIntAmount?: FinancialIntAmountResolvers;
    PageInfo?: PageInfoResolvers;
    CommonError?: CommonErrorResolvers;
    BusinessMembership?: BusinessMembershipResolvers;
    UserContext?: UserContextResolvers;
    DateTime?: Types.Resolvers['DateTime'];
    TimelessDate?: Types.Resolvers['TimelessDate'];
    Rate?: Types.Resolvers['Rate'];
    URL?: Types.Resolvers['URL'];
    FileScalar?: Types.Resolvers['FileScalar'];
    UUID?: Types.Resolvers['UUID'];
    BigInt?: Types.Resolvers['BigInt'];
    CountryCode?: Types.Resolvers['CountryCode'];
  };
  
  export interface MiddlewareMap {
    '*'?: {
      '*'?: gm.Middleware[];
    };
    Query?: {
      '*'?: gm.Middleware[];
      ping?: gm.Middleware[];
      userContext?: gm.Middleware[];
    };
    Mutation?: {
      '*'?: gm.Middleware[];
      pong?: gm.Middleware[];
    };
    DateRange?: {
      '*'?: gm.Middleware[];
      start?: gm.Middleware[];
      end?: gm.Middleware[];
    };
    FinancialAmount?: {
      '*'?: gm.Middleware[];
      raw?: gm.Middleware[];
      formatted?: gm.Middleware[];
      currency?: gm.Middleware[];
    };
    FinancialIntAmount?: {
      '*'?: gm.Middleware[];
      raw?: gm.Middleware[];
      formatted?: gm.Middleware[];
      currency?: gm.Middleware[];
    };
    PageInfo?: {
      '*'?: gm.Middleware[];
      totalPages?: gm.Middleware[];
      totalRecords?: gm.Middleware[];
      currentPage?: gm.Middleware[];
      pageSize?: gm.Middleware[];
    };
    CommonError?: {
      '*'?: gm.Middleware[];
      message?: gm.Middleware[];
    };
    BusinessMembership?: {
      '*'?: gm.Middleware[];
      businessId?: gm.Middleware[];
      role?: gm.Middleware[];
      businessName?: gm.Middleware[];
    };
    UserContext?: {
      '*'?: gm.Middleware[];
      memberships?: gm.Middleware[];
      activeReadScope?: gm.Middleware[];
      defaultLocalCurrency?: gm.Middleware[];
      defaultCryptoConversionFiatCurrency?: gm.Middleware[];
      ledgerLock?: gm.Middleware[];
      financialAccountsBusinessesIds?: gm.Middleware[];
      locality?: gm.Middleware[];
    };
  };
}