@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
|
@@ -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.0.
|
|
5
|
+
* API Version: 1.0.1
|
|
6
6
|
* Contact: devrel@onesignal.com
|
|
7
7
|
*/
|
|
8
8
|
|
|
@@ -11,7 +11,7 @@ import { HttpFile } from '../http/http';
|
|
|
11
11
|
/**
|
|
12
12
|
* 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.
|
|
13
13
|
*/
|
|
14
|
-
export class
|
|
14
|
+
export class BasicNotificationAllOfAndroidBackgroundLayout {
|
|
15
15
|
/**
|
|
16
16
|
* Asset file, android resource name, or URL to remote image.
|
|
17
17
|
*/
|
|
@@ -48,9 +48,9 @@ export class NotificationAllOfAndroidBackgroundLayout {
|
|
|
48
48
|
} ];
|
|
49
49
|
|
|
50
50
|
static getAttributeTypeMap() {
|
|
51
|
-
return
|
|
51
|
+
return BasicNotificationAllOfAndroidBackgroundLayout.attributeTypeMap;
|
|
52
52
|
}
|
|
53
|
-
|
|
53
|
+
|
|
54
54
|
public constructor() {
|
|
55
55
|
}
|
|
56
56
|
}
|
package/models/Button.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.0.
|
|
5
|
+
* API Version: 1.0.1
|
|
6
6
|
* Contact: devrel@onesignal.com
|
|
7
7
|
*/
|
|
8
8
|
|
|
@@ -38,7 +38,7 @@ export class Button {
|
|
|
38
38
|
static getAttributeTypeMap() {
|
|
39
39
|
return Button.attributeTypeMap;
|
|
40
40
|
}
|
|
41
|
-
|
|
41
|
+
|
|
42
42
|
public constructor() {
|
|
43
43
|
}
|
|
44
44
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 CancelNotificationSuccessResponse {
|
|
12
|
+
'success'?: boolean;
|
|
13
|
+
|
|
14
|
+
static readonly discriminator: string | undefined = undefined;
|
|
15
|
+
|
|
16
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
17
|
+
{
|
|
18
|
+
"name": "success",
|
|
19
|
+
"baseName": "success",
|
|
20
|
+
"type": "boolean",
|
|
21
|
+
"format": ""
|
|
22
|
+
} ];
|
|
23
|
+
|
|
24
|
+
static getAttributeTypeMap() {
|
|
25
|
+
return CancelNotificationSuccessResponse.attributeTypeMap;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
public constructor() {
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -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.0.
|
|
5
|
+
* API Version: 1.0.1
|
|
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 CreateNotificationBadRequestResponse {
|
|
12
12
|
'errors'?: Array<string>;
|
|
13
13
|
|
|
14
14
|
static readonly discriminator: string | undefined = undefined;
|
|
@@ -22,9 +22,9 @@ export class InlineResponse400 {
|
|
|
22
22
|
} ];
|
|
23
23
|
|
|
24
24
|
static getAttributeTypeMap() {
|
|
25
|
-
return
|
|
25
|
+
return CreateNotificationBadRequestResponse.attributeTypeMap;
|
|
26
26
|
}
|
|
27
|
-
|
|
27
|
+
|
|
28
28
|
public constructor() {
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -2,20 +2,21 @@
|
|
|
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 { Notification200Errors } from './Notification200Errors';
|
|
9
10
|
import { HttpFile } from '../http/http';
|
|
10
11
|
|
|
11
|
-
export class
|
|
12
|
+
export class CreateNotificationSuccessResponse {
|
|
12
13
|
'id': string;
|
|
13
14
|
/**
|
|
14
15
|
* Estimated number of subscribers targetted by notification.
|
|
15
16
|
*/
|
|
16
17
|
'recipients': number;
|
|
17
18
|
'external_id'?: string;
|
|
18
|
-
'errors'?:
|
|
19
|
+
'errors'?: Notification200Errors;
|
|
19
20
|
|
|
20
21
|
static readonly discriminator: string | undefined = undefined;
|
|
21
22
|
|
|
@@ -41,14 +42,14 @@ export class InlineResponse200 {
|
|
|
41
42
|
{
|
|
42
43
|
"name": "errors",
|
|
43
44
|
"baseName": "errors",
|
|
44
|
-
"type": "
|
|
45
|
+
"type": "Notification200Errors",
|
|
45
46
|
"format": ""
|
|
46
47
|
} ];
|
|
47
48
|
|
|
48
49
|
static getAttributeTypeMap() {
|
|
49
|
-
return
|
|
50
|
+
return CreateNotificationSuccessResponse.attributeTypeMap;
|
|
50
51
|
}
|
|
51
|
-
|
|
52
|
+
|
|
52
53
|
public constructor() {
|
|
53
54
|
}
|
|
54
55
|
}
|
|
@@ -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.0.
|
|
5
|
+
* API Version: 1.0.1
|
|
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 CreatePlayerSuccessResponse {
|
|
12
12
|
'success'?: boolean;
|
|
13
13
|
'id'?: string;
|
|
14
14
|
|
|
@@ -29,9 +29,9 @@ export class InlineResponse2004 {
|
|
|
29
29
|
} ];
|
|
30
30
|
|
|
31
31
|
static getAttributeTypeMap() {
|
|
32
|
-
return
|
|
32
|
+
return CreatePlayerSuccessResponse.attributeTypeMap;
|
|
33
33
|
}
|
|
34
|
-
|
|
34
|
+
|
|
35
35
|
public constructor() {
|
|
36
36
|
}
|
|
37
37
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 CreateSegmentBadRequestResponse {
|
|
12
|
+
'success'?: boolean;
|
|
13
|
+
'errors'?: Array<string>;
|
|
14
|
+
|
|
15
|
+
static readonly discriminator: string | undefined = undefined;
|
|
16
|
+
|
|
17
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
18
|
+
{
|
|
19
|
+
"name": "success",
|
|
20
|
+
"baseName": "success",
|
|
21
|
+
"type": "boolean",
|
|
22
|
+
"format": ""
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "errors",
|
|
26
|
+
"baseName": "errors",
|
|
27
|
+
"type": "Array<string>",
|
|
28
|
+
"format": ""
|
|
29
|
+
} ];
|
|
30
|
+
|
|
31
|
+
static getAttributeTypeMap() {
|
|
32
|
+
return CreateSegmentBadRequestResponse.attributeTypeMap;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
public constructor() {
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
@@ -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.0.
|
|
5
|
+
* API Version: 1.0.1
|
|
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 CreateSegmentConflictResponse {
|
|
12
12
|
'success'?: boolean;
|
|
13
13
|
'errors'?: Array<string>;
|
|
14
14
|
|
|
@@ -29,9 +29,9 @@ export class InlineResponse409 {
|
|
|
29
29
|
} ];
|
|
30
30
|
|
|
31
31
|
static getAttributeTypeMap() {
|
|
32
|
-
return
|
|
32
|
+
return CreateSegmentConflictResponse.attributeTypeMap;
|
|
33
33
|
}
|
|
34
|
-
|
|
34
|
+
|
|
35
35
|
public constructor() {
|
|
36
36
|
}
|
|
37
37
|
}
|
|
@@ -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.0.
|
|
5
|
+
* API Version: 1.0.1
|
|
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 CreateSegmentSuccessResponse {
|
|
12
12
|
'success'?: boolean;
|
|
13
13
|
/**
|
|
14
14
|
* UUID of created segment
|
|
@@ -32,9 +32,9 @@ export class InlineResponse201 {
|
|
|
32
32
|
} ];
|
|
33
33
|
|
|
34
34
|
static getAttributeTypeMap() {
|
|
35
|
-
return
|
|
35
|
+
return CreateSegmentSuccessResponse.attributeTypeMap;
|
|
36
36
|
}
|
|
37
|
-
|
|
37
|
+
|
|
38
38
|
public constructor() {
|
|
39
39
|
}
|
|
40
40
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 DeletePlayerBadRequestResponse {
|
|
12
|
+
'erorrs'?: Array<boolean>;
|
|
13
|
+
|
|
14
|
+
static readonly discriminator: string | undefined = undefined;
|
|
15
|
+
|
|
16
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
17
|
+
{
|
|
18
|
+
"name": "erorrs",
|
|
19
|
+
"baseName": "erorrs",
|
|
20
|
+
"type": "Array<boolean>",
|
|
21
|
+
"format": ""
|
|
22
|
+
} ];
|
|
23
|
+
|
|
24
|
+
static getAttributeTypeMap() {
|
|
25
|
+
return DeletePlayerBadRequestResponse.attributeTypeMap;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
public constructor() {
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
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 DeletePlayerNotFoundResponse {
|
|
12
|
+
'success'?: boolean;
|
|
13
|
+
|
|
14
|
+
static readonly discriminator: string | undefined = undefined;
|
|
15
|
+
|
|
16
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
17
|
+
{
|
|
18
|
+
"name": "success",
|
|
19
|
+
"baseName": "success",
|
|
20
|
+
"type": "boolean",
|
|
21
|
+
"format": ""
|
|
22
|
+
} ];
|
|
23
|
+
|
|
24
|
+
static getAttributeTypeMap() {
|
|
25
|
+
return DeletePlayerNotFoundResponse.attributeTypeMap;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
public constructor() {
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -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.0.
|
|
5
|
+
* API Version: 1.0.1
|
|
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 DeletePlayerSuccessResponse {
|
|
12
12
|
'success'?: boolean;
|
|
13
13
|
|
|
14
14
|
static readonly discriminator: string | undefined = undefined;
|
|
@@ -22,9 +22,9 @@ export class InlineResponse2003 {
|
|
|
22
22
|
} ];
|
|
23
23
|
|
|
24
24
|
static getAttributeTypeMap() {
|
|
25
|
-
return
|
|
25
|
+
return DeletePlayerSuccessResponse.attributeTypeMap;
|
|
26
26
|
}
|
|
27
|
-
|
|
27
|
+
|
|
28
28
|
public constructor() {
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -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.0.
|
|
5
|
+
* API Version: 1.0.1
|
|
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 DeleteSegmentBadRequestResponse {
|
|
12
12
|
'erorrs'?: Array<string>;
|
|
13
13
|
|
|
14
14
|
static readonly discriminator: string | undefined = undefined;
|
|
@@ -22,9 +22,9 @@ export class InlineResponse4002 {
|
|
|
22
22
|
} ];
|
|
23
23
|
|
|
24
24
|
static getAttributeTypeMap() {
|
|
25
|
-
return
|
|
25
|
+
return DeleteSegmentBadRequestResponse.attributeTypeMap;
|
|
26
26
|
}
|
|
27
|
-
|
|
27
|
+
|
|
28
28
|
public constructor() {
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 DeleteSegmentNotFoundResponse {
|
|
12
|
+
'success'?: boolean;
|
|
13
|
+
|
|
14
|
+
static readonly discriminator: string | undefined = undefined;
|
|
15
|
+
|
|
16
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
17
|
+
{
|
|
18
|
+
"name": "success",
|
|
19
|
+
"baseName": "success",
|
|
20
|
+
"type": "boolean",
|
|
21
|
+
"format": ""
|
|
22
|
+
} ];
|
|
23
|
+
|
|
24
|
+
static getAttributeTypeMap() {
|
|
25
|
+
return DeleteSegmentNotFoundResponse.attributeTypeMap;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
public constructor() {
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
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 DeleteSegmentSuccessResponse {
|
|
12
|
+
'success'?: boolean;
|
|
13
|
+
|
|
14
|
+
static readonly discriminator: string | undefined = undefined;
|
|
15
|
+
|
|
16
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
17
|
+
{
|
|
18
|
+
"name": "success",
|
|
19
|
+
"baseName": "success",
|
|
20
|
+
"type": "boolean",
|
|
21
|
+
"format": ""
|
|
22
|
+
} ];
|
|
23
|
+
|
|
24
|
+
static getAttributeTypeMap() {
|
|
25
|
+
return DeleteSegmentSuccessResponse.attributeTypeMap;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
public constructor() {
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
package/models/DeliveryData.ts
CHANGED
|
@@ -2,17 +2,32 @@
|
|
|
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
9
|
import { HttpFile } from '../http/http';
|
|
10
10
|
|
|
11
11
|
export class DeliveryData {
|
|
12
|
+
/**
|
|
13
|
+
* Number of messages delivered to push servers, mobile carriers, or email service providers.
|
|
14
|
+
*/
|
|
12
15
|
'successful'?: number;
|
|
16
|
+
/**
|
|
17
|
+
* Number of messages sent to unsubscribed devices.
|
|
18
|
+
*/
|
|
13
19
|
'failed'?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Number of errors reported.
|
|
22
|
+
*/
|
|
14
23
|
'errored'?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Number of messages that were clicked.
|
|
26
|
+
*/
|
|
15
27
|
'converted'?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Number of devices that received the message.
|
|
30
|
+
*/
|
|
16
31
|
'received'?: number;
|
|
17
32
|
|
|
18
33
|
static readonly discriminator: string | undefined = undefined;
|
|
@@ -52,7 +67,7 @@ export class DeliveryData {
|
|
|
52
67
|
static getAttributeTypeMap() {
|
|
53
68
|
return DeliveryData.attributeTypeMap;
|
|
54
69
|
}
|
|
55
|
-
|
|
70
|
+
|
|
56
71
|
public constructor() {
|
|
57
72
|
}
|
|
58
73
|
}
|
|
@@ -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.0.
|
|
5
|
+
* API Version: 1.0.1
|
|
6
6
|
* Contact: devrel@onesignal.com
|
|
7
7
|
*/
|
|
8
8
|
|
|
@@ -16,9 +16,9 @@ export class ExportPlayersRequestBody {
|
|
|
16
16
|
/**
|
|
17
17
|
* Export all devices with a last_active timestamp greater than this time. Unixtime in seconds.
|
|
18
18
|
*/
|
|
19
|
-
'last_active_since'?:
|
|
19
|
+
'last_active_since'?: string;
|
|
20
20
|
/**
|
|
21
|
-
* Export
|
|
21
|
+
* Export all devices belonging to the segment.
|
|
22
22
|
*/
|
|
23
23
|
'segment_name'?: string;
|
|
24
24
|
|
|
@@ -34,7 +34,7 @@ export class ExportPlayersRequestBody {
|
|
|
34
34
|
{
|
|
35
35
|
"name": "last_active_since",
|
|
36
36
|
"baseName": "last_active_since",
|
|
37
|
-
"type": "
|
|
37
|
+
"type": "string",
|
|
38
38
|
"format": ""
|
|
39
39
|
},
|
|
40
40
|
{
|
|
@@ -47,7 +47,7 @@ export class ExportPlayersRequestBody {
|
|
|
47
47
|
static getAttributeTypeMap() {
|
|
48
48
|
return ExportPlayersRequestBody.attributeTypeMap;
|
|
49
49
|
}
|
|
50
|
-
|
|
50
|
+
|
|
51
51
|
public constructor() {
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -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.0.
|
|
5
|
+
* API Version: 1.0.1
|
|
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 ExportPlayersSuccessResponse {
|
|
12
12
|
'csv_file_url'?: string;
|
|
13
13
|
|
|
14
14
|
static readonly discriminator: string | undefined = undefined;
|
|
@@ -22,9 +22,9 @@ export class InlineResponse2005 {
|
|
|
22
22
|
} ];
|
|
23
23
|
|
|
24
24
|
static getAttributeTypeMap() {
|
|
25
|
-
return
|
|
25
|
+
return ExportPlayersSuccessResponse.attributeTypeMap;
|
|
26
26
|
}
|
|
27
|
-
|
|
27
|
+
|
|
28
28
|
public constructor() {
|
|
29
29
|
}
|
|
30
30
|
}
|
package/models/Filter.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.0.
|
|
5
|
+
* API Version: 1.0.1
|
|
6
6
|
* Contact: devrel@onesignal.com
|
|
7
7
|
*/
|
|
8
8
|
|
|
@@ -18,7 +18,7 @@ export class Filter {
|
|
|
18
18
|
*/
|
|
19
19
|
'key'?: string;
|
|
20
20
|
/**
|
|
21
|
-
* Constant value to use as the second operand in the filter expression.
|
|
21
|
+
* Constant value to use as the second operand in the filter expression. This value is *required* when the relation operator is a binary operator.
|
|
22
22
|
*/
|
|
23
23
|
'value'?: string;
|
|
24
24
|
/**
|
|
@@ -57,11 +57,11 @@ export class Filter {
|
|
|
57
57
|
static getAttributeTypeMap() {
|
|
58
58
|
return Filter.attributeTypeMap;
|
|
59
59
|
}
|
|
60
|
-
|
|
60
|
+
|
|
61
61
|
public constructor() {
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
|
|
66
|
-
export type FilterRelationEnum = "
|
|
66
|
+
export type FilterRelationEnum = ">" | "<" | "=" | "!=" | "exists" | "not_exists" | "time_elapsed_gt" | "time_elapsed_lt" ;
|
|
67
67
|
|
|
@@ -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.0.
|
|
5
|
+
* API Version: 1.0.1
|
|
6
6
|
* Contact: devrel@onesignal.com
|
|
7
7
|
*/
|
|
8
8
|
|
|
@@ -20,7 +20,7 @@ export class FilterExpressions {
|
|
|
20
20
|
*/
|
|
21
21
|
'key'?: string;
|
|
22
22
|
/**
|
|
23
|
-
* Constant value to use as the second operand in the filter expression.
|
|
23
|
+
* Constant value to use as the second operand in the filter expression. This value is *required* when the relation operator is a binary operator.
|
|
24
24
|
*/
|
|
25
25
|
'value'?: string;
|
|
26
26
|
/**
|
|
@@ -69,12 +69,12 @@ export class FilterExpressions {
|
|
|
69
69
|
static getAttributeTypeMap() {
|
|
70
70
|
return FilterExpressions.attributeTypeMap;
|
|
71
71
|
}
|
|
72
|
-
|
|
72
|
+
|
|
73
73
|
public constructor() {
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
|
|
78
|
-
export type FilterExpressionsRelationEnum = "
|
|
78
|
+
export type FilterExpressionsRelationEnum = ">" | "<" | "=" | "!=" | "exists" | "not_exists" | "time_elapsed_gt" | "time_elapsed_lt" ;
|
|
79
79
|
export type FilterExpressionsOperatorEnum = "OR" | "AND" ;
|
|
80
80
|
|
|
@@ -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.0.
|
|
5
|
+
* API Version: 1.0.1
|
|
6
6
|
* Contact: devrel@onesignal.com
|
|
7
7
|
*/
|
|
8
8
|
|
|
@@ -137,7 +137,7 @@ export class FilterNotificationTarget {
|
|
|
137
137
|
static getAttributeTypeMap() {
|
|
138
138
|
return FilterNotificationTarget.attributeTypeMap;
|
|
139
139
|
}
|
|
140
|
-
|
|
140
|
+
|
|
141
141
|
public constructor() {
|
|
142
142
|
}
|
|
143
143
|
}
|
|
@@ -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.0.
|
|
5
|
+
* API Version: 1.0.1
|
|
6
6
|
* Contact: devrel@onesignal.com
|
|
7
7
|
*/
|
|
8
8
|
|
|
@@ -44,7 +44,7 @@ export class GetNotificationRequestBody {
|
|
|
44
44
|
static getAttributeTypeMap() {
|
|
45
45
|
return GetNotificationRequestBody.attributeTypeMap;
|
|
46
46
|
}
|
|
47
|
-
|
|
47
|
+
|
|
48
48
|
public constructor() {
|
|
49
49
|
}
|
|
50
50
|
}
|