Skip to content

Commit

Permalink
Streams 2.11 Adding API support for Tasks Pause and Resume (#818)
Browse files Browse the repository at this point in the history
* Internal merge 2.11.0

- Adding API support for Tasks Pause and Resume
- Linting changes
---------

Co-authored-by: Harrison Ngan <[email protected]>
  • Loading branch information
hngan and Harrison Ngan authored Dec 15, 2023
1 parent 97983f1 commit 52ab116
Show file tree
Hide file tree
Showing 13 changed files with 1,437 additions and 1,218 deletions.
34 changes: 34 additions & 0 deletions Documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -1398,6 +1398,40 @@ Gets the channel context for the contact. For task contacts the channel context
}
```

### `contact.pause()`

```js
contact.pause({
success: function () {
/* ... */
},
failure: function (err) {
/* ... */
},
});
```

Pause a connected contact.

Optional success and failure callbacks can be provided to determine if the operation was successful.


### `contact.resume()`

```js
contact.resume({
success: function () {
/* ... */
},
failure: function (err) {
/* ... */
},
});
```

Resume a paused contact.

Optional success and failure callbacks can be provided to determine if the operation was successful.


## Connection API
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-streams",
"version": "2.10.0",
"version": "2.11.0",
"description": "Amazon Connect Streams Library",
"engines": {
"node": ">=12.0.0"
Expand Down
2 changes: 1 addition & 1 deletion release/connect-streams-dr-min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion release/connect-streams-dr.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion release/connect-streams-min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 52ab116

Please sign in to comment.