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.9.0"
version = "5.10.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 @@ -6,15 +6,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.9.0
- Package version: 5.9.0
- API version: 5.10.0
- Package version: 5.10.0

## Installation

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

```toml
onesignal-rust-api = "5.9.0"
onesignal-rust-api = "5.10.0"
```

## Configuration
Expand Down
2 changes: 1 addition & 1 deletion docs/Filter.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**field** | Option<**String**> | Required. Name of the field to use as the first operand in the filter expression. | [optional]
**key** | Option<**String**> | If `field` is `tag`, this field is *required* to specify `key` inside the tags. | [optional]
**value** | Option<**String**> | Constant value to use as the second operand in the filter expression. This value is *required* when the relation operator is a binary operator. | [optional]
**value** | Option<**String**> | Constant value to use as the second operand in the filter expression. This value is *required* when the relation operator is a binary operator. For `in_array` and `not_in_array` relations, provide a comma-separated list of up to 20 values. | [optional]
**hours_ago** | Option<**String**> | If `field` is session-related, this is *required* to specify the number of hours before or after the user's session. | [optional]
**radius** | Option<**f32**> | If `field` is `location`, this will specify the radius in meters from a provided location point. Use with `lat` and `long`. | [optional]
**lat** | Option<**f32**> | If `field` is `location`, this is *required* to specify the user's latitude. | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/FilterExpression.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**field** | Option<**String**> | Required. Name of the field to use as the first operand in the filter expression. | [optional]
**key** | Option<**String**> | If `field` is `tag`, this field is *required* to specify `key` inside the tags. | [optional]
**value** | Option<**String**> | Constant value to use as the second operand in the filter expression. This value is *required* when the relation operator is a binary operator. | [optional]
**value** | Option<**String**> | Constant value to use as the second operand in the filter expression. This value is *required* when the relation operator is a binary operator. For `in_array` and `not_in_array` relations, provide a comma-separated list of up to 20 values. | [optional]
**hours_ago** | Option<**String**> | If `field` is session-related, this is *required* to specify the number of hours before or after the user's session. | [optional]
**radius** | Option<**f32**> | If `field` is `location`, this will specify the radius in meters from a provided location point. Use with `lat` and `long`. | [optional]
**lat** | Option<**f32**> | If `field` is `location`, this is *required* to specify the user's latitude. | [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.9.0
* The version of the OpenAPI document: 5.10.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.9.0/rust".to_owned()),
user_agent: Some("OpenAPI-Generator/5.10.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.9.0
* The version of the OpenAPI document: 5.10.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.9.0
* The version of the OpenAPI document: 5.10.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.9.0
* The version of the OpenAPI document: 5.10.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.9.0
* The version of the OpenAPI document: 5.10.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.9.0
* The version of the OpenAPI document: 5.10.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.9.0
* The version of the OpenAPI document: 5.10.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.9.0
* The version of the OpenAPI document: 5.10.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.9.0
* The version of the OpenAPI document: 5.10.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.9.0
* The version of the OpenAPI document: 5.10.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.9.0
* The version of the OpenAPI document: 5.10.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.9.0
* The version of the OpenAPI document: 5.10.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.9.0
* The version of the OpenAPI document: 5.10.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.9.0
* The version of the OpenAPI document: 5.10.0
* Contact: devrel@onesignal.com
* Generated by: https://openapi-generator.tech
*/
Expand Down
2 changes: 1 addition & 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.9.0
* The version of the OpenAPI document: 5.10.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.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.9.0
* The version of the OpenAPI document: 5.10.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.9.0
* The version of the OpenAPI document: 5.10.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.9.0
* The version of the OpenAPI document: 5.10.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.9.0
* The version of the OpenAPI document: 5.10.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.9.0
* The version of the OpenAPI document: 5.10.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.9.0
* The version of the OpenAPI document: 5.10.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.9.0
* The version of the OpenAPI document: 5.10.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.9.0
* The version of the OpenAPI document: 5.10.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.9.0
* The version of the OpenAPI document: 5.10.0
* Contact: devrel@onesignal.com
* Generated by: https://openapi-generator.tech
*/
Expand Down
8 changes: 6 additions & 2 deletions 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.9.0
* The version of the OpenAPI document: 5.10.0
* Contact: devrel@onesignal.com
* Generated by: https://openapi-generator.tech
*/
Expand All @@ -19,7 +19,7 @@ pub struct Filter {
/// If `field` is `tag`, this field is *required* to specify `key` inside the tags.
#[serde(rename = "key", skip_serializing_if = "Option::is_none")]
pub key: Option<String>,
/// Constant value to use as the second operand in the filter expression. This value is *required* when the relation operator is a binary operator.
/// Constant value to use as the second operand in the filter expression. This value is *required* when the relation operator is a binary operator. For `in_array` and `not_in_array` relations, provide a comma-separated list of up to 20 values.
#[serde(rename = "value", skip_serializing_if = "Option::is_none")]
pub value: Option<String>,
/// If `field` is session-related, this is *required* to specify the number of hours before or after the user's session.
Expand Down Expand Up @@ -73,6 +73,10 @@ pub enum RelationType {
TimeElapsedGt,
#[serde(rename = "time_elapsed_lt")]
TimeElapsedLt,
#[serde(rename = "in_array")]
InArray,
#[serde(rename = "not_in_array")]
NotInArray,
}

impl Default for RelationType {
Expand Down
8 changes: 6 additions & 2 deletions 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.9.0
* The version of the OpenAPI document: 5.10.0
* Contact: devrel@onesignal.com
* Generated by: https://openapi-generator.tech
*/
Expand All @@ -19,7 +19,7 @@ pub struct FilterExpression {
/// If `field` is `tag`, this field is *required* to specify `key` inside the tags.
#[serde(rename = "key", skip_serializing_if = "Option::is_none")]
pub key: Option<String>,
/// Constant value to use as the second operand in the filter expression. This value is *required* when the relation operator is a binary operator.
/// Constant value to use as the second operand in the filter expression. This value is *required* when the relation operator is a binary operator. For `in_array` and `not_in_array` relations, provide a comma-separated list of up to 20 values.
#[serde(rename = "value", skip_serializing_if = "Option::is_none")]
pub value: Option<String>,
/// If `field` is session-related, this is *required* to specify the number of hours before or after the user's session.
Expand Down Expand Up @@ -77,6 +77,10 @@ pub enum RelationType {
TimeElapsedGt,
#[serde(rename = "time_elapsed_lt")]
TimeElapsedLt,
#[serde(rename = "in_array")]
InArray,
#[serde(rename = "not_in_array")]
NotInArray,
}

impl Default for RelationType {
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.9.0
* The version of the OpenAPI document: 5.10.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.9.0
* The version of the OpenAPI document: 5.10.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.9.0
* The version of the OpenAPI document: 5.10.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.9.0
* The version of the OpenAPI document: 5.10.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.9.0
* The version of the OpenAPI document: 5.10.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.9.0
* The version of the OpenAPI document: 5.10.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.9.0
* The version of the OpenAPI document: 5.10.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.9.0
* The version of the OpenAPI document: 5.10.0
* Contact: devrel@onesignal.com
* Generated by: https://openapi-generator.tech
*/
Expand Down
Loading