Handles operations related to groups.

This class provides methods to retrieve, cache, and manage groups by interacting with an external API. It also listens to real-time updates via sockets if the client has sockets enabled.

Constructors

Methods

  • Retrieves all Group items.

    Parameters

    • OptionalskipCache: boolean

      Whether to skip the cache and fetch directly from the source.

    Returns Promise<Group[]>

    A promise that resolves to an array of Group objects.

  • Fetches a group by its ID.

    Parameters

    • id: string

      The ID of the group to be fetched.

    • OptionalskipCache: boolean

      Whether to skip the cache and fetch directly from the server.

    Returns Promise<Group>

    The group object corresponding to the provided ID.

  • This method retrieves information on where a specified group is being used.

    Parameters

    • id: string

      The unique identifier of the group to query.

    Returns Promise<GroupWhereIsItUsedResult>

    A promise that resolves to the result indicating where the item is used.