From 887d055ec0296fdb726472b41339b130fc672798 Mon Sep 17 00:00:00 2001 From: OneSignal Date: Fri, 17 Jul 2026 21:21:27 +0000 Subject: [PATCH] feat: add v5.9.0 package updates --- api/openapi.yaml | 8 ++++++-- docs/Filter.md | 4 +++- docs/FilterExpression.md | 4 +++- src/main/java/com/onesignal/client/model/Filter.java | 10 +++++++--- 4 files changed, 19 insertions(+), 7 deletions(-) diff --git a/api/openapi.yaml b/api/openapi.yaml index cd20cc95..a104e6b5 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -3428,8 +3428,10 @@ components: example: level type: string value: - description: Constant value to use as the second operand in the filter expression. - This value is *required* when the relation operator is a binary operator. + description: "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." example: "10" type: string hours_ago: @@ -3460,6 +3462,8 @@ components: - not_exists - time_elapsed_gt - time_elapsed_lt + - in_array + - not_in_array type: string type: object Operator: diff --git a/docs/Filter.md b/docs/Filter.md index c5abaf97..237372b8 100644 --- a/docs/Filter.md +++ b/docs/Filter.md @@ -9,7 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**field** | **String** | Required. Name of the field to use as the first operand in the filter expression. | [optional] | |**key** | **String** | If `field` is `tag`, this field is *required* to specify `key` inside the tags. | [optional] | -|**value** | **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** | **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] | |**hoursAgo** | **String** | If `field` is session-related, this is *required* to specify the number of hours before or after the user's session. | [optional] | |**radius** | **BigDecimal** | If `field` is `location`, this will specify the radius in meters from a provided location point. Use with `lat` and `long`. | [optional] | |**lat** | **BigDecimal** | If `field` is `location`, this is *required* to specify the user's latitude. | [optional] | @@ -30,6 +30,8 @@ | NOT_EXISTS | "not_exists" | | TIME_ELAPSED_GT | "time_elapsed_gt" | | TIME_ELAPSED_LT | "time_elapsed_lt" | +| IN_ARRAY | "in_array" | +| NOT_IN_ARRAY | "not_in_array" | diff --git a/docs/FilterExpression.md b/docs/FilterExpression.md index 1269779c..a3f58f57 100644 --- a/docs/FilterExpression.md +++ b/docs/FilterExpression.md @@ -9,7 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**field** | **String** | Required. Name of the field to use as the first operand in the filter expression. | [optional] | |**key** | **String** | If `field` is `tag`, this field is *required* to specify `key` inside the tags. | [optional] | -|**value** | **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** | **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] | |**hoursAgo** | **String** | If `field` is session-related, this is *required* to specify the number of hours before or after the user's session. | [optional] | |**radius** | **BigDecimal** | If `field` is `location`, this will specify the radius in meters from a provided location point. Use with `lat` and `long`. | [optional] | |**lat** | **BigDecimal** | If `field` is `location`, this is *required* to specify the user's latitude. | [optional] | @@ -31,6 +31,8 @@ | NOT_EXISTS | "not_exists" | | TIME_ELAPSED_GT | "time_elapsed_gt" | | TIME_ELAPSED_LT | "time_elapsed_lt" | +| IN_ARRAY | "in_array" | +| NOT_IN_ARRAY | "not_in_array" | diff --git a/src/main/java/com/onesignal/client/model/Filter.java b/src/main/java/com/onesignal/client/model/Filter.java index 1425edda..82e0f232 100644 --- a/src/main/java/com/onesignal/client/model/Filter.java +++ b/src/main/java/com/onesignal/client/model/Filter.java @@ -100,7 +100,11 @@ public enum RelationEnum { TIME_ELAPSED_GT("time_elapsed_gt"), - TIME_ELAPSED_LT("time_elapsed_lt"); + TIME_ELAPSED_LT("time_elapsed_lt"), + + IN_ARRAY("in_array"), + + NOT_IN_ARRAY("not_in_array"); private String value; @@ -200,11 +204,11 @@ public Filter value(String value) { } /** - * 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. * @return value **/ @javax.annotation.Nullable - @ApiModelProperty(example = "10", value = "Constant value to use as the second operand in the filter expression. This value is *required* when the relation operator is a binary operator.") + @ApiModelProperty(example = "10", value = "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.") public String getValue() { return value;