-
Notifications
You must be signed in to change notification settings - Fork 2
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
[Voice] - support for the whole API #27
Merged
Merged
Changes from all commits
Commits
Show all changes
53 commits
Select commit
Hold shift + click to select a range
48d409a
feat(Voice): WiP
650elx b5a4a19
feat(Voice): region handling
650elx 4ba5eea
feat(Voice): WiP
650elx d9d8ed2
test(Voice): e2e for updating call
650elx f541175
feat(Voice): naming aligned
650elx df58658
feat(Voice): Price DTO added
650elx c6d93db
feat(Voice): better naming
650elx efbcd6c
feat(Voice): Manage call endpoint added
650elx 9e05762
feat(Voice): bring back regions enum
650elx be0b34d
feat(Voice): Destination dataclass added
650elx 4a12fd5
feat(CI): Voice related env vars added
650elx 7ede865
feat(Voice): apps and conferences WiP
650elx 31c65d3
feat(Voice): WiP
650elx cdfc926
style(pep8): redundant empty line removed
650elx 20917c5
fix(CI): typo
650elx ea22a2b
fix(style): redundant white line removed
650elx 6aa94e0
feat(Voice): ConferenceDTMFOptionsMode added
650elx 9d9cd2a
feat(Voice): align naming to other SDKs
650elx f9694b2
feat(Voice): missing DTO property added
650elx 16aa654
fix(Verification): typo
650elx 9030475
test(Voice): enable update call e2e tests
650elx b78427b
test(Voice): async tests added to callouts
650elx 10dc71f
fix(Voice): missing env variable definition
650elx bf1b61a
feat(Voice): SVAML support
650elx cd91ca4
test(Voice): use SVAML DTOs
650elx 082d2ba
feat(Voice): SVAML WiP
650elx 7d8fb98
feat(Voice): additional conference call method
650elx 6afa46f
feat(Voice): Literal type for domain arg
650elx 324ddfb
feat(Voice): rename model
650elx 29997e9
feat(Voice): DTO adapted to the facade changes
650elx 90a9537
fix: typo
650elx 24b0351
fix: naming convetion
650elx 3d6b44c
feat(Voice): represent timestamps as datetime
650elx 05b6ac2
feat(Voice): timestamp format compatible with older versions of Python
650elx c8a47d0
feat(SVAML): __all__ added
650elx 69b2096
feat(Voice): type hint for Destination type added
650elx c344d7a
feat(Voice): mode type hints added
650elx e0d0a98
feat(SVAML): Indications enum added
650elx 5a0d073
fix(Voice): missing property transformation
650elx 96dfa8a
fix(Voice): better Enum naming
650elx e12a149
fix: remove redundant property
650elx 164eb95
fix(SVAML): missing transformations added
650elx a0dbff0
feat(SVAML): missing transformation added
650elx 0cba99c
feat(Voice): domain type hint added
650elx 9def0cc
feat(Voice): missing transformation added
650elx b41187d
feat(Voice): timestamp validation added
650elx cac25fe
feat(Voice): type hits for instructions added
650elx e7d795f
fix(Voice): missing type added
650elx 3a3e3c6
fix(Voice): response handling improved
650elx d74934d
fix(Voice): wrong type
650elx 01a2d10
feat(Voice): capability enum added
650elx 73d7ea2
feat(Voice): more comples type hint added
650elx 9acaf65
feat(Voice): better type annotation
650elx File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from datetime import datetime | ||
|
||
|
||
def timestamp_to_datetime_in_utc_deserializer(timestamp: str): | ||
""" | ||
Older Python versions (like 3.9) do not support "Z" as a TZ information. | ||
One needs to use '+00:00' to represent UTC tz. | ||
""" | ||
if timestamp.endswith("Z"): | ||
timestamp = timestamp[:-1] | ||
|
||
return datetime.fromisoformat(timestamp + "+00:00") |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's not used, and overrieded below, but it would be a dot after
calling
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://developers.sinch.com/docs/voice/api-reference/voice/tag/Applications/
I think there is a separate endpoint for
Applications
:url = "https://callingapi.sinch.com/v1/configuration/numbers"