From 22b35455f19d2fade1e8c25bd261e777597cdf72 Mon Sep 17 00:00:00 2001 From: OneSignal Date: Fri, 17 Jul 2026 21:21:31 +0000 Subject: [PATCH] feat: add v5.9.0 package updates --- docs/Filter.md | 2 +- docs/FilterExpression.md | 2 +- onesignal/model/filter.py | 6 ++++-- onesignal/model/filter_expression.py | 6 ++++-- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/docs/Filter.md b/docs/Filter.md index 09e3a50..9cdb929 100644 --- a/docs/Filter.md +++ b/docs/Filter.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **field** | **str** | Required. Name of the field to use as the first operand in the filter expression. | [optional] **key** | **str** | If `field` is `tag`, this field is *required* to specify `key` inside the tags. | [optional] -**value** | **str** | 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** | **str** | 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** | **str** | If `field` is session-related, this is *required* to specify the number of hours before or after the user's session. | [optional] **radius** | **float** | If `field` is `location`, this will specify the radius in meters from a provided location point. Use with `lat` and `long`. | [optional] **lat** | **float** | If `field` is `location`, this is *required* to specify the user's latitude. | [optional] diff --git a/docs/FilterExpression.md b/docs/FilterExpression.md index 080a0c0..48f489d 100644 --- a/docs/FilterExpression.md +++ b/docs/FilterExpression.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **field** | **str** | Required. Name of the field to use as the first operand in the filter expression. | [optional] **key** | **str** | If `field` is `tag`, this field is *required* to specify `key` inside the tags. | [optional] -**value** | **str** | 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** | **str** | 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** | **str** | If `field` is session-related, this is *required* to specify the number of hours before or after the user's session. | [optional] **radius** | **float** | If `field` is `location`, this will specify the radius in meters from a provided location point. Use with `lat` and `long`. | [optional] **lat** | **float** | If `field` is `location`, this is *required* to specify the user's latitude. | [optional] diff --git a/onesignal/model/filter.py b/onesignal/model/filter.py index aea6025..de3608c 100644 --- a/onesignal/model/filter.py +++ b/onesignal/model/filter.py @@ -65,6 +65,8 @@ class Filter(ModelNormal): '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", }, } @@ -161,7 +163,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) field (str): Required. Name of the field to use as the first operand in the filter expression.. [optional] # noqa: E501 key (str): If `field` is `tag`, this field is *required* to specify `key` inside the tags.. [optional] # noqa: E501 - value (str): 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] # noqa: E501 + value (str): 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] # noqa: E501 hours_ago (str): If `field` is session-related, this is *required* to specify the number of hours before or after the user's session.. [optional] # noqa: E501 radius (float): If `field` is `location`, this will specify the radius in meters from a provided location point. Use with `lat` and `long`.. [optional] # noqa: E501 lat (float): If `field` is `location`, this is *required* to specify the user's latitude.. [optional] # noqa: E501 @@ -254,7 +256,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) field (str): Required. Name of the field to use as the first operand in the filter expression.. [optional] # noqa: E501 key (str): If `field` is `tag`, this field is *required* to specify `key` inside the tags.. [optional] # noqa: E501 - value (str): 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] # noqa: E501 + value (str): 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] # noqa: E501 hours_ago (str): If `field` is session-related, this is *required* to specify the number of hours before or after the user's session.. [optional] # noqa: E501 radius (float): If `field` is `location`, this will specify the radius in meters from a provided location point. Use with `lat` and `long`.. [optional] # noqa: E501 lat (float): If `field` is `location`, this is *required* to specify the user's latitude.. [optional] # noqa: E501 diff --git a/onesignal/model/filter_expression.py b/onesignal/model/filter_expression.py index 2ecd081..909bcfc 100644 --- a/onesignal/model/filter_expression.py +++ b/onesignal/model/filter_expression.py @@ -71,6 +71,8 @@ class FilterExpression(ModelComposed): '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", }, ('operator',): { 'OR': "OR", @@ -173,7 +175,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) field (str): Required. Name of the field to use as the first operand in the filter expression.. [optional] # noqa: E501 key (str): If `field` is `tag`, this field is *required* to specify `key` inside the tags.. [optional] # noqa: E501 - value (str): 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] # noqa: E501 + value (str): 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] # noqa: E501 hours_ago (str): If `field` is session-related, this is *required* to specify the number of hours before or after the user's session.. [optional] # noqa: E501 radius (float): If `field` is `location`, this will specify the radius in meters from a provided location point. Use with `lat` and `long`.. [optional] # noqa: E501 lat (float): If `field` is `location`, this is *required* to specify the user's latitude.. [optional] # noqa: E501 @@ -285,7 +287,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) field (str): Required. Name of the field to use as the first operand in the filter expression.. [optional] # noqa: E501 key (str): If `field` is `tag`, this field is *required* to specify `key` inside the tags.. [optional] # noqa: E501 - value (str): 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] # noqa: E501 + value (str): 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] # noqa: E501 hours_ago (str): If `field` is session-related, this is *required* to specify the number of hours before or after the user's session.. [optional] # noqa: E501 radius (float): If `field` is `location`, this will specify the radius in meters from a provided location point. Use with `lat` and `long`.. [optional] # noqa: E501 lat (float): If `field` is `location`, this is *required* to specify the user's latitude.. [optional] # noqa: E501