Skip to content

Commit daa69ee

Browse files
authored
Merge pull request #41 from OneSignal/api
Add v2.2.0 package updates
2 parents 9e3b8f4 + 32046ca commit daa69ee

File tree

158 files changed

+250
-174
lines changed

Some content is hidden

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

158 files changed

+250
-174
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ A powerful way to send personalized messages at scale and build effective custom
66

77
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
88

9-
- API version: 1.3.0
10-
- Package version: 2.1.0
9+
- API version: 1.4.0
10+
- Package version: 2.2.0
1111
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
1212
For more information, please visit [https://onesignal.com](https://onesignal.com)
1313

@@ -24,16 +24,16 @@ gem build onesignal.gemspec
2424
Then either install the gem locally:
2525

2626
```shell
27-
gem install ./onesignal-2.1.0.gem
27+
gem install ./onesignal-2.2.0.gem
2828
```
2929

30-
(for development, run `gem install --dev ./onesignal-2.1.0.gem` to install the development dependencies)
30+
(for development, run `gem install --dev ./onesignal-2.2.0.gem` to install the development dependencies)
3131

3232
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
3333

3434
Finally add this to the Gemfile:
3535

36-
gem 'onesignal', '~> 2.1.0'
36+
gem 'onesignal', '~> 2.2.0'
3737

3838
### Install from Git
3939

docs/BasicNotification.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
| **is_chrome** | **Boolean** | This flag is not used for web push Please see isChromeWeb for sending to web push users. This flag only applies to Google Chrome Apps & Extensions. Indicates whether to send to all devices registered under your app's Google Chrome Apps & Extension platform. | [optional] |
3535
| **channel_for_external_user_ids** | **String** | Indicates if the message type when targeting with include_external_user_ids for cases where an email, sms, and/or push subscribers have the same external user id. Example: Use the string \"push\" to indicate you are sending a push notification or the string \"email\"for sending emails or \"sms\"for sending SMS. | [optional] |
3636
| **app_id** | **String** | Required: Your OneSignal Application ID, which can be found in Keys & IDs. It is a UUID and looks similar to 8250eaf6-1a58-489e-b136-7c74a864b434. | |
37-
| **external_id** | **String** | Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it's important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true | [optional] |
37+
| **external_id** | **String** | [DEPRECATED] Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it's important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true | [optional] |
38+
| **idempotency_key** | **String** | Correlation and idempotency key. A request received with this parameter will first look for another notification with the same idempotency key. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it's important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same idempotency key will be sent again. See Idempotent Notification Requests for more details writeOnly: true | [optional] |
3839
| **contents** | [**StringMap**](StringMap.md) | | [optional] |
3940
| **headings** | [**StringMap**](StringMap.md) | | [optional] |
4041
| **subtitle** | [**StringMap**](StringMap.md) | | [optional] |
@@ -148,6 +149,7 @@ instance = OneSignal::BasicNotification.new(
148149
channel_for_external_user_ids: null,
149150
app_id: null,
150151
external_id: null,
152+
idempotency_key: null,
151153
contents: null,
152154
headings: null,
153155
subtitle: null,

docs/BasicNotificationAllOf.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
| **is_chrome** | **Boolean** | This flag is not used for web push Please see isChromeWeb for sending to web push users. This flag only applies to Google Chrome Apps & Extensions. Indicates whether to send to all devices registered under your app's Google Chrome Apps & Extension platform. | [optional] |
2121
| **channel_for_external_user_ids** | **String** | Indicates if the message type when targeting with include_external_user_ids for cases where an email, sms, and/or push subscribers have the same external user id. Example: Use the string \"push\" to indicate you are sending a push notification or the string \"email\"for sending emails or \"sms\"for sending SMS. | [optional] |
2222
| **app_id** | **String** | Required: Your OneSignal Application ID, which can be found in Keys & IDs. It is a UUID and looks similar to 8250eaf6-1a58-489e-b136-7c74a864b434. | [optional] |
23-
| **external_id** | **String** | Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it's important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true | [optional] |
23+
| **external_id** | **String** | [DEPRECATED] Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it's important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true | [optional] |
24+
| **idempotency_key** | **String** | Correlation and idempotency key. A request received with this parameter will first look for another notification with the same idempotency key. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it's important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same idempotency key will be sent again. See Idempotent Notification Requests for more details writeOnly: true | [optional] |
2425
| **contents** | [**StringMap**](StringMap.md) | | [optional] |
2526
| **headings** | [**StringMap**](StringMap.md) | | [optional] |
2627
| **subtitle** | [**StringMap**](StringMap.md) | | [optional] |
@@ -120,6 +121,7 @@ instance = OneSignal::BasicNotificationAllOf.new(
120121
channel_for_external_user_ids: null,
121122
app_id: null,
122123
external_id: null,
124+
idempotency_key: null,
123125
contents: null,
124126
headings: null,
125127
subtitle: null,

docs/Notification.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
| **is_chrome** | **Boolean** | This flag is not used for web push Please see isChromeWeb for sending to web push users. This flag only applies to Google Chrome Apps & Extensions. Indicates whether to send to all devices registered under your app's Google Chrome Apps & Extension platform. | [optional] |
3535
| **channel_for_external_user_ids** | **String** | Indicates if the message type when targeting with include_external_user_ids for cases where an email, sms, and/or push subscribers have the same external user id. Example: Use the string \"push\" to indicate you are sending a push notification or the string \"email\"for sending emails or \"sms\"for sending SMS. | [optional] |
3636
| **app_id** | **String** | Required: Your OneSignal Application ID, which can be found in Keys & IDs. It is a UUID and looks similar to 8250eaf6-1a58-489e-b136-7c74a864b434. | |
37-
| **external_id** | **String** | Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it's important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true | [optional] |
37+
| **external_id** | **String** | [DEPRECATED] Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it's important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true | [optional] |
38+
| **idempotency_key** | **String** | Correlation and idempotency key. A request received with this parameter will first look for another notification with the same idempotency key. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it's important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same idempotency key will be sent again. See Idempotent Notification Requests for more details writeOnly: true | [optional] |
3839
| **contents** | [**StringMap**](StringMap.md) | | [optional] |
3940
| **headings** | [**StringMap**](StringMap.md) | | [optional] |
4041
| **subtitle** | [**StringMap**](StringMap.md) | | [optional] |
@@ -149,6 +150,7 @@ instance = OneSignal::Notification.new(
149150
channel_for_external_user_ids: null,
150151
app_id: null,
151152
external_id: null,
153+
idempotency_key: null,
152154
contents: null,
153155
headings: null,
154156
subtitle: null,

docs/NotificationWithMeta.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
| **is_chrome** | **Boolean** | This flag is not used for web push Please see isChromeWeb for sending to web push users. This flag only applies to Google Chrome Apps & Extensions. Indicates whether to send to all devices registered under your app's Google Chrome Apps & Extension platform. | [optional] |
3535
| **channel_for_external_user_ids** | **String** | Indicates if the message type when targeting with include_external_user_ids for cases where an email, sms, and/or push subscribers have the same external user id. Example: Use the string \"push\" to indicate you are sending a push notification or the string \"email\"for sending emails or \"sms\"for sending SMS. | [optional] |
3636
| **app_id** | **String** | Required: Your OneSignal Application ID, which can be found in Keys & IDs. It is a UUID and looks similar to 8250eaf6-1a58-489e-b136-7c74a864b434. | |
37-
| **external_id** | **String** | Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it's important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true | [optional] |
37+
| **external_id** | **String** | [DEPRECATED] Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it's important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true | [optional] |
38+
| **idempotency_key** | **String** | Correlation and idempotency key. A request received with this parameter will first look for another notification with the same idempotency key. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it's important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same idempotency key will be sent again. See Idempotent Notification Requests for more details writeOnly: true | [optional] |
3839
| **contents** | [**StringMap**](StringMap.md) | | [optional] |
3940
| **headings** | [**StringMap**](StringMap.md) | | [optional] |
4041
| **subtitle** | [**StringMap**](StringMap.md) | | [optional] |
@@ -159,6 +160,7 @@ instance = OneSignal::NotificationWithMeta.new(
159160
channel_for_external_user_ids: null,
160161
app_id: null,
161162
external_id: null,
163+
idempotency_key: null,
162164
contents: null,
163165
headings: null,
164166
subtitle: null,

lib/onesignal.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
55
6-
The version of the OpenAPI document: 1.3.0
6+
The version of the OpenAPI document: 1.4.0
77
88
Generated by: https://openapi-generator.tech
99
OpenAPI Generator version: 6.0.0-SNAPSHOT

lib/onesignal/api/default_api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
55
6-
The version of the OpenAPI document: 1.3.0
6+
The version of the OpenAPI document: 1.4.0
77
88
Generated by: https://openapi-generator.tech
99
OpenAPI Generator version: 6.0.0-SNAPSHOT

lib/onesignal/api_client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
55
6-
The version of the OpenAPI document: 1.3.0
6+
The version of the OpenAPI document: 1.4.0
77
88
Generated by: https://openapi-generator.tech
99
OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -90,7 +90,7 @@ def build_request(http_method, path, opts = {})
9090
url = build_request_url(path, opts)
9191
http_method = http_method.to_sym.downcase
9292

93-
opts[:header_params]['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-ruby, version=2.1.0'
93+
opts[:header_params]['OS-Usage-Data'] = 'kind=sdk, sdk-name=onesignal-ruby, version=2.2.0'
9494
header_params = @default_headers.merge(opts[:header_params] || {})
9595
query_params = opts[:query_params] || {}
9696
form_params = opts[:form_params] || {}

lib/onesignal/api_error.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
55
6-
The version of the OpenAPI document: 1.3.0
6+
The version of the OpenAPI document: 1.4.0
77
88
Generated by: https://openapi-generator.tech
99
OpenAPI Generator version: 6.0.0-SNAPSHOT

lib/onesignal/configuration.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
55
6-
The version of the OpenAPI document: 1.3.0
6+
The version of the OpenAPI document: 1.4.0
77
88
Generated by: https://openapi-generator.tech
99
OpenAPI Generator version: 6.0.0-SNAPSHOT
@@ -180,14 +180,14 @@ def auth_settings
180180
type: 'bearer',
181181
in: 'header',
182182
key: 'Authorization',
183-
value: "Bearer token=\"#{ app_key }\""
183+
value: "Key token=\"#{ app_key }\""
184184
},
185185
'user_key' =>
186186
{
187187
type: 'bearer',
188188
in: 'header',
189189
key: 'Authorization',
190-
value: "Bearer token=\"#{ user_key }\""
190+
value: "Key token=\"#{ user_key }\""
191191
},
192192
}
193193
end

lib/onesignal/models/app.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
#A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
55
6-
The version of the OpenAPI document: 1.3.0
6+
The version of the OpenAPI document: 1.4.0
77
88
Generated by: https://openapi-generator.tech
99
OpenAPI Generator version: 6.0.0-SNAPSHOT

0 commit comments

Comments
 (0)