From eec7572f247997ce7a841b0e41c5450fd3f95aa0 Mon Sep 17 00:00:00 2001 From: Rajat <143978428+mrajatttt@users.noreply.github.com> Date: Thu, 19 Sep 2024 12:06:32 -0700 Subject: [PATCH] add disableCSM typing to ChatJS (#235) --- CHANGELOG.md | 4 ++++ package-lock.json | 4 ++-- package.json | 2 +- src/index.d.ts | 3 +++ 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0882e8b..119cfd3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [3.0.1] +### Added +- add `disableCSM` to custom typings file index.d.ts. + ## [3.0.0] ### Added - add custom typings file index.d.ts instead of auto-generating typings. diff --git a/package-lock.json b/package-lock.json index 0a3bb01..ca30e4b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "amazon-connect-chatjs", - "version": "3.0.0", + "version": "3.0.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "amazon-connect-chatjs", - "version": "3.0.0", + "version": "3.0.1", "license": "Apache-2.0", "dependencies": { "detect-browser": "5.3.0", diff --git a/package.json b/package.json index 5b3645c..97abfd0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "amazon-connect-chatjs", - "version": "3.0.0", + "version": "3.0.1", "main": "dist/amazon-connect-chat.js", "types": "dist/index.d.ts", "engines": { diff --git a/src/index.d.ts b/src/index.d.ts index cd69654..2c8d57c 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -77,6 +77,9 @@ declare namespace connect { interface CustomerChatSessionArgs extends ChatSessionArgs { readonly type: ChatSessionTypes["CUSTOMER"]; + + /** disable client-side-metric so errors/debug messages won't be logged with AWS Connect. */ + readonly disableCSM?: boolean; } interface AgentChatSessionArgs extends ChatSessionArgs {