Skip to content

feat: add inbox support to message variables handling #47

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ThanhKhoaIT
Copy link

This pull request includes changes to the src/canned.ts and test/canned.test.ts files to add support for the Inbox entity in the message variables. The changes also include updates to the Conversation interface in src/types/conversation.ts.

Add support for Inbox entity:

  • src/canned.ts: Added Inbox to the imports and updated the getMessageVariables function to include inbox in the parameters and return object. [1] [2] [3]
  • src/types/conversation.ts: Added a new Inbox interface with id and name properties.

Update tests to include Inbox:

  • test/canned.test.ts: Updated the variables object to include inbox.id and inbox.name.
  • Added new test cases for conversation.code and inbox.name.
  • Updated the getMessageVariables tests to include inbox. [1] [2] [3] [4]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant