@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/PromiseAPI.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
|
import { ObservableDefaultApi } from './ObservableAPI';
|
|
55
76
|
|
|
56
77
|
import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/DefaultApi";
|
|
@@ -129,6 +150,40 @@ export class PromiseDefaultApi {
|
|
|
129
150
|
return result.toPromise();
|
|
130
151
|
}
|
|
131
152
|
|
|
153
|
+
/**
|
|
154
|
+
* Creates a new Subscription under the User provided. Useful to add email addresses and SMS numbers to the User.
|
|
155
|
+
* @param appId
|
|
156
|
+
* @param aliasLabel
|
|
157
|
+
* @param aliasId
|
|
158
|
+
* @param createSubscriptionRequestBody
|
|
159
|
+
*/
|
|
160
|
+
public createSubscription(appId: string, aliasLabel: string, aliasId: string, createSubscriptionRequestBody: CreateSubscriptionRequestBody, _options?: Configuration): Promise<InlineResponse201> {
|
|
161
|
+
const result = this.api.createSubscription(appId, aliasLabel, aliasId, createSubscriptionRequestBody, _options);
|
|
162
|
+
return result.toPromise();
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* 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.
|
|
167
|
+
* @param appId
|
|
168
|
+
* @param user
|
|
169
|
+
*/
|
|
170
|
+
public createUser(appId: string, user: User, _options?: Configuration): Promise<User> {
|
|
171
|
+
const result = this.api.createUser(appId, user, _options);
|
|
172
|
+
return result.toPromise();
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Deletes an alias by alias label
|
|
177
|
+
* @param appId
|
|
178
|
+
* @param aliasLabel
|
|
179
|
+
* @param aliasId
|
|
180
|
+
* @param aliasLabelToDelete
|
|
181
|
+
*/
|
|
182
|
+
public deleteAlias(appId: string, aliasLabel: string, aliasId: string, aliasLabelToDelete: string, _options?: Configuration): Promise<InlineResponse200> {
|
|
183
|
+
const result = this.api.deleteAlias(appId, aliasLabel, aliasId, aliasLabelToDelete, _options);
|
|
184
|
+
return result.toPromise();
|
|
185
|
+
}
|
|
186
|
+
|
|
132
187
|
/**
|
|
133
188
|
* Delete player - Required: Used to delete a single, specific Player ID record from a specific OneSignal app.
|
|
134
189
|
* Delete a user record
|
|
@@ -151,6 +206,27 @@ export class PromiseDefaultApi {
|
|
|
151
206
|
return result.toPromise();
|
|
152
207
|
}
|
|
153
208
|
|
|
209
|
+
/**
|
|
210
|
+
* Deletes the Subscription.
|
|
211
|
+
* @param appId
|
|
212
|
+
* @param subscriptionId
|
|
213
|
+
*/
|
|
214
|
+
public deleteSubscription(appId: string, subscriptionId: string, _options?: Configuration): Promise<void> {
|
|
215
|
+
const result = this.api.deleteSubscription(appId, subscriptionId, _options);
|
|
216
|
+
return result.toPromise();
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* Removes the User identified by (:alias_label, :alias_id), and all Subscriptions and Aliases
|
|
221
|
+
* @param appId
|
|
222
|
+
* @param aliasLabel
|
|
223
|
+
* @param aliasId
|
|
224
|
+
*/
|
|
225
|
+
public deleteUser(appId: string, aliasLabel: string, aliasId: string, _options?: Configuration): Promise<void> {
|
|
226
|
+
const result = this.api.deleteUser(appId, aliasLabel, aliasId, _options);
|
|
227
|
+
return result.toPromise();
|
|
228
|
+
}
|
|
229
|
+
|
|
154
230
|
/**
|
|
155
231
|
* Stops a Live Activity
|
|
156
232
|
* Stop Live Activity
|
|
@@ -174,6 +250,38 @@ export class PromiseDefaultApi {
|
|
|
174
250
|
return result.toPromise();
|
|
175
251
|
}
|
|
176
252
|
|
|
253
|
+
/**
|
|
254
|
+
* Lists all Aliases for the User identified by :subscription_id.
|
|
255
|
+
* @param appId
|
|
256
|
+
* @param subscriptionId
|
|
257
|
+
*/
|
|
258
|
+
public fetchAliases(appId: string, subscriptionId: string, _options?: Configuration): Promise<UserIdentityResponse> {
|
|
259
|
+
const result = this.api.fetchAliases(appId, subscriptionId, _options);
|
|
260
|
+
return result.toPromise();
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Returns the User’s properties, Aliases, and Subscriptions.
|
|
265
|
+
* @param appId
|
|
266
|
+
* @param aliasLabel
|
|
267
|
+
* @param aliasId
|
|
268
|
+
*/
|
|
269
|
+
public fetchUser(appId: string, aliasLabel: string, aliasId: string, _options?: Configuration): Promise<User> {
|
|
270
|
+
const result = this.api.fetchUser(appId, aliasLabel, aliasId, _options);
|
|
271
|
+
return result.toPromise();
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Lists all Aliases for the User identified by (:alias_label, :alias_id).
|
|
276
|
+
* @param appId
|
|
277
|
+
* @param aliasLabel
|
|
278
|
+
* @param aliasId
|
|
279
|
+
*/
|
|
280
|
+
public fetchUserIdentity(appId: string, aliasLabel: string, aliasId: string, _options?: Configuration): Promise<InlineResponse200> {
|
|
281
|
+
const result = this.api.fetchUserIdentity(appId, aliasLabel, aliasId, _options);
|
|
282
|
+
return result.toPromise();
|
|
283
|
+
}
|
|
284
|
+
|
|
177
285
|
/**
|
|
178
286
|
* View the details of a single OneSignal app
|
|
179
287
|
* View an app
|
|
@@ -193,6 +301,16 @@ export class PromiseDefaultApi {
|
|
|
193
301
|
return result.toPromise();
|
|
194
302
|
}
|
|
195
303
|
|
|
304
|
+
/**
|
|
305
|
+
* Manifest of In-App Messages the Subscription is eligible to display by the SDK.
|
|
306
|
+
* @param appId
|
|
307
|
+
* @param subscriptionId
|
|
308
|
+
*/
|
|
309
|
+
public getEligibleIams(appId: string, subscriptionId: string, _options?: Configuration): Promise<InlineResponse2003> {
|
|
310
|
+
const result = this.api.getEligibleIams(appId, subscriptionId, _options);
|
|
311
|
+
return result.toPromise();
|
|
312
|
+
}
|
|
313
|
+
|
|
196
314
|
/**
|
|
197
315
|
* View the details of a single notification and outcomes associated with it
|
|
198
316
|
* View notification
|
|
@@ -267,6 +385,40 @@ export class PromiseDefaultApi {
|
|
|
267
385
|
return result.toPromise();
|
|
268
386
|
}
|
|
269
387
|
|
|
388
|
+
/**
|
|
389
|
+
* Upserts one or more Aliases to an existing User identified by (:alias_label, :alias_id).
|
|
390
|
+
* @param appId
|
|
391
|
+
* @param aliasLabel
|
|
392
|
+
* @param aliasId
|
|
393
|
+
* @param userIdentityRequestBody
|
|
394
|
+
*/
|
|
395
|
+
public identifyUserByAlias(appId: string, aliasLabel: string, aliasId: string, userIdentityRequestBody: UserIdentityRequestBody, _options?: Configuration): Promise<InlineResponse200> {
|
|
396
|
+
const result = this.api.identifyUserByAlias(appId, aliasLabel, aliasId, userIdentityRequestBody, _options);
|
|
397
|
+
return result.toPromise();
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* Upserts one or more Aliases for the User identified by :subscription_id.
|
|
402
|
+
* @param appId
|
|
403
|
+
* @param subscriptionId
|
|
404
|
+
* @param userIdentityRequestBody
|
|
405
|
+
*/
|
|
406
|
+
public identifyUserBySubscriptionId(appId: string, subscriptionId: string, userIdentityRequestBody: UserIdentityRequestBody, _options?: Configuration): Promise<UserIdentityResponse> {
|
|
407
|
+
const result = this.api.identifyUserBySubscriptionId(appId, subscriptionId, userIdentityRequestBody, _options);
|
|
408
|
+
return result.toPromise();
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* Transfers this Subscription to the User identified by the identity in the payload.
|
|
413
|
+
* @param appId
|
|
414
|
+
* @param subscriptionId
|
|
415
|
+
* @param transferSubscriptionRequestBody
|
|
416
|
+
*/
|
|
417
|
+
public transferSubscription(appId: string, subscriptionId: string, transferSubscriptionRequestBody: TransferSubscriptionRequestBody, _options?: Configuration): Promise<UserIdentityResponse> {
|
|
418
|
+
const result = this.api.transferSubscription(appId, subscriptionId, transferSubscriptionRequestBody, _options);
|
|
419
|
+
return result.toPromise();
|
|
420
|
+
}
|
|
421
|
+
|
|
270
422
|
/**
|
|
271
423
|
* Updates the name or configuration settings of an existing OneSignal app
|
|
272
424
|
* Update an app
|
|
@@ -313,6 +465,29 @@ export class PromiseDefaultApi {
|
|
|
313
465
|
return result.toPromise();
|
|
314
466
|
}
|
|
315
467
|
|
|
468
|
+
/**
|
|
469
|
+
* Updates an existing Subscription’s properties.
|
|
470
|
+
* @param appId
|
|
471
|
+
* @param subscriptionId
|
|
472
|
+
* @param updateSubscriptionRequestBody
|
|
473
|
+
*/
|
|
474
|
+
public updateSubscription(appId: string, subscriptionId: string, updateSubscriptionRequestBody: UpdateSubscriptionRequestBody, _options?: Configuration): Promise<void> {
|
|
475
|
+
const result = this.api.updateSubscription(appId, subscriptionId, updateSubscriptionRequestBody, _options);
|
|
476
|
+
return result.toPromise();
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* Updates an existing User’s properties.
|
|
481
|
+
* @param appId
|
|
482
|
+
* @param aliasLabel
|
|
483
|
+
* @param aliasId
|
|
484
|
+
* @param updateUserRequest
|
|
485
|
+
*/
|
|
486
|
+
public updateUser(appId: string, aliasLabel: string, aliasId: string, updateUserRequest: UpdateUserRequest, _options?: Configuration): Promise<InlineResponse202> {
|
|
487
|
+
const result = this.api.updateUser(appId, aliasLabel, aliasId, updateUserRequest, _options);
|
|
488
|
+
return result.toPromise();
|
|
489
|
+
}
|
|
490
|
+
|
|
316
491
|
|
|
317
492
|
}
|
|
318
493
|
|