Skip to content

Commit

Permalink
Merge pull request #390 from seiyako/master
Browse files Browse the repository at this point in the history
merge from internal 3/26
  • Loading branch information
seiyako authored Apr 2, 2021
2 parents 0661df6 + 049c2a0 commit 60b2e86
Show file tree
Hide file tree
Showing 21 changed files with 1,129 additions and 675 deletions.
8 changes: 8 additions & 0 deletions Documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,12 @@ connect.ChatSession.create({
Gets the `WebSocket` manager. This method is only used when integrating with `amazon-connect-chatjs`.
See the [amazon-connect-chatjs](https://github.com/amazon-connect/amazon-connect-chatjs) documentation for more information.

### `connect.core.onInitialized()`
```js
connect.core.onInitialized(function() { /* ... */ });
```
Subscribes a callback that executes when the CCP initialization is completed.

## Event Subscription
Event subscriptions link your app into the heartbeat of Amazon Connect by allowing your
code to be called when new agent information is available.
Expand Down Expand Up @@ -1549,6 +1555,8 @@ Use the following methods to integrate Voice ID into your existing agent web app
Enroll a customer to Voice ID using a click of a button.
### `voiceConnection.evaluateSpeakerWithVoiceId()`
Check the customer's Voice ID verification status.
### `voiceConnection.evaluateSpeakerWithVoiceId(true)`
Start a new audio stream to check the customer's Voice ID verification status.
### `voiceConnection.optOutVoiceIdSpeaker()`
Opt out a customer from Voice ID.
### `voiceConnection.getVoiceIdSpeakerStatus()`
Expand Down
7 changes: 0 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,6 @@ SOURCE_FILES = src/aws-client.js \
$(OUTPUT_JS): $(SOURCE_FILES)
cat $^ >$@

$(OUTPUT_DR_JS): $(DR_SOURCE_FILES)
cat $^ >$@
base64 -w 0 $(OUTPUT_JS) > connect-streams-base64.txt
sed -i '1s/^/ var LATEST_STREAMJS_BASE64_CODE = "/' connect-streams-base64.txt
echo '";' >> connect-streams-base64.txt
printf '%s\n' '/INSERT_LATEST_STREAMJS_BASE64_CODE/r connect-streams-base64.txt' 1 '/INSERT_LATEST_STREAMJS_BASE64_CODE/d' w | ed $@

clean:
rm -f $(OUTPUT_JS)

Expand Down
5 changes: 2 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,15 @@ gulp.task('watch', function() {
});

gulp.task('script', function (cb) {
var streamJs = sourceCode.streamJs;
pump([
gulp.src(streamJs.sources),
gulp.src(source),
jshint(),
replace("STREAMS_VERSION", process.env.npm_package_version),
concat('connect-streams.js'),
gulp.dest('./release/'),
rename('connect-streams-min.js'),
uglify(),
gulp.dest(DESTINATION_FOLDER)
gulp.dest('./release/')
], cb);
});

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "amazon-connect-streams",
"version": "1.6.4",
"version": "1.6.5",
"description": "Amazon Connect Streams Library",
"engines": {
"node": ">=12.0.0"
Expand All @@ -14,7 +14,7 @@
],
"main": "release/connect-streams.js",
"types": "src/index.d.ts",
"repository": {
"repository": {
"type": "git",
"url": "git+https://github.com/amazon-connect/amazon-connect-streams.git"
},
Expand Down Expand Up @@ -56,4 +56,4 @@
"sinon": "^9.0.0",
"typescript": "3.0.1"
}
}
}
2 changes: 1 addition & 1 deletion release/connect-streams-min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 60b2e86

Please sign in to comment.