Skip to content

Commit

Permalink
chat-core: add region field to integration details section (#37)
Browse files Browse the repository at this point in the history
this is required for the initialization of AWS connect chat session

J=CLIP-1336
TEST=manual

see that region is provided in the response through test-browser-esm site.

will deploy a new patch after merge
  • Loading branch information
yen-tt authored and popestr committed Jul 1, 2024
1 parent ee6bf54 commit dc12ae1
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

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

1 change: 1 addition & 0 deletions packages/chat-core/docs/chat-core.awsconnecthandoff.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ export interface AwsConnectHandoff
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [credentials](./chat-core.awsconnecthandoff.credentials.md) | | [AwsConnectCredentials](./chat-core.awsconnectcredentials.md) | AWS Connect handoff credentials. |
| [region](./chat-core.awsconnecthandoff.region.md) | | string | The region of The AWS Connect instance. |

13 changes: 13 additions & 0 deletions packages/chat-core/docs/chat-core.awsconnecthandoff.region.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@yext/chat-core](./chat-core.md) &gt; [AwsConnectHandoff](./chat-core.awsconnecthandoff.md) &gt; [region](./chat-core.awsconnecthandoff.region.md)

## AwsConnectHandoff.region property

The region of The AWS Connect instance.

**Signature:**

```typescript
region: string;
```
1 change: 1 addition & 0 deletions packages/chat-core/etc/chat-core.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export interface AwsConnectCredentials {
// @public
export interface AwsConnectHandoff {
credentials: AwsConnectCredentials;
region: string;
}

// @public
Expand Down
2 changes: 1 addition & 1 deletion packages/chat-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yext/chat-core",
"version": "0.8.1",
"version": "0.8.2",
"description": "Typescript Networking Library for the Yext Chat API",
"main": "./dist/commonjs/index.js",
"module": "./dist/esm/index.mjs",
Expand Down
2 changes: 2 additions & 0 deletions packages/chat-core/src/models/integrations/AwsConnect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
export interface AwsConnectHandoff {
/** {@inheritdoc AwsConnectCredentials} */
credentials: AwsConnectCredentials;
/** The region of The AWS Connect instance. */
region: string;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/chat-core/test-browser-esm/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 packages/chat-core/test-node-cjs/package-lock.json

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

1 change: 1 addition & 0 deletions packages/chat-core/tests/ChatCore.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ it("returns message response on successful API response", async () => {
participantId: "participant-id",
participantToken: "participant-token",
},
region: "us-east-1",
},
},
};
Expand Down

0 comments on commit dc12ae1

Please sign in to comment.