Skip to content

Commit ab70850

Browse files
committed
Notification filters now represented as a separated property.
1 parent 69ef5b1 commit ab70850

File tree

1 file changed

+8
-60
lines changed

1 file changed

+8
-60
lines changed

api.json

Lines changed: 8 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@
3030
"schemas": {
3131
"App": {
3232
"type": "object",
33-
"required": [
34-
"id"
35-
],
3633
"properties": {
3734
"id": {
3835
"type": "string",
@@ -204,59 +201,6 @@
204201
}
205202
}
206203
},
207-
"FilterNotificationTarget": {
208-
"type": "object",
209-
"properties": {
210-
"last_session": {
211-
"type": "string",
212-
"description": "relation = \">\" or \"<\"\nhours_ago = number of hours before or after the users last session. Example: \"1.1\"\n"
213-
},
214-
"first_session": {
215-
"type": "string",
216-
"description": "relation = \">\" or \"<\"\nhours_ago = number of hours before or after the users first session. Example: \"1.1\"\n"
217-
},
218-
"session_count": {
219-
"type": "string",
220-
"description": "relation = \">\", \"<\", \"=\" or \"!=\"\nvalue = number sessions. Example: \"1\"\n"
221-
},
222-
"session_time": {
223-
"type": "string",
224-
"description": "relation = \">\", \"<\", \"=\" or \"!=\"\nvalue = Time in seconds the user has been in your app. Example: \"3600\"\n"
225-
},
226-
"amount_spent": {
227-
"type": "string",
228-
"description": "relation = \">\", \"<\", or \"=\"\nvalue = Amount in USD a user has spent on IAP (In App Purchases). Example: \"0.99\"\n"
229-
},
230-
"bought_sku": {
231-
"type": "string",
232-
"description": "relation = \">\", \"<\" or \"=\"\nkey = SKU purchased in your app as an IAP (In App Purchases). Example: \"com.domain.100coinpack\"\nvalue = value of SKU to compare to. Example: \"0.99\"\n"
233-
},
234-
"tag": {
235-
"type": "string",
236-
"description": "relation = \">\", \"<\", \"=\", \"!=\", \"exists\", \"not_exists\", \"time_elapsed_gt\" (paid plan only) or \"time_elapsed_lt\" (paid plan only) See Time Operators\nkey = Tag key to compare.\nvalue = Tag value to compare. Not required for \"exists\" or \"not_exists\". Example: See Formatting Filters\n"
237-
},
238-
"language": {
239-
"type": "string",
240-
"description": "relation = \"=\" or \"!=\"\nvalue = 2 character language code. Example: \"en\". For a list of all language codes see Language & Localization.\n"
241-
},
242-
"app_version": {
243-
"type": "string",
244-
"description": "relation = \">\", \"<\", \"=\" or \"!=\"\nvalue = app version. Example: \"1.0.0\"\n"
245-
},
246-
"location": {
247-
"type": "string",
248-
"description": "radius = in meters\nlat = latitude\nlong = longitude\n"
249-
},
250-
"email": {
251-
"type": "string",
252-
"description": "value = email address\nOnly for sending Push Notifications\nUse this for targeting push subscribers associated with an email set with all SDK setEmail methods\nTo send emails to specific email addresses use include_email_tokens parameter\n"
253-
},
254-
"country": {
255-
"type": "string",
256-
"description": "relation = \"=\"\nvalue = 2-digit Country code\nExample: \"field\": \"country\", \"relation\": \"=\", \"value\", \"US\"\n"
257-
}
258-
}
259-
},
260204
"PlayerNotificationTarget": {
261205
"type": "object",
262206
"properties": {
@@ -339,9 +283,6 @@
339283
{
340284
"$ref": "#/components/schemas/SegmentNotificationTarget"
341285
},
342-
{
343-
"$ref": "#/components/schemas/FilterNotificationTarget"
344-
},
345286
{
346287
"$ref": "#/components/schemas/PlayerNotificationTarget"
347288
}
@@ -902,6 +843,13 @@
902843
"description": "Channel: SMS\nURLs for the media files to be attached to the SMS content.\nLimit: 10 media urls with a total max. size of 5MBs.\n",
903844
"writeOnly": true,
904845
"nullable": true
846+
},
847+
"filters": {
848+
"type": "array",
849+
"nullable": true,
850+
"items": {
851+
"$ref": "#/components/schemas/Filter"
852+
}
905853
}
906854
}
907855
},
@@ -1414,7 +1362,7 @@
14141362
},
14151363
"value": {
14161364
"type": "string",
1417-
"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."
1365+
"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."
14181366
},
14191367
"relation": {
14201368
"type": "string",

0 commit comments

Comments
 (0)