SW Combine SDK
    Preparing search index...

    Entities by type resource

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Returns normalized pagination metadata and items for any TypesEntityType.

      Type Parameters

      Parameters

      • options: ListTypesEntitiesOptions<T>

        Entity list options. start_index defaults to 1, item_count defaults to 50, and class is optional for class-filtered results.

      Returns Promise<TypesEntitiesListMetaResponse>

      TypesEntitiesListMetaResponse with pagination attributes and normalized items.

      const response = await client.types.entities.listRaw({
      entityType: 'vehicles',
      start_index: 1,
      item_count: 50,
      });
      console.log(response.attributes?.total);
      console.log(response.items[0]?.attributes.uid);
      const response = await client.types.entities.listRaw({
      entityType: 'ships',
      class: 'fighter',
      start_index: 1,
      item_count: 25,
      });

      for (const item of response.items) {
      console.log(item.attributes.uid, item.value);
      }