Skip to content

Commit 6ee22e6

Browse files
committed
updating number insight and video
1 parent 72ada83 commit 6ee22e6

File tree

8 files changed

+17
-10
lines changed

8 files changed

+17
-10
lines changed

number_insight/CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 1.0.5
2+
- Fix missed method renaming
3+
- Docstring update
4+
15
# 1.0.4
26
- Update dependency versions
37

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.0.4'
1+
__version__ = '1.0.5'

number_insight/src/vonage_number_insight/number_insight.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def get_basic_info(self, options: BasicInsightRequest) -> BasicInsightResponse:
5959
return BasicInsightResponse(**response)
6060

6161
@validate_call
62-
def standard_number_insight(
62+
def get_standard_info(
6363
self, options: StandardInsightRequest
6464
) -> StandardInsightResponse:
6565
"""Get standard number insight information about a phone number.

number_insight/src/vonage_number_insight/requests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ class AdvancedAsyncInsightRequest(StandardInsightRequest):
3333
3434
Args:
3535
number (PhoneNumber): The phone number to get insight information for.
36+
callback (str): The URL to send the asynchronous response to.
3637
country (str, Optional): The country code for the phone number.
3738
cnam (bool, Optional): Whether to include the Caller ID Name (CNAM) with the response.
38-
callback (str): The URL to send the asynchronous response to.
3939
"""
4040

4141
callback: str

number_insight/tests/test_number_insight.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def test_standard_insight():
6363
'standard_insight.json',
6464
)
6565
options = StandardInsightRequest(number='12345678900', country_code='US', cnam=True)
66-
response = number_insight.standard_number_insight(options)
66+
response = number_insight.get_standard_info(options)
6767
assert response.status == 0
6868
assert response.status_message == 'Success'
6969
assert response.current_carrier.network_code == '23415'

video/CHANGES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 1.0.3
2+
- Make the filter optional in `Video.list_archives` and `Video.list_broadcasts`
3+
14
# 1.0.2
25
- Update dependency versions
36

video/src/vonage_video/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.0.2'
1+
__version__ = '1.0.3'

video/src/vonage_video/video.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def list_experience_composers(
310310
"""Lists Experience Composers associated with your Vonage application.
311311
312312
Args:
313-
filter (ListExperienceComposersFilter): Filter for the Experience Composers.
313+
filter (ListExperienceComposersFilter, Optional): Filter for the Experience Composers.
314314
315315
Returns:
316316
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:
358358

359359
@validate_call
360360
def list_archives(
361-
self, filter: ListArchivesFilter
361+
self, filter: ListArchivesFilter = ListArchivesFilter()
362362
) -> tuple[list[Archive], int, Optional[int]]:
363363
"""Lists archives associated with a Vonage Application.
364364
365365
Args:
366-
filter (ListArchivesFilter): The filters for the archives.
366+
filter (ListArchivesFilter, Optional): The filters for the archives.
367367
368368
Returns:
369369
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
513513

514514
@validate_call
515515
def list_broadcasts(
516-
self, filter: ListBroadcastsFilter
516+
self, filter: ListBroadcastsFilter = ListBroadcastsFilter()
517517
) -> tuple[list[Broadcast], int, Optional[int]]:
518518
"""Lists broadcasts associated with a Vonage Application.
519519
520520
Args:
521-
filter (ListBroadcastsFilter): The filters for the broadcasts.
521+
filter (ListBroadcastsFilter, Optional): The filters for the broadcasts.
522522
523523
Returns:
524524
tuple[list[Broadcast], int, Optional[int]]: A tuple containing a list of broadcast objects,

0 commit comments

Comments
 (0)