@avaya/infinity-agent-sdk - v1.0.0
    Preparing search index...

    Represents a server-side interaction view filter.

    Views define preset filters for the interaction list (e.g., "All Active Interactions"). Obtained from User.getInteractionViews; call getInteractions on the view to fetch the interactions it surfaces.

    Index

    Accessors

    • get viewId(): string

      Unique identifier for the view.

      Returns string

    • get name(): string

      Display name of the view.

      Returns string

    • get isDefault(): boolean

      Whether this is the default view for the user.

      Returns boolean

    Methods

    • Fetches a page of interactions filtered by this view.

      Parameters

      Returns Promise<InteractionSummaryPage>

      A promise that resolves to a page of InteractionSummary.

      AvayaInfinityAgentSdkError ASE_2000 if the SDK user service is not * operational, ASE_0004 if params is invalid, ASE_2011 if the request fails. * *

      * const views = await user.getInteractionViews();
      * const defaultView = views.find(v => v.isDefault);
      * if (defaultView) {
      * const page = await defaultView.getInteractions({ page: 1, pageSize: 20 });
      * console.log(`${page.totalInteractions} interactions across ${page.totalPages} pages`);
      * }