Skip to content

Commit 14b8ef5

Browse files
authored
Merge pull request #22 from OneSignal/api
Dependency Update
2 parents f4863a5 + 1aa7853 commit 14b8ef5

23 files changed

+2284
-921
lines changed

DefaultApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ let body:.DefaultApiExportPlayersRequest = {
495495
extra_fields: [
496496
"extra_fields_example",
497497
],
498-
last_active_since: 1,
498+
last_active_since: "last_active_since_example",
499499
segment_name: "segment_name_example",
500500
},
501501
};

models/BasicNotification.ts

Lines changed: 1131 additions & 0 deletions
Large diffs are not rendered by default.

models/BasicNotificationAllOf.ts

Lines changed: 889 additions & 0 deletions
Large diffs are not rendered by default.

models/NotificationAllOfAndroidBackgroundLayout.ts renamed to models/BasicNotificationAllOfAndroidBackgroundLayout.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { HttpFile } from '../http/http';
1111
/**
1212
* Channel: Push Notifications Platform: Android Allowing setting a background image for the notification. This is a JSON object containing the following keys. See our Background Image documentation for image sizes.
1313
*/
14-
export class NotificationAllOfAndroidBackgroundLayout {
14+
export class BasicNotificationAllOfAndroidBackgroundLayout {
1515
/**
1616
* Asset file, android resource name, or URL to remote image.
1717
*/
@@ -48,7 +48,7 @@ export class NotificationAllOfAndroidBackgroundLayout {
4848
} ];
4949

5050
static getAttributeTypeMap() {
51-
return NotificationAllOfAndroidBackgroundLayout.attributeTypeMap;
51+
return BasicNotificationAllOfAndroidBackgroundLayout.attributeTypeMap;
5252
}
5353

5454
public constructor() {

models/DeletePlayerBadRequestResponse.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
import { HttpFile } from '../http/http';
1010

1111
export class DeletePlayerBadRequestResponse {
12-
'erorrs'?: Array<string>;
12+
'erorrs'?: Array<boolean>;
1313

1414
static readonly discriminator: string | undefined = undefined;
1515

1616
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
1717
{
1818
"name": "erorrs",
1919
"baseName": "erorrs",
20-
"type": "Array<string>",
20+
"type": "Array<boolean>",
2121
"format": ""
2222
} ];
2323

models/DeletePlayerNotFoundResponse.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
import { HttpFile } from '../http/http';
1010

1111
export class DeletePlayerNotFoundResponse {
12-
'success'?: string;
12+
'success'?: boolean;
1313

1414
static readonly discriminator: string | undefined = undefined;
1515

1616
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
1717
{
1818
"name": "success",
1919
"baseName": "success",
20-
"type": "string",
20+
"type": "boolean",
2121
"format": ""
2222
} ];
2323

models/DeletePlayerSuccessResponse.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
import { HttpFile } from '../http/http';
1010

1111
export class DeletePlayerSuccessResponse {
12-
'success'?: string;
12+
'success'?: boolean;
1313

1414
static readonly discriminator: string | undefined = undefined;
1515

1616
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
1717
{
1818
"name": "success",
1919
"baseName": "success",
20-
"type": "string",
20+
"type": "boolean",
2121
"format": ""
2222
} ];
2323

models/DeliveryData.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,25 @@
99
import { HttpFile } from '../http/http';
1010

1111
export class DeliveryData {
12+
/**
13+
* Number of messages delivered to push servers, mobile carriers, or email service providers.
14+
*/
1215
'successful'?: number;
16+
/**
17+
* Number of messages sent to unsubscribed devices.
18+
*/
1319
'failed'?: number;
20+
/**
21+
* Number of errors reported.
22+
*/
1423
'errored'?: number;
24+
/**
25+
* Number of messages that were clicked.
26+
*/
1527
'converted'?: number;
28+
/**
29+
* Number of devices that received the message.
30+
*/
1631
'received'?: number;
1732

1833
static readonly discriminator: string | undefined = undefined;

models/ExportPlayersRequestBody.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export class ExportPlayersRequestBody {
1616
/**
1717
* Export all devices with a last_active timestamp greater than this time. Unixtime in seconds.
1818
*/
19-
'last_active_since'?: number;
19+
'last_active_since'?: string;
2020
/**
2121
* Export al ldevices belonging to the segment.
2222
*/
@@ -34,7 +34,7 @@ export class ExportPlayersRequestBody {
3434
{
3535
"name": "last_active_since",
3636
"baseName": "last_active_since",
37-
"type": "number",
37+
"type": "string",
3838
"format": ""
3939
},
4040
{

0 commit comments

Comments
 (0)