fix(contact-center): exporting missing types which are used in widgets - #5114
fix(contact-center): exporting missing types which are used in widgets#5114Kesari3008 wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8ee12e6f61
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| /** Station logout response */ | ||
| StationLogoutResponse, | ||
| /** Team information returned for agent login */ | ||
| Team, |
There was a problem hiding this comment.
Export the Profile team shape instead
When widgets import Team to type values from the public Profile returned by register(), this new export resolves to src/types.ts's {id, name} shape, but Profile.teams is declared with the config Team shape (teamId, teamName) and the public examples use profile.teams[0].teamId. That means a selected profile team cannot be assigned to the exported Team type, so the missing public type is still exposed incorrectly; re-export the config Team here or alias one of the two names.
Useful? React with 👍 / 👎.
COMPLETES #AD-HOC
This pull request addresses
Missing types exported from SDK so that widgets and other applications can consume it.
by making the following changes
Missing types exported from SDK so that widgets and other applications can consume it.
Change Type
The following scenarios were tested
< ENUMERATE TESTS PERFORMED, WHETHER MANUAL OR AUTOMATED >
The GAI Coding Policy And Copyright Annotation Best Practices
I certified that
Make sure to have followed the contributing guidelines before submitting.