Skip to content

Commit

Permalink
add disableCSM typing to ChatJS (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrajatttt authored Sep 19, 2024
1 parent 9cd1c5b commit eec7572
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
3 changes: 3 additions & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit eec7572

Please sign in to comment.