@onesignal/node-onesignal 1.0.0-beta4 → 1.0.0-beta6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/ISSUE_TEMPLATE/ask-question.yml +25 -0
- package/.github/ISSUE_TEMPLATE/bug-report.yml +51 -0
- package/.github/ISSUE_TEMPLATE/general-feedback.yml +25 -0
- package/.github/pull_request_template.md +44 -0
- package/.github/workflows/npm_deploy.yml +23 -0
- package/CHANGELOG.md +29 -0
- package/DefaultApi.md +1232 -0
- package/LICENSE +24 -0
- package/README.md +205 -102
- package/RELEASE_INSTRUCTIONS.md +2 -0
- package/apis/DefaultApi.ts +519 -532
- package/apis/baseapi.ts +4 -4
- package/apis/exception.ts +4 -3
- package/auth/auth.ts +4 -1
- package/configuration.ts +21 -2
- package/http/http.ts +26 -26
- package/index.ts +1 -0
- package/middleware.ts +1 -1
- package/models/App.ts +8 -8
- package/models/BasicNotification.ts +1019 -0
- package/models/BasicNotificationAllOf.ts +897 -0
- package/models/{NotificationAllOfAndroidBackgroundLayout.ts → BasicNotificationAllOfAndroidBackgroundLayout.ts} +4 -4
- package/models/Button.ts +2 -2
- package/models/CancelNotificationSuccessResponse.ts +31 -0
- package/models/{InlineResponse400.ts → CreateNotificationBadRequestResponse.ts} +4 -4
- package/models/{InlineResponse200.ts → CreateNotificationSuccessResponse.ts} +7 -6
- package/models/{InlineResponse2004.ts → CreatePlayerSuccessResponse.ts} +4 -4
- package/models/CreateSegmentBadRequestResponse.ts +38 -0
- package/models/{InlineResponse409.ts → CreateSegmentConflictResponse.ts} +4 -4
- package/models/{InlineResponse201.ts → CreateSegmentSuccessResponse.ts} +4 -4
- package/models/DeletePlayerBadRequestResponse.ts +31 -0
- package/models/DeletePlayerNotFoundResponse.ts +31 -0
- package/models/{InlineResponse2003.ts → DeletePlayerSuccessResponse.ts} +4 -4
- package/models/{InlineResponse4002.ts → DeleteSegmentBadRequestResponse.ts} +4 -4
- package/models/DeleteSegmentNotFoundResponse.ts +31 -0
- package/models/DeleteSegmentSuccessResponse.ts +31 -0
- package/models/DeliveryData.ts +17 -2
- package/models/ExportPlayersRequestBody.ts +5 -5
- package/models/{InlineResponse2005.ts → ExportPlayersSuccessResponse.ts} +4 -4
- package/models/Filter.ts +4 -4
- package/models/FilterExpressions.ts +4 -4
- package/models/FilterNotificationTarget.ts +2 -2
- package/models/GetNotificationRequestBody.ts +2 -2
- package/models/InvalidIdentifierError.ts +44 -0
- package/models/Notification.ts +72 -174
- package/models/Notification200Errors.ts +45 -0
- package/models/NotificationAllOf.ts +3 -858
- package/models/{InlineResponse4001.ts → NotificationHistoryBadRequestResponse.ts} +4 -4
- package/models/{InlineResponse2002.ts → NotificationHistorySuccessResponse.ts} +6 -6
- package/models/NotificationSlice.ts +5 -5
- package/models/NotificationTarget.ts +3 -124
- package/models/NotificationWithMeta.ts +1127 -0
- package/models/NotificationWithMetaAllOf.ts +132 -0
- package/models/ObjectSerializer.ts +97 -46
- package/models/Operator.ts +2 -2
- package/models/OutcomeData.ts +2 -2
- package/models/OutcomesData.ts +32 -0
- package/models/PlatformDeliveryData.ts +18 -2
- package/models/PlatformDeliveryDataEmailAllOf.ts +94 -0
- package/models/PlatformDeliveryDataSmsAllOf.ts +54 -0
- package/models/Player.ts +14 -14
- package/models/PlayerNotificationTarget.ts +3 -3
- package/models/PlayerSlice.ts +2 -2
- package/models/Purchase.ts +2 -2
- package/models/Segment.ts +3 -3
- package/models/SegmentNotificationTarget.ts +2 -2
- package/models/StringMap.ts +3 -3
- package/models/{InlineResponse2001.ts → UpdatePlayerSuccessResponse.ts} +6 -6
- package/models/UpdatePlayerTagsRequestBody.ts +4 -4
- package/models/UpdatePlayerTagsSuccessResponse.ts +31 -0
- package/models/all.ts +28 -13
- package/package.json +14 -9
- package/tsconfig.json +1 -2
- package/types/ObjectParamAPI.ts +101 -86
- package/types/ObservableAPI.ts +116 -101
- package/types/PromiseAPI.ts +97 -82
- package/util.ts +10 -1
- package/dist/apis/DefaultApi.d.ts +0 -62
- package/dist/apis/DefaultApi.js +0 -1317
- package/dist/apis/DefaultApi.js.map +0 -1
- package/dist/apis/baseapi.d.ts +0 -16
- package/dist/apis/baseapi.js +0 -42
- package/dist/apis/baseapi.js.map +0 -1
- package/dist/apis/exception.d.ts +0 -5
- package/dist/apis/exception.js +0 -28
- package/dist/apis/exception.js.map +0 -1
- package/dist/auth/auth.d.ts +0 -40
- package/dist/auth/auth.js +0 -108
- package/dist/auth/auth.js.map +0 -1
- package/dist/configuration.d.ts +0 -18
- package/dist/configuration.js +0 -21
- package/dist/configuration.js.map +0 -1
- package/dist/http/http.d.ts +0 -72
- package/dist/http/http.js +0 -205
- package/dist/http/http.js.map +0 -1
- package/dist/http/isomorphic-fetch.d.ts +0 -5
- package/dist/http/isomorphic-fetch.js +0 -33
- package/dist/http/isomorphic-fetch.js.map +0 -1
- package/dist/index.d.ts +0 -9
- package/dist/index.js +0 -22
- package/dist/index.js.map +0 -1
- package/dist/middleware.d.ts +0 -16
- package/dist/middleware.js +0 -18
- package/dist/middleware.js.map +0 -1
- package/dist/models/App.d.ts +0 -47
- package/dist/models/App.js +0 -196
- package/dist/models/App.js.map +0 -1
- package/dist/models/Button.d.ts +0 -19
- package/dist/models/Button.js +0 -34
- package/dist/models/Button.js.map +0 -1
- package/dist/models/DeliveryData.d.ts +0 -21
- package/dist/models/DeliveryData.js +0 -46
- package/dist/models/DeliveryData.js.map +0 -1
- package/dist/models/ExportPlayersRequestBody.d.ts +0 -19
- package/dist/models/ExportPlayersRequestBody.js +0 -34
- package/dist/models/ExportPlayersRequestBody.js.map +0 -1
- package/dist/models/Filter.d.ts +0 -21
- package/dist/models/Filter.js +0 -40
- package/dist/models/Filter.js.map +0 -1
- package/dist/models/FilterExpressions.d.ts +0 -23
- package/dist/models/FilterExpressions.js +0 -46
- package/dist/models/FilterExpressions.js.map +0 -1
- package/dist/models/FilterNotificationTarget.d.ts +0 -28
- package/dist/models/FilterNotificationTarget.js +0 -88
- package/dist/models/FilterNotificationTarget.js.map +0 -1
- package/dist/models/GetNotificationRequestBody.d.ts +0 -20
- package/dist/models/GetNotificationRequestBody.js +0 -34
- package/dist/models/GetNotificationRequestBody.js.map +0 -1
- package/dist/models/InlineResponse200.d.ts +0 -20
- package/dist/models/InlineResponse200.js +0 -40
- package/dist/models/InlineResponse200.js.map +0 -1
- package/dist/models/InlineResponse2001.d.ts +0 -17
- package/dist/models/InlineResponse2001.js +0 -22
- package/dist/models/InlineResponse2001.js.map +0 -1
- package/dist/models/InlineResponse2002.d.ts +0 -18
- package/dist/models/InlineResponse2002.js +0 -28
- package/dist/models/InlineResponse2002.js.map +0 -1
- package/dist/models/InlineResponse2003.d.ts +0 -17
- package/dist/models/InlineResponse2003.js +0 -22
- package/dist/models/InlineResponse2003.js.map +0 -1
- package/dist/models/InlineResponse2004.d.ts +0 -18
- package/dist/models/InlineResponse2004.js +0 -28
- package/dist/models/InlineResponse2004.js.map +0 -1
- package/dist/models/InlineResponse2005.d.ts +0 -17
- package/dist/models/InlineResponse2005.js +0 -22
- package/dist/models/InlineResponse2005.js.map +0 -1
- package/dist/models/InlineResponse201.d.ts +0 -18
- package/dist/models/InlineResponse201.js +0 -28
- package/dist/models/InlineResponse201.js.map +0 -1
- package/dist/models/InlineResponse400.d.ts +0 -17
- package/dist/models/InlineResponse400.js +0 -22
- package/dist/models/InlineResponse400.js.map +0 -1
- package/dist/models/InlineResponse4001.d.ts +0 -18
- package/dist/models/InlineResponse4001.js +0 -28
- package/dist/models/InlineResponse4001.js.map +0 -1
- package/dist/models/InlineResponse4002.d.ts +0 -17
- package/dist/models/InlineResponse4002.js +0 -22
- package/dist/models/InlineResponse4002.js.map +0 -1
- package/dist/models/InlineResponse409.d.ts +0 -18
- package/dist/models/InlineResponse409.js +0 -28
- package/dist/models/InlineResponse409.js.map +0 -1
- package/dist/models/Notification.d.ts +0 -132
- package/dist/models/Notification.js +0 -688
- package/dist/models/Notification.js.map +0 -1
- package/dist/models/NotificationAllOf.d.ts +0 -108
- package/dist/models/NotificationAllOf.js +0 -544
- package/dist/models/NotificationAllOf.js.map +0 -1
- package/dist/models/NotificationAllOfAndroidBackgroundLayout.d.ts +0 -19
- package/dist/models/NotificationAllOfAndroidBackgroundLayout.js +0 -34
- package/dist/models/NotificationAllOfAndroidBackgroundLayout.js.map +0 -1
- package/dist/models/NotificationSlice.d.ts +0 -21
- package/dist/models/NotificationSlice.js +0 -40
- package/dist/models/NotificationSlice.js.map +0 -1
- package/dist/models/NotificationTarget.d.ts +0 -40
- package/dist/models/NotificationTarget.js +0 -160
- package/dist/models/NotificationTarget.js.map +0 -1
- package/dist/models/ObjectSerializer.d.ts +0 -44
- package/dist/models/ObjectSerializer.js +0 -312
- package/dist/models/ObjectSerializer.js.map +0 -1
- package/dist/models/Operator.d.ts +0 -18
- package/dist/models/Operator.js +0 -22
- package/dist/models/Operator.js.map +0 -1
- package/dist/models/OutcomeData.d.ts +0 -20
- package/dist/models/OutcomeData.js +0 -34
- package/dist/models/OutcomeData.js.map +0 -1
- package/dist/models/PlatformDeliveryData.d.ts +0 -23
- package/dist/models/PlatformDeliveryData.js +0 -52
- package/dist/models/PlatformDeliveryData.js.map +0 -1
- package/dist/models/Player.d.ts +0 -43
- package/dist/models/Player.js +0 -178
- package/dist/models/Player.js.map +0 -1
- package/dist/models/PlayerNotificationTarget.d.ts +0 -26
- package/dist/models/PlayerNotificationTarget.js +0 -76
- package/dist/models/PlayerNotificationTarget.js.map +0 -1
- package/dist/models/PlayerSlice.d.ts +0 -21
- package/dist/models/PlayerSlice.js +0 -40
- package/dist/models/PlayerSlice.js.map +0 -1
- package/dist/models/Purchase.d.ts +0 -19
- package/dist/models/Purchase.js +0 -34
- package/dist/models/Purchase.js.map +0 -1
- package/dist/models/Segment.d.ts +0 -20
- package/dist/models/Segment.js +0 -34
- package/dist/models/Segment.js.map +0 -1
- package/dist/models/SegmentNotificationTarget.d.ts +0 -18
- package/dist/models/SegmentNotificationTarget.js +0 -28
- package/dist/models/SegmentNotificationTarget.js.map +0 -1
- package/dist/models/StringMap.d.ts +0 -59
- package/dist/models/StringMap.js +0 -274
- package/dist/models/StringMap.js.map +0 -1
- package/dist/models/UpdatePlayerTagsRequestBody.d.ts +0 -17
- package/dist/models/UpdatePlayerTagsRequestBody.js +0 -22
- package/dist/models/UpdatePlayerTagsRequestBody.js.map +0 -1
- package/dist/models/all.d.ts +0 -35
- package/dist/models/all.js +0 -48
- package/dist/models/all.js.map +0 -1
- package/dist/rxjsStub.d.ts +0 -10
- package/dist/rxjsStub.js +0 -33
- package/dist/rxjsStub.js.map +0 -1
- package/dist/servers.d.ts +0 -17
- package/dist/servers.js +0 -32
- package/dist/servers.js.map +0 -1
- package/dist/types/ObjectParamAPI.d.ts +0 -121
- package/dist/types/ObjectParamAPI.js +0 -69
- package/dist/types/ObjectParamAPI.js.map +0 -1
- package/dist/types/ObservableAPI.d.ts +0 -45
- package/dist/types/ObservableAPI.js +0 -472
- package/dist/types/ObservableAPI.js.map +0 -1
- package/dist/types/PromiseAPI.d.ts +0 -42
- package/dist/types/PromiseAPI.js +0 -88
- package/dist/types/PromiseAPI.js.map +0 -1
- package/dist/util.d.ts +0 -1
- package/dist/util.js +0 -25
- package/dist/util.js.map +0 -1
- package/git_push.sh +0 -52
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OneSignal
|
|
3
|
+
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
4
|
+
*
|
|
5
|
+
* API Version: 1.0.1
|
|
6
|
+
* Contact: devrel@onesignal.com
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { HttpFile } from '../http/http';
|
|
10
|
+
|
|
11
|
+
export class InvalidIdentifierError {
|
|
12
|
+
/**
|
|
13
|
+
* Returned if using include_external_user_ids
|
|
14
|
+
*/
|
|
15
|
+
'invalid_external_user_ids'?: Array<string>;
|
|
16
|
+
/**
|
|
17
|
+
* Returned if using include_player_ids and some were valid and others were not.
|
|
18
|
+
*/
|
|
19
|
+
'invalid_player_ids'?: Array<string>;
|
|
20
|
+
|
|
21
|
+
static readonly discriminator: string | undefined = undefined;
|
|
22
|
+
|
|
23
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
24
|
+
{
|
|
25
|
+
"name": "invalid_external_user_ids",
|
|
26
|
+
"baseName": "invalid_external_user_ids",
|
|
27
|
+
"type": "Array<string>",
|
|
28
|
+
"format": ""
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "invalid_player_ids",
|
|
32
|
+
"baseName": "invalid_player_ids",
|
|
33
|
+
"type": "Array<string>",
|
|
34
|
+
"format": ""
|
|
35
|
+
} ];
|
|
36
|
+
|
|
37
|
+
static getAttributeTypeMap() {
|
|
38
|
+
return InvalidIdentifierError.attributeTypeMap;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
public constructor() {
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
package/models/Notification.ts
CHANGED
|
@@ -2,14 +2,15 @@
|
|
|
2
2
|
* OneSignal
|
|
3
3
|
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
4
4
|
*
|
|
5
|
-
* API Version: 1.0.
|
|
5
|
+
* API Version: 1.0.1
|
|
6
6
|
* Contact: devrel@onesignal.com
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
+
import { BasicNotification } from './BasicNotification';
|
|
10
|
+
import { BasicNotificationAllOfAndroidBackgroundLayout } from './BasicNotificationAllOfAndroidBackgroundLayout';
|
|
9
11
|
import { Button } from './Button';
|
|
12
|
+
import { Filter } from './Filter';
|
|
10
13
|
import { NotificationAllOf } from './NotificationAllOf';
|
|
11
|
-
import { NotificationAllOfAndroidBackgroundLayout } from './NotificationAllOfAndroidBackgroundLayout';
|
|
12
|
-
import { NotificationTarget } from './NotificationTarget';
|
|
13
14
|
import { StringMap } from './StringMap';
|
|
14
15
|
import { HttpFile } from '../http/http';
|
|
15
16
|
|
|
@@ -23,59 +24,11 @@ export class Notification {
|
|
|
23
24
|
*/
|
|
24
25
|
'excluded_segments'?: Array<string>;
|
|
25
26
|
/**
|
|
26
|
-
* relation = \">\" or \"<\" hours_ago = number of hours before or after the users last session. Example: \"1.1\"
|
|
27
|
-
*/
|
|
28
|
-
'last_session'?: string;
|
|
29
|
-
/**
|
|
30
|
-
* relation = \">\" or \"<\" hours_ago = number of hours before or after the users first session. Example: \"1.1\"
|
|
31
|
-
*/
|
|
32
|
-
'first_session'?: string;
|
|
33
|
-
/**
|
|
34
|
-
* relation = \">\", \"<\", \"=\" or \"!=\" value = number sessions. Example: \"1\"
|
|
35
|
-
*/
|
|
36
|
-
'session_count'?: string;
|
|
37
|
-
/**
|
|
38
|
-
* relation = \">\", \"<\", \"=\" or \"!=\" value = Time in seconds the user has been in your app. Example: \"3600\"
|
|
39
|
-
*/
|
|
40
|
-
'session_time'?: string;
|
|
41
|
-
/**
|
|
42
|
-
* relation = \">\", \"<\", or \"=\" value = Amount in USD a user has spent on IAP (In App Purchases). Example: \"0.99\"
|
|
43
|
-
*/
|
|
44
|
-
'amount_spent'?: string;
|
|
45
|
-
/**
|
|
46
|
-
* relation = \">\", \"<\" or \"=\" key = SKU purchased in your app as an IAP (In App Purchases). Example: \"com.domain.100coinpack\" value = value of SKU to compare to. Example: \"0.99\"
|
|
47
|
-
*/
|
|
48
|
-
'bought_sku'?: string;
|
|
49
|
-
/**
|
|
50
|
-
* relation = \">\", \"<\", \"=\", \"!=\", \"exists\", \"not_exists\", \"time_elapsed_gt\" (paid plan only) or \"time_elapsed_lt\" (paid plan only) See Time Operators key = Tag key to compare. value = Tag value to compare. Not required for \"exists\" or \"not_exists\". Example: See Formatting Filters
|
|
51
|
-
*/
|
|
52
|
-
'tag'?: string;
|
|
53
|
-
/**
|
|
54
|
-
* relation = \"=\" or \"!=\" value = 2 character language code. Example: \"en\". For a list of all language codes see Language & Localization.
|
|
55
|
-
*/
|
|
56
|
-
'language'?: string;
|
|
57
|
-
/**
|
|
58
|
-
* relation = \">\", \"<\", \"=\" or \"!=\" value = app version. Example: \"1.0.0\"
|
|
59
|
-
*/
|
|
60
|
-
'app_version'?: string;
|
|
61
|
-
/**
|
|
62
|
-
* radius = in meters lat = latitude long = longitude
|
|
63
|
-
*/
|
|
64
|
-
'location'?: string;
|
|
65
|
-
/**
|
|
66
|
-
* value = email address Only for sending Push Notifications Use this for targeting push subscribers associated with an email set with all SDK setEmail methods To send emails to specific email addresses use include_email_tokens parameter
|
|
67
|
-
*/
|
|
68
|
-
'email'?: string;
|
|
69
|
-
/**
|
|
70
|
-
* relation = \"=\" value = 2-digit Country code Example: \"field\": \"country\", \"relation\": \"=\", \"value\", \"US\"
|
|
71
|
-
*/
|
|
72
|
-
'country'?: string;
|
|
73
|
-
/**
|
|
74
27
|
* Specific playerids to send your notification to. _Does not require API Auth Key. Do not combine with other targeting parameters. Not compatible with any other targeting parameters. Example: [\"1dd608f2-c6a1-11e3-851d-000c2940e62c\"] Limit of 2,000 entries per REST API call
|
|
75
28
|
*/
|
|
76
29
|
'include_player_ids'?: Array<string>;
|
|
77
30
|
/**
|
|
78
|
-
* Target specific devices by custom user IDs assigned via API. Not compatible with any other targeting parameters Example: [
|
|
31
|
+
* Target specific devices by custom user IDs assigned via API. Not compatible with any other targeting parameters Example: [\"custom-id-assigned-by-api\"] REQUIRED: REST API Key Authentication Limit of 2,000 entries per REST API call. Note: If targeting push, email, or sms subscribers with same ids, use with channel_for_external_user_ids to indicate you are sending a push or email or sms.
|
|
79
32
|
*/
|
|
80
33
|
'include_external_user_ids'?: Array<string>;
|
|
81
34
|
/**
|
|
@@ -112,17 +65,21 @@ export class Notification {
|
|
|
112
65
|
'include_android_reg_ids'?: Array<string>;
|
|
113
66
|
'id'?: string;
|
|
114
67
|
'value'?: number;
|
|
68
|
+
/**
|
|
69
|
+
* Required for SMS Messages. An identifier for tracking message within the OneSignal dashboard or export analytics. Not shown to end user.
|
|
70
|
+
*/
|
|
71
|
+
'name'?: string;
|
|
115
72
|
'aggregation'?: NotificationAggregationEnum;
|
|
116
73
|
/**
|
|
117
|
-
* Indicates whether to send to all devices registered under your app's Apple iOS platform.
|
|
74
|
+
* Indicates whether to send to all devices registered under your app\'s Apple iOS platform.
|
|
118
75
|
*/
|
|
119
76
|
'is_ios'?: boolean;
|
|
120
77
|
/**
|
|
121
|
-
* Indicates whether to send to all devices registered under your app's Google Android platform.
|
|
78
|
+
* Indicates whether to send to all devices registered under your app\'s Google Android platform.
|
|
122
79
|
*/
|
|
123
80
|
'is_android'?: boolean;
|
|
124
81
|
/**
|
|
125
|
-
* Indicates whether to send to all devices registered under your app's Huawei Android platform.
|
|
82
|
+
* Indicates whether to send to all devices registered under your app\'s Huawei Android platform.
|
|
126
83
|
*/
|
|
127
84
|
'is_huawei'?: boolean;
|
|
128
85
|
/**
|
|
@@ -138,19 +95,19 @@ export class Notification {
|
|
|
138
95
|
*/
|
|
139
96
|
'is_firefox'?: boolean;
|
|
140
97
|
/**
|
|
141
|
-
* Does not support iOS Safari. Indicates whether to send to all Apple's Safari desktop users registered under your Safari web push platform. Read more iOS Safari
|
|
98
|
+
* Does not support iOS Safari. Indicates whether to send to all Apple\'s Safari desktop users registered under your Safari web push platform. Read more iOS Safari
|
|
142
99
|
*/
|
|
143
100
|
'is_safari'?: boolean;
|
|
144
101
|
/**
|
|
145
|
-
* Indicates whether to send to all devices registered under your app's Windows platform.
|
|
102
|
+
* Indicates whether to send to all devices registered under your app\'s Windows platform.
|
|
146
103
|
*/
|
|
147
104
|
'is_wp_wns'?: boolean;
|
|
148
105
|
/**
|
|
149
|
-
* Indicates whether to send to all devices registered under your app's Amazon Fire platform.
|
|
106
|
+
* Indicates whether to send to all devices registered under your app\'s Amazon Fire platform.
|
|
150
107
|
*/
|
|
151
108
|
'is_adm'?: boolean;
|
|
152
109
|
/**
|
|
153
|
-
* This flag is not used for web push Please see isChromeWeb for sending to web push users. This flag only applies to Google Chrome Apps & Extensions. Indicates whether to send to all devices registered under your app's Google Chrome Apps & Extension platform.
|
|
110
|
+
* This flag is not used for web push Please see isChromeWeb for sending to web push users. This flag only applies to Google Chrome Apps & Extensions. Indicates whether to send to all devices registered under your app\'s Google Chrome Apps & Extension platform.
|
|
154
111
|
*/
|
|
155
112
|
'is_chrome'?: boolean;
|
|
156
113
|
/**
|
|
@@ -162,7 +119,7 @@ export class Notification {
|
|
|
162
119
|
*/
|
|
163
120
|
'app_id': string;
|
|
164
121
|
/**
|
|
165
|
-
* Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it's important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true
|
|
122
|
+
* Correlation and idempotency key. A request received with this parameter will first look for another notification with the same external_id. If one exists, a notification will not be sent, and result of the previous operation will instead be returned. Therefore, if you plan on using this feature, it\'s important to use a good source of randomness to generate the UUID passed here. This key is only idempotent for 30 days. After 30 days, the notification could be removed from our system and a notification with the same external_id will be sent again. See Idempotent Notification Requests for more details writeOnly: true
|
|
166
123
|
*/
|
|
167
124
|
'external_id'?: string;
|
|
168
125
|
'contents'?: StringMap;
|
|
@@ -171,7 +128,7 @@ export class Notification {
|
|
|
171
128
|
/**
|
|
172
129
|
* Channel: Push Notifications Platform: Huawei A custom map of data that is passed back to your app. Same as using Additional Data within the dashboard. Can use up to 2048 bytes of data. Example: {\"abc\": 123, \"foo\": \"bar\", \"event_performed\": true, \"amount\": 12.1}
|
|
173
130
|
*/
|
|
174
|
-
'data'?:
|
|
131
|
+
'data'?: object;
|
|
175
132
|
/**
|
|
176
133
|
* Channel: Push Notifications Platform: Huawei Use \"data\" or \"message\" depending on the type of notification you are sending. More details in Data & Background Notifications.
|
|
177
134
|
*/
|
|
@@ -191,7 +148,7 @@ export class Notification {
|
|
|
191
148
|
/**
|
|
192
149
|
* Channel: Push Notifications Platform: iOS 10+ Adds media attachments to notifications. Set as JSON object, key as a media id of your choice and the value as a valid local filename or URL. User must press and hold on the notification to view. Do not set mutable_content to download attachments. The OneSignal SDK does this automatically Example: {\"id1\": \"https://domain.com/image.jpg\"}
|
|
193
150
|
*/
|
|
194
|
-
'ios_attachments'?:
|
|
151
|
+
'ios_attachments'?: object;
|
|
195
152
|
/**
|
|
196
153
|
* Channel: Push Notifications Platform: All Use a template you setup on our dashboard. The template_id is the UUID found in the URL when viewing a template on our dashboard. Example: be4a8044-bbd6-11e4-a581-000c2940e62c
|
|
197
154
|
*/
|
|
@@ -225,7 +182,7 @@ export class Notification {
|
|
|
225
182
|
*/
|
|
226
183
|
'chrome_big_picture'?: string;
|
|
227
184
|
/**
|
|
228
|
-
* Channel: Push Notifications Platform: Chrome 56+ Sets the web push notification's large image to be shown below the notification's title and text. Please see Web Push Notification Icons.
|
|
185
|
+
* Channel: Push Notifications Platform: Chrome 56+ Sets the web push notification\'s large image to be shown below the notification\'s title and text. Please see Web Push Notification Icons.
|
|
229
186
|
*/
|
|
230
187
|
'chrome_web_image'?: string;
|
|
231
188
|
/**
|
|
@@ -241,11 +198,11 @@ export class Notification {
|
|
|
241
198
|
*/
|
|
242
199
|
'ios_category'?: string;
|
|
243
200
|
/**
|
|
244
|
-
* Channel: Push Notifications Platform: Android The Android Oreo Notification Category to send the notification under. See the Category documentation on creating one and getting it's id.
|
|
201
|
+
* Channel: Push Notifications Platform: Android The Android Oreo Notification Category to send the notification under. See the Category documentation on creating one and getting it\'s id.
|
|
245
202
|
*/
|
|
246
203
|
'android_channel_id'?: string;
|
|
247
204
|
/**
|
|
248
|
-
* Channel: Push Notifications Platform: Huawei The Android Oreo Notification Category to send the notification under. See the Category documentation on creating one and getting it's id.
|
|
205
|
+
* Channel: Push Notifications Platform: Huawei The Android Oreo Notification Category to send the notification under. See the Category documentation on creating one and getting it\'s id.
|
|
249
206
|
*/
|
|
250
207
|
'huawei_channel_id'?: string;
|
|
251
208
|
/**
|
|
@@ -256,7 +213,7 @@ export class Notification {
|
|
|
256
213
|
* Channel: Push Notifications Platform: Huawei Use this if you have client side Android Oreo Channels you have already defined in your app with code.
|
|
257
214
|
*/
|
|
258
215
|
'huawei_existing_channel_id'?: string;
|
|
259
|
-
'android_background_layout'?:
|
|
216
|
+
'android_background_layout'?: BasicNotificationAllOfAndroidBackgroundLayout;
|
|
260
217
|
/**
|
|
261
218
|
* Channel: Push Notifications Platform: Android Icon shown in the status bar and on the top left of the notification. If not set a bell icon will be used or ic_stat_onesignal_default if you have set this resource name. See: How to create small icons
|
|
262
219
|
*/
|
|
@@ -282,7 +239,7 @@ export class Notification {
|
|
|
282
239
|
*/
|
|
283
240
|
'adm_large_icon'?: string;
|
|
284
241
|
/**
|
|
285
|
-
* Channel: Push Notifications Platform: Chrome Sets the web push notification's icon. An image URL linking to a valid image. Common image types are supported; GIF will not animate. We recommend 256x256 (at least 80x80) to display well on high DPI devices. Firefox will also use this icon, unless you specify firefox_icon.
|
|
242
|
+
* Channel: Push Notifications Platform: Chrome Sets the web push notification\'s icon. An image URL linking to a valid image. Common image types are supported; GIF will not animate. We recommend 256x256 (at least 80x80) to display well on high DPI devices. Firefox will also use this icon, unless you specify firefox_icon.
|
|
286
243
|
*/
|
|
287
244
|
'chrome_web_icon'?: string;
|
|
288
245
|
/**
|
|
@@ -290,7 +247,7 @@ export class Notification {
|
|
|
290
247
|
*/
|
|
291
248
|
'chrome_web_badge'?: string;
|
|
292
249
|
/**
|
|
293
|
-
* Channel: Push Notifications Platform: Firefox Not recommended Few people need to set Firefox-specific icons. We recommend setting chrome_web_icon instead, which Firefox will also use. Sets the web push notification's icon for Firefox. An image URL linking to a valid image. Common image types are supported; GIF will not animate. We recommend 256x256 (at least 80x80) to display well on high DPI devices.
|
|
250
|
+
* Channel: Push Notifications Platform: Firefox Not recommended Few people need to set Firefox-specific icons. We recommend setting chrome_web_icon instead, which Firefox will also use. Sets the web push notification\'s icon for Firefox. An image URL linking to a valid image. Common image types are supported; GIF will not animate. We recommend 256x256 (at least 80x80) to display well on high DPI devices.
|
|
294
251
|
*/
|
|
295
252
|
'firefox_icon'?: string;
|
|
296
253
|
/**
|
|
@@ -302,15 +259,15 @@ export class Notification {
|
|
|
302
259
|
*/
|
|
303
260
|
'ios_sound'?: string;
|
|
304
261
|
/**
|
|
305
|
-
* Channel: Push Notifications Platform: Android
|
|
262
|
+
* Channel: Push Notifications Platform: Android ⚠️Deprecated, this field doesn\'t work on Android 8 (Oreo) and newer devices! Please use Notification Categories / Channels noted above instead to support ALL versions of Android. Sound file that is included in your app to play instead of the default device notification sound. Pass nil to disable sound for the notification. NOTE: Leave off file extension for Android. Example: \"notification\"
|
|
306
263
|
*/
|
|
307
264
|
'android_sound'?: string;
|
|
308
265
|
/**
|
|
309
|
-
* Channel: Push Notifications Platform: Huawei
|
|
266
|
+
* Channel: Push Notifications Platform: Huawei ⚠️Deprecated, this field ONLY works on EMUI 5 (Android 7 based) and older devices. Please also set Notification Categories / Channels noted above to support EMUI 8 (Android 8 based) devices. Sound file that is included in your app to play instead of the default device notification sound. NOTE: Leave off file extension for and include the full path. Example: \"/res/raw/notification\"
|
|
310
267
|
*/
|
|
311
268
|
'huawei_sound'?: string;
|
|
312
269
|
/**
|
|
313
|
-
* Channel: Push Notifications Platform: Amazon
|
|
270
|
+
* Channel: Push Notifications Platform: Amazon ⚠️Deprecated, this field doesn\'t work on Android 8 (Oreo) and newer devices! Please use Notification Categories / Channels noted above instead to support ALL versions of Android. Sound file that is included in your app to play instead of the default device notification sound. Pass nil to disable sound for the notification. NOTE: Leave off file extension for Android. Example: \"notification\"
|
|
314
271
|
*/
|
|
315
272
|
'adm_sound'?: string;
|
|
316
273
|
/**
|
|
@@ -318,11 +275,11 @@ export class Notification {
|
|
|
318
275
|
*/
|
|
319
276
|
'wp_wns_sound'?: string;
|
|
320
277
|
/**
|
|
321
|
-
* Channel: Push Notifications Platform: Android
|
|
278
|
+
* Channel: Push Notifications Platform: Android ⚠️Deprecated, this field doesn\'t work on Android 8 (Oreo) and newer devices! Please use Notification Categories / Channels noted above instead to support ALL versions of Android. Sets the devices LED notification light if the device has one. ARGB Hex format. Example(Blue): \"FF0000FF\"
|
|
322
279
|
*/
|
|
323
280
|
'android_led_color'?: string;
|
|
324
281
|
/**
|
|
325
|
-
* Channel: Push Notifications Platform: Huawei
|
|
282
|
+
* Channel: Push Notifications Platform: Huawei ⚠️Deprecated, this field ONLY works on EMUI 5 (Android 7 based) and older devices. Please also set Notification Categories / Channels noted above to support EMUI 8 (Android 8 based) devices. Sets the devices LED notification light if the device has one. RGB Hex format. Example(Blue): \"0000FF\"
|
|
326
283
|
*/
|
|
327
284
|
'huawei_led_color'?: string;
|
|
328
285
|
/**
|
|
@@ -330,23 +287,23 @@ export class Notification {
|
|
|
330
287
|
*/
|
|
331
288
|
'android_accent_color'?: string;
|
|
332
289
|
/**
|
|
333
|
-
* Channel: Push Notifications Platform: Huawei Accent Color used on Action Buttons and Group overflow count. Uses RGB Hex value (E.g. #9900FF). Defaults to device
|
|
290
|
+
* Channel: Push Notifications Platform: Huawei Accent Color used on Action Buttons and Group overflow count. Uses RGB Hex value (E.g. #9900FF). Defaults to device\'s theme color if not set.
|
|
334
291
|
*/
|
|
335
292
|
'huawei_accent_color'?: string;
|
|
336
293
|
/**
|
|
337
|
-
* Channel: Push Notifications Platform: Android 5.0_
|
|
294
|
+
* Channel: Push Notifications Platform: Android 5.0_ ⚠️Deprecated, this field doesn\'t work on Android 8 (Oreo) and newer devices! Please use Notification Categories / Channels noted above instead to support ALL versions of Android. 1 = Public (default) (Shows the full message on the lock screen unless the user has disabled all notifications from showing on the lock screen. Please consider the user and mark private if the contents are.) 0 = Private (Hides message contents on lock screen if the user set \"Hide sensitive notification content\" in the system settings) -1 = Secret (Notification does not show on the lock screen at all)
|
|
338
295
|
*/
|
|
339
296
|
'android_visibility'?: number;
|
|
340
297
|
/**
|
|
341
|
-
* Channel: Push Notifications Platform: Huawei
|
|
298
|
+
* Channel: Push Notifications Platform: Huawei ⚠️Deprecated, this field ONLY works on EMUI 5 (Android 7 based) and older devices. Please also set Notification Categories / Channels noted above to support EMUI 8 (Android 8 based) devices. 1 = Public (default) (Shows the full message on the lock screen unless the user has disabled all notifications from showing on the lock screen. Please consider the user and mark private if the contents are.) 0 = Private (Hides message contents on lock screen if the user set \"Hide sensitive notification content\" in the system settings) -1 = Secret (Notification does not show on the lock screen at all)
|
|
342
299
|
*/
|
|
343
300
|
'huawei_visibility'?: number;
|
|
344
301
|
/**
|
|
345
|
-
* Channel: Push Notifications Platform: iOS Describes whether to set or increase/decrease your app's iOS badge count by the ios_badgeCount specified count. Can specify None, SetTo, or Increase. `None` leaves the count unaffected. `SetTo` directly sets the badge count to the number specified in ios_badgeCount. `Increase` adds the number specified in ios_badgeCount to the total. Use a negative number to decrease the badge count.
|
|
302
|
+
* Channel: Push Notifications Platform: iOS Describes whether to set or increase/decrease your app\'s iOS badge count by the ios_badgeCount specified count. Can specify None, SetTo, or Increase. `None` leaves the count unaffected. `SetTo` directly sets the badge count to the number specified in ios_badgeCount. `Increase` adds the number specified in ios_badgeCount to the total. Use a negative number to decrease the badge count.
|
|
346
303
|
*/
|
|
347
304
|
'ios_badge_type'?: string;
|
|
348
305
|
/**
|
|
349
|
-
* Channel: Push Notifications Platform: iOS Used with ios_badgeType, describes the value to set or amount to increase/decrease your app's iOS badge count by. You can use a negative number to decrease the badge count when used with an ios_badgeType of Increase.
|
|
306
|
+
* Channel: Push Notifications Platform: iOS Used with ios_badgeType, describes the value to set or amount to increase/decrease your app\'s iOS badge count by. You can use a negative number to decrease the badge count when used with an ios_badgeType of Increase.
|
|
350
307
|
*/
|
|
351
308
|
'ios_badge_count'?: number;
|
|
352
309
|
/**
|
|
@@ -358,13 +315,9 @@ export class Notification {
|
|
|
358
315
|
*/
|
|
359
316
|
'web_push_topic'?: string;
|
|
360
317
|
/**
|
|
361
|
-
* Channel: Push Notifications Platform: iOS 10+ iOS can localize push notification messages on the client using special parameters such as loc-key. When using the Create Notification endpoint, you must include these parameters inside of a field called apns_alert. Please see Apple's guide on localizing push notifications to learn more.
|
|
318
|
+
* Channel: Push Notifications Platform: iOS 10+ iOS can localize push notification messages on the client using special parameters such as loc-key. When using the Create Notification endpoint, you must include these parameters inside of a field called apns_alert. Please see Apple\'s guide on localizing push notifications to learn more.
|
|
362
319
|
*/
|
|
363
|
-
'apns_alert'?:
|
|
364
|
-
/**
|
|
365
|
-
* Channel: All Schedule notification for future delivery. API defaults to UTC -1100 Examples: All examples are the exact same date & time. \"Thu Sep 24 2015 14:00:00 GMT-0700 (PDT)\" \"September 24th 2015, 2:00:00 pm UTC-07:00\" \"2015-09-24 14:00:00 GMT-0700\" \"Sept 24 2015 14:00:00 GMT-0700\" \"Thu Sep 24 2015 14:00:00 GMT-0700 (Pacific Daylight Time)\" Note: SMS currently only supports send_after parameter.
|
|
366
|
-
*/
|
|
367
|
-
'send_after'?: string;
|
|
320
|
+
'apns_alert'?: object;
|
|
368
321
|
/**
|
|
369
322
|
* Channel: All Possible values are: timezone (Deliver at a specific time-of-day in each users own timezone) last-active Same as Intelligent Delivery . (Deliver at the same time of day as each user last used your app). If send_after is used, this takes effect after the send_after time has elapsed.
|
|
370
323
|
*/
|
|
@@ -390,7 +343,7 @@ export class Notification {
|
|
|
390
343
|
*/
|
|
391
344
|
'throttle_rate_per_minute'?: string;
|
|
392
345
|
/**
|
|
393
|
-
* Channel: Push Notifications Platform: Android Notifications with the same group will be stacked together using Android's Notification Grouping feature.
|
|
346
|
+
* Channel: Push Notifications Platform: Android Notifications with the same group will be stacked together using Android\'s Notification Grouping feature.
|
|
394
347
|
*/
|
|
395
348
|
'android_group'?: string;
|
|
396
349
|
/**
|
|
@@ -398,13 +351,13 @@ export class Notification {
|
|
|
398
351
|
*/
|
|
399
352
|
'android_group_message'?: string;
|
|
400
353
|
/**
|
|
401
|
-
* Channel: Push Notifications Platform: Amazon Notifications with the same group will be stacked together using Android's Notification Grouping feature.
|
|
354
|
+
* Channel: Push Notifications Platform: Amazon Notifications with the same group will be stacked together using Android\'s Notification Grouping feature.
|
|
402
355
|
*/
|
|
403
356
|
'adm_group'?: string;
|
|
404
357
|
/**
|
|
405
358
|
* Channel: Push Notifications Platform: Amazon Summary message to display when 2+ notifications are stacked together. Default is \"# new messages\". Include $[notif_count] in your message and it will be replaced with the current number. \"en\" (English) is required. The key of each hash is either a a 2 character language code or one of zh-Hans/zh-Hant for Simplified or Traditional Chinese. The value of each key is the message that will be sent to users for that language. Example: {\"en\": \"You have $[notif_count] new messages\"}
|
|
406
359
|
*/
|
|
407
|
-
'adm_group_message'?:
|
|
360
|
+
'adm_group_message'?: object;
|
|
408
361
|
/**
|
|
409
362
|
* Channel: Push Notifications Platform: iOS 12+ This parameter is supported in iOS 12 and above. It allows you to group related notifications together. If two notifications have the same thread-id, they will both be added to the same group.
|
|
410
363
|
*/
|
|
@@ -420,7 +373,7 @@ export class Notification {
|
|
|
420
373
|
/**
|
|
421
374
|
* Channel: Email Required. The subject of the email.
|
|
422
375
|
*/
|
|
423
|
-
'
|
|
376
|
+
'email_subject'?: string;
|
|
424
377
|
/**
|
|
425
378
|
* Channel: Email Required unless template_id is set. HTML suported The body of the email you wish to send. Typically, customers include their own HTML templates here. Must include [unsubscribe_url] in an <a> tag somewhere in the email. Note: any malformed HTML content will be sent to users. Please double-check your HTML is valid.
|
|
426
379
|
*/
|
|
@@ -441,6 +394,11 @@ export class Notification {
|
|
|
441
394
|
* Channel: SMS URLs for the media files to be attached to the SMS content. Limit: 10 media urls with a total max. size of 5MBs.
|
|
442
395
|
*/
|
|
443
396
|
'sms_media_urls'?: Array<string>;
|
|
397
|
+
'filters'?: Array<Filter>;
|
|
398
|
+
/**
|
|
399
|
+
* Channel: All Schedule notification for future delivery. API defaults to UTC -1100 Examples: All examples are the exact same date & time. \"Thu Sep 24 2015 14:00:00 GMT-0700 (PDT)\" \"September 24th 2015, 2:00:00 pm UTC-07:00\" \"2015-09-24 14:00:00 GMT-0700\" \"Sept 24 2015 14:00:00 GMT-0700\" \"Thu Sep 24 2015 14:00:00 GMT-0700 (Pacific Daylight Time)\" Note: SMS currently only supports send_after parameter.
|
|
400
|
+
*/
|
|
401
|
+
'send_after'?: string;
|
|
444
402
|
|
|
445
403
|
static readonly discriminator: string | undefined = undefined;
|
|
446
404
|
|
|
@@ -457,78 +415,6 @@ export class Notification {
|
|
|
457
415
|
"type": "Array<string>",
|
|
458
416
|
"format": ""
|
|
459
417
|
},
|
|
460
|
-
{
|
|
461
|
-
"name": "last_session",
|
|
462
|
-
"baseName": "last_session",
|
|
463
|
-
"type": "string",
|
|
464
|
-
"format": ""
|
|
465
|
-
},
|
|
466
|
-
{
|
|
467
|
-
"name": "first_session",
|
|
468
|
-
"baseName": "first_session",
|
|
469
|
-
"type": "string",
|
|
470
|
-
"format": ""
|
|
471
|
-
},
|
|
472
|
-
{
|
|
473
|
-
"name": "session_count",
|
|
474
|
-
"baseName": "session_count",
|
|
475
|
-
"type": "string",
|
|
476
|
-
"format": ""
|
|
477
|
-
},
|
|
478
|
-
{
|
|
479
|
-
"name": "session_time",
|
|
480
|
-
"baseName": "session_time",
|
|
481
|
-
"type": "string",
|
|
482
|
-
"format": ""
|
|
483
|
-
},
|
|
484
|
-
{
|
|
485
|
-
"name": "amount_spent",
|
|
486
|
-
"baseName": "amount_spent",
|
|
487
|
-
"type": "string",
|
|
488
|
-
"format": ""
|
|
489
|
-
},
|
|
490
|
-
{
|
|
491
|
-
"name": "bought_sku",
|
|
492
|
-
"baseName": "bought_sku",
|
|
493
|
-
"type": "string",
|
|
494
|
-
"format": ""
|
|
495
|
-
},
|
|
496
|
-
{
|
|
497
|
-
"name": "tag",
|
|
498
|
-
"baseName": "tag",
|
|
499
|
-
"type": "string",
|
|
500
|
-
"format": ""
|
|
501
|
-
},
|
|
502
|
-
{
|
|
503
|
-
"name": "language",
|
|
504
|
-
"baseName": "language",
|
|
505
|
-
"type": "string",
|
|
506
|
-
"format": ""
|
|
507
|
-
},
|
|
508
|
-
{
|
|
509
|
-
"name": "app_version",
|
|
510
|
-
"baseName": "app_version",
|
|
511
|
-
"type": "string",
|
|
512
|
-
"format": ""
|
|
513
|
-
},
|
|
514
|
-
{
|
|
515
|
-
"name": "location",
|
|
516
|
-
"baseName": "location",
|
|
517
|
-
"type": "string",
|
|
518
|
-
"format": ""
|
|
519
|
-
},
|
|
520
|
-
{
|
|
521
|
-
"name": "email",
|
|
522
|
-
"baseName": "email",
|
|
523
|
-
"type": "string",
|
|
524
|
-
"format": ""
|
|
525
|
-
},
|
|
526
|
-
{
|
|
527
|
-
"name": "country",
|
|
528
|
-
"baseName": "country",
|
|
529
|
-
"type": "string",
|
|
530
|
-
"format": ""
|
|
531
|
-
},
|
|
532
418
|
{
|
|
533
419
|
"name": "include_player_ids",
|
|
534
420
|
"baseName": "include_player_ids",
|
|
@@ -601,6 +487,12 @@ export class Notification {
|
|
|
601
487
|
"type": "number",
|
|
602
488
|
"format": ""
|
|
603
489
|
},
|
|
490
|
+
{
|
|
491
|
+
"name": "name",
|
|
492
|
+
"baseName": "name",
|
|
493
|
+
"type": "string",
|
|
494
|
+
"format": ""
|
|
495
|
+
},
|
|
604
496
|
{
|
|
605
497
|
"name": "aggregation",
|
|
606
498
|
"baseName": "aggregation",
|
|
@@ -706,7 +598,7 @@ export class Notification {
|
|
|
706
598
|
{
|
|
707
599
|
"name": "data",
|
|
708
600
|
"baseName": "data",
|
|
709
|
-
"type": "
|
|
601
|
+
"type": "object",
|
|
710
602
|
"format": ""
|
|
711
603
|
},
|
|
712
604
|
{
|
|
@@ -736,7 +628,7 @@ export class Notification {
|
|
|
736
628
|
{
|
|
737
629
|
"name": "ios_attachments",
|
|
738
630
|
"baseName": "ios_attachments",
|
|
739
|
-
"type": "
|
|
631
|
+
"type": "object",
|
|
740
632
|
"format": ""
|
|
741
633
|
},
|
|
742
634
|
{
|
|
@@ -838,7 +730,7 @@ export class Notification {
|
|
|
838
730
|
{
|
|
839
731
|
"name": "android_background_layout",
|
|
840
732
|
"baseName": "android_background_layout",
|
|
841
|
-
"type": "
|
|
733
|
+
"type": "BasicNotificationAllOfAndroidBackgroundLayout",
|
|
842
734
|
"format": ""
|
|
843
735
|
},
|
|
844
736
|
{
|
|
@@ -994,13 +886,7 @@ export class Notification {
|
|
|
994
886
|
{
|
|
995
887
|
"name": "apns_alert",
|
|
996
888
|
"baseName": "apns_alert",
|
|
997
|
-
"type": "
|
|
998
|
-
"format": ""
|
|
999
|
-
},
|
|
1000
|
-
{
|
|
1001
|
-
"name": "send_after",
|
|
1002
|
-
"baseName": "send_after",
|
|
1003
|
-
"type": "string",
|
|
889
|
+
"type": "object",
|
|
1004
890
|
"format": ""
|
|
1005
891
|
},
|
|
1006
892
|
{
|
|
@@ -1060,7 +946,7 @@ export class Notification {
|
|
|
1060
946
|
{
|
|
1061
947
|
"name": "adm_group_message",
|
|
1062
948
|
"baseName": "adm_group_message",
|
|
1063
|
-
"type": "
|
|
949
|
+
"type": "object",
|
|
1064
950
|
"format": ""
|
|
1065
951
|
},
|
|
1066
952
|
{
|
|
@@ -1082,8 +968,8 @@ export class Notification {
|
|
|
1082
968
|
"format": ""
|
|
1083
969
|
},
|
|
1084
970
|
{
|
|
1085
|
-
"name": "
|
|
1086
|
-
"baseName": "
|
|
971
|
+
"name": "email_subject",
|
|
972
|
+
"baseName": "email_subject",
|
|
1087
973
|
"type": "string",
|
|
1088
974
|
"format": ""
|
|
1089
975
|
},
|
|
@@ -1116,12 +1002,24 @@ export class Notification {
|
|
|
1116
1002
|
"baseName": "sms_media_urls",
|
|
1117
1003
|
"type": "Array<string>",
|
|
1118
1004
|
"format": ""
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
"name": "filters",
|
|
1008
|
+
"baseName": "filters",
|
|
1009
|
+
"type": "Array<Filter>",
|
|
1010
|
+
"format": ""
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
"name": "send_after",
|
|
1014
|
+
"baseName": "send_after",
|
|
1015
|
+
"type": "string",
|
|
1016
|
+
"format": "date-time"
|
|
1119
1017
|
} ];
|
|
1120
1018
|
|
|
1121
1019
|
static getAttributeTypeMap() {
|
|
1122
1020
|
return Notification.attributeTypeMap;
|
|
1123
1021
|
}
|
|
1124
|
-
|
|
1022
|
+
|
|
1125
1023
|
public constructor() {
|
|
1126
1024
|
}
|
|
1127
1025
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OneSignal
|
|
3
|
+
* A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
|
|
4
|
+
*
|
|
5
|
+
* API Version: 1.0.1
|
|
6
|
+
* Contact: devrel@onesignal.com
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { InvalidIdentifierError } from './InvalidIdentifierError';
|
|
10
|
+
import { HttpFile } from '../http/http';
|
|
11
|
+
|
|
12
|
+
export class Notification200Errors {
|
|
13
|
+
/**
|
|
14
|
+
* Returned if using include_external_user_ids
|
|
15
|
+
*/
|
|
16
|
+
'invalid_external_user_ids'?: Array<string>;
|
|
17
|
+
/**
|
|
18
|
+
* Returned if using include_player_ids and some were valid and others were not.
|
|
19
|
+
*/
|
|
20
|
+
'invalid_player_ids'?: Array<string>;
|
|
21
|
+
|
|
22
|
+
static readonly discriminator: string | undefined = undefined;
|
|
23
|
+
|
|
24
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
25
|
+
{
|
|
26
|
+
"name": "invalid_external_user_ids",
|
|
27
|
+
"baseName": "invalid_external_user_ids",
|
|
28
|
+
"type": "Array<string>",
|
|
29
|
+
"format": ""
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "invalid_player_ids",
|
|
33
|
+
"baseName": "invalid_player_ids",
|
|
34
|
+
"type": "Array<string>",
|
|
35
|
+
"format": ""
|
|
36
|
+
} ];
|
|
37
|
+
|
|
38
|
+
static getAttributeTypeMap() {
|
|
39
|
+
return Notification200Errors.attributeTypeMap;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
public constructor() {
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|