diff --git a/number_insight/CHANGES.md b/number_insight/CHANGES.md index c1abf577..b2d770cb 100644 --- a/number_insight/CHANGES.md +++ b/number_insight/CHANGES.md @@ -1,3 +1,7 @@ +# 1.0.5 +- Fix missed method renaming +- Docstring update + # 1.0.4 - Update dependency versions diff --git a/number_insight/src/vonage_number_insight/_version.py b/number_insight/src/vonage_number_insight/_version.py index 8a81504c..858de170 100644 --- a/number_insight/src/vonage_number_insight/_version.py +++ b/number_insight/src/vonage_number_insight/_version.py @@ -1 +1 @@ -__version__ = '1.0.4' +__version__ = '1.0.5' diff --git a/number_insight/src/vonage_number_insight/number_insight.py b/number_insight/src/vonage_number_insight/number_insight.py index d71790b1..e5cb0039 100644 --- a/number_insight/src/vonage_number_insight/number_insight.py +++ b/number_insight/src/vonage_number_insight/number_insight.py @@ -59,7 +59,7 @@ def get_basic_info(self, options: BasicInsightRequest) -> BasicInsightResponse: return BasicInsightResponse(**response) @validate_call - def standard_number_insight( + def get_standard_info( self, options: StandardInsightRequest ) -> StandardInsightResponse: """Get standard number insight information about a phone number. diff --git a/number_insight/src/vonage_number_insight/requests.py b/number_insight/src/vonage_number_insight/requests.py index 2e57674e..217e65e5 100644 --- a/number_insight/src/vonage_number_insight/requests.py +++ b/number_insight/src/vonage_number_insight/requests.py @@ -33,9 +33,9 @@ class AdvancedAsyncInsightRequest(StandardInsightRequest): Args: number (PhoneNumber): The phone number to get insight information for. + callback (str): The URL to send the asynchronous response to. country (str, Optional): The country code for the phone number. cnam (bool, Optional): Whether to include the Caller ID Name (CNAM) with the response. - callback (str): The URL to send the asynchronous response to. """ callback: str diff --git a/number_insight/tests/test_number_insight.py b/number_insight/tests/test_number_insight.py index 02b7ca63..90536e0f 100644 --- a/number_insight/tests/test_number_insight.py +++ b/number_insight/tests/test_number_insight.py @@ -63,7 +63,7 @@ def test_standard_insight(): 'standard_insight.json', ) options = StandardInsightRequest(number='12345678900', country_code='US', cnam=True) - response = number_insight.standard_number_insight(options) + response = number_insight.get_standard_info(options) assert response.status == 0 assert response.status_message == 'Success' assert response.current_carrier.network_code == '23415' diff --git a/video/CHANGES.md b/video/CHANGES.md index ecaf37cf..242f6f58 100644 --- a/video/CHANGES.md +++ b/video/CHANGES.md @@ -1,3 +1,6 @@ +# 1.0.3 +- Make the filter optional in `Video.list_archives` and `Video.list_broadcasts` + # 1.0.2 - Update dependency versions diff --git a/video/src/vonage_video/_version.py b/video/src/vonage_video/_version.py index a6221b3d..3f6fab60 100644 --- a/video/src/vonage_video/_version.py +++ b/video/src/vonage_video/_version.py @@ -1 +1 @@ -__version__ = '1.0.2' +__version__ = '1.0.3' diff --git a/video/src/vonage_video/video.py b/video/src/vonage_video/video.py index 2bb3ca14..b3ed287e 100644 --- a/video/src/vonage_video/video.py +++ b/video/src/vonage_video/video.py @@ -310,7 +310,7 @@ def list_experience_composers( """Lists Experience Composers associated with your Vonage application. Args: - filter (ListExperienceComposersFilter): Filter for the Experience Composers. + filter (ListExperienceComposersFilter, Optional): Filter for the Experience Composers. Returns: tuple[list[ExperienceComposer], int, Optional[int]]: A tuple containing a list of experience @@ -358,12 +358,12 @@ def stop_experience_composer(self, experience_composer_id: str) -> None: @validate_call def list_archives( - self, filter: ListArchivesFilter + self, filter: ListArchivesFilter = ListArchivesFilter() ) -> tuple[list[Archive], int, Optional[int]]: """Lists archives associated with a Vonage Application. Args: - filter (ListArchivesFilter): The filters for the archives. + filter (ListArchivesFilter, Optional): The filters for the archives. Returns: tuple[list[Archive], int, Optional[int]]: A tuple containing a list of archive objects, @@ -513,12 +513,12 @@ def change_archive_layout(self, archive_id: str, layout: ComposedLayout) -> Arch @validate_call def list_broadcasts( - self, filter: ListBroadcastsFilter + self, filter: ListBroadcastsFilter = ListBroadcastsFilter() ) -> tuple[list[Broadcast], int, Optional[int]]: """Lists broadcasts associated with a Vonage Application. Args: - filter (ListBroadcastsFilter): The filters for the broadcasts. + filter (ListBroadcastsFilter, Optional): The filters for the broadcasts. Returns: tuple[list[Broadcast], int, Optional[int]]: A tuple containing a list of broadcast objects,