SW Combine SDK
    Preparing search index...

    Faction budgets resource

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Get a specific faction budget.

      Returns the Budget object directly — not wrapped in a Page.

      Parameters

      • options: { budgetId: string; factionId: string }

      Returns Promise<Budget>

      The Budget entity.

      const budget = await client.faction.budgets.get({ factionId: '20:123', budgetId: 'budget-uid' });
      console.log(budget); // access properties directly, not budget.data
    • List faction budgets (paginated)

      Parameters

      • options: {
            factionId: string;
            item_count?: number;
            pageDelay?: number;
            start_index?: number;
        }

        Faction ID and optional pagination parameters

      Returns Promise<Page<Budget>>

      const page = await client.faction.budgets.list({ factionId: '20:123' });
      console.log(page.data); // Budget[]
      // Iterate all pages:
      for await (const budget of page) { console.log(budget); }