@lgriffin/esi.ts - EVE Online ESI API Client - v12.3.0
    Preparing search index...

    The base of the custom domain clients: an endpoint map turned into methods, plus the stream*/fetchAll* page helpers and withMetadata/withSafeMode. Extend it for a custom domain client of your own.

    Hierarchy (View Summary)

    Index
    api: ClientMethods<T>
    _client: ApiClient
    _endpoints: {
        getCharacterWallet: {
            path: "characters/{characterId}/wallet";
            method: "GET";
            requiresAuth: true;
            pathParams: readonly ["characterId"];
            responseSchema: ZodNumber;
        };
        getCharacterWalletJournal: {
            path: "characters/{characterId}/wallet/journal";
            method: "GET";
            requiresAuth: true;
            pathParams: readonly ["characterId"];
            responseSchema: ZodArray<
                ZodObject<
                    {
                        id: ZodNumber;
                        date: ZodString;
                        ref_type: ZodString;
                        first_party_id: ZodOptional<ZodNumber>;
                        second_party_id: ZodOptional<ZodNumber>;
                        amount: ZodOptional<ZodNumber>;
                        balance: ZodOptional<ZodNumber>;
                        reason: ZodOptional<ZodString>;
                        description: ZodString;
                        context_id: ZodOptional<ZodNumber>;
                        context_id_type: ZodOptional<ZodString>;
                        tax: ZodOptional<ZodNumber>;
                        tax_receiver_id: ZodOptional<ZodNumber>;
                    },
                    $loose,
                >,
            >;
        };
        getCharacterWalletTransactions: {
            path: "characters/{characterId}/wallet/transactions";
            method: "GET";
            requiresAuth: true;
            pathParams: readonly ["characterId"];
            responseSchema: ZodArray<
                ZodObject<
                    {
                        transaction_id: ZodNumber;
                        date: ZodString;
                        type_id: ZodNumber;
                        location_id: ZodNumber;
                        unit_price: ZodNumber;
                        quantity: ZodNumber;
                        client_id: ZodNumber;
                        is_buy: ZodBoolean;
                        is_personal: ZodBoolean;
                        journal_ref_id: ZodNumber;
                    },
                    $loose,
                >,
            >;
        };
        getCorporationWallets: {
            path: "corporations/{corporationId}/wallets";
            method: "GET";
            requiresAuth: true;
            pathParams: readonly ["corporationId"];
            responseSchema: ZodArray<
                ZodObject<{ division: ZodNumber; balance: ZodNumber }, $loose>,
            >;
        };
        getCorporationWalletJournal: {
            path: "corporations/{corporationId}/wallets/{division}/journal";
            method: "GET";
            requiresAuth: true;
            pathParams: readonly ["corporationId", "division"];
            responseSchema: ZodArray<
                ZodObject<
                    {
                        id: ZodNumber;
                        date: ZodString;
                        ref_type: ZodString;
                        first_party_id: ZodOptional<ZodNumber>;
                        second_party_id: ZodOptional<ZodNumber>;
                        amount: ZodOptional<ZodNumber>;
                        balance: ZodOptional<ZodNumber>;
                        reason: ZodOptional<ZodString>;
                        description: ZodString;
                        context_id: ZodOptional<ZodNumber>;
                        context_id_type: ZodOptional<ZodString>;
                        tax: ZodOptional<ZodNumber>;
                        tax_receiver_id: ZodOptional<ZodNumber>;
                    },
                    $loose,
                >,
            >;
        };
        getCorporationWalletTransactions: {
            path: "corporations/{corporationId}/wallets/{division}/transactions";
            method: "GET";
            requiresAuth: true;
            pathParams: readonly ["corporationId", "division"];
            responseSchema: ZodArray<
                ZodObject<
                    {
                        transaction_id: ZodNumber;
                        date: ZodString;
                        type_id: ZodNumber;
                        location_id: ZodNumber;
                        unit_price: ZodNumber;
                        quantity: ZodNumber;
                        client_id: ZodNumber;
                        is_buy: ZodBoolean;
                        journal_ref_id: ZodNumber;
                    },
                    $loose,
                >,
            >;
        };
    }
    • Type Parameters

      • R

      Parameters

      • endpointName:
            | "getCharacterWallet"
            | "getCharacterWalletJournal"
            | "getCharacterWalletTransactions"
            | "getCorporationWallets"
            | "getCorporationWalletJournal"
            | "getCorporationWalletTransactions"
      • ...args: unknown[]

      Returns AsyncGenerator<PageResult<R>, void, undefined>

    • Type Parameters

      • R

      Parameters

      • endpointName:
            | "getCharacterWallet"
            | "getCharacterWalletJournal"
            | "getCharacterWalletTransactions"
            | "getCorporationWallets"
            | "getCorporationWalletJournal"
            | "getCorporationWalletTransactions"
      • args: unknown[]
      • Optionalconcurrency: number

      Returns Promise<R[]>

    • Retrieves the current ISK balance of a character's wallet.

      Parameters

      • characterId: number

        The ID of the character

      Returns Promise<number>

      The character's wallet balance in ISK

      Authentication

    • Retrieves the wallet journal entries for a character, showing ISK transactions and their reasons.

      Parameters

      • characterId: number

        The ID of the character

      Returns Promise<
          {
              id: number;
              date: string;
              ref_type: string;
              first_party_id?: number;
              second_party_id?: number;
              amount?: number;
              balance?: number;
              reason?: string;
              description: string;
              context_id?: number;
              context_id_type?: string;
              tax?: number;
              tax_receiver_id?: number;
              [key: string]: unknown;
          }[],
      >

      A list of wallet journal entries

      Authentication

    • Retrieves the market transaction history for a character's wallet.

      Parameters

      • characterId: number

        The ID of the character

      Returns Promise<
          {
              transaction_id: number;
              date: string;
              type_id: number;
              location_id: number;
              unit_price: number;
              quantity: number;
              client_id: number;
              is_buy: boolean;
              is_personal: boolean;
              journal_ref_id: number;
              [key: string]: unknown;
          }[],
      >

      A list of market buy and sell transactions

      Authentication

    • Retrieves the balances for all wallet divisions of a corporation.

      Parameters

      • corporationId: number

        The ID of the corporation

      Returns Promise<{ division: number; balance: number }[]>

      A list of wallet divisions with their balances

      Authentication

    • Retrieves the wallet journal entries for a specific division of a corporation wallet.

      Parameters

      • corporationId: number

        The ID of the corporation

      • division: number

        The wallet division number (1-7)

      Returns Promise<
          {
              id: number;
              date: string;
              ref_type: string;
              first_party_id?: number;
              second_party_id?: number;
              amount?: number;
              balance?: number;
              reason?: string;
              description: string;
              context_id?: number;
              context_id_type?: string;
              tax?: number;
              tax_receiver_id?: number;
              [key: string]: unknown;
          }[],
      >

      A list of wallet journal entries for the specified division

      Authentication

    • Retrieves the market transaction history for a specific division of a corporation wallet.

      Parameters

      • corporationId: number

        The ID of the corporation

      • division: number

        The wallet division number (1-7)

      Returns Promise<
          {
              transaction_id: number;
              date: string;
              type_id: number;
              location_id: number;
              unit_price: number;
              quantity: number;
              client_id: number;
              is_buy: boolean;
              journal_ref_id: number;
              [key: string]: unknown;
          }[],
      >

      A list of market buy and sell transactions for the specified division

      Authentication

    • Parameters

      • characterId: number
      • Optionalconcurrency: number

      Returns Promise<
          {
              id: number;
              date: string;
              ref_type: string;
              first_party_id?: number;
              second_party_id?: number;
              amount?: number;
              balance?: number;
              reason?: string;
              description: string;
              context_id?: number;
              context_id_type?: string;
              tax?: number;
              tax_receiver_id?: number;
              [key: string]: unknown;
          }[],
      >

    • Parameters

      • corporationId: number
      • division: number
      • Optionalconcurrency: number

      Returns Promise<
          {
              id: number;
              date: string;
              ref_type: string;
              first_party_id?: number;
              second_party_id?: number;
              amount?: number;
              balance?: number;
              reason?: string;
              description: string;
              context_id?: number;
              context_id_type?: string;
              tax?: number;
              tax_receiver_id?: number;
              [key: string]: unknown;
          }[],
      >

    • Parameters

      • characterId: number
      • Optionalconcurrency: number

      Returns Promise<
          {
              transaction_id: number;
              date: string;
              type_id: number;
              location_id: number;
              unit_price: number;
              quantity: number;
              client_id: number;
              is_buy: boolean;
              is_personal: boolean;
              journal_ref_id: number;
              [key: string]: unknown;
          }[],
      >

    • Parameters

      • corporationId: number
      • division: number
      • Optionalconcurrency: number

      Returns Promise<
          {
              transaction_id: number;
              date: string;
              type_id: number;
              location_id: number;
              unit_price: number;
              quantity: number;
              client_id: number;
              is_buy: boolean;
              journal_ref_id: number;
              [key: string]: unknown;
          }[],
      >

    • Parameters

      • characterId: number

      Returns AsyncGenerator<
          PageResult<
              {
                  id: number;
                  date: string;
                  ref_type: string;
                  first_party_id?: number;
                  second_party_id?: number;
                  amount?: number;
                  balance?: number;
                  reason?: string;
                  description: string;
                  context_id?: number;
                  context_id_type?: string;
                  tax?: number;
                  tax_receiver_id?: number;
                  [key: string]: unknown;
              },
          >,
          void,
          undefined,
      >

    • Parameters

      • corporationId: number
      • division: number

      Returns AsyncGenerator<
          PageResult<
              {
                  id: number;
                  date: string;
                  ref_type: string;
                  first_party_id?: number;
                  second_party_id?: number;
                  amount?: number;
                  balance?: number;
                  reason?: string;
                  description: string;
                  context_id?: number;
                  context_id_type?: string;
                  tax?: number;
                  tax_receiver_id?: number;
                  [key: string]: unknown;
              },
          >,
          void,
          undefined,
      >

    • Parameters

      • characterId: number

      Returns AsyncGenerator<
          PageResult<
              {
                  transaction_id: number;
                  date: string;
                  type_id: number;
                  location_id: number;
                  unit_price: number;
                  quantity: number;
                  client_id: number;
                  is_buy: boolean;
                  is_personal: boolean;
                  journal_ref_id: number;
                  [key: string]: unknown;
              },
          >,
          void,
          undefined,
      >

    • Parameters

      • corporationId: number
      • division: number

      Returns AsyncGenerator<
          PageResult<
              {
                  transaction_id: number;
                  date: string;
                  type_id: number;
                  location_id: number;
                  unit_price: number;
                  quantity: number;
                  client_id: number;
                  is_buy: boolean;
                  journal_ref_id: number;
                  [key: string]: unknown;
              },
          >,
          void,
          undefined,
      >