@onesignal/node-onesignal 1.0.0-beta8 → 2.0.0-beta1
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/Zapier.yml +34 -0
- package/CHANGELOG.md +15 -0
- package/DefaultApi.md +988 -3
- package/README.md +152 -24
- package/apis/DefaultApi.ts +1339 -98
- package/dist/apis/DefaultApi.d.ts +39 -0
- package/dist/apis/DefaultApi.js +1490 -408
- package/dist/apis/DefaultApi.js.map +1 -1
- package/dist/models/BasicNotification.d.ts +4 -0
- package/dist/models/BasicNotification.js +12 -0
- package/dist/models/BasicNotification.js.map +1 -1
- package/dist/models/CreateNotificationSuccessResponse.d.ts +2 -2
- package/dist/models/CreateSubscriptionRequestBody.d.ts +19 -0
- package/dist/models/CreateSubscriptionRequestBody.js +28 -0
- package/dist/models/CreateSubscriptionRequestBody.js.map +1 -0
- package/dist/models/CreateUserConflictResponse.d.ts +18 -0
- package/dist/models/CreateUserConflictResponse.js +22 -0
- package/dist/models/CreateUserConflictResponse.js.map +1 -0
- package/dist/models/CreateUserConflictResponseErrorsInner.d.ts +20 -0
- package/dist/models/CreateUserConflictResponseErrorsInner.js +34 -0
- package/dist/models/CreateUserConflictResponseErrorsInner.js.map +1 -0
- package/dist/models/CreateUserConflictResponseErrorsItemsMeta.d.ts +17 -0
- package/dist/models/CreateUserConflictResponseErrorsItemsMeta.js +22 -0
- package/dist/models/CreateUserConflictResponseErrorsItemsMeta.js.map +1 -0
- package/dist/models/IdentifyUserConflictResponse.d.ts +18 -0
- package/dist/models/IdentifyUserConflictResponse.js +22 -0
- package/dist/models/IdentifyUserConflictResponse.js.map +1 -0
- package/dist/models/IdentifyUserConflictResponseErrorsInner.d.ts +18 -0
- package/dist/models/IdentifyUserConflictResponseErrorsInner.js +28 -0
- package/dist/models/IdentifyUserConflictResponseErrorsInner.js.map +1 -0
- package/dist/models/InlineResponse200.d.ts +19 -0
- package/dist/models/InlineResponse200.js +22 -0
- package/dist/models/InlineResponse200.js.map +1 -0
- package/dist/models/InlineResponse2003.d.ts +17 -0
- package/dist/models/InlineResponse2003.js +22 -0
- package/dist/models/InlineResponse2003.js.map +1 -0
- package/dist/models/InlineResponse201.d.ts +18 -0
- package/dist/models/InlineResponse201.js +22 -0
- package/dist/models/InlineResponse201.js.map +1 -0
- package/dist/models/InlineResponse202.d.ts +18 -0
- package/dist/models/InlineResponse202.js +22 -0
- package/dist/models/InlineResponse202.js.map +1 -0
- package/dist/models/Notification.d.ts +4 -0
- package/dist/models/Notification.js +12 -0
- package/dist/models/Notification.js.map +1 -1
- package/dist/models/NotificationTarget.d.ts +4 -0
- package/dist/models/NotificationTarget.js +12 -0
- package/dist/models/NotificationTarget.js.map +1 -1
- package/dist/models/NotificationWithMeta.d.ts +4 -0
- package/dist/models/NotificationWithMeta.js +12 -0
- package/dist/models/NotificationWithMeta.js.map +1 -1
- package/dist/models/ObjectSerializer.d.ts +21 -0
- package/dist/models/ObjectSerializer.js +69 -0
- package/dist/models/ObjectSerializer.js.map +1 -1
- package/dist/models/Player.d.ts +1 -1
- package/dist/models/Player.js +1 -1
- package/dist/models/Player.js.map +1 -1
- package/dist/models/PlayerNotificationTarget.d.ts +4 -0
- package/dist/models/PlayerNotificationTarget.js +12 -0
- package/dist/models/PlayerNotificationTarget.js.map +1 -1
- package/dist/models/PlayerNotificationTargetIncludeAliases.d.ts +17 -0
- package/dist/models/PlayerNotificationTargetIncludeAliases.js +22 -0
- package/dist/models/PlayerNotificationTargetIncludeAliases.js.map +1 -0
- package/dist/models/PropertiesDeltas.d.ts +20 -0
- package/dist/models/PropertiesDeltas.js +34 -0
- package/dist/models/PropertiesDeltas.js.map +1 -0
- package/dist/models/PropertiesObject.d.ts +30 -0
- package/dist/models/PropertiesObject.js +82 -0
- package/dist/models/PropertiesObject.js.map +1 -0
- package/dist/models/Purchase.d.ts +2 -1
- package/dist/models/Purchase.js +7 -1
- package/dist/models/Purchase.js.map +1 -1
- package/dist/models/SubscriptionObject.d.ts +34 -0
- package/dist/models/SubscriptionObject.js +118 -0
- package/dist/models/SubscriptionObject.js.map +1 -0
- package/dist/models/TransferSubscriptionRequestBody.d.ts +19 -0
- package/dist/models/TransferSubscriptionRequestBody.js +22 -0
- package/dist/models/TransferSubscriptionRequestBody.js.map +1 -0
- package/dist/models/UpdateSubscriptionRequestBody.d.ts +18 -0
- package/dist/models/UpdateSubscriptionRequestBody.js +22 -0
- package/dist/models/UpdateSubscriptionRequestBody.js.map +1 -0
- package/dist/models/UpdateUserRequest.d.ts +21 -0
- package/dist/models/UpdateUserRequest.js +34 -0
- package/dist/models/UpdateUserRequest.js.map +1 -0
- package/dist/models/User.d.ts +25 -0
- package/dist/models/User.js +40 -0
- package/dist/models/User.js.map +1 -0
- package/dist/models/UserIdentityRequestBody.d.ts +19 -0
- package/dist/models/UserIdentityRequestBody.js +22 -0
- package/dist/models/UserIdentityRequestBody.js.map +1 -0
- package/dist/models/UserIdentityResponse.d.ts +19 -0
- package/dist/models/UserIdentityResponse.js +22 -0
- package/dist/models/UserIdentityResponse.js.map +1 -0
- package/dist/models/UserSubscriptionOptions.d.ts +17 -0
- package/dist/models/UserSubscriptionOptions.js +22 -0
- package/dist/models/UserSubscriptionOptions.js.map +1 -0
- package/dist/models/all.d.ts +21 -0
- package/dist/models/all.js +21 -0
- package/dist/models/all.js.map +1 -1
- package/dist/types/ObjectParamAPI.d.ts +95 -0
- package/dist/types/ObjectParamAPI.js +42 -0
- package/dist/types/ObjectParamAPI.js.map +1 -1
- package/dist/types/ObservableAPI.d.ts +25 -0
- package/dist/types/ObservableAPI.js +383 -47
- package/dist/types/ObservableAPI.js.map +1 -1
- package/dist/types/PromiseAPI.d.ts +25 -0
- package/dist/types/PromiseAPI.js +56 -0
- package/dist/types/PromiseAPI.js.map +1 -1
- package/models/App.ts +1 -1
- package/models/BadRequestError.ts +1 -1
- package/models/BasicNotification.ts +17 -1
- package/models/BasicNotificationAllOf.ts +1 -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 +3 -3
- package/models/CreatePlayerSuccessResponse.ts +1 -1
- package/models/CreateSegmentConflictResponse.ts +1 -1
- package/models/CreateSegmentSuccessResponse.ts +1 -1
- package/models/CreateSubscriptionRequestBody.ts +39 -0
- package/models/CreateUserConflictResponse.ts +32 -0
- package/models/CreateUserConflictResponseErrorsInner.ts +46 -0
- package/models/CreateUserConflictResponseErrorsItemsMeta.ts +31 -0
- 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/IdentifyUserConflictResponse.ts +32 -0
- package/models/IdentifyUserConflictResponseErrorsInner.ts +38 -0
- package/models/InlineResponse200.ts +31 -0
- package/models/InlineResponse2003.ts +31 -0
- package/models/InlineResponse201.ts +32 -0
- package/models/InlineResponse202.ts +32 -0
- package/models/InvalidIdentifierError.ts +1 -1
- package/models/Notification.ts +17 -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 +19 -1
- package/models/NotificationWithMeta.ts +17 -1
- package/models/NotificationWithMetaAllOf.ts +1 -1
- package/models/ObjectSerializer.ts +74 -5
- 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 +3 -3
- package/models/PlayerNotificationTarget.ts +19 -1
- package/models/PlayerNotificationTargetIncludeAliases.ts +31 -0
- package/models/PlayerSlice.ts +1 -1
- package/models/PropertiesDeltas.ts +46 -0
- package/models/PropertiesObject.ts +102 -0
- package/models/Purchase.ts +10 -3
- package/models/Segment.ts +1 -1
- package/models/SegmentNotificationTarget.ts +1 -1
- package/models/StringMap.ts +1 -1
- package/models/SubscriptionObject.ts +146 -0
- package/models/TransferSubscriptionRequestBody.ts +31 -0
- 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 +32 -0
- package/models/UpdateUserRequest.ts +47 -0
- package/models/User.ts +55 -0
- package/models/UserIdentityRequestBody.ts +31 -0
- package/models/UserIdentityResponse.ts +31 -0
- package/models/UserSubscriptionOptions.ts +31 -0
- package/models/all.ts +21 -0
- package/package.json +2 -2
- package/types/ObjectParamAPI.ts +427 -0
- package/types/ObservableAPI.ts +371 -0
- package/types/PromiseAPI.ts +175 -0
package/types/ObjectParamAPI.ts
CHANGED
|
@@ -14,6 +14,10 @@ import { CreateNotificationSuccessResponse } from '../models/CreateNotificationS
|
|
|
14
14
|
import { CreatePlayerSuccessResponse } from '../models/CreatePlayerSuccessResponse';
|
|
15
15
|
import { CreateSegmentConflictResponse } from '../models/CreateSegmentConflictResponse';
|
|
16
16
|
import { CreateSegmentSuccessResponse } from '../models/CreateSegmentSuccessResponse';
|
|
17
|
+
import { CreateSubscriptionRequestBody } from '../models/CreateSubscriptionRequestBody';
|
|
18
|
+
import { CreateUserConflictResponse } from '../models/CreateUserConflictResponse';
|
|
19
|
+
import { CreateUserConflictResponseErrorsInner } from '../models/CreateUserConflictResponseErrorsInner';
|
|
20
|
+
import { CreateUserConflictResponseErrorsItemsMeta } from '../models/CreateUserConflictResponseErrorsItemsMeta';
|
|
17
21
|
import { DeletePlayerNotFoundResponse } from '../models/DeletePlayerNotFoundResponse';
|
|
18
22
|
import { DeletePlayerSuccessResponse } from '../models/DeletePlayerSuccessResponse';
|
|
19
23
|
import { DeleteSegmentNotFoundResponse } from '../models/DeleteSegmentNotFoundResponse';
|
|
@@ -24,6 +28,12 @@ import { ExportPlayersSuccessResponse } from '../models/ExportPlayersSuccessResp
|
|
|
24
28
|
import { Filter } from '../models/Filter';
|
|
25
29
|
import { FilterExpressions } from '../models/FilterExpressions';
|
|
26
30
|
import { GetNotificationRequestBody } from '../models/GetNotificationRequestBody';
|
|
31
|
+
import { IdentifyUserConflictResponse } from '../models/IdentifyUserConflictResponse';
|
|
32
|
+
import { IdentifyUserConflictResponseErrorsInner } from '../models/IdentifyUserConflictResponseErrorsInner';
|
|
33
|
+
import { InlineResponse200 } from '../models/InlineResponse200';
|
|
34
|
+
import { InlineResponse2003 } from '../models/InlineResponse2003';
|
|
35
|
+
import { InlineResponse201 } from '../models/InlineResponse201';
|
|
36
|
+
import { InlineResponse202 } from '../models/InlineResponse202';
|
|
27
37
|
import { InvalidIdentifierError } from '../models/InvalidIdentifierError';
|
|
28
38
|
import { Notification } from '../models/Notification';
|
|
29
39
|
import { Notification200Errors } from '../models/Notification200Errors';
|
|
@@ -41,16 +51,27 @@ import { PlatformDeliveryDataEmailAllOf } from '../models/PlatformDeliveryDataEm
|
|
|
41
51
|
import { PlatformDeliveryDataSmsAllOf } from '../models/PlatformDeliveryDataSmsAllOf';
|
|
42
52
|
import { Player } from '../models/Player';
|
|
43
53
|
import { PlayerNotificationTarget } from '../models/PlayerNotificationTarget';
|
|
54
|
+
import { PlayerNotificationTargetIncludeAliases } from '../models/PlayerNotificationTargetIncludeAliases';
|
|
44
55
|
import { PlayerSlice } from '../models/PlayerSlice';
|
|
56
|
+
import { PropertiesDeltas } from '../models/PropertiesDeltas';
|
|
57
|
+
import { PropertiesObject } from '../models/PropertiesObject';
|
|
45
58
|
import { Purchase } from '../models/Purchase';
|
|
46
59
|
import { Segment } from '../models/Segment';
|
|
47
60
|
import { SegmentNotificationTarget } from '../models/SegmentNotificationTarget';
|
|
48
61
|
import { StringMap } from '../models/StringMap';
|
|
62
|
+
import { SubscriptionObject } from '../models/SubscriptionObject';
|
|
63
|
+
import { TransferSubscriptionRequestBody } from '../models/TransferSubscriptionRequestBody';
|
|
49
64
|
import { UpdateLiveActivityRequest } from '../models/UpdateLiveActivityRequest';
|
|
50
65
|
import { UpdateLiveActivitySuccessResponse } from '../models/UpdateLiveActivitySuccessResponse';
|
|
51
66
|
import { UpdatePlayerSuccessResponse } from '../models/UpdatePlayerSuccessResponse';
|
|
52
67
|
import { UpdatePlayerTagsRequestBody } from '../models/UpdatePlayerTagsRequestBody';
|
|
53
68
|
import { UpdatePlayerTagsSuccessResponse } from '../models/UpdatePlayerTagsSuccessResponse';
|
|
69
|
+
import { UpdateSubscriptionRequestBody } from '../models/UpdateSubscriptionRequestBody';
|
|
70
|
+
import { UpdateUserRequest } from '../models/UpdateUserRequest';
|
|
71
|
+
import { User } from '../models/User';
|
|
72
|
+
import { UserIdentityRequestBody } from '../models/UserIdentityRequestBody';
|
|
73
|
+
import { UserIdentityResponse } from '../models/UserIdentityResponse';
|
|
74
|
+
import { UserSubscriptionOptions } from '../models/UserSubscriptionOptions';
|
|
54
75
|
|
|
55
76
|
import { ObservableDefaultApi } from "./ObservableAPI";
|
|
56
77
|
import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/DefaultApi";
|
|
@@ -133,6 +154,75 @@ export interface DefaultApiCreateSegmentsRequest {
|
|
|
133
154
|
segment?: Segment
|
|
134
155
|
}
|
|
135
156
|
|
|
157
|
+
export interface DefaultApiCreateSubscriptionRequest {
|
|
158
|
+
/**
|
|
159
|
+
*
|
|
160
|
+
* @type string
|
|
161
|
+
* @memberof DefaultApicreateSubscription
|
|
162
|
+
*/
|
|
163
|
+
appId: string
|
|
164
|
+
/**
|
|
165
|
+
*
|
|
166
|
+
* @type string
|
|
167
|
+
* @memberof DefaultApicreateSubscription
|
|
168
|
+
*/
|
|
169
|
+
aliasLabel: string
|
|
170
|
+
/**
|
|
171
|
+
*
|
|
172
|
+
* @type string
|
|
173
|
+
* @memberof DefaultApicreateSubscription
|
|
174
|
+
*/
|
|
175
|
+
aliasId: string
|
|
176
|
+
/**
|
|
177
|
+
*
|
|
178
|
+
* @type CreateSubscriptionRequestBody
|
|
179
|
+
* @memberof DefaultApicreateSubscription
|
|
180
|
+
*/
|
|
181
|
+
createSubscriptionRequestBody: CreateSubscriptionRequestBody
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export interface DefaultApiCreateUserRequest {
|
|
185
|
+
/**
|
|
186
|
+
*
|
|
187
|
+
* @type string
|
|
188
|
+
* @memberof DefaultApicreateUser
|
|
189
|
+
*/
|
|
190
|
+
appId: string
|
|
191
|
+
/**
|
|
192
|
+
*
|
|
193
|
+
* @type User
|
|
194
|
+
* @memberof DefaultApicreateUser
|
|
195
|
+
*/
|
|
196
|
+
user: User
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export interface DefaultApiDeleteAliasRequest {
|
|
200
|
+
/**
|
|
201
|
+
*
|
|
202
|
+
* @type string
|
|
203
|
+
* @memberof DefaultApideleteAlias
|
|
204
|
+
*/
|
|
205
|
+
appId: string
|
|
206
|
+
/**
|
|
207
|
+
*
|
|
208
|
+
* @type string
|
|
209
|
+
* @memberof DefaultApideleteAlias
|
|
210
|
+
*/
|
|
211
|
+
aliasLabel: string
|
|
212
|
+
/**
|
|
213
|
+
*
|
|
214
|
+
* @type string
|
|
215
|
+
* @memberof DefaultApideleteAlias
|
|
216
|
+
*/
|
|
217
|
+
aliasId: string
|
|
218
|
+
/**
|
|
219
|
+
*
|
|
220
|
+
* @type string
|
|
221
|
+
* @memberof DefaultApideleteAlias
|
|
222
|
+
*/
|
|
223
|
+
aliasLabelToDelete: string
|
|
224
|
+
}
|
|
225
|
+
|
|
136
226
|
export interface DefaultApiDeletePlayerRequest {
|
|
137
227
|
/**
|
|
138
228
|
* The OneSignal App ID for your app. Available in Keys & IDs.
|
|
@@ -163,6 +253,42 @@ export interface DefaultApiDeleteSegmentsRequest {
|
|
|
163
253
|
segmentId: string
|
|
164
254
|
}
|
|
165
255
|
|
|
256
|
+
export interface DefaultApiDeleteSubscriptionRequest {
|
|
257
|
+
/**
|
|
258
|
+
*
|
|
259
|
+
* @type string
|
|
260
|
+
* @memberof DefaultApideleteSubscription
|
|
261
|
+
*/
|
|
262
|
+
appId: string
|
|
263
|
+
/**
|
|
264
|
+
*
|
|
265
|
+
* @type string
|
|
266
|
+
* @memberof DefaultApideleteSubscription
|
|
267
|
+
*/
|
|
268
|
+
subscriptionId: string
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export interface DefaultApiDeleteUserRequest {
|
|
272
|
+
/**
|
|
273
|
+
*
|
|
274
|
+
* @type string
|
|
275
|
+
* @memberof DefaultApideleteUser
|
|
276
|
+
*/
|
|
277
|
+
appId: string
|
|
278
|
+
/**
|
|
279
|
+
*
|
|
280
|
+
* @type string
|
|
281
|
+
* @memberof DefaultApideleteUser
|
|
282
|
+
*/
|
|
283
|
+
aliasLabel: string
|
|
284
|
+
/**
|
|
285
|
+
*
|
|
286
|
+
* @type string
|
|
287
|
+
* @memberof DefaultApideleteUser
|
|
288
|
+
*/
|
|
289
|
+
aliasId: string
|
|
290
|
+
}
|
|
291
|
+
|
|
166
292
|
export interface DefaultApiEndLiveActivityRequest {
|
|
167
293
|
/**
|
|
168
294
|
* The OneSignal App ID for your app. Available in Keys & IDs.
|
|
@@ -199,6 +325,63 @@ export interface DefaultApiExportPlayersRequest {
|
|
|
199
325
|
exportPlayersRequestBody?: ExportPlayersRequestBody
|
|
200
326
|
}
|
|
201
327
|
|
|
328
|
+
export interface DefaultApiFetchAliasesRequest {
|
|
329
|
+
/**
|
|
330
|
+
*
|
|
331
|
+
* @type string
|
|
332
|
+
* @memberof DefaultApifetchAliases
|
|
333
|
+
*/
|
|
334
|
+
appId: string
|
|
335
|
+
/**
|
|
336
|
+
*
|
|
337
|
+
* @type string
|
|
338
|
+
* @memberof DefaultApifetchAliases
|
|
339
|
+
*/
|
|
340
|
+
subscriptionId: string
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
export interface DefaultApiFetchUserRequest {
|
|
344
|
+
/**
|
|
345
|
+
*
|
|
346
|
+
* @type string
|
|
347
|
+
* @memberof DefaultApifetchUser
|
|
348
|
+
*/
|
|
349
|
+
appId: string
|
|
350
|
+
/**
|
|
351
|
+
*
|
|
352
|
+
* @type string
|
|
353
|
+
* @memberof DefaultApifetchUser
|
|
354
|
+
*/
|
|
355
|
+
aliasLabel: string
|
|
356
|
+
/**
|
|
357
|
+
*
|
|
358
|
+
* @type string
|
|
359
|
+
* @memberof DefaultApifetchUser
|
|
360
|
+
*/
|
|
361
|
+
aliasId: string
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
export interface DefaultApiFetchUserIdentityRequest {
|
|
365
|
+
/**
|
|
366
|
+
*
|
|
367
|
+
* @type string
|
|
368
|
+
* @memberof DefaultApifetchUserIdentity
|
|
369
|
+
*/
|
|
370
|
+
appId: string
|
|
371
|
+
/**
|
|
372
|
+
*
|
|
373
|
+
* @type string
|
|
374
|
+
* @memberof DefaultApifetchUserIdentity
|
|
375
|
+
*/
|
|
376
|
+
aliasLabel: string
|
|
377
|
+
/**
|
|
378
|
+
*
|
|
379
|
+
* @type string
|
|
380
|
+
* @memberof DefaultApifetchUserIdentity
|
|
381
|
+
*/
|
|
382
|
+
aliasId: string
|
|
383
|
+
}
|
|
384
|
+
|
|
202
385
|
export interface DefaultApiGetAppRequest {
|
|
203
386
|
/**
|
|
204
387
|
* An app id
|
|
@@ -211,6 +394,21 @@ export interface DefaultApiGetAppRequest {
|
|
|
211
394
|
export interface DefaultApiGetAppsRequest {
|
|
212
395
|
}
|
|
213
396
|
|
|
397
|
+
export interface DefaultApiGetEligibleIamsRequest {
|
|
398
|
+
/**
|
|
399
|
+
*
|
|
400
|
+
* @type string
|
|
401
|
+
* @memberof DefaultApigetEligibleIams
|
|
402
|
+
*/
|
|
403
|
+
appId: string
|
|
404
|
+
/**
|
|
405
|
+
*
|
|
406
|
+
* @type string
|
|
407
|
+
* @memberof DefaultApigetEligibleIams
|
|
408
|
+
*/
|
|
409
|
+
subscriptionId: string
|
|
410
|
+
}
|
|
411
|
+
|
|
214
412
|
export interface DefaultApiGetNotificationRequest {
|
|
215
413
|
/**
|
|
216
414
|
*
|
|
@@ -349,6 +547,75 @@ export interface DefaultApiGetPlayersRequest {
|
|
|
349
547
|
offset?: number
|
|
350
548
|
}
|
|
351
549
|
|
|
550
|
+
export interface DefaultApiIdentifyUserByAliasRequest {
|
|
551
|
+
/**
|
|
552
|
+
*
|
|
553
|
+
* @type string
|
|
554
|
+
* @memberof DefaultApiidentifyUserByAlias
|
|
555
|
+
*/
|
|
556
|
+
appId: string
|
|
557
|
+
/**
|
|
558
|
+
*
|
|
559
|
+
* @type string
|
|
560
|
+
* @memberof DefaultApiidentifyUserByAlias
|
|
561
|
+
*/
|
|
562
|
+
aliasLabel: string
|
|
563
|
+
/**
|
|
564
|
+
*
|
|
565
|
+
* @type string
|
|
566
|
+
* @memberof DefaultApiidentifyUserByAlias
|
|
567
|
+
*/
|
|
568
|
+
aliasId: string
|
|
569
|
+
/**
|
|
570
|
+
*
|
|
571
|
+
* @type UserIdentityRequestBody
|
|
572
|
+
* @memberof DefaultApiidentifyUserByAlias
|
|
573
|
+
*/
|
|
574
|
+
userIdentityRequestBody: UserIdentityRequestBody
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
export interface DefaultApiIdentifyUserBySubscriptionIdRequest {
|
|
578
|
+
/**
|
|
579
|
+
*
|
|
580
|
+
* @type string
|
|
581
|
+
* @memberof DefaultApiidentifyUserBySubscriptionId
|
|
582
|
+
*/
|
|
583
|
+
appId: string
|
|
584
|
+
/**
|
|
585
|
+
*
|
|
586
|
+
* @type string
|
|
587
|
+
* @memberof DefaultApiidentifyUserBySubscriptionId
|
|
588
|
+
*/
|
|
589
|
+
subscriptionId: string
|
|
590
|
+
/**
|
|
591
|
+
*
|
|
592
|
+
* @type UserIdentityRequestBody
|
|
593
|
+
* @memberof DefaultApiidentifyUserBySubscriptionId
|
|
594
|
+
*/
|
|
595
|
+
userIdentityRequestBody: UserIdentityRequestBody
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
export interface DefaultApiTransferSubscriptionRequest {
|
|
599
|
+
/**
|
|
600
|
+
*
|
|
601
|
+
* @type string
|
|
602
|
+
* @memberof DefaultApitransferSubscription
|
|
603
|
+
*/
|
|
604
|
+
appId: string
|
|
605
|
+
/**
|
|
606
|
+
*
|
|
607
|
+
* @type string
|
|
608
|
+
* @memberof DefaultApitransferSubscription
|
|
609
|
+
*/
|
|
610
|
+
subscriptionId: string
|
|
611
|
+
/**
|
|
612
|
+
*
|
|
613
|
+
* @type TransferSubscriptionRequestBody
|
|
614
|
+
* @memberof DefaultApitransferSubscription
|
|
615
|
+
*/
|
|
616
|
+
transferSubscriptionRequestBody: TransferSubscriptionRequestBody
|
|
617
|
+
}
|
|
618
|
+
|
|
352
619
|
export interface DefaultApiUpdateAppRequest {
|
|
353
620
|
/**
|
|
354
621
|
* An app id
|
|
@@ -421,6 +688,54 @@ export interface DefaultApiUpdatePlayerTagsRequest {
|
|
|
421
688
|
updatePlayerTagsRequestBody?: UpdatePlayerTagsRequestBody
|
|
422
689
|
}
|
|
423
690
|
|
|
691
|
+
export interface DefaultApiUpdateSubscriptionRequest {
|
|
692
|
+
/**
|
|
693
|
+
*
|
|
694
|
+
* @type string
|
|
695
|
+
* @memberof DefaultApiupdateSubscription
|
|
696
|
+
*/
|
|
697
|
+
appId: string
|
|
698
|
+
/**
|
|
699
|
+
*
|
|
700
|
+
* @type string
|
|
701
|
+
* @memberof DefaultApiupdateSubscription
|
|
702
|
+
*/
|
|
703
|
+
subscriptionId: string
|
|
704
|
+
/**
|
|
705
|
+
*
|
|
706
|
+
* @type UpdateSubscriptionRequestBody
|
|
707
|
+
* @memberof DefaultApiupdateSubscription
|
|
708
|
+
*/
|
|
709
|
+
updateSubscriptionRequestBody: UpdateSubscriptionRequestBody
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
export interface DefaultApiUpdateUserRequest {
|
|
713
|
+
/**
|
|
714
|
+
*
|
|
715
|
+
* @type string
|
|
716
|
+
* @memberof DefaultApiupdateUser
|
|
717
|
+
*/
|
|
718
|
+
appId: string
|
|
719
|
+
/**
|
|
720
|
+
*
|
|
721
|
+
* @type string
|
|
722
|
+
* @memberof DefaultApiupdateUser
|
|
723
|
+
*/
|
|
724
|
+
aliasLabel: string
|
|
725
|
+
/**
|
|
726
|
+
*
|
|
727
|
+
* @type string
|
|
728
|
+
* @memberof DefaultApiupdateUser
|
|
729
|
+
*/
|
|
730
|
+
aliasId: string
|
|
731
|
+
/**
|
|
732
|
+
*
|
|
733
|
+
* @type UpdateUserRequest
|
|
734
|
+
* @memberof DefaultApiupdateUser
|
|
735
|
+
*/
|
|
736
|
+
updateUserRequest: UpdateUserRequest
|
|
737
|
+
}
|
|
738
|
+
|
|
424
739
|
export class ObjectDefaultApi {
|
|
425
740
|
private api: ObservableDefaultApi
|
|
426
741
|
|
|
@@ -482,6 +797,30 @@ export class ObjectDefaultApi {
|
|
|
482
797
|
return this.api.createSegments(param.appId, param.segment, options).toPromise();
|
|
483
798
|
}
|
|
484
799
|
|
|
800
|
+
/**
|
|
801
|
+
* Creates a new Subscription under the User provided. Useful to add email addresses and SMS numbers to the User.
|
|
802
|
+
* @param param the request object
|
|
803
|
+
*/
|
|
804
|
+
public createSubscription(param: DefaultApiCreateSubscriptionRequest, options?: Configuration): Promise<InlineResponse201> {
|
|
805
|
+
return this.api.createSubscription(param.appId, param.aliasLabel, param.aliasId, param.createSubscriptionRequestBody, options).toPromise();
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
/**
|
|
809
|
+
* Creates a User, optionally Subscriptions owned by the User as well as Aliases. Aliases provided in the payload will be used to look up an existing User.
|
|
810
|
+
* @param param the request object
|
|
811
|
+
*/
|
|
812
|
+
public createUser(param: DefaultApiCreateUserRequest, options?: Configuration): Promise<User> {
|
|
813
|
+
return this.api.createUser(param.appId, param.user, options).toPromise();
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
/**
|
|
817
|
+
* Deletes an alias by alias label
|
|
818
|
+
* @param param the request object
|
|
819
|
+
*/
|
|
820
|
+
public deleteAlias(param: DefaultApiDeleteAliasRequest, options?: Configuration): Promise<InlineResponse200> {
|
|
821
|
+
return this.api.deleteAlias(param.appId, param.aliasLabel, param.aliasId, param.aliasLabelToDelete, options).toPromise();
|
|
822
|
+
}
|
|
823
|
+
|
|
485
824
|
/**
|
|
486
825
|
* Delete player - Required: Used to delete a single, specific Player ID record from a specific OneSignal app.
|
|
487
826
|
* Delete a user record
|
|
@@ -500,6 +839,22 @@ export class ObjectDefaultApi {
|
|
|
500
839
|
return this.api.deleteSegments(param.appId, param.segmentId, options).toPromise();
|
|
501
840
|
}
|
|
502
841
|
|
|
842
|
+
/**
|
|
843
|
+
* Deletes the Subscription.
|
|
844
|
+
* @param param the request object
|
|
845
|
+
*/
|
|
846
|
+
public deleteSubscription(param: DefaultApiDeleteSubscriptionRequest, options?: Configuration): Promise<void> {
|
|
847
|
+
return this.api.deleteSubscription(param.appId, param.subscriptionId, options).toPromise();
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
/**
|
|
851
|
+
* Removes the User identified by (:alias_label, :alias_id), and all Subscriptions and Aliases
|
|
852
|
+
* @param param the request object
|
|
853
|
+
*/
|
|
854
|
+
public deleteUser(param: DefaultApiDeleteUserRequest, options?: Configuration): Promise<void> {
|
|
855
|
+
return this.api.deleteUser(param.appId, param.aliasLabel, param.aliasId, options).toPromise();
|
|
856
|
+
}
|
|
857
|
+
|
|
503
858
|
/**
|
|
504
859
|
* Stops a Live Activity
|
|
505
860
|
* Stop Live Activity
|
|
@@ -518,6 +873,30 @@ export class ObjectDefaultApi {
|
|
|
518
873
|
return this.api.exportPlayers(param.appId, param.exportPlayersRequestBody, options).toPromise();
|
|
519
874
|
}
|
|
520
875
|
|
|
876
|
+
/**
|
|
877
|
+
* Lists all Aliases for the User identified by :subscription_id.
|
|
878
|
+
* @param param the request object
|
|
879
|
+
*/
|
|
880
|
+
public fetchAliases(param: DefaultApiFetchAliasesRequest, options?: Configuration): Promise<UserIdentityResponse> {
|
|
881
|
+
return this.api.fetchAliases(param.appId, param.subscriptionId, options).toPromise();
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
/**
|
|
885
|
+
* Returns the User’s properties, Aliases, and Subscriptions.
|
|
886
|
+
* @param param the request object
|
|
887
|
+
*/
|
|
888
|
+
public fetchUser(param: DefaultApiFetchUserRequest, options?: Configuration): Promise<User> {
|
|
889
|
+
return this.api.fetchUser(param.appId, param.aliasLabel, param.aliasId, options).toPromise();
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
/**
|
|
893
|
+
* Lists all Aliases for the User identified by (:alias_label, :alias_id).
|
|
894
|
+
* @param param the request object
|
|
895
|
+
*/
|
|
896
|
+
public fetchUserIdentity(param: DefaultApiFetchUserIdentityRequest, options?: Configuration): Promise<InlineResponse200> {
|
|
897
|
+
return this.api.fetchUserIdentity(param.appId, param.aliasLabel, param.aliasId, options).toPromise();
|
|
898
|
+
}
|
|
899
|
+
|
|
521
900
|
/**
|
|
522
901
|
* View the details of a single OneSignal app
|
|
523
902
|
* View an app
|
|
@@ -536,6 +915,14 @@ export class ObjectDefaultApi {
|
|
|
536
915
|
return this.api.getApps( options).toPromise();
|
|
537
916
|
}
|
|
538
917
|
|
|
918
|
+
/**
|
|
919
|
+
* Manifest of In-App Messages the Subscription is eligible to display by the SDK.
|
|
920
|
+
* @param param the request object
|
|
921
|
+
*/
|
|
922
|
+
public getEligibleIams(param: DefaultApiGetEligibleIamsRequest, options?: Configuration): Promise<InlineResponse2003> {
|
|
923
|
+
return this.api.getEligibleIams(param.appId, param.subscriptionId, options).toPromise();
|
|
924
|
+
}
|
|
925
|
+
|
|
539
926
|
/**
|
|
540
927
|
* View the details of a single notification and outcomes associated with it
|
|
541
928
|
* View notification
|
|
@@ -590,6 +977,30 @@ export class ObjectDefaultApi {
|
|
|
590
977
|
return this.api.getPlayers(param.appId, param.limit, param.offset, options).toPromise();
|
|
591
978
|
}
|
|
592
979
|
|
|
980
|
+
/**
|
|
981
|
+
* Upserts one or more Aliases to an existing User identified by (:alias_label, :alias_id).
|
|
982
|
+
* @param param the request object
|
|
983
|
+
*/
|
|
984
|
+
public identifyUserByAlias(param: DefaultApiIdentifyUserByAliasRequest, options?: Configuration): Promise<InlineResponse200> {
|
|
985
|
+
return this.api.identifyUserByAlias(param.appId, param.aliasLabel, param.aliasId, param.userIdentityRequestBody, options).toPromise();
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
/**
|
|
989
|
+
* Upserts one or more Aliases for the User identified by :subscription_id.
|
|
990
|
+
* @param param the request object
|
|
991
|
+
*/
|
|
992
|
+
public identifyUserBySubscriptionId(param: DefaultApiIdentifyUserBySubscriptionIdRequest, options?: Configuration): Promise<UserIdentityResponse> {
|
|
993
|
+
return this.api.identifyUserBySubscriptionId(param.appId, param.subscriptionId, param.userIdentityRequestBody, options).toPromise();
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
/**
|
|
997
|
+
* Transfers this Subscription to the User identified by the identity in the payload.
|
|
998
|
+
* @param param the request object
|
|
999
|
+
*/
|
|
1000
|
+
public transferSubscription(param: DefaultApiTransferSubscriptionRequest, options?: Configuration): Promise<UserIdentityResponse> {
|
|
1001
|
+
return this.api.transferSubscription(param.appId, param.subscriptionId, param.transferSubscriptionRequestBody, options).toPromise();
|
|
1002
|
+
}
|
|
1003
|
+
|
|
593
1004
|
/**
|
|
594
1005
|
* Updates the name or configuration settings of an existing OneSignal app
|
|
595
1006
|
* Update an app
|
|
@@ -626,4 +1037,20 @@ export class ObjectDefaultApi {
|
|
|
626
1037
|
return this.api.updatePlayerTags(param.appId, param.externalUserId, param.updatePlayerTagsRequestBody, options).toPromise();
|
|
627
1038
|
}
|
|
628
1039
|
|
|
1040
|
+
/**
|
|
1041
|
+
* Updates an existing Subscription’s properties.
|
|
1042
|
+
* @param param the request object
|
|
1043
|
+
*/
|
|
1044
|
+
public updateSubscription(param: DefaultApiUpdateSubscriptionRequest, options?: Configuration): Promise<void> {
|
|
1045
|
+
return this.api.updateSubscription(param.appId, param.subscriptionId, param.updateSubscriptionRequestBody, options).toPromise();
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
/**
|
|
1049
|
+
* Updates an existing User’s properties.
|
|
1050
|
+
* @param param the request object
|
|
1051
|
+
*/
|
|
1052
|
+
public updateUser(param: DefaultApiUpdateUserRequest, options?: Configuration): Promise<InlineResponse202> {
|
|
1053
|
+
return this.api.updateUser(param.appId, param.aliasLabel, param.aliasId, param.updateUserRequest, options).toPromise();
|
|
1054
|
+
}
|
|
1055
|
+
|
|
629
1056
|
}
|