SW Combine SDK
    Preparing search index...

    Galactic News Service (GNS) resource

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    Constructors

    Methods

    • List GNS news items (paginated with optional filtering) @requires_auth No

      Parameters

      • Optionaloptions: ListGNSOptions

        Optional category, pagination, and filtering parameters

        GNS (Galactic News Service) listing options Extends base options with GNS-specific faction filtering

        • Optionalauthor?: string

          Author name to filter by

        • Optionalcategory?: string

          News category to filter by

        • Optionalend_date?: number

          Filter news up to this Unix timestamp

        • Optionalfaction?: string

          Faction name to filter by (GNS only)

        • Optionalfaction_type?: string

          Faction type to filter by (GNS only)

        • Optionalitem_count?: number

          Number of items to retrieve. Default: 50, Max: 50

        • Search term to filter by

        • Optionalstart_date?: number

          Filter news starting from this Unix timestamp

        • Optionalstart_index?: number

          Starting position (1-based). Default: 1

      Returns Promise<NewsItem[]>

      const news = await client.news.gns.list();
      const economyNews = await client.news.gns.list({ category: 'economy' });
      const moreNews = await client.news.gns.list({ start_index: 51, item_count: 50 });
      const searchNews = await client.news.gns.list({ search: 'battle', author: 'John Doe' });
      const factionNews = await client.news.gns.list({ faction: 'Empire', faction_type: 'government' });