Skip to content

Commit 52ab116

Browse files
hnganHarrison Ngan
andauthored
Streams 2.11 Adding API support for Tasks Pause and Resume (#818)
* Internal merge 2.11.0 - Adding API support for Tasks Pause and Resume - Linting changes --------- Co-authored-by: Harrison Ngan <nosirrah@amazon.com>
1 parent 97983f1 commit 52ab116

File tree

13 files changed

+1437
-1218
lines changed

13 files changed

+1437
-1218
lines changed

Documentation.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1398,6 +1398,40 @@ Gets the channel context for the contact. For task contacts the channel context
13981398
}
13991399
```
14001400

1401+
### `contact.pause()`
1402+
1403+
```js
1404+
contact.pause({
1405+
success: function () {
1406+
/* ... */
1407+
},
1408+
failure: function (err) {
1409+
/* ... */
1410+
},
1411+
});
1412+
```
1413+
1414+
Pause a connected contact.
1415+
1416+
Optional success and failure callbacks can be provided to determine if the operation was successful.
1417+
1418+
1419+
### `contact.resume()`
1420+
1421+
```js
1422+
contact.resume({
1423+
success: function () {
1424+
/* ... */
1425+
},
1426+
failure: function (err) {
1427+
/* ... */
1428+
},
1429+
});
1430+
```
1431+
1432+
Resume a paused contact.
1433+
1434+
Optional success and failure callbacks can be provided to determine if the operation was successful.
14011435

14021436

14031437
## Connection API

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "amazon-connect-streams",
3-
"version": "2.10.0",
3+
"version": "2.11.0",
44
"description": "Amazon Connect Streams Library",
55
"engines": {
66
"node": ">=12.0.0"

release/connect-streams-dr-min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

release/connect-streams-dr.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

release/connect-streams-min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)