@onesignal/node-onesignal 2.0.0-beta1 → 2.0.1-beta2
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/DefaultApi.md +126 -4
- package/apis/DefaultApi.ts +623 -95
- package/dist/apis/DefaultApi.d.ts +3 -0
- package/dist/apis/DefaultApi.js +1063 -415
- package/dist/apis/DefaultApi.js.map +1 -1
- package/dist/models/BasicNotification.d.ts +3 -0
- package/dist/models/BasicNotification.js +18 -0
- package/dist/models/BasicNotification.js.map +1 -1
- package/dist/models/BasicNotificationAllOf.d.ts +3 -0
- package/dist/models/BasicNotificationAllOf.js +18 -0
- package/dist/models/BasicNotificationAllOf.js.map +1 -1
- package/dist/models/{BadRequestError.d.ts → ExportEventsSuccessResponse.d.ts} +2 -2
- package/dist/models/ExportEventsSuccessResponse.js +22 -0
- package/dist/models/ExportEventsSuccessResponse.js.map +1 -0
- package/dist/models/{CreateSegmentBadRequestResponse.d.ts → GenericError.d.ts} +3 -3
- package/dist/models/GenericError.js +22 -0
- package/dist/models/GenericError.js.map +1 -0
- package/dist/models/{IdentifyUserConflictResponseErrorsInner.d.ts → GenericErrorErrorsInner.d.ts} +1 -1
- package/dist/models/GenericErrorErrorsInner.js +28 -0
- package/dist/models/GenericErrorErrorsInner.js.map +1 -0
- package/dist/models/Notification.d.ts +3 -0
- package/dist/models/Notification.js +18 -0
- package/dist/models/Notification.js.map +1 -1
- package/dist/models/NotificationWithMeta.d.ts +3 -0
- package/dist/models/NotificationWithMeta.js +18 -0
- package/dist/models/NotificationWithMeta.js.map +1 -1
- package/dist/models/ObjectSerializer.d.ts +4 -3
- package/dist/models/ObjectSerializer.js +12 -9
- package/dist/models/ObjectSerializer.js.map +1 -1
- package/dist/models/{DeletePlayerBadRequestResponse.d.ts → RateLimiterError.d.ts} +3 -2
- package/dist/models/RateLimiterError.js +22 -0
- package/dist/models/RateLimiterError.js.map +1 -0
- package/dist/models/all.d.ts +4 -3
- package/dist/models/all.js +4 -3
- package/dist/models/all.js.map +1 -1
- package/dist/types/ObjectParamAPI.d.ts +6 -0
- package/dist/types/ObjectParamAPI.js +3 -0
- package/dist/types/ObjectParamAPI.js.map +1 -1
- package/dist/types/ObservableAPI.d.ts +2 -0
- package/dist/types/ObservableAPI.js +89 -65
- package/dist/types/ObservableAPI.js.map +1 -1
- package/dist/types/PromiseAPI.d.ts +2 -0
- package/dist/types/PromiseAPI.js +4 -0
- package/dist/types/PromiseAPI.js.map +1 -1
- package/models/App.ts +1 -1
- package/models/BasicNotification.ts +31 -1
- package/models/BasicNotificationAllOf.ts +31 -1
- package/models/BasicNotificationAllOfAndroidBackgroundLayout.ts +1 -1
- package/models/BeginLiveActivityRequest.ts +1 -1
- package/models/Button.ts +1 -1
- package/models/CancelNotificationSuccessResponse.ts +1 -1
- package/models/CreateNotificationSuccessResponse.ts +1 -1
- package/models/CreatePlayerSuccessResponse.ts +1 -1
- package/models/CreateSegmentConflictResponse.ts +1 -1
- package/models/CreateSegmentSuccessResponse.ts +1 -1
- package/models/CreateSubscriptionRequestBody.ts +1 -1
- package/models/CreateUserConflictResponse.ts +1 -1
- package/models/CreateUserConflictResponseErrorsInner.ts +1 -1
- package/models/CreateUserConflictResponseErrorsItemsMeta.ts +1 -1
- package/models/DeletePlayerNotFoundResponse.ts +1 -1
- package/models/DeletePlayerSuccessResponse.ts +1 -1
- package/models/DeleteSegmentNotFoundResponse.ts +1 -1
- package/models/DeleteSegmentSuccessResponse.ts +1 -1
- package/models/DeliveryData.ts +1 -1
- package/models/{DeletePlayerBadRequestResponse.ts → ExportEventsSuccessResponse.ts} +7 -7
- package/models/ExportPlayersRequestBody.ts +1 -1
- package/models/ExportPlayersSuccessResponse.ts +1 -1
- package/models/Filter.ts +1 -1
- package/models/FilterExpressions.ts +1 -1
- package/models/{CreateNotificationBadRequestResponse.ts → GenericError.ts} +6 -5
- package/models/{IdentifyUserConflictResponseErrorsInner.ts → GenericErrorErrorsInner.ts} +3 -3
- package/models/GetNotificationRequestBody.ts +1 -1
- package/models/InlineResponse200.ts +1 -1
- package/models/InlineResponse2003.ts +1 -1
- package/models/InlineResponse201.ts +1 -1
- package/models/InlineResponse202.ts +1 -1
- package/models/InvalidIdentifierError.ts +1 -1
- package/models/Notification.ts +31 -1
- package/models/Notification200Errors.ts +1 -1
- package/models/NotificationAllOf.ts +1 -1
- package/models/NotificationHistorySuccessResponse.ts +1 -1
- package/models/NotificationSlice.ts +1 -1
- package/models/NotificationTarget.ts +1 -1
- package/models/NotificationWithMeta.ts +31 -1
- package/models/NotificationWithMetaAllOf.ts +1 -1
- package/models/ObjectSerializer.ts +16 -13
- package/models/Operator.ts +1 -1
- package/models/OutcomeData.ts +1 -1
- package/models/OutcomesData.ts +1 -1
- package/models/PlatformDeliveryData.ts +1 -1
- package/models/PlatformDeliveryDataEmailAllOf.ts +1 -1
- package/models/PlatformDeliveryDataSmsAllOf.ts +1 -1
- package/models/Player.ts +1 -1
- package/models/PlayerNotificationTarget.ts +1 -1
- package/models/PlayerNotificationTargetIncludeAliases.ts +1 -1
- package/models/PlayerSlice.ts +1 -1
- package/models/PropertiesDeltas.ts +1 -1
- package/models/PropertiesObject.ts +1 -1
- package/models/Purchase.ts +1 -1
- package/models/{BadRequestError.ts → RateLimiterError.ts} +6 -5
- package/models/Segment.ts +1 -1
- package/models/SegmentNotificationTarget.ts +1 -1
- package/models/StringMap.ts +1 -1
- package/models/SubscriptionObject.ts +1 -1
- package/models/TransferSubscriptionRequestBody.ts +1 -1
- package/models/UpdateLiveActivityRequest.ts +1 -1
- package/models/UpdateLiveActivitySuccessResponse.ts +1 -1
- package/models/UpdatePlayerSuccessResponse.ts +1 -1
- package/models/UpdatePlayerTagsRequestBody.ts +1 -1
- package/models/UpdatePlayerTagsSuccessResponse.ts +1 -1
- package/models/UpdateSubscriptionRequestBody.ts +1 -1
- package/models/UpdateUserRequest.ts +1 -1
- package/models/User.ts +1 -1
- package/models/UserIdentityRequestBody.ts +1 -1
- package/models/UserIdentityResponse.ts +1 -1
- package/models/UserSubscriptionOptions.ts +1 -1
- package/models/all.ts +4 -3
- package/package.json +2 -2
- package/types/ObjectParamAPI.ts +29 -4
- package/types/ObservableAPI.ts +30 -4
- package/types/PromiseAPI.ts +16 -4
- package/dist/models/BadRequestError.js +0 -22
- package/dist/models/BadRequestError.js.map +0 -1
- package/dist/models/CreateNotificationBadRequestResponse.d.ts +0 -17
- package/dist/models/CreateNotificationBadRequestResponse.js +0 -22
- package/dist/models/CreateNotificationBadRequestResponse.js.map +0 -1
- package/dist/models/CreateSegmentBadRequestResponse.js +0 -28
- package/dist/models/CreateSegmentBadRequestResponse.js.map +0 -1
- package/dist/models/DeletePlayerBadRequestResponse.js +0 -22
- package/dist/models/DeletePlayerBadRequestResponse.js.map +0 -1
- package/dist/models/DeleteSegmentBadRequestResponse.d.ts +0 -17
- package/dist/models/DeleteSegmentBadRequestResponse.js +0 -22
- package/dist/models/DeleteSegmentBadRequestResponse.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/IdentifyUserConflictResponse.d.ts +0 -18
- package/dist/models/IdentifyUserConflictResponse.js +0 -22
- package/dist/models/IdentifyUserConflictResponse.js.map +0 -1
- package/dist/models/IdentifyUserConflictResponseErrorsInner.js +0 -28
- package/dist/models/IdentifyUserConflictResponseErrorsInner.js.map +0 -1
- package/dist/models/NotificationHistoryBadRequestResponse.d.ts +0 -18
- package/dist/models/NotificationHistoryBadRequestResponse.js +0 -28
- package/dist/models/NotificationHistoryBadRequestResponse.js.map +0 -1
- package/models/CreateSegmentBadRequestResponse.ts +0 -38
- package/models/DeleteSegmentBadRequestResponse.ts +0 -31
- package/models/FilterNotificationTarget.ts +0 -144
- package/models/IdentifyUserConflictResponse.ts +0 -32
- package/models/NotificationHistoryBadRequestResponse.ts +0 -38
package/models/Filter.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.
|
|
5
|
+
* API Version: 1.2.2
|
|
6
6
|
* Contact: devrel@onesignal.com
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
+
import { GenericErrorErrorsInner } from './GenericErrorErrorsInner';
|
|
9
10
|
import { HttpFile } from '../http/http';
|
|
10
11
|
|
|
11
|
-
export class
|
|
12
|
-
'errors'?: Array<
|
|
12
|
+
export class GenericError {
|
|
13
|
+
'errors'?: Array<GenericErrorErrorsInner>;
|
|
13
14
|
|
|
14
15
|
static readonly discriminator: string | undefined = undefined;
|
|
15
16
|
|
|
@@ -17,12 +18,12 @@ export class CreateNotificationBadRequestResponse {
|
|
|
17
18
|
{
|
|
18
19
|
"name": "errors",
|
|
19
20
|
"baseName": "errors",
|
|
20
|
-
"type": "Array<
|
|
21
|
+
"type": "Array<GenericErrorErrorsInner>",
|
|
21
22
|
"format": ""
|
|
22
23
|
} ];
|
|
23
24
|
|
|
24
25
|
static getAttributeTypeMap() {
|
|
25
|
-
return
|
|
26
|
+
return GenericError.attributeTypeMap;
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
public constructor() {
|
|
@@ -2,13 +2,13 @@
|
|
|
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.2.
|
|
5
|
+
* API Version: 1.2.2
|
|
6
6
|
* Contact: devrel@onesignal.com
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { HttpFile } from '../http/http';
|
|
10
10
|
|
|
11
|
-
export class
|
|
11
|
+
export class GenericErrorErrorsInner {
|
|
12
12
|
'code'?: string;
|
|
13
13
|
'title'?: string;
|
|
14
14
|
|
|
@@ -29,7 +29,7 @@ export class IdentifyUserConflictResponseErrorsInner {
|
|
|
29
29
|
} ];
|
|
30
30
|
|
|
31
31
|
static getAttributeTypeMap() {
|
|
32
|
-
return
|
|
32
|
+
return GenericErrorErrorsInner.attributeTypeMap;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
public constructor() {
|
package/models/Notification.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
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.2.
|
|
5
|
+
* API Version: 1.2.2
|
|
6
6
|
* Contact: devrel@onesignal.com
|
|
7
7
|
*/
|
|
8
8
|
|
|
@@ -390,6 +390,14 @@ export class Notification {
|
|
|
390
390
|
*/
|
|
391
391
|
'email_from_address'?: string;
|
|
392
392
|
/**
|
|
393
|
+
* Channel: Email The preheader text of the email. Preheader is the preview text displayed immediately after an email subject that provides additional context about the email content. If not specified, will default to null.
|
|
394
|
+
*/
|
|
395
|
+
'email_preheader'?: string;
|
|
396
|
+
/**
|
|
397
|
+
* Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP\'s list of unsubscribed emails to be cleared.
|
|
398
|
+
*/
|
|
399
|
+
'include_unsubscribed'?: boolean;
|
|
400
|
+
/**
|
|
393
401
|
* Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format.
|
|
394
402
|
*/
|
|
395
403
|
'sms_from'?: string;
|
|
@@ -399,6 +407,10 @@ export class Notification {
|
|
|
399
407
|
'sms_media_urls'?: Array<string>;
|
|
400
408
|
'filters'?: Array<Filter>;
|
|
401
409
|
/**
|
|
410
|
+
* Channel: All JSON object that can be used as a source of message personalization data for fields that support tag variable substitution. Push, SMS: Can accept up to 2048 bytes of valid JSON. Email: Can accept up to 10000 bytes of valid JSON. Example: {\"order_id\": 123, \"currency\": \"USD\", \"amount\": 25}
|
|
411
|
+
*/
|
|
412
|
+
'custom_data'?: object;
|
|
413
|
+
/**
|
|
402
414
|
* 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.
|
|
403
415
|
*/
|
|
404
416
|
'send_after'?: string;
|
|
@@ -1006,6 +1018,18 @@ export class Notification {
|
|
|
1006
1018
|
"type": "string",
|
|
1007
1019
|
"format": ""
|
|
1008
1020
|
},
|
|
1021
|
+
{
|
|
1022
|
+
"name": "email_preheader",
|
|
1023
|
+
"baseName": "email_preheader",
|
|
1024
|
+
"type": "string",
|
|
1025
|
+
"format": ""
|
|
1026
|
+
},
|
|
1027
|
+
{
|
|
1028
|
+
"name": "include_unsubscribed",
|
|
1029
|
+
"baseName": "include_unsubscribed",
|
|
1030
|
+
"type": "boolean",
|
|
1031
|
+
"format": ""
|
|
1032
|
+
},
|
|
1009
1033
|
{
|
|
1010
1034
|
"name": "sms_from",
|
|
1011
1035
|
"baseName": "sms_from",
|
|
@@ -1024,6 +1048,12 @@ export class Notification {
|
|
|
1024
1048
|
"type": "Array<Filter>",
|
|
1025
1049
|
"format": ""
|
|
1026
1050
|
},
|
|
1051
|
+
{
|
|
1052
|
+
"name": "custom_data",
|
|
1053
|
+
"baseName": "custom_data",
|
|
1054
|
+
"type": "object",
|
|
1055
|
+
"format": ""
|
|
1056
|
+
},
|
|
1027
1057
|
{
|
|
1028
1058
|
"name": "send_after",
|
|
1029
1059
|
"baseName": "send_after",
|
|
@@ -2,7 +2,7 @@
|
|
|
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.2.
|
|
5
|
+
* API Version: 1.2.2
|
|
6
6
|
* Contact: devrel@onesignal.com
|
|
7
7
|
*/
|
|
8
8
|
|
|
@@ -394,6 +394,14 @@ export class NotificationWithMeta {
|
|
|
394
394
|
*/
|
|
395
395
|
'email_from_address'?: string;
|
|
396
396
|
/**
|
|
397
|
+
* Channel: Email The preheader text of the email. Preheader is the preview text displayed immediately after an email subject that provides additional context about the email content. If not specified, will default to null.
|
|
398
|
+
*/
|
|
399
|
+
'email_preheader'?: string;
|
|
400
|
+
/**
|
|
401
|
+
* Channel: Email Default is `false`. This field is used to send transactional notifications. If set to `true`, this notification will also be sent to unsubscribed emails. If a `template_id` is provided, the `include_unsubscribed` value from the template will be inherited. If you are using a third-party ESP, this field requires the ESP\'s list of unsubscribed emails to be cleared.
|
|
402
|
+
*/
|
|
403
|
+
'include_unsubscribed'?: boolean;
|
|
404
|
+
/**
|
|
397
405
|
* Channel: SMS Phone Number used to send SMS. Should be a registered Twilio phone number in E.164 format.
|
|
398
406
|
*/
|
|
399
407
|
'sms_from'?: string;
|
|
@@ -403,6 +411,10 @@ export class NotificationWithMeta {
|
|
|
403
411
|
'sms_media_urls'?: Array<string>;
|
|
404
412
|
'filters'?: Array<Filter>;
|
|
405
413
|
/**
|
|
414
|
+
* Channel: All JSON object that can be used as a source of message personalization data for fields that support tag variable substitution. Push, SMS: Can accept up to 2048 bytes of valid JSON. Email: Can accept up to 10000 bytes of valid JSON. Example: {\"order_id\": 123, \"currency\": \"USD\", \"amount\": 25}
|
|
415
|
+
*/
|
|
416
|
+
'custom_data'?: object;
|
|
417
|
+
/**
|
|
406
418
|
* Number of notifications that were successfully delivered.
|
|
407
419
|
*/
|
|
408
420
|
'successful'?: number;
|
|
@@ -1044,6 +1056,18 @@ export class NotificationWithMeta {
|
|
|
1044
1056
|
"type": "string",
|
|
1045
1057
|
"format": ""
|
|
1046
1058
|
},
|
|
1059
|
+
{
|
|
1060
|
+
"name": "email_preheader",
|
|
1061
|
+
"baseName": "email_preheader",
|
|
1062
|
+
"type": "string",
|
|
1063
|
+
"format": ""
|
|
1064
|
+
},
|
|
1065
|
+
{
|
|
1066
|
+
"name": "include_unsubscribed",
|
|
1067
|
+
"baseName": "include_unsubscribed",
|
|
1068
|
+
"type": "boolean",
|
|
1069
|
+
"format": ""
|
|
1070
|
+
},
|
|
1047
1071
|
{
|
|
1048
1072
|
"name": "sms_from",
|
|
1049
1073
|
"baseName": "sms_from",
|
|
@@ -1062,6 +1086,12 @@ export class NotificationWithMeta {
|
|
|
1062
1086
|
"type": "Array<Filter>",
|
|
1063
1087
|
"format": ""
|
|
1064
1088
|
},
|
|
1089
|
+
{
|
|
1090
|
+
"name": "custom_data",
|
|
1091
|
+
"baseName": "custom_data",
|
|
1092
|
+
"type": "object",
|
|
1093
|
+
"format": ""
|
|
1094
|
+
},
|
|
1065
1095
|
{
|
|
1066
1096
|
"name": "successful",
|
|
1067
1097
|
"baseName": "successful",
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export * from './App';
|
|
2
|
-
export * from './BadRequestError';
|
|
3
2
|
export * from './BasicNotification';
|
|
4
3
|
export * from './BasicNotificationAllOf';
|
|
5
4
|
export * from './BasicNotificationAllOfAndroidBackgroundLayout';
|
|
@@ -19,13 +18,14 @@ export * from './DeletePlayerSuccessResponse';
|
|
|
19
18
|
export * from './DeleteSegmentNotFoundResponse';
|
|
20
19
|
export * from './DeleteSegmentSuccessResponse';
|
|
21
20
|
export * from './DeliveryData';
|
|
21
|
+
export * from './ExportEventsSuccessResponse';
|
|
22
22
|
export * from './ExportPlayersRequestBody';
|
|
23
23
|
export * from './ExportPlayersSuccessResponse';
|
|
24
24
|
export * from './Filter';
|
|
25
25
|
export * from './FilterExpressions';
|
|
26
|
+
export * from './GenericError';
|
|
27
|
+
export * from './GenericErrorErrorsInner';
|
|
26
28
|
export * from './GetNotificationRequestBody';
|
|
27
|
-
export * from './IdentifyUserConflictResponse';
|
|
28
|
-
export * from './IdentifyUserConflictResponseErrorsInner';
|
|
29
29
|
export * from './InlineResponse200';
|
|
30
30
|
export * from './InlineResponse2003';
|
|
31
31
|
export * from './InlineResponse201';
|
|
@@ -52,6 +52,7 @@ export * from './PlayerSlice';
|
|
|
52
52
|
export * from './PropertiesDeltas';
|
|
53
53
|
export * from './PropertiesObject';
|
|
54
54
|
export * from './Purchase';
|
|
55
|
+
export * from './RateLimiterError';
|
|
55
56
|
export * from './Segment';
|
|
56
57
|
export * from './SegmentNotificationTarget';
|
|
57
58
|
export * from './StringMap';
|
|
@@ -70,9 +71,8 @@ export * from './UserIdentityResponse';
|
|
|
70
71
|
export * from './UserSubscriptionOptions';
|
|
71
72
|
|
|
72
73
|
import { App , AppApnsEnvEnum } from './App';
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import { BasicNotificationAllOf , BasicNotificationAllOfAggregationEnum } from './BasicNotificationAllOf';
|
|
74
|
+
import { BasicNotification , BasicNotificationTargetChannelEnum , BasicNotificationAggregationEnum } from './BasicNotification';
|
|
75
|
+
import { BasicNotificationAllOf , BasicNotificationAllOfAggregationEnum } from './BasicNotificationAllOf';
|
|
76
76
|
import { BasicNotificationAllOfAndroidBackgroundLayout } from './BasicNotificationAllOfAndroidBackgroundLayout';
|
|
77
77
|
import { BeginLiveActivityRequest } from './BeginLiveActivityRequest';
|
|
78
78
|
import { Button } from './Button';
|
|
@@ -90,25 +90,26 @@ import { DeletePlayerSuccessResponse } from './DeletePlayerSuccessResponse';
|
|
|
90
90
|
import { DeleteSegmentNotFoundResponse } from './DeleteSegmentNotFoundResponse';
|
|
91
91
|
import { DeleteSegmentSuccessResponse } from './DeleteSegmentSuccessResponse';
|
|
92
92
|
import { DeliveryData } from './DeliveryData';
|
|
93
|
+
import { ExportEventsSuccessResponse } from './ExportEventsSuccessResponse';
|
|
93
94
|
import { ExportPlayersRequestBody } from './ExportPlayersRequestBody';
|
|
94
95
|
import { ExportPlayersSuccessResponse } from './ExportPlayersSuccessResponse';
|
|
95
96
|
import { Filter , FilterRelationEnum } from './Filter';
|
|
96
97
|
import { FilterExpressions , FilterExpressionsRelationEnum , FilterExpressionsOperatorEnum } from './FilterExpressions';
|
|
98
|
+
import { GenericError } from './GenericError';
|
|
99
|
+
import { GenericErrorErrorsInner } from './GenericErrorErrorsInner';
|
|
97
100
|
import { GetNotificationRequestBody, GetNotificationRequestBodyEventsEnum } from './GetNotificationRequestBody';
|
|
98
|
-
import { IdentifyUserConflictResponse } from './IdentifyUserConflictResponse';
|
|
99
|
-
import { IdentifyUserConflictResponseErrorsInner } from './IdentifyUserConflictResponseErrorsInner';
|
|
100
101
|
import { InlineResponse200 } from './InlineResponse200';
|
|
101
102
|
import { InlineResponse2003 } from './InlineResponse2003';
|
|
102
103
|
import { InlineResponse201 } from './InlineResponse201';
|
|
103
104
|
import { InlineResponse202 } from './InlineResponse202';
|
|
104
105
|
import { InvalidIdentifierError } from './InvalidIdentifierError';
|
|
105
|
-
import { Notification , NotificationTargetChannelEnum , NotificationAggregationEnum
|
|
106
|
+
import { Notification , NotificationTargetChannelEnum , NotificationAggregationEnum } from './Notification';
|
|
106
107
|
import { Notification200Errors } from './Notification200Errors';
|
|
107
108
|
import { NotificationAllOf } from './NotificationAllOf';
|
|
108
109
|
import { NotificationHistorySuccessResponse } from './NotificationHistorySuccessResponse';
|
|
109
110
|
import { NotificationSlice } from './NotificationSlice';
|
|
110
111
|
import { NotificationTarget , NotificationTargetTargetChannelEnum } from './NotificationTarget';
|
|
111
|
-
import { NotificationWithMeta , NotificationWithMetaTargetChannelEnum , NotificationWithMetaAggregationEnum
|
|
112
|
+
import { NotificationWithMeta , NotificationWithMetaTargetChannelEnum , NotificationWithMetaAggregationEnum } from './NotificationWithMeta';
|
|
112
113
|
import { NotificationWithMetaAllOf } from './NotificationWithMetaAllOf';
|
|
113
114
|
import { Operator, OperatorOperatorEnum } from './Operator';
|
|
114
115
|
import { OutcomeData , OutcomeDataAggregationEnum } from './OutcomeData';
|
|
@@ -123,6 +124,7 @@ import { PlayerSlice } from './PlayerSlice';
|
|
|
123
124
|
import { PropertiesDeltas } from './PropertiesDeltas';
|
|
124
125
|
import { PropertiesObject } from './PropertiesObject';
|
|
125
126
|
import { Purchase } from './Purchase';
|
|
127
|
+
import { RateLimiterError } from './RateLimiterError';
|
|
126
128
|
import { Segment } from './Segment';
|
|
127
129
|
import { SegmentNotificationTarget } from './SegmentNotificationTarget';
|
|
128
130
|
import { StringMap } from './StringMap';
|
|
@@ -183,7 +185,6 @@ let enumsMap: Set<string> = new Set<string>([
|
|
|
183
185
|
|
|
184
186
|
let typeMap: {[index: string]: any} = {
|
|
185
187
|
"App": App,
|
|
186
|
-
"BadRequestError": BadRequestError,
|
|
187
188
|
"BasicNotification": BasicNotification,
|
|
188
189
|
"BasicNotificationAllOf": BasicNotificationAllOf,
|
|
189
190
|
"BasicNotificationAllOfAndroidBackgroundLayout": BasicNotificationAllOfAndroidBackgroundLayout,
|
|
@@ -203,13 +204,14 @@ let typeMap: {[index: string]: any} = {
|
|
|
203
204
|
"DeleteSegmentNotFoundResponse": DeleteSegmentNotFoundResponse,
|
|
204
205
|
"DeleteSegmentSuccessResponse": DeleteSegmentSuccessResponse,
|
|
205
206
|
"DeliveryData": DeliveryData,
|
|
207
|
+
"ExportEventsSuccessResponse": ExportEventsSuccessResponse,
|
|
206
208
|
"ExportPlayersRequestBody": ExportPlayersRequestBody,
|
|
207
209
|
"ExportPlayersSuccessResponse": ExportPlayersSuccessResponse,
|
|
208
210
|
"Filter": Filter,
|
|
209
211
|
"FilterExpressions": FilterExpressions,
|
|
212
|
+
"GenericError": GenericError,
|
|
213
|
+
"GenericErrorErrorsInner": GenericErrorErrorsInner,
|
|
210
214
|
"GetNotificationRequestBody": GetNotificationRequestBody,
|
|
211
|
-
"IdentifyUserConflictResponse": IdentifyUserConflictResponse,
|
|
212
|
-
"IdentifyUserConflictResponseErrorsInner": IdentifyUserConflictResponseErrorsInner,
|
|
213
215
|
"InlineResponse200": InlineResponse200,
|
|
214
216
|
"InlineResponse2003": InlineResponse2003,
|
|
215
217
|
"InlineResponse201": InlineResponse201,
|
|
@@ -236,6 +238,7 @@ let typeMap: {[index: string]: any} = {
|
|
|
236
238
|
"PropertiesDeltas": PropertiesDeltas,
|
|
237
239
|
"PropertiesObject": PropertiesObject,
|
|
238
240
|
"Purchase": Purchase,
|
|
241
|
+
"RateLimiterError": RateLimiterError,
|
|
239
242
|
"Segment": Segment,
|
|
240
243
|
"SegmentNotificationTarget": SegmentNotificationTarget,
|
|
241
244
|
"StringMap": StringMap,
|
package/models/Operator.ts
CHANGED
package/models/OutcomeData.ts
CHANGED
package/models/OutcomesData.ts
CHANGED
package/models/Player.ts
CHANGED
package/models/PlayerSlice.ts
CHANGED
package/models/Purchase.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.2.
|
|
5
|
+
* API Version: 1.2.2
|
|
6
6
|
* Contact: devrel@onesignal.com
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
+
import { GenericErrorErrorsInner } from './GenericErrorErrorsInner';
|
|
9
10
|
import { HttpFile } from '../http/http';
|
|
10
11
|
|
|
11
|
-
export class
|
|
12
|
-
'errors'?: Array<
|
|
12
|
+
export class RateLimiterError {
|
|
13
|
+
'errors'?: Array<GenericErrorErrorsInner>;
|
|
13
14
|
|
|
14
15
|
static readonly discriminator: string | undefined = undefined;
|
|
15
16
|
|
|
@@ -17,12 +18,12 @@ export class BadRequestError {
|
|
|
17
18
|
{
|
|
18
19
|
"name": "errors",
|
|
19
20
|
"baseName": "errors",
|
|
20
|
-
"type": "Array<
|
|
21
|
+
"type": "Array<GenericErrorErrorsInner>",
|
|
21
22
|
"format": ""
|
|
22
23
|
} ];
|
|
23
24
|
|
|
24
25
|
static getAttributeTypeMap() {
|
|
25
|
-
return
|
|
26
|
+
return RateLimiterError.attributeTypeMap;
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
public constructor() {
|
package/models/Segment.ts
CHANGED