@nice-devone/core-sdk
v0.0.1
Published
* [NPM package](https://www.npmjs.com/package/@nice-devone/core-sdk) * [Sample Web App](https://github.com/nice-cxone/webapp-acd-cxagent-sdk-consumer)
Downloads
74
Keywords
Readme
NICE CXone Core SDK
Requirements
TypeScript 4.9 Runtime: ES2022 (WebSocket, Intl, Promise, EventTarget, CustomEvent, JSON, Date, etc.) Custom application bundler (webpack, create-react-app, etc.)
@nice-devone/core-sdk
This is the official README file for the @nice-devone/core-sdk
library. This core SDK empowers developers to integrate CXone Agent functionalities within their custom applications.
Features
Logger: To manage log related activities using logger config, log appender, console log appender etc.
Formatter: To perform format related functionalities using log formatter, utils formatter, basic formatter.
Circuit Breaker: To handle the circuit break in multiple states(open, closed, Half-open).
Datadog: Provides various data logger related functions like getLoggerGlobalContext, getGlobalContext, addLoggerGlobalContext, addLoggerGlobalContext, etc.
WebSocket Client: Interact with the CXone platform using websocket client.
Contact Events: To receive status about call contact events, voice mail contact events.
Helper functions: To reduce redundancy and for better practices helpers like Security Helper, Session Helper, LocalStorage Helper were used throughout the library.
Data Parsing and Manipulation: Utilities for parsing strings to booleans or integers, and calculating percentages.
Enums: Enumerations for various concepts like log level, Call Contact Events, Voice mail Contact events, Wem Notification Events.
Utility Functions: Helper functions for common tasks like data manipulation, formatting, and potentially logging.
Installation
npm install @nice-devone/core-sdk
Peer Dependencies
This library relies on several peer dependencies, including:
@nice-devone/common-sdk
@nice-devone/i18n
@nice-devone/shared-apps-lib
Usage
Import necessary modules:
import { AdminService, Logger, ACDSessionManager, LocalStorageHelper, StorageKeys, WebsocketStatusCode, BusinessUnit, } from '@nice-devone/core-sdk';
Initialize Logger:
const logger = new Logger('Browser Extension', 'DockingTab');
Leverage SDK functionalities:
Refer to the official documentation for detailed usage examples on specific features like AdminService, WebsocketStatusCode, etc.
Explore the available classes and methods within the library to interact with CXone Core-sdk functionalities.
Documentation
For detailed documentation and developer related queries, Please visit Link to developer documentation
Compatibility
This SDK is likely compatible with specific CXone ACD versions. Refer to the documentation for supported versions.
License
Check the license file for specific terms regarding the use of this SDK.