Skip to content

DEVEXP-348: Refactor conversation events#39

Merged
asein-sinch merged 7 commits intomainfrom
DEVEXP-348_Refactor-conversation-events
Mar 18, 2024
Merged

DEVEXP-348: Refactor conversation events#39
asein-sinch merged 7 commits intomainfrom
DEVEXP-348_Refactor-conversation-events

Conversation

@asein-sinch
Copy link
Copy Markdown
Collaborator

No description provided.

@asein-sinch asein-sinch requested a review from a team March 18, 2024 09:30
Copy link
Copy Markdown

@Dovchik Dovchik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, it's a manual edit or you configured generator to generated models with inheritance?

/** @see CapabilityEventCapabilityNotification */
capability_notification?: CapabilityNotification;
/** Name of the trigger responsible for this event. */
trigger: 'CAPABILITY';
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not directly related to PR: How did you figure out the field? From manual testing? I don't see it in oas file nor docs

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trigger is added when parsing the event to set a discriminator. This can then be used by the SDK user to handle the event

Base automatically changed from DEVEXP-345_Support-ContactMessageEvent to main March 18, 2024 10:50
@asein-sinch
Copy link
Copy Markdown
Collaborator Author

LGTM, it's a manual edit or you configured generator to generated models with inheritance?

It's a manual edit, there are no official specs for events at the moment

@asein-sinch asein-sinch merged commit 5e06b79 into main Mar 18, 2024
@asein-sinch asein-sinch deleted the DEVEXP-348_Refactor-conversation-events branch March 18, 2024 10:54
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.

3 participants