Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ docs/UpdateExtraDataInAMessageResponse.md
docs/UpdatePushPreferencesForAChannelRequest.md
docs/UpdatePushPreferencesForAChannelResponse.md
docs/UpdatePushPreferencesRequest.md
docs/UpdatePushPreferencesRequestDndSchedulesInner.md
docs/UpdatePushPreferencesRequestDndSchedulesInnerTimeWindowsInner.md
docs/UpdatePushPreferencesResponse.md
docs/UpdateSpecificUserMetadataRequest.md
docs/UpdateUserMetadataRequest.md
Expand Down Expand Up @@ -302,6 +304,8 @@ sendbird_platform_sdk/model/update_extra_data_in_a_message_response.py
sendbird_platform_sdk/model/update_push_preferences_for_a_channel_request.py
sendbird_platform_sdk/model/update_push_preferences_for_a_channel_response.py
sendbird_platform_sdk/model/update_push_preferences_request.py
sendbird_platform_sdk/model/update_push_preferences_request_dnd_schedules_inner.py
sendbird_platform_sdk/model/update_push_preferences_request_dnd_schedules_inner_time_windows_inner.py
sendbird_platform_sdk/model/update_push_preferences_response.py
sendbird_platform_sdk/model/update_specific_user_metadata_request.py
sendbird_platform_sdk/model/update_user_metadata_request.py
Expand Down
1 change: 1 addition & 0 deletions docs/UpdatePushPreferencesRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Name | Type | Description | Notes
**start_hour** | **int** | | [optional]
**start_min** | **int** | | [optional]
**timezone** | **str** | | [optional]
**dnd_schedules** | [**[UpdatePushPreferencesRequestDndSchedulesInner]**](UpdatePushPreferencesRequestDndSchedulesInner.md) | | [optional]
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
13 changes: 13 additions & 0 deletions docs/UpdatePushPreferencesRequestDndSchedulesInner.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# UpdatePushPreferencesRequestDndSchedulesInner


## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**day_of_week** | **str** | | [optional]
**time_windows** | [**[UpdatePushPreferencesRequestDndSchedulesInnerTimeWindowsInner]**](UpdatePushPreferencesRequestDndSchedulesInnerTimeWindowsInner.md) | | [optional]
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# UpdatePushPreferencesRequestDndSchedulesInnerTimeWindowsInner


## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**start_hour** | **int** | | [optional]
**start_min** | **int** | | [optional]
**end_hour** | **int** | | [optional]
**end_min** | **int** | | [optional]
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


1 change: 1 addition & 0 deletions docs/UpdatePushPreferencesResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Name | Type | Description | Notes
**start_hour** | **int** | | [optional]
**start_min** | **int** | | [optional]
**timezone** | **str** | | [optional]
**dnd_schedules** | [**[UpdatePushPreferencesRequestDndSchedulesInner]**](UpdatePushPreferencesRequestDndSchedulesInner.md) | | [optional]
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
13 changes: 13 additions & 0 deletions docs/UserApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -1887,6 +1887,19 @@ with sendbird_platform_sdk.ApiClient() as api_client:
start_hour=1,
start_min=1,
timezone="timezone_example",
dnd_schedules=[
UpdatePushPreferencesRequestDndSchedulesInner(
day_of_week="monday",
time_windows=[
UpdatePushPreferencesRequestDndSchedulesInnerTimeWindowsInner(
start_hour=1,
start_min=1,
end_hour=1,
end_min=1,
),
],
),
],
) # UpdatePushPreferencesRequest | (optional)

# example passing only required values which don't have defaults set
Expand Down
1 change: 1 addition & 0 deletions docs/ViewPushPreferencesResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Name | Type | Description | Notes
**start_hour** | **int** | | [optional]
**start_min** | **int** | | [optional]
**timezone** | **str** | | [optional]
**dnd_schedules** | [**[UpdatePushPreferencesRequestDndSchedulesInner]**](UpdatePushPreferencesRequestDndSchedulesInner.md) | | [optional]
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
2 changes: 1 addition & 1 deletion sendbird_platform_sdk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"""


__version__ = "2.1.2"
__version__ = "2.1.5"

# import ApiClient
from sendbird_platform_sdk.api_client import ApiClient
Expand Down
2 changes: 1 addition & 1 deletion sendbird_platform_sdk/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'OpenAPI-Generator/2.1.2/python'
self.user_agent = 'OpenAPI-Generator/2.1.5/python'

def __enter__(self):
return self
Expand Down
2 changes: 1 addition & 1 deletion sendbird_platform_sdk/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ def to_debug_report(self):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 1.0.0\n"\
"SDK Package Version: 2.1.2".\
"SDK Package Version: 2.1.5".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@

def lazy_import():
from sendbird_platform_sdk.model.sendbird_push_trigger_option import SendbirdPushTriggerOption
from sendbird_platform_sdk.model.update_push_preferences_request_dnd_schedules_inner import UpdatePushPreferencesRequestDndSchedulesInner
globals()['SendbirdPushTriggerOption'] = SendbirdPushTriggerOption
globals()['UpdatePushPreferencesRequestDndSchedulesInner'] = UpdatePushPreferencesRequestDndSchedulesInner


class UpdatePushPreferencesRequest(ModelNormal):
Expand Down Expand Up @@ -102,6 +104,7 @@ def openapi_types():
'start_hour': (int,), # noqa: E501
'start_min': (int,), # noqa: E501
'timezone': (str,), # noqa: E501
'dnd_schedules': ([UpdatePushPreferencesRequestDndSchedulesInner],), # noqa: E501
}

@cached_property
Expand All @@ -124,6 +127,7 @@ def discriminator():
'start_hour': 'start_hour', # noqa: E501
'start_min': 'start_min', # noqa: E501
'timezone': 'timezone', # noqa: E501
'dnd_schedules': 'dnd_schedules', # noqa: E501
}

read_only_vars = {
Expand Down Expand Up @@ -181,6 +185,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
start_hour (int): [optional] # noqa: E501
start_min (int): [optional] # noqa: E501
timezone (str): [optional] # noqa: E501
dnd_schedules ([UpdatePushPreferencesRequestDndSchedulesInner]): [optional] # noqa: E501
"""

_check_type = kwargs.pop('_check_type', True)
Expand Down Expand Up @@ -280,6 +285,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
start_hour (int): [optional] # noqa: E501
start_min (int): [optional] # noqa: E501
timezone (str): [optional] # noqa: E501
dnd_schedules ([UpdatePushPreferencesRequestDndSchedulesInner]): [optional] # noqa: E501
"""

_check_type = kwargs.pop('_check_type', True)
Expand Down
Loading