Skip to content
Merged
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
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "onesignal-rust-api"
version = "5.3.0"
version = "5.4.0"
authors = ["devrel@onesignal.com"]
edition = "2018"
description = "A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com"
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ A powerful way to send personalized messages at scale and build effective custom

For more information, please visit [https://onesignal.com](https://onesignal.com)

- API version: 5.3.0
- Package version: 5.3.0
- API version: 5.4.0
- Package version: 5.4.0

## Installation

Add to `Cargo.toml` under `[dependencies]`:

```toml
onesignal-rust-api = "5.3.0"
onesignal-rust-api = "5.4.0"
```

## Configuration
Expand Down
2 changes: 2 additions & 0 deletions docs/CreateTemplateRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Name | Type | Description | Notes
**app_id** | **String** | Your OneSignal App ID in UUID v4 format. |
**name** | **String** | Name of the template. |
**contents** | [**crate::models::LanguageStringMap**](LanguageStringMap.md) | |
**headings** | Option<[**crate::models::LanguageStringMap**](LanguageStringMap.md)> | | [optional]
**subtitle** | Option<[**crate::models::LanguageStringMap**](LanguageStringMap.md)> | | [optional]
**is_email** | Option<**bool**> | Set true for an Email template. | [optional]
**email_subject** | Option<**String**> | Subject of the email. | [optional]
**email_body** | Option<**String**> | Body of the email (HTML supported). | [optional]
Expand Down
2 changes: 2 additions & 0 deletions docs/UpdateTemplateRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | Option<**String**> | Updated name of the template. | [optional]
**contents** | Option<[**crate::models::LanguageStringMap**](LanguageStringMap.md)> | | [optional]
**headings** | Option<[**crate::models::LanguageStringMap**](LanguageStringMap.md)> | | [optional]
**subtitle** | Option<[**crate::models::LanguageStringMap**](LanguageStringMap.md)> | | [optional]
**is_email** | Option<**bool**> | Set true for an Email template. | [optional]
**email_subject** | Option<**String**> | Subject of the email. | [optional]
**email_body** | Option<**String**> | Body of the email (HTML supported). | [optional]
Expand Down
4 changes: 2 additions & 2 deletions src/apis/configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
*
* The version of the OpenAPI document: 5.3.0
* The version of the OpenAPI document: 5.4.0
* Contact: devrel@onesignal.com
* Generated by: https://openapi-generator.tech
*/
Expand Down Expand Up @@ -45,7 +45,7 @@ impl Default for Configuration {
fn default() -> Self {
Configuration {
base_path: "https://api.onesignal.com".to_owned(),
user_agent: Some("OpenAPI-Generator/5.3.0/rust".to_owned()),
user_agent: Some("OpenAPI-Generator/5.4.0/rust".to_owned()),
client: reqwest::Client::new(),
basic_auth: None,
oauth_access_token: None,
Expand Down
90 changes: 45 additions & 45 deletions src/apis/default_api.rs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/models/api_key_token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
*
* The version of the OpenAPI document: 5.3.0
* The version of the OpenAPI document: 5.4.0
* Contact: devrel@onesignal.com
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/api_key_tokens_list_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
*
* The version of the OpenAPI document: 5.3.0
* The version of the OpenAPI document: 5.4.0
* Contact: devrel@onesignal.com
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
*
* The version of the OpenAPI document: 5.3.0
* The version of the OpenAPI document: 5.4.0
* Contact: devrel@onesignal.com
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/basic_notification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
*
* The version of the OpenAPI document: 5.3.0
* The version of the OpenAPI document: 5.4.0
* Contact: devrel@onesignal.com
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/basic_notification_all_of.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
*
* The version of the OpenAPI document: 5.3.0
* The version of the OpenAPI document: 5.4.0
* Contact: devrel@onesignal.com
* Generated by: https://openapi-generator.tech
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
*
* The version of the OpenAPI document: 5.3.0
* The version of the OpenAPI document: 5.4.0
* Contact: devrel@onesignal.com
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/button.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
*
* The version of the OpenAPI document: 5.3.0
* The version of the OpenAPI document: 5.4.0
* Contact: devrel@onesignal.com
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/copy_template_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
*
* The version of the OpenAPI document: 5.3.0
* The version of the OpenAPI document: 5.4.0
* Contact: devrel@onesignal.com
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/create_api_key_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
*
* The version of the OpenAPI document: 5.3.0
* The version of the OpenAPI document: 5.4.0
* Contact: devrel@onesignal.com
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/create_api_key_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
*
* The version of the OpenAPI document: 5.3.0
* The version of the OpenAPI document: 5.4.0
* Contact: devrel@onesignal.com
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/create_notification_success_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
*
* The version of the OpenAPI document: 5.3.0
* The version of the OpenAPI document: 5.4.0
* Contact: devrel@onesignal.com
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/create_segment_conflict_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
*
* The version of the OpenAPI document: 5.3.0
* The version of the OpenAPI document: 5.4.0
* Contact: devrel@onesignal.com
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/create_segment_success_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
*
* The version of the OpenAPI document: 5.3.0
* The version of the OpenAPI document: 5.4.0
* Contact: devrel@onesignal.com
* Generated by: https://openapi-generator.tech
*/
Expand Down
8 changes: 7 additions & 1 deletion src/models/create_template_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
*
* The version of the OpenAPI document: 5.3.0
* The version of the OpenAPI document: 5.4.0
* Contact: devrel@onesignal.com
* Generated by: https://openapi-generator.tech
*/
Expand All @@ -21,6 +21,10 @@ pub struct CreateTemplateRequest {
pub name: String,
#[serde(rename = "contents")]
pub contents: Box<crate::models::LanguageStringMap>,
#[serde(rename = "headings", skip_serializing_if = "Option::is_none")]
pub headings: Option<Box<crate::models::LanguageStringMap>>,
#[serde(rename = "subtitle", skip_serializing_if = "Option::is_none")]
pub subtitle: Option<Box<crate::models::LanguageStringMap>>,
/// Set true for an Email template.
#[serde(rename = "isEmail", skip_serializing_if = "Option::is_none")]
pub is_email: Option<bool>,
Expand All @@ -44,6 +48,8 @@ impl CreateTemplateRequest {
app_id,
name,
contents: Box::new(contents),
headings: None,
subtitle: None,
is_email: None,
email_subject: None,
email_body: None,
Expand Down
2 changes: 1 addition & 1 deletion src/models/create_user_conflict_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
*
* The version of the OpenAPI document: 5.3.0
* The version of the OpenAPI document: 5.4.0
* Contact: devrel@onesignal.com
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/create_user_conflict_response_errors_inner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
*
* The version of the OpenAPI document: 5.3.0
* The version of the OpenAPI document: 5.4.0
* Contact: devrel@onesignal.com
* Generated by: https://openapi-generator.tech
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
*
* The version of the OpenAPI document: 5.3.0
* The version of the OpenAPI document: 5.4.0
* Contact: devrel@onesignal.com
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/custom_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
*
* The version of the OpenAPI document: 5.3.0
* The version of the OpenAPI document: 5.4.0
* Contact: devrel@onesignal.com
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/custom_events_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
*
* The version of the OpenAPI document: 5.3.0
* The version of the OpenAPI document: 5.4.0
* Contact: devrel@onesignal.com
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/delivery_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
*
* The version of the OpenAPI document: 5.3.0
* The version of the OpenAPI document: 5.4.0
* Contact: devrel@onesignal.com
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/export_events_success_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
*
* The version of the OpenAPI document: 5.3.0
* The version of the OpenAPI document: 5.4.0
* Contact: devrel@onesignal.com
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/export_subscriptions_request_body.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
*
* The version of the OpenAPI document: 5.3.0
* The version of the OpenAPI document: 5.4.0
* Contact: devrel@onesignal.com
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/export_subscriptions_success_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
*
* The version of the OpenAPI document: 5.3.0
* The version of the OpenAPI document: 5.4.0
* Contact: devrel@onesignal.com
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
*
* The version of the OpenAPI document: 5.3.0
* The version of the OpenAPI document: 5.4.0
* Contact: devrel@onesignal.com
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/filter_expression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
*
* The version of the OpenAPI document: 5.3.0
* The version of the OpenAPI document: 5.4.0
* Contact: devrel@onesignal.com
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/generic_error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
*
* The version of the OpenAPI document: 5.3.0
* The version of the OpenAPI document: 5.4.0
* Contact: devrel@onesignal.com
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/generic_success_bool_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
*
* The version of the OpenAPI document: 5.3.0
* The version of the OpenAPI document: 5.4.0
* Contact: devrel@onesignal.com
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/get_notification_history_request_body.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
*
* The version of the OpenAPI document: 5.3.0
* The version of the OpenAPI document: 5.4.0
* Contact: devrel@onesignal.com
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/get_segments_success_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
*
* The version of the OpenAPI document: 5.3.0
* The version of the OpenAPI document: 5.4.0
* Contact: devrel@onesignal.com
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/language_string_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
*
* The version of the OpenAPI document: 5.3.0
* The version of the OpenAPI document: 5.4.0
* Contact: devrel@onesignal.com
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/notification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
*
* The version of the OpenAPI document: 5.3.0
* The version of the OpenAPI document: 5.4.0
* Contact: devrel@onesignal.com
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/notification_all_of.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
*
* The version of the OpenAPI document: 5.3.0
* The version of the OpenAPI document: 5.4.0
* Contact: devrel@onesignal.com
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/notification_history_success_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
*
* The version of the OpenAPI document: 5.3.0
* The version of the OpenAPI document: 5.4.0
* Contact: devrel@onesignal.com
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/notification_slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
*
* The version of the OpenAPI document: 5.3.0
* The version of the OpenAPI document: 5.4.0
* Contact: devrel@onesignal.com
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 1 deletion src/models/notification_target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
*
* The version of the OpenAPI document: 5.3.0
* The version of the OpenAPI document: 5.4.0
* Contact: devrel@onesignal.com
* Generated by: https://openapi-generator.tech
*/
Expand Down
Loading
Loading