@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: {
        getWars: {
            path: "wars";
            method: "GET";
            requiresAuth: false;
            responseSchema: ZodArray<ZodNumber>;
        };
        getWarById: {
            path: "wars/{warId}";
            method: "GET";
            requiresAuth: false;
            pathParams: readonly ["warId"];
            responseSchema: ZodObject<
                {
                    id: ZodNumber;
                    declared: ZodString;
                    started: ZodOptional<ZodString>;
                    finished: ZodOptional<ZodString>;
                    retracted: ZodOptional<ZodString>;
                    mutual: ZodBoolean;
                    open_for_allies: ZodBoolean;
                    aggressor: ZodObject<
                        {
                            corporation_id: ZodOptional<ZodNumber>;
                            alliance_id: ZodOptional<ZodNumber>;
                            isk_destroyed: ZodNumber;
                            ships_killed: ZodNumber;
                        },
                        $loose,
                    >;
                    defender: ZodObject<
                        {
                            corporation_id: ZodOptional<ZodNumber>;
                            alliance_id: ZodOptional<ZodNumber>;
                            isk_destroyed: ZodNumber;
                            ships_killed: ZodNumber;
                        },
                        $loose,
                    >;
                    allies: ZodOptional<
                        ZodArray<
                            ZodObject<
                                {
                                    corporation_id: ZodOptional<ZodNumber>;
                                    alliance_id: ZodOptional<ZodNumber>;
                                },
                                $loose,
                            >,
                        >,
                    >;
                },
                $loose,
            >;
        };
        getWarKillmails: {
            path: "wars/{warId}/killmails";
            method: "GET";
            requiresAuth: false;
            pathParams: readonly ["warId"];
            responseSchema: ZodArray<
                ZodObject<
                    { killmail_id: ZodNumber; killmail_hash: ZodString },
                    $loose,
                >,
            >;
        };
    }
    • Type Parameters

      • R

      Parameters

      • endpointName: "getWars" | "getWarById" | "getWarKillmails"
      • ...args: unknown[]

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

    • Type Parameters

      • R

      Parameters

      • endpointName: "getWars" | "getWarById" | "getWarKillmails"
      • args: unknown[]
      • Optionalconcurrency: number

      Returns Promise<R[]>

    • Retrieves a list of all war IDs, ordered by war ID descending.

      Returns Promise<number[]>

      A list of war IDs

    • Retrieves detailed information about a specific war, including aggressors, defenders, and status.

      Parameters

      • warId: number

        The ID of the war

      Returns Promise<
          {
              id: number;
              declared: string;
              started?: string;
              finished?: string;
              retracted?: string;
              mutual: boolean;
              open_for_allies: boolean;
              aggressor: {
                  corporation_id?: number;
                  alliance_id?: number;
                  isk_destroyed: number;
                  ships_killed: number;
                  [key: string]: unknown;
              };
              defender: {
                  corporation_id?: number;
                  alliance_id?: number;
                  isk_destroyed: number;
                  ships_killed: number;
                  [key: string]: unknown;
              };
              allies?: {
                  corporation_id?: number;
                  alliance_id?: number;
                  [key: string]: unknown;
              }[];
              [key: string]: unknown;
          },
      >

      Detailed war information

    • Retrieves the killmail summaries associated with a specific war.

      Parameters

      • warId: number

        The ID of the war

      Returns Promise<
          { killmail_id: number; killmail_hash: string; [key: string]: unknown }[],
      >

      A list of killmail summaries for the war

    • Parameters

      • Optionalconcurrency: number

      Returns Promise<number[]>

    • Parameters

      • warId: number
      • Optionalconcurrency: number

      Returns Promise<
          { killmail_id: number; killmail_hash: string; [key: string]: unknown }[],
      >

    • Parameters

      • warId: number

      Returns AsyncGenerator<
          PageResult<
              { killmail_id: number; killmail_hash: string; [key: string]: unknown },
          >,
          void,
          undefined,
      >