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

Conversation API support #13

Merged
merged 21 commits into from
Feb 14, 2024
Merged

Conversation

asein-sinch
Copy link
Collaborator

@asein-sinch asein-sinch commented Jan 24, 2024

Branch to be merged on main when the official documentation will be delivered

@asein-sinch asein-sinch requested a review from a team January 24, 2024 18:23
@asein-sinch asein-sinch marked this pull request as ready for review January 25, 2024 16:49
Copy link

@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.

Part one

@@ -3,10 +3,12 @@ import { Sms } from '@sinch/sms';
import { Verification } from '@sinch/verification';
import { SinchClientParameters } from '@sinch/sdk-client';
import { Voice } from '@sinch/voice';
import { ConversationDomain } from '@sinch/conversation';
Copy link

Choose a reason for hiding this comment

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

Inconsistent naming with other products: why Domain added to conversation?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Because Conversation is already the name of an exported model

Copy link

@Dovchik Dovchik Jan 29, 2024

Choose a reason for hiding this comment

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

AH, dunno, the break in consistency in top api level seems to hit me harder than on model level
Isn't it better to rename the model to ConversationModel?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ConversationModel would then differ from the online documentation.
ConversationDomain is used only by the SinchClient to initialize the class and should not be used by the end user.
Either way it's not ideal

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed

packages/conversation/src/models/v1/enums.ts Outdated Show resolved Hide resolved
@asein-sinch asein-sinch changed the title DEVEXP-272: Generate Conversation Models and APIs Conversation API support Feb 7, 2024
@asein-sinch asein-sinch merged commit 2ed277d into main Feb 14, 2024
2 checks passed
@asein-sinch asein-sinch deleted the DEVEXP-272_Generate-Conversation-Models branch February 14, 2024 09:10
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