Skip to content

Commit 6725389

Browse files
onesignal-deployOneSignal
andauthored
feat: add v5.4.0 package updates (#67)
Co-authored-by: OneSignal <noreply@onesignal.com>
1 parent 7b7df03 commit 6725389

157 files changed

Lines changed: 389 additions & 189 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
1515

16-
- API version: 5.3.0
17-
- Package version: 5.3.0
16+
- API version: 5.4.0
17+
- Package version: 5.4.0
1818

1919
## Requirements
2020

docs/BasicNotification.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ Name | Type | Description | Notes
5555
**buttons** | [**[Button], none_type**](Button.md) | Channel: Push Notifications Platform: iOS 8.0+, Android 4.1+, and derivatives like Amazon Buttons to add to the notification. Icon only works for Android. Buttons show in reverse order of array position i.e. Last item in array shows as first button on device. Example: [{\"id\": \"id2\", \"text\": \"second button\", \"icon\": \"ic_menu_share\"}, {\"id\": \"id1\", \"text\": \"first button\", \"icon\": \"ic_menu_send\"}] | [optional]
5656
**web_buttons** | [**[WebButton], none_type**](WebButton.md) | Channel: Push Notifications Platform: Chrome 48+ Add action buttons to the notification. The id field is required. Example: [{\"id\": \"like-button\", \"text\": \"Like\", \"icon\": \"http://i.imgur.com/N8SN8ZS.png\", \"url\": \"https://yoursite.com\"}, {\"id\": \"read-more-button\", \"text\": \"Read more\", \"icon\": \"http://i.imgur.com/MIxJp1L.png\", \"url\": \"https://yoursite.com\"}] | [optional]
5757
**ios_category** | **str, none_type** | Channel: Push Notifications Platform: iOS Category APS payload, use with registerUserNotificationSettings:categories in your Objective-C / Swift code. Example: calendar category which contains actions like accept and decline iOS 10+ This will trigger your UNNotificationContentExtension whose ID matches this category. | [optional]
58-
**android_channel_id** | **str** | Channel: Push Notifications Platform: Android The Android Oreo Notification Category to send the notification under. See the Category documentation on creating one and getting it's id. | [optional]
58+
**android_channel_id** | **str, none_type** | Channel: Push Notifications Platform: Android The Android Oreo Notification Category to send the notification under. See the Category documentation on creating one and getting it's id. | [optional]
5959
**huawei_channel_id** | **str, none_type** | Channel: Push Notifications Platform: Huawei The Android Oreo Notification Category to send the notification under. See the Category documentation on creating one and getting it's id. | [optional]
60-
**existing_android_channel_id** | **str** | Channel: Push Notifications Platform: Android Use this if you have client side Android Oreo Channels you have already defined in your app with code. | [optional]
60+
**existing_android_channel_id** | **str, none_type** | Channel: Push Notifications Platform: Android Use this if you have client side Android Oreo Channels you have already defined in your app with code. | [optional]
6161
**huawei_existing_channel_id** | **str, none_type** | Channel: Push Notifications Platform: Huawei Use this if you have client side Android Oreo Channels you have already defined in your app with code. | [optional]
6262
**android_background_layout** | [**BasicNotificationAllOfAndroidBackgroundLayout**](BasicNotificationAllOfAndroidBackgroundLayout.md) | | [optional]
6363
**small_icon** | **str, none_type** | Channel: Push Notifications Platform: Android Icon shown in the status bar and on the top left of the notification. If not set a bell icon will be used or ic_stat_onesignal_default if you have set this resource name. See: How to create small icons | [optional]

docs/BasicNotificationAllOf.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ Name | Type | Description | Notes
4242
**buttons** | [**[Button], none_type**](Button.md) | Channel: Push Notifications Platform: iOS 8.0+, Android 4.1+, and derivatives like Amazon Buttons to add to the notification. Icon only works for Android. Buttons show in reverse order of array position i.e. Last item in array shows as first button on device. Example: [{\"id\": \"id2\", \"text\": \"second button\", \"icon\": \"ic_menu_share\"}, {\"id\": \"id1\", \"text\": \"first button\", \"icon\": \"ic_menu_send\"}] | [optional]
4343
**web_buttons** | [**[WebButton], none_type**](WebButton.md) | Channel: Push Notifications Platform: Chrome 48+ Add action buttons to the notification. The id field is required. Example: [{\"id\": \"like-button\", \"text\": \"Like\", \"icon\": \"http://i.imgur.com/N8SN8ZS.png\", \"url\": \"https://yoursite.com\"}, {\"id\": \"read-more-button\", \"text\": \"Read more\", \"icon\": \"http://i.imgur.com/MIxJp1L.png\", \"url\": \"https://yoursite.com\"}] | [optional]
4444
**ios_category** | **str, none_type** | Channel: Push Notifications Platform: iOS Category APS payload, use with registerUserNotificationSettings:categories in your Objective-C / Swift code. Example: calendar category which contains actions like accept and decline iOS 10+ This will trigger your UNNotificationContentExtension whose ID matches this category. | [optional]
45-
**android_channel_id** | **str** | Channel: Push Notifications Platform: Android The Android Oreo Notification Category to send the notification under. See the Category documentation on creating one and getting it's id. | [optional]
45+
**android_channel_id** | **str, none_type** | Channel: Push Notifications Platform: Android The Android Oreo Notification Category to send the notification under. See the Category documentation on creating one and getting it's id. | [optional]
4646
**huawei_channel_id** | **str, none_type** | Channel: Push Notifications Platform: Huawei The Android Oreo Notification Category to send the notification under. See the Category documentation on creating one and getting it's id. | [optional]
47-
**existing_android_channel_id** | **str** | Channel: Push Notifications Platform: Android Use this if you have client side Android Oreo Channels you have already defined in your app with code. | [optional]
47+
**existing_android_channel_id** | **str, none_type** | Channel: Push Notifications Platform: Android Use this if you have client side Android Oreo Channels you have already defined in your app with code. | [optional]
4848
**huawei_existing_channel_id** | **str, none_type** | Channel: Push Notifications Platform: Huawei Use this if you have client side Android Oreo Channels you have already defined in your app with code. | [optional]
4949
**android_background_layout** | [**BasicNotificationAllOfAndroidBackgroundLayout**](BasicNotificationAllOfAndroidBackgroundLayout.md) | | [optional]
5050
**small_icon** | **str, none_type** | Channel: Push Notifications Platform: Android Icon shown in the status bar and on the top left of the notification. If not set a bell icon will be used or ic_stat_onesignal_default if you have set this resource name. See: How to create small icons | [optional]

docs/CreateTemplateRequest.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ Name | Type | Description | Notes
77
**app_id** | **str** | Your OneSignal App ID in UUID v4 format. |
88
**name** | **str** | Name of the template. |
99
**contents** | [**LanguageStringMap**](LanguageStringMap.md) | |
10+
**headings** | [**LanguageStringMap**](LanguageStringMap.md) | | [optional]
11+
**subtitle** | [**LanguageStringMap**](LanguageStringMap.md) | | [optional]
1012
**is_email** | **bool** | Set true for an Email template. | [optional]
1113
**email_subject** | **str, none_type** | Subject of the email. | [optional]
1214
**email_body** | **str, none_type** | Body of the email (HTML supported). | [optional]

docs/DefaultApi.md

Lines changed: 180 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -989,6 +989,96 @@ with onesignal.ApiClient(configuration) as api_client:
989989
uk="uk_example",
990990
vi="vi_example",
991991
),
992+
headings=LanguageStringMap(
993+
en="en_example",
994+
ar="ar_example",
995+
bs="bs_example",
996+
bg="bg_example",
997+
ca="ca_example",
998+
zh_hans="zh_hans_example",
999+
zh_hant="zh_hant_example",
1000+
zh="zh_example",
1001+
hr="hr_example",
1002+
cs="cs_example",
1003+
da="da_example",
1004+
nl="nl_example",
1005+
et="et_example",
1006+
fi="fi_example",
1007+
fr="fr_example",
1008+
ka="ka_example",
1009+
de="de_example",
1010+
el="el_example",
1011+
hi="hi_example",
1012+
he="he_example",
1013+
hu="hu_example",
1014+
id="id_example",
1015+
it="it_example",
1016+
ja="ja_example",
1017+
ko="ko_example",
1018+
lv="lv_example",
1019+
lt="lt_example",
1020+
ms="ms_example",
1021+
nb="nb_example",
1022+
pl="pl_example",
1023+
fa="fa_example",
1024+
pt="pt_example",
1025+
pa="pa_example",
1026+
ro="ro_example",
1027+
ru="ru_example",
1028+
sr="sr_example",
1029+
sk="sk_example",
1030+
es="es_example",
1031+
sv="sv_example",
1032+
th="th_example",
1033+
tr="tr_example",
1034+
uk="uk_example",
1035+
vi="vi_example",
1036+
),
1037+
subtitle=LanguageStringMap(
1038+
en="en_example",
1039+
ar="ar_example",
1040+
bs="bs_example",
1041+
bg="bg_example",
1042+
ca="ca_example",
1043+
zh_hans="zh_hans_example",
1044+
zh_hant="zh_hant_example",
1045+
zh="zh_example",
1046+
hr="hr_example",
1047+
cs="cs_example",
1048+
da="da_example",
1049+
nl="nl_example",
1050+
et="et_example",
1051+
fi="fi_example",
1052+
fr="fr_example",
1053+
ka="ka_example",
1054+
de="de_example",
1055+
el="el_example",
1056+
hi="hi_example",
1057+
he="he_example",
1058+
hu="hu_example",
1059+
id="id_example",
1060+
it="it_example",
1061+
ja="ja_example",
1062+
ko="ko_example",
1063+
lv="lv_example",
1064+
lt="lt_example",
1065+
ms="ms_example",
1066+
nb="nb_example",
1067+
pl="pl_example",
1068+
fa="fa_example",
1069+
pt="pt_example",
1070+
pa="pa_example",
1071+
ro="ro_example",
1072+
ru="ru_example",
1073+
sr="sr_example",
1074+
sk="sk_example",
1075+
es="es_example",
1076+
sv="sv_example",
1077+
th="th_example",
1078+
tr="tr_example",
1079+
uk="uk_example",
1080+
vi="vi_example",
1081+
),
9921082
is_email=True,
9931083
email_subject="email_subject_example",
9941084
email_body="email_body_example",
@@ -3655,6 +3745,96 @@ with onesignal.ApiClient(configuration) as api_client:
36553745
uk="uk_example",
36563746
vi="vi_example",
36573747
),
3748+
headings=LanguageStringMap(
3749+
en="en_example",
3750+
ar="ar_example",
3751+
bs="bs_example",
3752+
bg="bg_example",
3753+
ca="ca_example",
3754+
zh_hans="zh_hans_example",
3755+
zh_hant="zh_hant_example",
3756+
zh="zh_example",
3757+
hr="hr_example",
3758+
cs="cs_example",
3759+
da="da_example",
3760+
nl="nl_example",
3761+
et="et_example",
3762+
fi="fi_example",
3763+
fr="fr_example",
3764+
ka="ka_example",
3765+
de="de_example",
3766+
el="el_example",
3767+
hi="hi_example",
3768+
he="he_example",
3769+
hu="hu_example",
3770+
id="id_example",
3771+
it="it_example",
3772+
ja="ja_example",
3773+
ko="ko_example",
3774+
lv="lv_example",
3775+
lt="lt_example",
3776+
ms="ms_example",
3777+
nb="nb_example",
3778+
pl="pl_example",
3779+
fa="fa_example",
3780+
pt="pt_example",
3781+
pa="pa_example",
3782+
ro="ro_example",
3783+
ru="ru_example",
3784+
sr="sr_example",
3785+
sk="sk_example",
3786+
es="es_example",
3787+
sv="sv_example",
3788+
th="th_example",
3789+
tr="tr_example",
3790+
uk="uk_example",
3791+
vi="vi_example",
3792+
),
3793+
subtitle=LanguageStringMap(
3794+
en="en_example",
3795+
ar="ar_example",
3796+
bs="bs_example",
3797+
bg="bg_example",
3798+
ca="ca_example",
3799+
zh_hans="zh_hans_example",
3800+
zh_hant="zh_hant_example",
3801+
zh="zh_example",
3802+
hr="hr_example",
3803+
cs="cs_example",
3804+
da="da_example",
3805+
nl="nl_example",
3806+
et="et_example",
3807+
fi="fi_example",
3808+
fr="fr_example",
3809+
ka="ka_example",
3810+
de="de_example",
3811+
el="el_example",
3812+
hi="hi_example",
3813+
he="he_example",
3814+
hu="hu_example",
3815+
id="id_example",
3816+
it="it_example",
3817+
ja="ja_example",
3818+
ko="ko_example",
3819+
lv="lv_example",
3820+
lt="lt_example",
3821+
ms="ms_example",
3822+
nb="nb_example",
3823+
pl="pl_example",
3824+
fa="fa_example",
3825+
pt="pt_example",
3826+
pa="pa_example",
3827+
ro="ro_example",
3828+
ru="ru_example",
3829+
sr="sr_example",
3830+
sk="sk_example",
3831+
es="es_example",
3832+
sv="sv_example",
3833+
th="th_example",
3834+
tr="tr_example",
3835+
uk="uk_example",
3836+
vi="vi_example",
3837+
),
36583838
is_email=True,
36593839
email_subject="email_subject_example",
36603840
email_body="email_body_example",

docs/Notification.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ Name | Type | Description | Notes
5555
**buttons** | [**[Button], none_type**](Button.md) | Channel: Push Notifications Platform: iOS 8.0+, Android 4.1+, and derivatives like Amazon Buttons to add to the notification. Icon only works for Android. Buttons show in reverse order of array position i.e. Last item in array shows as first button on device. Example: [{\"id\": \"id2\", \"text\": \"second button\", \"icon\": \"ic_menu_share\"}, {\"id\": \"id1\", \"text\": \"first button\", \"icon\": \"ic_menu_send\"}] | [optional]
5656
**web_buttons** | [**[WebButton], none_type**](WebButton.md) | Channel: Push Notifications Platform: Chrome 48+ Add action buttons to the notification. The id field is required. Example: [{\"id\": \"like-button\", \"text\": \"Like\", \"icon\": \"http://i.imgur.com/N8SN8ZS.png\", \"url\": \"https://yoursite.com\"}, {\"id\": \"read-more-button\", \"text\": \"Read more\", \"icon\": \"http://i.imgur.com/MIxJp1L.png\", \"url\": \"https://yoursite.com\"}] | [optional]
5757
**ios_category** | **str, none_type** | Channel: Push Notifications Platform: iOS Category APS payload, use with registerUserNotificationSettings:categories in your Objective-C / Swift code. Example: calendar category which contains actions like accept and decline iOS 10+ This will trigger your UNNotificationContentExtension whose ID matches this category. | [optional]
58-
**android_channel_id** | **str** | Channel: Push Notifications Platform: Android The Android Oreo Notification Category to send the notification under. See the Category documentation on creating one and getting it's id. | [optional]
58+
**android_channel_id** | **str, none_type** | Channel: Push Notifications Platform: Android The Android Oreo Notification Category to send the notification under. See the Category documentation on creating one and getting it's id. | [optional]
5959
**huawei_channel_id** | **str, none_type** | Channel: Push Notifications Platform: Huawei The Android Oreo Notification Category to send the notification under. See the Category documentation on creating one and getting it's id. | [optional]
60-
**existing_android_channel_id** | **str** | Channel: Push Notifications Platform: Android Use this if you have client side Android Oreo Channels you have already defined in your app with code. | [optional]
60+
**existing_android_channel_id** | **str, none_type** | Channel: Push Notifications Platform: Android Use this if you have client side Android Oreo Channels you have already defined in your app with code. | [optional]
6161
**huawei_existing_channel_id** | **str, none_type** | Channel: Push Notifications Platform: Huawei Use this if you have client side Android Oreo Channels you have already defined in your app with code. | [optional]
6262
**android_background_layout** | [**BasicNotificationAllOfAndroidBackgroundLayout**](BasicNotificationAllOfAndroidBackgroundLayout.md) | | [optional]
6363
**small_icon** | **str, none_type** | Channel: Push Notifications Platform: Android Icon shown in the status bar and on the top left of the notification. If not set a bell icon will be used or ic_stat_onesignal_default if you have set this resource name. See: How to create small icons | [optional]

docs/NotificationWithMeta.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ Name | Type | Description | Notes
5555
**buttons** | [**[Button], none_type**](Button.md) | Channel: Push Notifications Platform: iOS 8.0+, Android 4.1+, and derivatives like Amazon Buttons to add to the notification. Icon only works for Android. Buttons show in reverse order of array position i.e. Last item in array shows as first button on device. Example: [{\"id\": \"id2\", \"text\": \"second button\", \"icon\": \"ic_menu_share\"}, {\"id\": \"id1\", \"text\": \"first button\", \"icon\": \"ic_menu_send\"}] | [optional]
5656
**web_buttons** | [**[WebButton], none_type**](WebButton.md) | Channel: Push Notifications Platform: Chrome 48+ Add action buttons to the notification. The id field is required. Example: [{\"id\": \"like-button\", \"text\": \"Like\", \"icon\": \"http://i.imgur.com/N8SN8ZS.png\", \"url\": \"https://yoursite.com\"}, {\"id\": \"read-more-button\", \"text\": \"Read more\", \"icon\": \"http://i.imgur.com/MIxJp1L.png\", \"url\": \"https://yoursite.com\"}] | [optional]
5757
**ios_category** | **str, none_type** | Channel: Push Notifications Platform: iOS Category APS payload, use with registerUserNotificationSettings:categories in your Objective-C / Swift code. Example: calendar category which contains actions like accept and decline iOS 10+ This will trigger your UNNotificationContentExtension whose ID matches this category. | [optional]
58-
**android_channel_id** | **str** | Channel: Push Notifications Platform: Android The Android Oreo Notification Category to send the notification under. See the Category documentation on creating one and getting it's id. | [optional]
58+
**android_channel_id** | **str, none_type** | Channel: Push Notifications Platform: Android The Android Oreo Notification Category to send the notification under. See the Category documentation on creating one and getting it's id. | [optional]
5959
**huawei_channel_id** | **str, none_type** | Channel: Push Notifications Platform: Huawei The Android Oreo Notification Category to send the notification under. See the Category documentation on creating one and getting it's id. | [optional]
60-
**existing_android_channel_id** | **str** | Channel: Push Notifications Platform: Android Use this if you have client side Android Oreo Channels you have already defined in your app with code. | [optional]
60+
**existing_android_channel_id** | **str, none_type** | Channel: Push Notifications Platform: Android Use this if you have client side Android Oreo Channels you have already defined in your app with code. | [optional]
6161
**huawei_existing_channel_id** | **str, none_type** | Channel: Push Notifications Platform: Huawei Use this if you have client side Android Oreo Channels you have already defined in your app with code. | [optional]
6262
**android_background_layout** | [**BasicNotificationAllOfAndroidBackgroundLayout**](BasicNotificationAllOfAndroidBackgroundLayout.md) | | [optional]
6363
**small_icon** | **str, none_type** | Channel: Push Notifications Platform: Android Icon shown in the status bar and on the top left of the notification. If not set a bell icon will be used or ic_stat_onesignal_default if you have set this resource name. See: How to create small icons | [optional]

docs/UpdateTemplateRequest.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**name** | **str** | Updated name of the template. | [optional]
88
**contents** | [**LanguageStringMap**](LanguageStringMap.md) | | [optional]
9+
**headings** | [**LanguageStringMap**](LanguageStringMap.md) | | [optional]
10+
**subtitle** | [**LanguageStringMap**](LanguageStringMap.md) | | [optional]
911
**is_email** | **bool** | Set true for an Email template. | [optional]
1012
**email_subject** | **str, none_type** | Subject of the email. | [optional]
1113
**email_body** | **str, none_type** | Body of the email (HTML supported). | [optional]

0 commit comments

Comments
 (0)