@onesignal/node-onesignal 1.0.0-beta7 → 1.0.0-beta8
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/workflows/npm_deploy.yml +6 -7
- package/CHANGELOG.md +4 -0
- package/DefaultApi.md +215 -0
- package/README.md +41 -0
- package/apis/DefaultApi.ts +401 -29
- package/dist/apis/DefaultApi.d.ts +9 -0
- package/dist/apis/DefaultApi.js +496 -132
- package/dist/apis/DefaultApi.js.map +1 -1
- package/dist/auth/auth.d.ts +6 -6
- package/dist/auth/auth.js +1 -1
- package/dist/http/http.d.ts +2 -2
- package/dist/http/http.js +1 -1
- package/dist/models/App.d.ts +5 -1
- package/dist/models/App.js +24 -0
- package/dist/models/App.js.map +1 -1
- package/dist/models/BadRequestError.d.ts +17 -0
- package/dist/models/BadRequestError.js +22 -0
- package/dist/models/BadRequestError.js.map +1 -0
- package/dist/models/BasicNotification.d.ts +1 -1
- package/dist/models/BasicNotificationAllOf.d.ts +1 -1
- package/dist/models/BeginLiveActivityRequest.d.ts +18 -0
- package/dist/models/BeginLiveActivityRequest.js +28 -0
- package/dist/models/BeginLiveActivityRequest.js.map +1 -0
- package/dist/models/Filter.d.ts +1 -1
- package/dist/models/FilterExpressions.d.ts +2 -2
- package/dist/models/GetNotificationRequestBody.d.ts +1 -1
- package/dist/models/Notification.d.ts +1 -1
- package/dist/models/NotificationWithMeta.d.ts +1 -1
- package/dist/models/ObjectSerializer.d.ts +4 -5
- package/dist/models/ObjectSerializer.js +14 -15
- package/dist/models/ObjectSerializer.js.map +1 -1
- package/dist/models/Operator.d.ts +1 -1
- package/dist/models/OutcomeData.d.ts +1 -1
- package/dist/models/UpdateLiveActivityRequest.d.ts +22 -0
- package/dist/models/UpdateLiveActivityRequest.js +40 -0
- package/dist/models/UpdateLiveActivityRequest.js.map +1 -0
- package/dist/models/UpdateLiveActivitySuccessResponse.d.ts +19 -0
- package/dist/models/UpdateLiveActivitySuccessResponse.js +28 -0
- package/dist/models/UpdateLiveActivitySuccessResponse.js.map +1 -0
- package/dist/models/all.d.ts +4 -5
- package/dist/models/all.js +4 -5
- package/dist/models/all.js.map +1 -1
- package/dist/types/ObjectParamAPI.d.ts +21 -0
- package/dist/types/ObjectParamAPI.js +9 -0
- package/dist/types/ObjectParamAPI.js.map +1 -1
- package/dist/types/ObservableAPI.d.ts +6 -0
- package/dist/types/ObservableAPI.js +128 -56
- package/dist/types/ObservableAPI.js.map +1 -1
- package/dist/types/PromiseAPI.d.ts +6 -0
- package/dist/types/PromiseAPI.js +12 -0
- package/dist/types/PromiseAPI.js.map +1 -1
- package/models/App.ts +41 -1
- package/models/BadRequestError.ts +31 -0
- package/models/BasicNotification.ts +1 -1
- package/models/BasicNotificationAllOf.ts +1 -1
- package/models/BasicNotificationAllOfAndroidBackgroundLayout.ts +1 -1
- package/models/BeginLiveActivityRequest.ts +38 -0
- 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/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/ExportPlayersRequestBody.ts +1 -1
- package/models/ExportPlayersSuccessResponse.ts +1 -1
- package/models/Filter.ts +1 -1
- package/models/FilterExpressions.ts +1 -1
- package/models/GetNotificationRequestBody.ts +1 -1
- package/models/InvalidIdentifierError.ts +1 -1
- package/models/Notification.ts +1 -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 +1 -1
- package/models/NotificationWithMetaAllOf.ts +1 -1
- package/models/ObjectSerializer.ts +15 -16
- 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/PlayerSlice.ts +1 -1
- package/models/Purchase.ts +1 -1
- package/models/Segment.ts +1 -1
- package/models/SegmentNotificationTarget.ts +1 -1
- package/models/StringMap.ts +1 -1
- package/models/UpdateLiveActivityRequest.ts +62 -0
- package/models/UpdateLiveActivitySuccessResponse.ts +39 -0
- package/models/UpdatePlayerSuccessResponse.ts +1 -1
- package/models/UpdatePlayerTagsRequestBody.ts +1 -1
- package/models/UpdatePlayerTagsSuccessResponse.ts +1 -1
- package/models/all.ts +4 -5
- package/package.json +3 -3
- package/types/ObjectParamAPI.ts +94 -5
- package/types/ObservableAPI.ts +82 -5
- package/types/PromiseAPI.ts +40 -5
package/models/App.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.2
|
|
6
6
|
* Contact: devrel@onesignal.com
|
|
7
7
|
*/
|
|
8
8
|
|
|
@@ -65,6 +65,22 @@ export class App {
|
|
|
65
65
|
*/
|
|
66
66
|
'safari_apns_p12_password'?: string;
|
|
67
67
|
/**
|
|
68
|
+
* iOS: Required if using p8. Unique identifier for the p8 authentication key.
|
|
69
|
+
*/
|
|
70
|
+
'apns_key_id'?: string;
|
|
71
|
+
/**
|
|
72
|
+
* iOS: Required if using p8. Team ID generated by Apple for your developer account.
|
|
73
|
+
*/
|
|
74
|
+
'apns_team_id'?: string;
|
|
75
|
+
/**
|
|
76
|
+
* iOS: Required if using p8. Bundle ID for your app in the Apple ecosystem.
|
|
77
|
+
*/
|
|
78
|
+
'apns_bundle_id'?: string;
|
|
79
|
+
/**
|
|
80
|
+
* iOS: Required if using p8. Base64 encoded p8 key
|
|
81
|
+
*/
|
|
82
|
+
'apns_p8'?: string;
|
|
83
|
+
/**
|
|
68
84
|
* Safari (Recommended): The hostname to your website including http(s)://
|
|
69
85
|
*/
|
|
70
86
|
'safari_site_origin'?: string;
|
|
@@ -208,6 +224,30 @@ export class App {
|
|
|
208
224
|
"type": "string",
|
|
209
225
|
"format": ""
|
|
210
226
|
},
|
|
227
|
+
{
|
|
228
|
+
"name": "apns_key_id",
|
|
229
|
+
"baseName": "apns_key_id",
|
|
230
|
+
"type": "string",
|
|
231
|
+
"format": ""
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"name": "apns_team_id",
|
|
235
|
+
"baseName": "apns_team_id",
|
|
236
|
+
"type": "string",
|
|
237
|
+
"format": ""
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"name": "apns_bundle_id",
|
|
241
|
+
"baseName": "apns_bundle_id",
|
|
242
|
+
"type": "string",
|
|
243
|
+
"format": ""
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"name": "apns_p8",
|
|
247
|
+
"baseName": "apns_p8",
|
|
248
|
+
"type": "string",
|
|
249
|
+
"format": ""
|
|
250
|
+
},
|
|
211
251
|
{
|
|
212
252
|
"name": "safari_site_origin",
|
|
213
253
|
"baseName": "safari_site_origin",
|
|
@@ -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.2
|
|
6
|
+
* Contact: devrel@onesignal.com
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { HttpFile } from '../http/http';
|
|
10
|
+
|
|
11
|
+
export class BadRequestError {
|
|
12
|
+
'errors'?: Array<string>;
|
|
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": "errors",
|
|
19
|
+
"baseName": "errors",
|
|
20
|
+
"type": "Array<string>",
|
|
21
|
+
"format": ""
|
|
22
|
+
} ];
|
|
23
|
+
|
|
24
|
+
static getAttributeTypeMap() {
|
|
25
|
+
return BadRequestError.attributeTypeMap;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
public constructor() {
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -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.2
|
|
6
|
+
* Contact: devrel@onesignal.com
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { HttpFile } from '../http/http';
|
|
10
|
+
|
|
11
|
+
export class BeginLiveActivityRequest {
|
|
12
|
+
'push_token': string;
|
|
13
|
+
'subscription_id': 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": "push_token",
|
|
20
|
+
"baseName": "push_token",
|
|
21
|
+
"type": "string",
|
|
22
|
+
"format": ""
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "subscription_id",
|
|
26
|
+
"baseName": "subscription_id",
|
|
27
|
+
"type": "string",
|
|
28
|
+
"format": ""
|
|
29
|
+
} ];
|
|
30
|
+
|
|
31
|
+
static getAttributeTypeMap() {
|
|
32
|
+
return BeginLiveActivityRequest.attributeTypeMap;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
public constructor() {
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
package/models/Button.ts
CHANGED
package/models/DeliveryData.ts
CHANGED
package/models/Filter.ts
CHANGED
package/models/Notification.ts
CHANGED
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
export * from './App';
|
|
2
|
+
export * from './BadRequestError';
|
|
2
3
|
export * from './BasicNotification';
|
|
3
4
|
export * from './BasicNotificationAllOf';
|
|
4
5
|
export * from './BasicNotificationAllOfAndroidBackgroundLayout';
|
|
6
|
+
export * from './BeginLiveActivityRequest';
|
|
5
7
|
export * from './Button';
|
|
6
8
|
export * from './CancelNotificationSuccessResponse';
|
|
7
|
-
export * from './CreateNotificationBadRequestResponse';
|
|
8
9
|
export * from './CreateNotificationSuccessResponse';
|
|
9
10
|
export * from './CreatePlayerSuccessResponse';
|
|
10
|
-
export * from './CreateSegmentBadRequestResponse';
|
|
11
11
|
export * from './CreateSegmentConflictResponse';
|
|
12
12
|
export * from './CreateSegmentSuccessResponse';
|
|
13
|
-
export * from './DeletePlayerBadRequestResponse';
|
|
14
13
|
export * from './DeletePlayerNotFoundResponse';
|
|
15
14
|
export * from './DeletePlayerSuccessResponse';
|
|
16
|
-
export * from './DeleteSegmentBadRequestResponse';
|
|
17
15
|
export * from './DeleteSegmentNotFoundResponse';
|
|
18
16
|
export * from './DeleteSegmentSuccessResponse';
|
|
19
17
|
export * from './DeliveryData';
|
|
@@ -26,7 +24,6 @@ export * from './InvalidIdentifierError';
|
|
|
26
24
|
export * from './Notification';
|
|
27
25
|
export * from './Notification200Errors';
|
|
28
26
|
export * from './NotificationAllOf';
|
|
29
|
-
export * from './NotificationHistoryBadRequestResponse';
|
|
30
27
|
export * from './NotificationHistorySuccessResponse';
|
|
31
28
|
export * from './NotificationSlice';
|
|
32
29
|
export * from './NotificationTarget';
|
|
@@ -45,26 +42,26 @@ export * from './Purchase';
|
|
|
45
42
|
export * from './Segment';
|
|
46
43
|
export * from './SegmentNotificationTarget';
|
|
47
44
|
export * from './StringMap';
|
|
45
|
+
export * from './UpdateLiveActivityRequest';
|
|
46
|
+
export * from './UpdateLiveActivitySuccessResponse';
|
|
48
47
|
export * from './UpdatePlayerSuccessResponse';
|
|
49
48
|
export * from './UpdatePlayerTagsRequestBody';
|
|
50
49
|
export * from './UpdatePlayerTagsSuccessResponse';
|
|
51
50
|
|
|
52
|
-
import { App , AppApnsEnvEnum
|
|
51
|
+
import { App , AppApnsEnvEnum } from './App';
|
|
52
|
+
import { BadRequestError } from './BadRequestError';
|
|
53
53
|
import { BasicNotification , BasicNotificationAggregationEnum } from './BasicNotification';
|
|
54
54
|
import { BasicNotificationAllOf , BasicNotificationAllOfAggregationEnum } from './BasicNotificationAllOf';
|
|
55
55
|
import { BasicNotificationAllOfAndroidBackgroundLayout } from './BasicNotificationAllOfAndroidBackgroundLayout';
|
|
56
|
+
import { BeginLiveActivityRequest } from './BeginLiveActivityRequest';
|
|
56
57
|
import { Button } from './Button';
|
|
57
58
|
import { CancelNotificationSuccessResponse } from './CancelNotificationSuccessResponse';
|
|
58
|
-
import { CreateNotificationBadRequestResponse } from './CreateNotificationBadRequestResponse';
|
|
59
59
|
import { CreateNotificationSuccessResponse } from './CreateNotificationSuccessResponse';
|
|
60
60
|
import { CreatePlayerSuccessResponse } from './CreatePlayerSuccessResponse';
|
|
61
|
-
import { CreateSegmentBadRequestResponse } from './CreateSegmentBadRequestResponse';
|
|
62
61
|
import { CreateSegmentConflictResponse } from './CreateSegmentConflictResponse';
|
|
63
62
|
import { CreateSegmentSuccessResponse } from './CreateSegmentSuccessResponse';
|
|
64
|
-
import { DeletePlayerBadRequestResponse } from './DeletePlayerBadRequestResponse';
|
|
65
63
|
import { DeletePlayerNotFoundResponse } from './DeletePlayerNotFoundResponse';
|
|
66
64
|
import { DeletePlayerSuccessResponse } from './DeletePlayerSuccessResponse';
|
|
67
|
-
import { DeleteSegmentBadRequestResponse } from './DeleteSegmentBadRequestResponse';
|
|
68
65
|
import { DeleteSegmentNotFoundResponse } from './DeleteSegmentNotFoundResponse';
|
|
69
66
|
import { DeleteSegmentSuccessResponse } from './DeleteSegmentSuccessResponse';
|
|
70
67
|
import { DeliveryData } from './DeliveryData';
|
|
@@ -77,7 +74,6 @@ import { InvalidIdentifierError } from './InvalidIdentifierError';
|
|
|
77
74
|
import { Notification , NotificationAggregationEnum } from './Notification';
|
|
78
75
|
import { Notification200Errors } from './Notification200Errors';
|
|
79
76
|
import { NotificationAllOf } from './NotificationAllOf';
|
|
80
|
-
import { NotificationHistoryBadRequestResponse } from './NotificationHistoryBadRequestResponse';
|
|
81
77
|
import { NotificationHistorySuccessResponse } from './NotificationHistorySuccessResponse';
|
|
82
78
|
import { NotificationSlice } from './NotificationSlice';
|
|
83
79
|
import { NotificationTarget } from './NotificationTarget';
|
|
@@ -96,6 +92,8 @@ import { Purchase } from './Purchase';
|
|
|
96
92
|
import { Segment } from './Segment';
|
|
97
93
|
import { SegmentNotificationTarget } from './SegmentNotificationTarget';
|
|
98
94
|
import { StringMap } from './StringMap';
|
|
95
|
+
import { UpdateLiveActivityRequest, UpdateLiveActivityRequestNameEnum , UpdateLiveActivityRequestEventEnum } from './UpdateLiveActivityRequest';
|
|
96
|
+
import { UpdateLiveActivitySuccessResponse } from './UpdateLiveActivitySuccessResponse';
|
|
99
97
|
import { UpdatePlayerSuccessResponse } from './UpdatePlayerSuccessResponse';
|
|
100
98
|
import { UpdatePlayerTagsRequestBody } from './UpdatePlayerTagsRequestBody';
|
|
101
99
|
import { UpdatePlayerTagsSuccessResponse } from './UpdatePlayerTagsSuccessResponse';
|
|
@@ -131,25 +129,25 @@ let enumsMap: Set<string> = new Set<string>([
|
|
|
131
129
|
"NotificationWithMetaAggregationEnum",
|
|
132
130
|
"OperatorOperatorEnum",
|
|
133
131
|
"OutcomeDataAggregationEnum",
|
|
132
|
+
"UpdateLiveActivityRequestNameEnum",
|
|
133
|
+
"UpdateLiveActivityRequestEventEnum",
|
|
134
134
|
]);
|
|
135
135
|
|
|
136
136
|
let typeMap: {[index: string]: any} = {
|
|
137
137
|
"App": App,
|
|
138
|
+
"BadRequestError": BadRequestError,
|
|
138
139
|
"BasicNotification": BasicNotification,
|
|
139
140
|
"BasicNotificationAllOf": BasicNotificationAllOf,
|
|
140
141
|
"BasicNotificationAllOfAndroidBackgroundLayout": BasicNotificationAllOfAndroidBackgroundLayout,
|
|
142
|
+
"BeginLiveActivityRequest": BeginLiveActivityRequest,
|
|
141
143
|
"Button": Button,
|
|
142
144
|
"CancelNotificationSuccessResponse": CancelNotificationSuccessResponse,
|
|
143
|
-
"CreateNotificationBadRequestResponse": CreateNotificationBadRequestResponse,
|
|
144
145
|
"CreateNotificationSuccessResponse": CreateNotificationSuccessResponse,
|
|
145
146
|
"CreatePlayerSuccessResponse": CreatePlayerSuccessResponse,
|
|
146
|
-
"CreateSegmentBadRequestResponse": CreateSegmentBadRequestResponse,
|
|
147
147
|
"CreateSegmentConflictResponse": CreateSegmentConflictResponse,
|
|
148
148
|
"CreateSegmentSuccessResponse": CreateSegmentSuccessResponse,
|
|
149
|
-
"DeletePlayerBadRequestResponse": DeletePlayerBadRequestResponse,
|
|
150
149
|
"DeletePlayerNotFoundResponse": DeletePlayerNotFoundResponse,
|
|
151
150
|
"DeletePlayerSuccessResponse": DeletePlayerSuccessResponse,
|
|
152
|
-
"DeleteSegmentBadRequestResponse": DeleteSegmentBadRequestResponse,
|
|
153
151
|
"DeleteSegmentNotFoundResponse": DeleteSegmentNotFoundResponse,
|
|
154
152
|
"DeleteSegmentSuccessResponse": DeleteSegmentSuccessResponse,
|
|
155
153
|
"DeliveryData": DeliveryData,
|
|
@@ -162,7 +160,6 @@ let typeMap: {[index: string]: any} = {
|
|
|
162
160
|
"Notification": Notification,
|
|
163
161
|
"Notification200Errors": Notification200Errors,
|
|
164
162
|
"NotificationAllOf": NotificationAllOf,
|
|
165
|
-
"NotificationHistoryBadRequestResponse": NotificationHistoryBadRequestResponse,
|
|
166
163
|
"NotificationHistorySuccessResponse": NotificationHistorySuccessResponse,
|
|
167
164
|
"NotificationSlice": NotificationSlice,
|
|
168
165
|
"NotificationTarget": NotificationTarget,
|
|
@@ -181,6 +178,8 @@ let typeMap: {[index: string]: any} = {
|
|
|
181
178
|
"Segment": Segment,
|
|
182
179
|
"SegmentNotificationTarget": SegmentNotificationTarget,
|
|
183
180
|
"StringMap": StringMap,
|
|
181
|
+
"UpdateLiveActivityRequest": UpdateLiveActivityRequest,
|
|
182
|
+
"UpdateLiveActivitySuccessResponse": UpdateLiveActivitySuccessResponse,
|
|
184
183
|
"UpdatePlayerSuccessResponse": UpdatePlayerSuccessResponse,
|
|
185
184
|
"UpdatePlayerTagsRequestBody": UpdatePlayerTagsRequestBody,
|
|
186
185
|
"UpdatePlayerTagsSuccessResponse": UpdatePlayerTagsSuccessResponse,
|
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
package/models/Segment.ts
CHANGED