Skip to content

Commit

Permalink
add support for AGENT source (attempt 2) (#42)
Browse files Browse the repository at this point in the history
J=CLIP-1341
TEST=auto

ran `npm run test`
  • Loading branch information
anguyen-yext2 authored Jul 15, 2024
1 parent e3e9736 commit 21c5218
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 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.messagesource.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export declare enum MessageSource

| Member | Value | Description |
| --- | --- | --- |
| AGENT | <code>&quot;AGENT&quot;</code> | From third-party integration. |
| BOT | <code>&quot;BOT&quot;</code> | From Chat API server. |
| USER | <code>&quot;USER&quot;</code> | From a user. |

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 @@ -124,6 +124,7 @@ export interface MessageResponse {

// @public
export enum MessageSource {
AGENT = "AGENT",
BOT = "BOT",
USER = "USER"
}
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.2",
"version": "0.9.0",
"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/endpoints/Message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,6 @@ export enum MessageSource {
USER = "USER",
/** From Chat API server. */
BOT = "BOT",
/** From third-party integration. */
AGENT = "AGENT",
}

0 comments on commit 21c5218

Please sign in to comment.