1.0.8 • Published 1 year ago

@ipscape/web-client v1.0.8

Weekly downloads
-
License
MIT
Repository
bitbucket
Last release
1 year ago

ipSCAPE/web-client

npm version NPM Downloads NPM License

Software Development Kit for creating integration plugins.

This repository provides the framework needed to create an Integration Plugin. Integrations are added to an instance of the ipSCAPE Toolbar or CTI Adaptor to add additional functionality.

web-client

Installation

With NPM

npm install --save @ipscape/web-client

With Yarn

yarn add @ipscape/web-client

To get started creating your integration

import IpscapeWebClient from '@ipscape/web-client';
const webClient = new IpscapeWebClient();

Usage

The ipSCAPE Web Client allows you to communicate with a running instance of the CTI Adaptor v8.0 or higher.

With the ipSCAPE Web Client you can:

Subscribe to events

webClient.onAgentLogin((eventData) => {
  if (response.error)
   console.error(`LOGIN: ${JSON.stringify(response.error)}`);
  if (response.result) console.log(eventData.result);
});

Query the Adaptor instance

webClient.isAuthorised((response) => {
  if (response) console.log('Agent is logged in');
});

The ipSCAPE Web Client has the following built-in event listeners:

Web Client EventDescription
onAgentLoginFired after a successful login
onAgentLogoutAgent has logged out
onAgentPresenceChangeAgent changes to presence
onCallStartedA new call interaction is started
onCallFailedThe dial attempt has failed
onCallHangupThe active call has terminated
onCallWrappedThe current call has been wrapped
onPreviewAllocatedA preview lead has been allocated
onComponentChangedThe value of the dynamic component has changed
onInteractionOpenAgent has given the interaction focus
onInteractionClosedThe Agent has navigated away and the interaction has lost focus

Getters & Methods

  • clickToDial
  • reportStatus
  • isAuthorised
  • getIntegrationSettings
  • getInteractionById
  • getCurrentInteraction
  • getAgentPresence
  • getPauseReasons
  • getAgentDetails
  • getAgentCampaigns
  • updateInCallComponentOptions
  • resetInCallComponentOptions
1.0.8

1 year ago

1.0.7

1 year ago

1.0.7-beta.5

1 year ago

1.0.7-beta.4

1 year ago

1.0.7-beta.3

1 year ago

1.0.7-beta.2

1 year ago

1.0.7-beta.1

1 year ago

1.0.6-beta.5

2 years ago

1.0.6-beta.6

2 years ago

1.0.6-beta.4

2 years ago

1.0.6-beta.3

2 years ago

1.0.6-beta.2

2 years ago

1.0.6-beta.1

2 years ago

1.0.5-alpha.3

2 years ago

1.0.4-alpha.1

2 years ago

1.0.5-alpha.2

2 years ago

1.0.5-alpha.1

2 years ago

1.0.5

2 years ago

1.0.3

2 years ago

1.0.1

2 years ago

1.0.0-beta.5

4 years ago

1.0.0-beta.3

4 years ago

1.0.0-beta.2

4 years ago

1.0.0-beta.1

4 years ago