Skip to content
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

[Bug] Incorrect API values after type AgentStateType update #931

Open
vtrofin opened this issue Sep 25, 2024 · 0 comments
Open

[Bug] Incorrect API values after type AgentStateType update #931

vtrofin opened this issue Sep 25, 2024 · 0 comments

Comments

@vtrofin
Copy link

vtrofin commented Sep 25, 2024

Hi there,

I'm writing to report that I've encountered an issue when using the AgentStateType enum in the latest API version.

    "amazon-connect-streams": "^2.14.6",
enum AgentStateType {
    /** The agent state hasn't been initialized yet. */
    INIT = "init",

    /** The agent is in a state where they can be routed contacts. */
    ROUTABLE = "routable",

    /** The agent is in a state where they cannot be routed contacts. */
    NOT_ROUTABLE = "not_routable",

    /** The agent is offline. */
    OFFLINE = "offline",

    /** The agent is in a system state. */
    SYSTEM = "system",

    /** The agent is in a error state. */
    ERROR = "error",
  }

The type has been updated but the underlying values haven't been updated in the library

   * enum AgentStateType
   */
  connect.AgentStateType = connect.makeEnum([
    'init',
    'routable',
    'not_routable',
    'offline'
  ]);
  connect.AgentStatusType = connect.AgentStateType;

so this value connect.AgentStateType.SYSTEM equals undefined.

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

No branches or pull requests

1 participant