@onesignal/node-onesignal 1.0.0-beta4 → 1.0.0-beta5
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 +21 -0
- package/CHANGELOG.md +26 -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
package/models/Player.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
|
|
|
@@ -10,16 +10,16 @@ import { HttpFile } from '../http/http';
|
|
|
10
10
|
|
|
11
11
|
export class Player {
|
|
12
12
|
/**
|
|
13
|
-
* The device's OneSignal ID
|
|
13
|
+
* The device\'s OneSignal ID
|
|
14
14
|
*/
|
|
15
|
-
'id'
|
|
15
|
+
'id'?: string;
|
|
16
16
|
/**
|
|
17
17
|
* If true, this is the equivalent of a user being Unsubscribed
|
|
18
18
|
*/
|
|
19
19
|
'invalid_identifier'?: boolean;
|
|
20
|
-
'app_id'
|
|
20
|
+
'app_id'?: string;
|
|
21
21
|
/**
|
|
22
|
-
* Required The device's platform: 0 = iOS 1 = Android 2 = Amazon 3 = WindowsPhone (MPNS) 4 = Chrome Apps / Extensions 5 = Chrome Web Push 6 = Windows (WNS) 7 = Safari 8 = Firefox 9 = MacOS 10 = Alexa 11 = Email 13 = For Huawei App Gallery Builds SDK Setup. Not for Huawei Devices using FCM 14 = SMS
|
|
22
|
+
* Required The device\'s platform: 0 = iOS 1 = Android 2 = Amazon 3 = WindowsPhone (MPNS) 4 = Chrome Apps / Extensions 5 = Chrome Web Push 6 = Windows (WNS) 7 = Safari 8 = Firefox 9 = MacOS 10 = Alexa 11 = Email 13 = For Huawei App Gallery Builds SDK Setup. Not for Huawei Devices using FCM 14 = SMS
|
|
23
23
|
*/
|
|
24
24
|
'device_type': number;
|
|
25
25
|
/**
|
|
@@ -59,11 +59,11 @@ export class Player {
|
|
|
59
59
|
*/
|
|
60
60
|
'device_os'?: string;
|
|
61
61
|
/**
|
|
62
|
-
* The ad id for the device's platform: Android = Advertising Id iOS = identifierForVendor WP8.0 = DeviceUniqueId WP8.1 = AdvertisingId
|
|
62
|
+
* The ad id for the device\'s platform: Android = Advertising Id iOS = identifierForVendor WP8.0 = DeviceUniqueId WP8.1 = AdvertisingId
|
|
63
63
|
*/
|
|
64
64
|
'ad_id'?: string;
|
|
65
65
|
/**
|
|
66
|
-
* Name and version of the sdk/plugin that's calling this API method (if any)
|
|
66
|
+
* Name and version of the sdk/plugin that\'s calling this API method (if any)
|
|
67
67
|
*/
|
|
68
68
|
'sdk'?: string;
|
|
69
69
|
/**
|
|
@@ -73,11 +73,11 @@ export class Player {
|
|
|
73
73
|
/**
|
|
74
74
|
* Custom tags for the player. Only support string and integer key value pairs. Does not support arrays or other nested objects. Setting a tag value to null or an empty string will remove the tag. Example: {\"foo\":\"bar\",\"this\":\"that\"} Limitations: - 100 tags per call - Android SDK users: tags cannot be removed or changed via API if set through SDK sendTag methods. Recommended to only tag devices with 1 kilobyte of data Please consider using your own Database to save more than 1 kilobyte of data. See: Internal Database & CRM
|
|
75
75
|
*/
|
|
76
|
-
'tags'?:
|
|
76
|
+
'tags'?: object;
|
|
77
77
|
/**
|
|
78
78
|
* Amount the user has spent in USD, up to two decimal places
|
|
79
79
|
*/
|
|
80
|
-
'amount_spent'?:
|
|
80
|
+
'amount_spent'?: number;
|
|
81
81
|
/**
|
|
82
82
|
* Unixtime when the player joined the game
|
|
83
83
|
*/
|
|
@@ -217,26 +217,26 @@ export class Player {
|
|
|
217
217
|
{
|
|
218
218
|
"name": "tags",
|
|
219
219
|
"baseName": "tags",
|
|
220
|
-
"type": "
|
|
220
|
+
"type": "object",
|
|
221
221
|
"format": ""
|
|
222
222
|
},
|
|
223
223
|
{
|
|
224
224
|
"name": "amount_spent",
|
|
225
225
|
"baseName": "amount_spent",
|
|
226
|
-
"type": "
|
|
226
|
+
"type": "number",
|
|
227
227
|
"format": ""
|
|
228
228
|
},
|
|
229
229
|
{
|
|
230
230
|
"name": "created_at",
|
|
231
231
|
"baseName": "created_at",
|
|
232
232
|
"type": "number",
|
|
233
|
-
"format": ""
|
|
233
|
+
"format": "int64"
|
|
234
234
|
},
|
|
235
235
|
{
|
|
236
236
|
"name": "playtime",
|
|
237
237
|
"baseName": "playtime",
|
|
238
238
|
"type": "number",
|
|
239
|
-
"format": ""
|
|
239
|
+
"format": "int64"
|
|
240
240
|
},
|
|
241
241
|
{
|
|
242
242
|
"name": "badge_count",
|
|
@@ -284,7 +284,7 @@ export class Player {
|
|
|
284
284
|
static getAttributeTypeMap() {
|
|
285
285
|
return Player.attributeTypeMap;
|
|
286
286
|
}
|
|
287
|
-
|
|
287
|
+
|
|
288
288
|
public constructor() {
|
|
289
289
|
}
|
|
290
290
|
}
|
|
@@ -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
|
|
|
@@ -14,7 +14,7 @@ export class PlayerNotificationTarget {
|
|
|
14
14
|
*/
|
|
15
15
|
'include_player_ids'?: Array<string>;
|
|
16
16
|
/**
|
|
17
|
-
* Target specific devices by custom user IDs assigned via API. Not compatible with any other targeting parameters Example: [
|
|
17
|
+
* 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.
|
|
18
18
|
*/
|
|
19
19
|
'include_external_user_ids'?: Array<string>;
|
|
20
20
|
/**
|
|
@@ -117,7 +117,7 @@ export class PlayerNotificationTarget {
|
|
|
117
117
|
static getAttributeTypeMap() {
|
|
118
118
|
return PlayerNotificationTarget.attributeTypeMap;
|
|
119
119
|
}
|
|
120
|
-
|
|
120
|
+
|
|
121
121
|
public constructor() {
|
|
122
122
|
}
|
|
123
123
|
}
|
package/models/PlayerSlice.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
|
|
|
@@ -46,7 +46,7 @@ export class PlayerSlice {
|
|
|
46
46
|
static getAttributeTypeMap() {
|
|
47
47
|
return PlayerSlice.attributeTypeMap;
|
|
48
48
|
}
|
|
49
|
-
|
|
49
|
+
|
|
50
50
|
public constructor() {
|
|
51
51
|
}
|
|
52
52
|
}
|
package/models/Purchase.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
|
|
|
@@ -47,7 +47,7 @@ export class Purchase {
|
|
|
47
47
|
static getAttributeTypeMap() {
|
|
48
48
|
return Purchase.attributeTypeMap;
|
|
49
49
|
}
|
|
50
|
-
|
|
50
|
+
|
|
51
51
|
public constructor() {
|
|
52
52
|
}
|
|
53
53
|
}
|
package/models/Segment.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
|
|
|
@@ -15,7 +15,7 @@ export class Segment {
|
|
|
15
15
|
*/
|
|
16
16
|
'id'?: string;
|
|
17
17
|
/**
|
|
18
|
-
* Name of the segment. You'll see this name on the Web UI.
|
|
18
|
+
* Name of the segment. You\'ll see this name on the Web UI.
|
|
19
19
|
*/
|
|
20
20
|
'name': string;
|
|
21
21
|
/**
|
|
@@ -48,7 +48,7 @@ export class Segment {
|
|
|
48
48
|
static getAttributeTypeMap() {
|
|
49
49
|
return Segment.attributeTypeMap;
|
|
50
50
|
}
|
|
51
|
-
|
|
51
|
+
|
|
52
52
|
public constructor() {
|
|
53
53
|
}
|
|
54
54
|
}
|
|
@@ -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
|
|
|
@@ -37,7 +37,7 @@ export class SegmentNotificationTarget {
|
|
|
37
37
|
static getAttributeTypeMap() {
|
|
38
38
|
return SegmentNotificationTarget.attributeTypeMap;
|
|
39
39
|
}
|
|
40
|
-
|
|
40
|
+
|
|
41
41
|
public constructor() {
|
|
42
42
|
}
|
|
43
43
|
}
|
package/models/StringMap.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
|
|
|
@@ -12,7 +12,7 @@ export class StringMap {
|
|
|
12
12
|
/**
|
|
13
13
|
* Text in English. Will be used as a fallback
|
|
14
14
|
*/
|
|
15
|
-
'en'
|
|
15
|
+
'en'?: string;
|
|
16
16
|
/**
|
|
17
17
|
* Text in Arabic.
|
|
18
18
|
*/
|
|
@@ -447,7 +447,7 @@ export class StringMap {
|
|
|
447
447
|
static getAttributeTypeMap() {
|
|
448
448
|
return StringMap.attributeTypeMap;
|
|
449
449
|
}
|
|
450
|
-
|
|
450
|
+
|
|
451
451
|
public constructor() {
|
|
452
452
|
}
|
|
453
453
|
}
|
|
@@ -2,14 +2,14 @@
|
|
|
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
|
|
12
|
-
'success'?:
|
|
11
|
+
export class UpdatePlayerSuccessResponse {
|
|
12
|
+
'success'?: boolean;
|
|
13
13
|
|
|
14
14
|
static readonly discriminator: string | undefined = undefined;
|
|
15
15
|
|
|
@@ -17,14 +17,14 @@ export class InlineResponse2001 {
|
|
|
17
17
|
{
|
|
18
18
|
"name": "success",
|
|
19
19
|
"baseName": "success",
|
|
20
|
-
"type": "
|
|
20
|
+
"type": "boolean",
|
|
21
21
|
"format": ""
|
|
22
22
|
} ];
|
|
23
23
|
|
|
24
24
|
static getAttributeTypeMap() {
|
|
25
|
-
return
|
|
25
|
+
return UpdatePlayerSuccessResponse.attributeTypeMap;
|
|
26
26
|
}
|
|
27
|
-
|
|
27
|
+
|
|
28
28
|
public constructor() {
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -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
|
|
|
@@ -12,7 +12,7 @@ export class UpdatePlayerTagsRequestBody {
|
|
|
12
12
|
/**
|
|
13
13
|
* Custom tags for the device record. Only support string key value pairs. Does not support arrays or other nested objects. Example `{\"foo\":\"bar\",\"this\":\"that\"}`. Limitations: - 100 tags per call - Android SDK users: tags cannot be removed or changed via API if set through SDK sendTag methods. Recommended to only tag devices with 1 kilobyte of ata Please consider using your own Database to save more than 1 kilobyte of data. See: Internal Database & CRM
|
|
14
14
|
*/
|
|
15
|
-
'tags'?:
|
|
15
|
+
'tags'?: object;
|
|
16
16
|
|
|
17
17
|
static readonly discriminator: string | undefined = undefined;
|
|
18
18
|
|
|
@@ -20,14 +20,14 @@ export class UpdatePlayerTagsRequestBody {
|
|
|
20
20
|
{
|
|
21
21
|
"name": "tags",
|
|
22
22
|
"baseName": "tags",
|
|
23
|
-
"type": "
|
|
23
|
+
"type": "object",
|
|
24
24
|
"format": ""
|
|
25
25
|
} ];
|
|
26
26
|
|
|
27
27
|
static getAttributeTypeMap() {
|
|
28
28
|
return UpdatePlayerTagsRequestBody.attributeTypeMap;
|
|
29
29
|
}
|
|
30
|
-
|
|
30
|
+
|
|
31
31
|
public constructor() {
|
|
32
32
|
}
|
|
33
33
|
}
|
|
@@ -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 UpdatePlayerTagsSuccessResponse {
|
|
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 UpdatePlayerTagsSuccessResponse.attributeTypeMap;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
public constructor() {
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
package/models/all.ts
CHANGED
|
@@ -1,30 +1,43 @@
|
|
|
1
1
|
export * from './App'
|
|
2
|
+
export * from './BasicNotification'
|
|
3
|
+
export * from './BasicNotificationAllOf'
|
|
4
|
+
export * from './BasicNotificationAllOfAndroidBackgroundLayout'
|
|
2
5
|
export * from './Button'
|
|
6
|
+
export * from './CancelNotificationSuccessResponse'
|
|
7
|
+
export * from './CreateNotificationBadRequestResponse'
|
|
8
|
+
export * from './CreateNotificationSuccessResponse'
|
|
9
|
+
export * from './CreatePlayerSuccessResponse'
|
|
10
|
+
export * from './CreateSegmentBadRequestResponse'
|
|
11
|
+
export * from './CreateSegmentConflictResponse'
|
|
12
|
+
export * from './CreateSegmentSuccessResponse'
|
|
13
|
+
export * from './DeletePlayerBadRequestResponse'
|
|
14
|
+
export * from './DeletePlayerNotFoundResponse'
|
|
15
|
+
export * from './DeletePlayerSuccessResponse'
|
|
16
|
+
export * from './DeleteSegmentBadRequestResponse'
|
|
17
|
+
export * from './DeleteSegmentNotFoundResponse'
|
|
18
|
+
export * from './DeleteSegmentSuccessResponse'
|
|
3
19
|
export * from './DeliveryData'
|
|
4
20
|
export * from './ExportPlayersRequestBody'
|
|
21
|
+
export * from './ExportPlayersSuccessResponse'
|
|
5
22
|
export * from './Filter'
|
|
6
23
|
export * from './FilterExpressions'
|
|
7
|
-
export * from './FilterNotificationTarget'
|
|
8
24
|
export * from './GetNotificationRequestBody'
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './InlineResponse2001'
|
|
11
|
-
export * from './InlineResponse2002'
|
|
12
|
-
export * from './InlineResponse2003'
|
|
13
|
-
export * from './InlineResponse2004'
|
|
14
|
-
export * from './InlineResponse2005'
|
|
15
|
-
export * from './InlineResponse201'
|
|
16
|
-
export * from './InlineResponse400'
|
|
17
|
-
export * from './InlineResponse4001'
|
|
18
|
-
export * from './InlineResponse4002'
|
|
19
|
-
export * from './InlineResponse409'
|
|
25
|
+
export * from './InvalidIdentifierError'
|
|
20
26
|
export * from './Notification'
|
|
27
|
+
export * from './Notification200Errors'
|
|
21
28
|
export * from './NotificationAllOf'
|
|
22
|
-
export * from './
|
|
29
|
+
export * from './NotificationHistoryBadRequestResponse'
|
|
30
|
+
export * from './NotificationHistorySuccessResponse'
|
|
23
31
|
export * from './NotificationSlice'
|
|
24
32
|
export * from './NotificationTarget'
|
|
33
|
+
export * from './NotificationWithMeta'
|
|
34
|
+
export * from './NotificationWithMetaAllOf'
|
|
25
35
|
export * from './Operator'
|
|
26
36
|
export * from './OutcomeData'
|
|
37
|
+
export * from './OutcomesData'
|
|
27
38
|
export * from './PlatformDeliveryData'
|
|
39
|
+
export * from './PlatformDeliveryDataEmailAllOf'
|
|
40
|
+
export * from './PlatformDeliveryDataSmsAllOf'
|
|
28
41
|
export * from './Player'
|
|
29
42
|
export * from './PlayerNotificationTarget'
|
|
30
43
|
export * from './PlayerSlice'
|
|
@@ -32,4 +45,6 @@ export * from './Purchase'
|
|
|
32
45
|
export * from './Segment'
|
|
33
46
|
export * from './SegmentNotificationTarget'
|
|
34
47
|
export * from './StringMap'
|
|
48
|
+
export * from './UpdatePlayerSuccessResponse'
|
|
35
49
|
export * from './UpdatePlayerTagsRequestBody'
|
|
50
|
+
export * from './UpdatePlayerTagsSuccessResponse'
|
package/package.json
CHANGED
|
@@ -1,31 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onesignal/node-onesignal",
|
|
3
|
-
"version": "1.0.0-
|
|
4
|
-
"description": "OpenAPI client for node-onesignal",
|
|
5
|
-
"author": "
|
|
3
|
+
"version": "1.0.0-beta5",
|
|
4
|
+
"description": "OpenAPI client for @onesignal/node-onesignal",
|
|
5
|
+
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"keywords": [
|
|
7
|
+
"fetch",
|
|
7
8
|
"typescript",
|
|
8
|
-
"node",
|
|
9
9
|
"openapi-client",
|
|
10
10
|
"openapi-generator"
|
|
11
11
|
],
|
|
12
|
-
"license": "
|
|
12
|
+
"license": "Unlicense",
|
|
13
13
|
"main": "./dist/index.js",
|
|
14
|
+
"type": "commonjs",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": "./dist/index.js"
|
|
17
|
+
},
|
|
14
18
|
"typings": "./dist/index.d.ts",
|
|
15
19
|
"scripts": {
|
|
16
20
|
"build": "tsc",
|
|
17
21
|
"prepare": "npm run build"
|
|
18
22
|
},
|
|
19
23
|
"dependencies": {
|
|
20
|
-
"node
|
|
24
|
+
"@types/node": "^18.11.9",
|
|
21
25
|
"@types/node-fetch": "^2.5.7",
|
|
22
|
-
"@types/node": "*",
|
|
23
|
-
"form-data": "^2.5.0",
|
|
24
26
|
"btoa": "^1.2.1",
|
|
25
27
|
"es6-promise": "^4.2.4",
|
|
28
|
+
"form-data": "^2.5.0",
|
|
29
|
+
"node-fetch": "^2.6.0",
|
|
26
30
|
"url-parse": "^1.4.3"
|
|
27
31
|
},
|
|
28
32
|
"devDependencies": {
|
|
29
|
-
"
|
|
33
|
+
"@types/url-parse": "1.4.4",
|
|
34
|
+
"typescript": "^4.0"
|
|
30
35
|
}
|
|
31
36
|
}
|
package/tsconfig.json
CHANGED
|
@@ -3,10 +3,9 @@
|
|
|
3
3
|
"strict": true,
|
|
4
4
|
/* Basic Options */
|
|
5
5
|
"target": "es5",
|
|
6
|
-
"module": "commonjs",
|
|
7
6
|
"moduleResolution": "node",
|
|
8
7
|
"declaration": true,
|
|
9
|
-
|
|
8
|
+
|
|
10
9
|
/* Additional Checks */
|
|
11
10
|
"noUnusedLocals": false, /* Report errors on unused locals. */ // TODO: reenable (unused imports!)
|
|
12
11
|
"noUnusedParameters": false, /* Report errors on unused parameters. */ // TODO: set to true again
|