@onesignal/node-onesignal 2.0.1-beta1 → 5.0.0-alpha-01
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/DefaultApi.md +452 -707
- package/apis/DefaultApi.ts +998 -1004
- package/auth/auth.ts +14 -14
- package/configuration.ts +6 -6
- package/dist/apis/DefaultApi.d.ts +39 -63
- package/dist/apis/DefaultApi.js +1149 -1022
- package/dist/apis/DefaultApi.js.map +1 -1
- package/dist/auth/auth.d.ts +6 -6
- package/dist/auth/auth.js +19 -19
- package/dist/auth/auth.js.map +1 -1
- package/dist/configuration.d.ts +2 -2
- package/dist/configuration.js +4 -4
- package/dist/configuration.js.map +1 -1
- package/dist/models/BasicNotification.d.ts +14 -12
- package/dist/models/BasicNotification.js +20 -20
- package/dist/models/BasicNotification.js.map +1 -1
- package/dist/models/BasicNotificationAllOf.d.ts +10 -8
- package/dist/models/BasicNotificationAllOf.js +17 -11
- package/dist/models/BasicNotificationAllOf.js.map +1 -1
- package/dist/models/CreateNotificationSuccessResponse.d.ts +1 -3
- package/dist/models/CreateNotificationSuccessResponse.js +1 -7
- package/dist/models/CreateNotificationSuccessResponse.js.map +1 -1
- package/dist/models/{ExportPlayersSuccessResponse.d.ts → ExportEventsSuccessResponse.d.ts} +1 -1
- package/dist/models/ExportEventsSuccessResponse.js +22 -0
- package/dist/models/ExportEventsSuccessResponse.js.map +1 -0
- package/dist/models/{ExportPlayersRequestBody.d.ts → ExportSubscriptionsRequestBody.d.ts} +1 -1
- package/dist/models/ExportSubscriptionsRequestBody.js +34 -0
- package/dist/models/ExportSubscriptionsRequestBody.js.map +1 -0
- package/dist/models/{DeletePlayerNotFoundResponse.d.ts → ExportSubscriptionsSuccessResponse.d.ts} +2 -2
- package/dist/models/ExportSubscriptionsSuccessResponse.js +22 -0
- package/dist/models/ExportSubscriptionsSuccessResponse.js.map +1 -0
- package/dist/models/Filter.d.ts +6 -2
- package/dist/models/Filter.js +24 -0
- package/dist/models/Filter.js.map +1 -1
- package/dist/models/FilterExpression.d.ts +27 -0
- package/dist/models/FilterExpression.js +70 -0
- package/dist/models/FilterExpression.js.map +1 -0
- package/dist/models/{CancelNotificationSuccessResponse.d.ts → GenericError.d.ts} +3 -1
- package/dist/models/GenericError.js +34 -0
- package/dist/models/GenericError.js.map +1 -0
- package/dist/models/{IdentifyUserConflictResponseErrorsInner.d.ts → GenericErrorErrorsInner.d.ts} +1 -1
- package/dist/models/GenericErrorErrorsInner.js +28 -0
- package/dist/models/GenericErrorErrorsInner.js.map +1 -0
- package/dist/models/{DeletePlayerSuccessResponse.d.ts → GenericSuccessBoolResponse.d.ts} +1 -1
- package/dist/models/GenericSuccessBoolResponse.js +22 -0
- package/dist/models/GenericSuccessBoolResponse.js.map +1 -0
- package/dist/models/{GetNotificationRequestBody.d.ts → GetNotificationHistoryRequestBody.d.ts} +3 -3
- package/dist/models/GetNotificationHistoryRequestBody.js +34 -0
- package/dist/models/GetNotificationHistoryRequestBody.js.map +1 -0
- package/dist/models/{PlayerSlice.d.ts → GetSegmentsSuccessResponse.d.ts} +3 -3
- package/dist/models/GetSegmentsSuccessResponse.js +40 -0
- package/dist/models/GetSegmentsSuccessResponse.js.map +1 -0
- package/dist/models/InvalidIdentifierError.d.ts +1 -1
- package/dist/models/InvalidIdentifierError.js +2 -2
- package/dist/models/InvalidIdentifierError.js.map +1 -1
- package/dist/models/{StringMap.d.ts → LanguageStringMap.d.ts} +1 -1
- package/dist/models/{StringMap.js → LanguageStringMap.js} +10 -10
- package/dist/models/LanguageStringMap.js.map +1 -0
- package/dist/models/Notification.d.ts +14 -12
- package/dist/models/Notification.js +20 -20
- package/dist/models/Notification.js.map +1 -1
- package/dist/models/NotificationTarget.d.ts +4 -4
- package/dist/models/NotificationTarget.js +3 -9
- package/dist/models/NotificationTarget.js.map +1 -1
- package/dist/models/NotificationWithMeta.d.ts +14 -12
- package/dist/models/NotificationWithMeta.js +20 -20
- package/dist/models/NotificationWithMeta.js.map +1 -1
- package/dist/models/ObjectSerializer.d.ts +17 -33
- package/dist/models/ObjectSerializer.js +56 -105
- package/dist/models/ObjectSerializer.js.map +1 -1
- package/dist/models/{InlineResponse202.d.ts → PropertiesBody.d.ts} +1 -1
- package/dist/models/PropertiesBody.js +22 -0
- package/dist/models/PropertiesBody.js.map +1 -0
- package/dist/models/{BadRequestError.d.ts → RateLimitError.d.ts} +2 -1
- package/dist/models/RateLimitError.js +28 -0
- package/dist/models/RateLimitError.js.map +1 -0
- package/dist/models/RateLimiterError.d.ts +18 -0
- package/dist/models/RateLimiterError.js +22 -0
- package/dist/models/RateLimiterError.js.map +1 -0
- package/dist/models/Segment.d.ts +2 -2
- package/dist/models/Segment.js +1 -1
- package/dist/models/Segment.js.map +1 -1
- package/dist/models/{CreatePlayerSuccessResponse.d.ts → SegmentData.d.ts} +7 -2
- package/dist/models/SegmentData.js +58 -0
- package/dist/models/SegmentData.js.map +1 -0
- package/dist/models/{SubscriptionObject.d.ts → Subscription.d.ts} +3 -3
- package/dist/models/{SubscriptionObject.js → Subscription.js} +11 -11
- package/dist/models/Subscription.js.map +1 -0
- package/dist/models/{BeginLiveActivityRequest.d.ts → SubscriptionBody.d.ts} +3 -3
- package/dist/models/SubscriptionBody.js +22 -0
- package/dist/models/SubscriptionBody.js.map +1 -0
- package/dist/models/{PlayerNotificationTarget.d.ts → SubscriptionNotificationTarget.d.ts} +7 -7
- package/dist/models/{PlayerNotificationTarget.js → SubscriptionNotificationTarget.js} +14 -20
- package/dist/models/SubscriptionNotificationTarget.js.map +1 -0
- package/dist/models/TransferSubscriptionRequestBody.d.ts +1 -1
- package/dist/models/TransferSubscriptionRequestBody.js +1 -1
- package/dist/models/TransferSubscriptionRequestBody.js.map +1 -1
- package/dist/models/UpdateLiveActivityRequest.d.ts +8 -3
- package/dist/models/UpdateLiveActivityRequest.js +33 -3
- package/dist/models/UpdateLiveActivityRequest.js.map +1 -1
- package/dist/models/UpdateLiveActivitySuccessResponse.d.ts +1 -3
- package/dist/models/UpdateLiveActivitySuccessResponse.js +2 -8
- package/dist/models/UpdateLiveActivitySuccessResponse.js.map +1 -1
- package/dist/models/User.d.ts +3 -5
- package/dist/models/User.js +2 -8
- package/dist/models/User.js.map +1 -1
- package/dist/models/{InlineResponse200.d.ts → UserIdentityBody.d.ts} +2 -2
- package/dist/models/UserIdentityBody.js +22 -0
- package/dist/models/UserIdentityBody.js.map +1 -0
- package/dist/models/{CreateNotificationBadRequestResponse.d.ts → WebButton.d.ts} +5 -2
- package/dist/models/WebButton.js +40 -0
- package/dist/models/WebButton.js.map +1 -0
- package/dist/models/all.d.ts +17 -33
- package/dist/models/all.js +17 -33
- package/dist/models/all.js.map +1 -1
- package/dist/servers.js +1 -1
- package/dist/servers.js.map +1 -1
- package/dist/types/ObjectParamAPI.d.ts +56 -100
- package/dist/types/ObjectParamAPI.js +28 -46
- package/dist/types/ObjectParamAPI.js.map +1 -1
- package/dist/types/ObservableAPI.d.ts +27 -45
- package/dist/types/ObservableAPI.js +82 -226
- package/dist/types/ObservableAPI.js.map +1 -1
- package/dist/types/PromiseAPI.d.ts +27 -45
- package/dist/types/PromiseAPI.js +34 -58
- package/dist/types/PromiseAPI.js.map +1 -1
- package/models/App.ts +1 -1
- package/models/BasicNotification.ts +49 -46
- package/models/BasicNotificationAllOf.ts +34 -23
- package/models/BasicNotificationAllOfAndroidBackgroundLayout.ts +1 -1
- package/models/Button.ts +1 -1
- package/models/CreateNotificationSuccessResponse.ts +5 -13
- package/models/CreateSegmentConflictResponse.ts +1 -1
- package/models/CreateSegmentSuccessResponse.ts +1 -1
- package/models/CreateUserConflictResponse.ts +1 -1
- package/models/CreateUserConflictResponseErrorsInner.ts +1 -1
- package/models/CreateUserConflictResponseErrorsItemsMeta.ts +1 -1
- package/models/DeliveryData.ts +1 -1
- package/models/{ExportPlayersSuccessResponse.ts → ExportEventsSuccessResponse.ts} +3 -3
- package/models/{ExportPlayersRequestBody.ts → ExportSubscriptionsRequestBody.ts} +3 -3
- package/models/{CancelNotificationSuccessResponse.ts → ExportSubscriptionsSuccessResponse.ts} +7 -7
- package/models/Filter.ts +45 -5
- package/models/FilterExpression.ts +120 -0
- package/models/{CreateSegmentBadRequestResponse.ts → GenericError.ts} +14 -7
- package/models/{IdentifyUserConflictResponseErrorsInner.ts → GenericErrorErrorsInner.ts} +3 -3
- package/models/{DeletePlayerNotFoundResponse.ts → GenericSuccessBoolResponse.ts} +3 -3
- package/models/{GetNotificationRequestBody.ts → GetNotificationHistoryRequestBody.ts} +6 -6
- package/models/{PlayerSlice.ts → GetSegmentsSuccessResponse.ts} +20 -8
- package/models/InvalidIdentifierError.ts +6 -6
- package/models/{StringMap.ts → LanguageStringMap.ts} +3 -3
- package/models/Notification.ts +49 -46
- package/models/NotificationAllOf.ts +1 -1
- package/models/NotificationHistorySuccessResponse.ts +1 -1
- package/models/NotificationSlice.ts +1 -1
- package/models/NotificationTarget.ts +17 -25
- package/models/NotificationWithMeta.ts +49 -46
- package/models/NotificationWithMetaAllOf.ts +1 -1
- package/models/ObjectSerializer.ts +63 -112
- 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/{InlineResponse202.ts → PropertiesBody.ts} +3 -3
- package/models/PropertiesDeltas.ts +1 -1
- package/models/PropertiesObject.ts +1 -1
- package/models/Purchase.ts +1 -1
- package/models/{NotificationHistoryBadRequestResponse.ts → RateLimitError.ts} +10 -10
- package/models/{BadRequestError.ts → RateLimiterError.ts} +6 -5
- package/models/Segment.ts +4 -4
- package/models/SegmentData.ts +94 -0
- package/models/SegmentNotificationTarget.ts +1 -1
- package/models/{SubscriptionObject.ts → Subscription.ts} +6 -6
- package/models/{InlineResponse201.ts → SubscriptionBody.ts} +6 -6
- package/models/{PlayerNotificationTarget.ts → SubscriptionNotificationTarget.ts} +21 -29
- package/models/TransferSubscriptionRequestBody.ts +3 -3
- package/models/UpdateLiveActivityRequest.ts +56 -9
- package/models/UpdateLiveActivitySuccessResponse.ts +4 -12
- package/models/UpdateUserRequest.ts +1 -1
- package/models/User.ts +6 -14
- package/models/{InlineResponse200.ts → UserIdentityBody.ts} +5 -5
- package/models/{CreatePlayerSuccessResponse.ts → WebButton.ts} +24 -10
- package/models/all.ts +17 -33
- package/package.json +2 -2
- package/servers.ts +1 -1
- package/types/ObjectParamAPI.ts +174 -345
- package/types/ObservableAPI.ts +117 -284
- package/types/PromiseAPI.ts +97 -180
- package/dist/models/BadRequestError.js +0 -22
- package/dist/models/BadRequestError.js.map +0 -1
- package/dist/models/BeginLiveActivityRequest.js +0 -28
- package/dist/models/BeginLiveActivityRequest.js.map +0 -1
- package/dist/models/CancelNotificationSuccessResponse.js +0 -22
- package/dist/models/CancelNotificationSuccessResponse.js.map +0 -1
- package/dist/models/CreateNotificationBadRequestResponse.js +0 -22
- package/dist/models/CreateNotificationBadRequestResponse.js.map +0 -1
- package/dist/models/CreatePlayerSuccessResponse.js +0 -28
- package/dist/models/CreatePlayerSuccessResponse.js.map +0 -1
- package/dist/models/CreateSegmentBadRequestResponse.d.ts +0 -18
- package/dist/models/CreateSegmentBadRequestResponse.js +0 -28
- package/dist/models/CreateSegmentBadRequestResponse.js.map +0 -1
- package/dist/models/CreateSubscriptionRequestBody.d.ts +0 -19
- package/dist/models/CreateSubscriptionRequestBody.js +0 -28
- package/dist/models/CreateSubscriptionRequestBody.js.map +0 -1
- package/dist/models/DeletePlayerBadRequestResponse.d.ts +0 -17
- package/dist/models/DeletePlayerBadRequestResponse.js +0 -22
- package/dist/models/DeletePlayerBadRequestResponse.js.map +0 -1
- package/dist/models/DeletePlayerNotFoundResponse.js +0 -22
- package/dist/models/DeletePlayerNotFoundResponse.js.map +0 -1
- package/dist/models/DeletePlayerSuccessResponse.js +0 -22
- package/dist/models/DeletePlayerSuccessResponse.js.map +0 -1
- package/dist/models/DeleteSegmentBadRequestResponse.d.ts +0 -17
- package/dist/models/DeleteSegmentBadRequestResponse.js +0 -22
- package/dist/models/DeleteSegmentBadRequestResponse.js.map +0 -1
- package/dist/models/DeleteSegmentNotFoundResponse.d.ts +0 -17
- package/dist/models/DeleteSegmentNotFoundResponse.js +0 -22
- package/dist/models/DeleteSegmentNotFoundResponse.js.map +0 -1
- package/dist/models/DeleteSegmentSuccessResponse.d.ts +0 -17
- package/dist/models/DeleteSegmentSuccessResponse.js +0 -22
- package/dist/models/DeleteSegmentSuccessResponse.js.map +0 -1
- package/dist/models/ExportPlayersRequestBody.js +0 -34
- package/dist/models/ExportPlayersRequestBody.js.map +0 -1
- package/dist/models/ExportPlayersSuccessResponse.js +0 -22
- package/dist/models/ExportPlayersSuccessResponse.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.js +0 -34
- package/dist/models/GetNotificationRequestBody.js.map +0 -1
- package/dist/models/IdentifyUserConflictResponse.d.ts +0 -18
- package/dist/models/IdentifyUserConflictResponse.js +0 -22
- package/dist/models/IdentifyUserConflictResponse.js.map +0 -1
- package/dist/models/IdentifyUserConflictResponseErrorsInner.js +0 -28
- package/dist/models/IdentifyUserConflictResponseErrorsInner.js.map +0 -1
- package/dist/models/InlineResponse200.js +0 -22
- package/dist/models/InlineResponse200.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/InlineResponse201.d.ts +0 -18
- package/dist/models/InlineResponse201.js +0 -22
- package/dist/models/InlineResponse201.js.map +0 -1
- package/dist/models/InlineResponse202.js +0 -22
- package/dist/models/InlineResponse202.js.map +0 -1
- package/dist/models/Notification200Errors.d.ts +0 -18
- package/dist/models/Notification200Errors.js +0 -28
- package/dist/models/Notification200Errors.js.map +0 -1
- package/dist/models/NotificationHistoryBadRequestResponse.d.ts +0 -18
- package/dist/models/NotificationHistoryBadRequestResponse.js +0 -28
- package/dist/models/NotificationHistoryBadRequestResponse.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.js.map +0 -1
- package/dist/models/PlayerNotificationTargetIncludeAliases.d.ts +0 -17
- package/dist/models/PlayerNotificationTargetIncludeAliases.js +0 -22
- package/dist/models/PlayerNotificationTargetIncludeAliases.js.map +0 -1
- package/dist/models/PlayerSlice.js +0 -40
- package/dist/models/PlayerSlice.js.map +0 -1
- package/dist/models/StringMap.js.map +0 -1
- package/dist/models/SubscriptionObject.js.map +0 -1
- package/dist/models/UpdatePlayerSuccessResponse.d.ts +0 -17
- package/dist/models/UpdatePlayerSuccessResponse.js +0 -22
- package/dist/models/UpdatePlayerSuccessResponse.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/UpdatePlayerTagsSuccessResponse.d.ts +0 -17
- package/dist/models/UpdatePlayerTagsSuccessResponse.js +0 -22
- package/dist/models/UpdatePlayerTagsSuccessResponse.js.map +0 -1
- package/dist/models/UpdateSubscriptionRequestBody.d.ts +0 -18
- package/dist/models/UpdateSubscriptionRequestBody.js +0 -22
- package/dist/models/UpdateSubscriptionRequestBody.js.map +0 -1
- package/dist/models/UserIdentityRequestBody.d.ts +0 -19
- package/dist/models/UserIdentityRequestBody.js +0 -22
- package/dist/models/UserIdentityRequestBody.js.map +0 -1
- package/dist/models/UserIdentityResponse.d.ts +0 -19
- package/dist/models/UserIdentityResponse.js +0 -22
- package/dist/models/UserIdentityResponse.js.map +0 -1
- package/dist/models/UserSubscriptionOptions.d.ts +0 -17
- package/dist/models/UserSubscriptionOptions.js +0 -22
- package/dist/models/UserSubscriptionOptions.js.map +0 -1
- package/models/BeginLiveActivityRequest.ts +0 -38
- package/models/CreateNotificationBadRequestResponse.ts +0 -31
- package/models/CreateSubscriptionRequestBody.ts +0 -39
- package/models/DeletePlayerBadRequestResponse.ts +0 -31
- package/models/DeletePlayerSuccessResponse.ts +0 -31
- package/models/DeleteSegmentBadRequestResponse.ts +0 -31
- package/models/DeleteSegmentNotFoundResponse.ts +0 -31
- package/models/DeleteSegmentSuccessResponse.ts +0 -31
- package/models/FilterExpressions.ts +0 -80
- package/models/FilterNotificationTarget.ts +0 -144
- package/models/IdentifyUserConflictResponse.ts +0 -32
- package/models/InlineResponse2003.ts +0 -31
- package/models/Notification200Errors.ts +0 -45
- package/models/Player.ts +0 -291
- package/models/PlayerNotificationTargetIncludeAliases.ts +0 -31
- package/models/UpdatePlayerSuccessResponse.ts +0 -31
- package/models/UpdatePlayerTagsRequestBody.ts +0 -34
- package/models/UpdatePlayerTagsSuccessResponse.ts +0 -31
- package/models/UpdateSubscriptionRequestBody.ts +0 -32
- package/models/UserIdentityRequestBody.ts +0 -31
- package/models/UserIdentityResponse.ts +0 -31
- package/models/UserSubscriptionOptions.ts +0 -31
package/types/ObservableAPI.ts
CHANGED
|
@@ -4,40 +4,29 @@ import { Configuration} from '../configuration'
|
|
|
4
4
|
import { Observable, of, from } from '../rxjsStub';
|
|
5
5
|
import {mergeMap, map} from '../rxjsStub';
|
|
6
6
|
import { App } from '../models/App';
|
|
7
|
-
import { BadRequestError } from '../models/BadRequestError';
|
|
8
7
|
import { BasicNotification } from '../models/BasicNotification';
|
|
9
8
|
import { BasicNotificationAllOf } from '../models/BasicNotificationAllOf';
|
|
10
9
|
import { BasicNotificationAllOfAndroidBackgroundLayout } from '../models/BasicNotificationAllOfAndroidBackgroundLayout';
|
|
11
|
-
import { BeginLiveActivityRequest } from '../models/BeginLiveActivityRequest';
|
|
12
10
|
import { Button } from '../models/Button';
|
|
13
|
-
import { CancelNotificationSuccessResponse } from '../models/CancelNotificationSuccessResponse';
|
|
14
11
|
import { CreateNotificationSuccessResponse } from '../models/CreateNotificationSuccessResponse';
|
|
15
|
-
import { CreatePlayerSuccessResponse } from '../models/CreatePlayerSuccessResponse';
|
|
16
12
|
import { CreateSegmentConflictResponse } from '../models/CreateSegmentConflictResponse';
|
|
17
13
|
import { CreateSegmentSuccessResponse } from '../models/CreateSegmentSuccessResponse';
|
|
18
|
-
import { CreateSubscriptionRequestBody } from '../models/CreateSubscriptionRequestBody';
|
|
19
14
|
import { CreateUserConflictResponse } from '../models/CreateUserConflictResponse';
|
|
20
15
|
import { CreateUserConflictResponseErrorsInner } from '../models/CreateUserConflictResponseErrorsInner';
|
|
21
16
|
import { CreateUserConflictResponseErrorsItemsMeta } from '../models/CreateUserConflictResponseErrorsItemsMeta';
|
|
22
|
-
import { DeletePlayerNotFoundResponse } from '../models/DeletePlayerNotFoundResponse';
|
|
23
|
-
import { DeletePlayerSuccessResponse } from '../models/DeletePlayerSuccessResponse';
|
|
24
|
-
import { DeleteSegmentNotFoundResponse } from '../models/DeleteSegmentNotFoundResponse';
|
|
25
|
-
import { DeleteSegmentSuccessResponse } from '../models/DeleteSegmentSuccessResponse';
|
|
26
17
|
import { DeliveryData } from '../models/DeliveryData';
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
18
|
+
import { ExportEventsSuccessResponse } from '../models/ExportEventsSuccessResponse';
|
|
19
|
+
import { ExportSubscriptionsRequestBody } from '../models/ExportSubscriptionsRequestBody';
|
|
20
|
+
import { ExportSubscriptionsSuccessResponse } from '../models/ExportSubscriptionsSuccessResponse';
|
|
29
21
|
import { Filter } from '../models/Filter';
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import { InlineResponse2003 } from '../models/InlineResponse2003';
|
|
36
|
-
import { InlineResponse201 } from '../models/InlineResponse201';
|
|
37
|
-
import { InlineResponse202 } from '../models/InlineResponse202';
|
|
22
|
+
import { FilterExpression } from '../models/FilterExpression';
|
|
23
|
+
import { GenericError } from '../models/GenericError';
|
|
24
|
+
import { GenericSuccessBoolResponse } from '../models/GenericSuccessBoolResponse';
|
|
25
|
+
import { GetNotificationHistoryRequestBody } from '../models/GetNotificationHistoryRequestBody';
|
|
26
|
+
import { GetSegmentsSuccessResponse } from '../models/GetSegmentsSuccessResponse';
|
|
38
27
|
import { InvalidIdentifierError } from '../models/InvalidIdentifierError';
|
|
28
|
+
import { LanguageStringMap } from '../models/LanguageStringMap';
|
|
39
29
|
import { Notification } from '../models/Notification';
|
|
40
|
-
import { Notification200Errors } from '../models/Notification200Errors';
|
|
41
30
|
import { NotificationAllOf } from '../models/NotificationAllOf';
|
|
42
31
|
import { NotificationHistorySuccessResponse } from '../models/NotificationHistorySuccessResponse';
|
|
43
32
|
import { NotificationSlice } from '../models/NotificationSlice';
|
|
@@ -50,29 +39,24 @@ import { OutcomesData } from '../models/OutcomesData';
|
|
|
50
39
|
import { PlatformDeliveryData } from '../models/PlatformDeliveryData';
|
|
51
40
|
import { PlatformDeliveryDataEmailAllOf } from '../models/PlatformDeliveryDataEmailAllOf';
|
|
52
41
|
import { PlatformDeliveryDataSmsAllOf } from '../models/PlatformDeliveryDataSmsAllOf';
|
|
53
|
-
import {
|
|
54
|
-
import { PlayerNotificationTarget } from '../models/PlayerNotificationTarget';
|
|
55
|
-
import { PlayerNotificationTargetIncludeAliases } from '../models/PlayerNotificationTargetIncludeAliases';
|
|
56
|
-
import { PlayerSlice } from '../models/PlayerSlice';
|
|
42
|
+
import { PropertiesBody } from '../models/PropertiesBody';
|
|
57
43
|
import { PropertiesDeltas } from '../models/PropertiesDeltas';
|
|
58
44
|
import { PropertiesObject } from '../models/PropertiesObject';
|
|
59
45
|
import { Purchase } from '../models/Purchase';
|
|
46
|
+
import { RateLimitError } from '../models/RateLimitError';
|
|
60
47
|
import { Segment } from '../models/Segment';
|
|
48
|
+
import { SegmentData } from '../models/SegmentData';
|
|
61
49
|
import { SegmentNotificationTarget } from '../models/SegmentNotificationTarget';
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
50
|
+
import { Subscription } from '../models/Subscription';
|
|
51
|
+
import { SubscriptionBody } from '../models/SubscriptionBody';
|
|
52
|
+
import { SubscriptionNotificationTarget } from '../models/SubscriptionNotificationTarget';
|
|
64
53
|
import { TransferSubscriptionRequestBody } from '../models/TransferSubscriptionRequestBody';
|
|
65
54
|
import { UpdateLiveActivityRequest } from '../models/UpdateLiveActivityRequest';
|
|
66
55
|
import { UpdateLiveActivitySuccessResponse } from '../models/UpdateLiveActivitySuccessResponse';
|
|
67
|
-
import { UpdatePlayerSuccessResponse } from '../models/UpdatePlayerSuccessResponse';
|
|
68
|
-
import { UpdatePlayerTagsRequestBody } from '../models/UpdatePlayerTagsRequestBody';
|
|
69
|
-
import { UpdatePlayerTagsSuccessResponse } from '../models/UpdatePlayerTagsSuccessResponse';
|
|
70
|
-
import { UpdateSubscriptionRequestBody } from '../models/UpdateSubscriptionRequestBody';
|
|
71
56
|
import { UpdateUserRequest } from '../models/UpdateUserRequest';
|
|
72
57
|
import { User } from '../models/User';
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import { UserSubscriptionOptions } from '../models/UserSubscriptionOptions';
|
|
58
|
+
import { UserIdentityBody } from '../models/UserIdentityBody';
|
|
59
|
+
import { WebButton } from '../models/WebButton';
|
|
76
60
|
|
|
77
61
|
import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/DefaultApi";
|
|
78
62
|
export class ObservableDefaultApi {
|
|
@@ -91,14 +75,13 @@ export class ObservableDefaultApi {
|
|
|
91
75
|
}
|
|
92
76
|
|
|
93
77
|
/**
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
* @param appId
|
|
97
|
-
* @param
|
|
98
|
-
* @param beginLiveActivityRequest
|
|
78
|
+
* Used to stop a scheduled or currently outgoing notification
|
|
79
|
+
* Stop a scheduled or currently outgoing notification
|
|
80
|
+
* @param appId
|
|
81
|
+
* @param notificationId
|
|
99
82
|
*/
|
|
100
|
-
public
|
|
101
|
-
const requestContextPromise = this.requestFactory.
|
|
83
|
+
public cancelNotification(appId: string, notificationId: string, _options?: Configuration): Observable<GenericSuccessBoolResponse> {
|
|
84
|
+
const requestContextPromise = this.requestFactory.cancelNotification(appId, notificationId, _options);
|
|
102
85
|
|
|
103
86
|
// build promise chain
|
|
104
87
|
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
|
|
@@ -112,18 +95,19 @@ export class ObservableDefaultApi {
|
|
|
112
95
|
for (let middleware of this.configuration.middleware) {
|
|
113
96
|
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
|
|
114
97
|
}
|
|
115
|
-
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.
|
|
98
|
+
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.cancelNotification(rsp)));
|
|
116
99
|
}));
|
|
117
100
|
}
|
|
118
101
|
|
|
119
102
|
/**
|
|
120
|
-
*
|
|
121
|
-
* Stop a scheduled or currently outgoing notification
|
|
103
|
+
* Upserts one or more Aliases to an existing User identified by (:alias_label, :alias_id).
|
|
122
104
|
* @param appId
|
|
123
|
-
* @param
|
|
105
|
+
* @param aliasLabel
|
|
106
|
+
* @param aliasId
|
|
107
|
+
* @param userIdentityBody
|
|
124
108
|
*/
|
|
125
|
-
public
|
|
126
|
-
const requestContextPromise = this.requestFactory.
|
|
109
|
+
public createAlias(appId: string, aliasLabel: string, aliasId: string, userIdentityBody: UserIdentityBody, _options?: Configuration): Observable<UserIdentityBody> {
|
|
110
|
+
const requestContextPromise = this.requestFactory.createAlias(appId, aliasLabel, aliasId, userIdentityBody, _options);
|
|
127
111
|
|
|
128
112
|
// build promise chain
|
|
129
113
|
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
|
|
@@ -137,17 +121,18 @@ export class ObservableDefaultApi {
|
|
|
137
121
|
for (let middleware of this.configuration.middleware) {
|
|
138
122
|
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
|
|
139
123
|
}
|
|
140
|
-
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.
|
|
124
|
+
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createAlias(rsp)));
|
|
141
125
|
}));
|
|
142
126
|
}
|
|
143
127
|
|
|
144
128
|
/**
|
|
145
|
-
*
|
|
146
|
-
*
|
|
147
|
-
* @param
|
|
129
|
+
* Upserts one or more Aliases for the User identified by :subscription_id.
|
|
130
|
+
* @param appId
|
|
131
|
+
* @param subscriptionId
|
|
132
|
+
* @param userIdentityBody
|
|
148
133
|
*/
|
|
149
|
-
public
|
|
150
|
-
const requestContextPromise = this.requestFactory.
|
|
134
|
+
public createAliasBySubscription(appId: string, subscriptionId: string, userIdentityBody: UserIdentityBody, _options?: Configuration): Observable<UserIdentityBody> {
|
|
135
|
+
const requestContextPromise = this.requestFactory.createAliasBySubscription(appId, subscriptionId, userIdentityBody, _options);
|
|
151
136
|
|
|
152
137
|
// build promise chain
|
|
153
138
|
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
|
|
@@ -161,17 +146,17 @@ export class ObservableDefaultApi {
|
|
|
161
146
|
for (let middleware of this.configuration.middleware) {
|
|
162
147
|
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
|
|
163
148
|
}
|
|
164
|
-
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.
|
|
149
|
+
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createAliasBySubscription(rsp)));
|
|
165
150
|
}));
|
|
166
151
|
}
|
|
167
152
|
|
|
168
153
|
/**
|
|
169
|
-
*
|
|
170
|
-
* Create
|
|
171
|
-
* @param
|
|
154
|
+
* Creates a new OneSignal app
|
|
155
|
+
* Create an app
|
|
156
|
+
* @param app
|
|
172
157
|
*/
|
|
173
|
-
public
|
|
174
|
-
const requestContextPromise = this.requestFactory.
|
|
158
|
+
public createApp(app: App, _options?: Configuration): Observable<App> {
|
|
159
|
+
const requestContextPromise = this.requestFactory.createApp(app, _options);
|
|
175
160
|
|
|
176
161
|
// build promise chain
|
|
177
162
|
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
|
|
@@ -185,17 +170,17 @@ export class ObservableDefaultApi {
|
|
|
185
170
|
for (let middleware of this.configuration.middleware) {
|
|
186
171
|
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
|
|
187
172
|
}
|
|
188
|
-
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.
|
|
173
|
+
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createApp(rsp)));
|
|
189
174
|
}));
|
|
190
175
|
}
|
|
191
176
|
|
|
192
177
|
/**
|
|
193
|
-
*
|
|
194
|
-
*
|
|
195
|
-
* @param
|
|
178
|
+
* Sends notifications to your users
|
|
179
|
+
* Create notification
|
|
180
|
+
* @param notification
|
|
196
181
|
*/
|
|
197
|
-
public
|
|
198
|
-
const requestContextPromise = this.requestFactory.
|
|
182
|
+
public createNotification(notification: Notification, _options?: Configuration): Observable<CreateNotificationSuccessResponse> {
|
|
183
|
+
const requestContextPromise = this.requestFactory.createNotification(notification, _options);
|
|
199
184
|
|
|
200
185
|
// build promise chain
|
|
201
186
|
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
|
|
@@ -209,18 +194,18 @@ export class ObservableDefaultApi {
|
|
|
209
194
|
for (let middleware of this.configuration.middleware) {
|
|
210
195
|
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
|
|
211
196
|
}
|
|
212
|
-
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.
|
|
197
|
+
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNotification(rsp)));
|
|
213
198
|
}));
|
|
214
199
|
}
|
|
215
200
|
|
|
216
201
|
/**
|
|
217
|
-
* Create
|
|
218
|
-
* Create
|
|
202
|
+
* Create a segment visible and usable in the dashboard and API - Required: OneSignal Paid Plan The Create Segment method is used when you want your server to programmatically create a segment instead of using the OneSignal Dashboard UI. Just like creating Segments from the dashboard you can pass in filters with multiple \"AND\" or \"OR\" operator\'s. 🚧 Does Not Update Segments This endpoint will only create segments, it does not edit or update currently created Segments. You will need to use the Delete Segment endpoint and re-create it with this endpoint to edit.
|
|
203
|
+
* Create Segment
|
|
219
204
|
* @param appId The OneSignal App ID for your app. Available in Keys & IDs.
|
|
220
205
|
* @param segment
|
|
221
206
|
*/
|
|
222
|
-
public
|
|
223
|
-
const requestContextPromise = this.requestFactory.
|
|
207
|
+
public createSegment(appId: string, segment?: Segment, _options?: Configuration): Observable<CreateSegmentSuccessResponse> {
|
|
208
|
+
const requestContextPromise = this.requestFactory.createSegment(appId, segment, _options);
|
|
224
209
|
|
|
225
210
|
// build promise chain
|
|
226
211
|
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
|
|
@@ -234,7 +219,7 @@ export class ObservableDefaultApi {
|
|
|
234
219
|
for (let middleware of this.configuration.middleware) {
|
|
235
220
|
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
|
|
236
221
|
}
|
|
237
|
-
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.
|
|
222
|
+
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createSegment(rsp)));
|
|
238
223
|
}));
|
|
239
224
|
}
|
|
240
225
|
|
|
@@ -243,10 +228,10 @@ export class ObservableDefaultApi {
|
|
|
243
228
|
* @param appId
|
|
244
229
|
* @param aliasLabel
|
|
245
230
|
* @param aliasId
|
|
246
|
-
* @param
|
|
231
|
+
* @param subscriptionBody
|
|
247
232
|
*/
|
|
248
|
-
public createSubscription(appId: string, aliasLabel: string, aliasId: string,
|
|
249
|
-
const requestContextPromise = this.requestFactory.createSubscription(appId, aliasLabel, aliasId,
|
|
233
|
+
public createSubscription(appId: string, aliasLabel: string, aliasId: string, subscriptionBody: SubscriptionBody, _options?: Configuration): Observable<SubscriptionBody> {
|
|
234
|
+
const requestContextPromise = this.requestFactory.createSubscription(appId, aliasLabel, aliasId, subscriptionBody, _options);
|
|
250
235
|
|
|
251
236
|
// build promise chain
|
|
252
237
|
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
|
|
@@ -295,7 +280,7 @@ export class ObservableDefaultApi {
|
|
|
295
280
|
* @param aliasId
|
|
296
281
|
* @param aliasLabelToDelete
|
|
297
282
|
*/
|
|
298
|
-
public deleteAlias(appId: string, aliasLabel: string, aliasId: string, aliasLabelToDelete: string, _options?: Configuration): Observable<
|
|
283
|
+
public deleteAlias(appId: string, aliasLabel: string, aliasId: string, aliasLabelToDelete: string, _options?: Configuration): Observable<UserIdentityBody> {
|
|
299
284
|
const requestContextPromise = this.requestFactory.deleteAlias(appId, aliasLabel, aliasId, aliasLabelToDelete, _options);
|
|
300
285
|
|
|
301
286
|
// build promise chain
|
|
@@ -315,38 +300,13 @@ export class ObservableDefaultApi {
|
|
|
315
300
|
}
|
|
316
301
|
|
|
317
302
|
/**
|
|
318
|
-
* Delete
|
|
319
|
-
* Delete
|
|
320
|
-
* @param appId The OneSignal App ID for your app. Available in Keys & IDs.
|
|
321
|
-
* @param playerId The OneSignal player_id
|
|
322
|
-
*/
|
|
323
|
-
public deletePlayer(appId: string, playerId: string, _options?: Configuration): Observable<DeletePlayerSuccessResponse> {
|
|
324
|
-
const requestContextPromise = this.requestFactory.deletePlayer(appId, playerId, _options);
|
|
325
|
-
|
|
326
|
-
// build promise chain
|
|
327
|
-
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
|
|
328
|
-
for (let middleware of this.configuration.middleware) {
|
|
329
|
-
middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx)));
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))).
|
|
333
|
-
pipe(mergeMap((response: ResponseContext) => {
|
|
334
|
-
let middlewarePostObservable = of(response);
|
|
335
|
-
for (let middleware of this.configuration.middleware) {
|
|
336
|
-
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
|
|
337
|
-
}
|
|
338
|
-
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deletePlayer(rsp)));
|
|
339
|
-
}));
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
/**
|
|
343
|
-
* Delete segments (not user devices) - Required: OneSignal Paid Plan You can delete a segment under your app by calling this API. You must provide an API key in the Authorization header that has admin access on the app. The segment_id can be found in the URL of the segment when viewing it in the dashboard.
|
|
344
|
-
* Delete Segments
|
|
303
|
+
* Delete a segment (not user devices) - Required: OneSignal Paid Plan You can delete a segment under your app by calling this API. You must provide an API key in the Authorization header that has admin access on the app. The segment_id can be found in the URL of the segment when viewing it in the dashboard.
|
|
304
|
+
* Delete Segment
|
|
345
305
|
* @param appId The OneSignal App ID for your app. Available in Keys & IDs.
|
|
346
306
|
* @param segmentId The segment_id can be found in the URL of the segment when viewing it in the dashboard.
|
|
347
307
|
*/
|
|
348
|
-
public
|
|
349
|
-
const requestContextPromise = this.requestFactory.
|
|
308
|
+
public deleteSegment(appId: string, segmentId: string, _options?: Configuration): Observable<GenericSuccessBoolResponse> {
|
|
309
|
+
const requestContextPromise = this.requestFactory.deleteSegment(appId, segmentId, _options);
|
|
350
310
|
|
|
351
311
|
// build promise chain
|
|
352
312
|
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
|
|
@@ -360,7 +320,7 @@ export class ObservableDefaultApi {
|
|
|
360
320
|
for (let middleware of this.configuration.middleware) {
|
|
361
321
|
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
|
|
362
322
|
}
|
|
363
|
-
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.
|
|
323
|
+
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteSegment(rsp)));
|
|
364
324
|
}));
|
|
365
325
|
}
|
|
366
326
|
|
|
@@ -414,14 +374,13 @@ export class ObservableDefaultApi {
|
|
|
414
374
|
}
|
|
415
375
|
|
|
416
376
|
/**
|
|
417
|
-
*
|
|
418
|
-
*
|
|
419
|
-
* @param
|
|
420
|
-
* @param
|
|
421
|
-
* @param subscriptionId Subscription ID
|
|
377
|
+
* Generate a compressed CSV report of all of the events data for a notification. This will return a URL immediately upon success but it may take several minutes for the CSV to become available at that URL depending on the volume of data. Only one export can be in-progress per OneSignal account at any given time.
|
|
378
|
+
* Export CSV of Events
|
|
379
|
+
* @param notificationId The ID of the notification to export events from.
|
|
380
|
+
* @param appId The ID of the app that the notification belongs to.
|
|
422
381
|
*/
|
|
423
|
-
public
|
|
424
|
-
const requestContextPromise = this.requestFactory.
|
|
382
|
+
public exportEvents(notificationId: string, appId: string, _options?: Configuration): Observable<ExportEventsSuccessResponse> {
|
|
383
|
+
const requestContextPromise = this.requestFactory.exportEvents(notificationId, appId, _options);
|
|
425
384
|
|
|
426
385
|
// build promise chain
|
|
427
386
|
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
|
|
@@ -435,18 +394,18 @@ export class ObservableDefaultApi {
|
|
|
435
394
|
for (let middleware of this.configuration.middleware) {
|
|
436
395
|
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
|
|
437
396
|
}
|
|
438
|
-
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.
|
|
397
|
+
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.exportEvents(rsp)));
|
|
439
398
|
}));
|
|
440
399
|
}
|
|
441
400
|
|
|
442
401
|
/**
|
|
443
402
|
* Generate a compressed CSV export of all of your current user data This method can be used to generate a compressed CSV export of all of your current user data. It is a much faster alternative than retrieving this data using the /players API endpoint. The file will be compressed using GZip. The file may take several minutes to generate depending on the number of users in your app. The URL generated will be available for 3 days and includes random v4 uuid as part of the resource name to be unguessable. 🚧 403 Error Responses You can test if it is complete by making a GET request to the csv_file_url value. This file may take time to generate depending on how many device records are being pulled. If the file is not ready, a 403 error will be returned. Otherwise the file itself will be returned. 🚧 Requires Authentication Key Requires your OneSignal App\'s REST API Key, available in Keys & IDs. 🚧 Concurrent Exports Only one concurrent export is allowed per OneSignal account. Please ensure you have successfully downloaded the .csv.gz file before exporting another app. CSV File Format: - Default Columns: | Field | Details | | --- | --- | | id | OneSignal Player Id | | identifier | Push Token | | session_count | Number of times they visited the app or site | language | Device language code | | timezone | Number of seconds away from UTC. Example: -28800 | | game_version | Version of your mobile app gathered from Android Studio versionCode in your App/build.gradle and iOS uses kCFBundleVersionKey in Xcode. | | device_os | Device Operating System Version. Example: 80 = Chrome 80, 9 = Android 9 | | device_type | Device Operating System Type | | device_model | Device Hardware String Code. Example: Mobile Web Subscribers will have `Linux armv` | | ad_id | Based on the Google Advertising Id for Android, identifierForVendor for iOS. OptedOut means user turned off Advertising tracking on the device. | | tags | Current OneSignal Data Tags on the device. | | last_active | Date and time the user last opened the mobile app or visited the site. | | playtime | Total amount of time in seconds the user had the mobile app open. | | amount_spent | Mobile only - amount spent in USD on In-App Purchases. | | created_at | Date and time the device record was created in OneSignal. Mobile - first time they opened the app with OneSignal SDK. Web - first time the user subscribed to the site. | | invalid_identifier | t = unsubscribed, f = subscibed | | badge_count | Current number of badges on the device | - Extra Columns: | Field | Details | | --- | --- | | external_user_id | Your User Id set on the device | | notification_types | Notification types | | location | Location points (Latitude and Longitude) set on the device. | | country | Country code | | rooted | Android device rooted or not | | ip | IP Address of the device if being tracked. See Handling Personal Data. | | web_auth | Web Only authorization key. | | web_p256 | Web Only p256 key. |
|
|
444
|
-
* CSV
|
|
403
|
+
* Export CSV of Subscriptions
|
|
445
404
|
* @param appId The app ID that you want to export devices from
|
|
446
|
-
* @param
|
|
405
|
+
* @param exportSubscriptionsRequestBody
|
|
447
406
|
*/
|
|
448
|
-
public
|
|
449
|
-
const requestContextPromise = this.requestFactory.
|
|
407
|
+
public exportSubscriptions(appId: string, exportSubscriptionsRequestBody?: ExportSubscriptionsRequestBody, _options?: Configuration): Observable<ExportSubscriptionsSuccessResponse> {
|
|
408
|
+
const requestContextPromise = this.requestFactory.exportSubscriptions(appId, exportSubscriptionsRequestBody, _options);
|
|
450
409
|
|
|
451
410
|
// build promise chain
|
|
452
411
|
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
|
|
@@ -460,42 +419,18 @@ export class ObservableDefaultApi {
|
|
|
460
419
|
for (let middleware of this.configuration.middleware) {
|
|
461
420
|
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
|
|
462
421
|
}
|
|
463
|
-
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.
|
|
422
|
+
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.exportSubscriptions(rsp)));
|
|
464
423
|
}));
|
|
465
424
|
}
|
|
466
425
|
|
|
467
426
|
/**
|
|
468
|
-
* Lists all Aliases for the User identified by :
|
|
469
|
-
* @param appId
|
|
470
|
-
* @param subscriptionId
|
|
471
|
-
*/
|
|
472
|
-
public fetchAliases(appId: string, subscriptionId: string, _options?: Configuration): Observable<UserIdentityResponse> {
|
|
473
|
-
const requestContextPromise = this.requestFactory.fetchAliases(appId, subscriptionId, _options);
|
|
474
|
-
|
|
475
|
-
// build promise chain
|
|
476
|
-
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
|
|
477
|
-
for (let middleware of this.configuration.middleware) {
|
|
478
|
-
middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx)));
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))).
|
|
482
|
-
pipe(mergeMap((response: ResponseContext) => {
|
|
483
|
-
let middlewarePostObservable = of(response);
|
|
484
|
-
for (let middleware of this.configuration.middleware) {
|
|
485
|
-
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
|
|
486
|
-
}
|
|
487
|
-
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.fetchAliases(rsp)));
|
|
488
|
-
}));
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
/**
|
|
492
|
-
* Returns the User’s properties, Aliases, and Subscriptions.
|
|
427
|
+
* Lists all Aliases for the User identified by (:alias_label, :alias_id).
|
|
493
428
|
* @param appId
|
|
494
429
|
* @param aliasLabel
|
|
495
430
|
* @param aliasId
|
|
496
431
|
*/
|
|
497
|
-
public
|
|
498
|
-
const requestContextPromise = this.requestFactory.
|
|
432
|
+
public getAliases(appId: string, aliasLabel: string, aliasId: string, _options?: Configuration): Observable<UserIdentityBody> {
|
|
433
|
+
const requestContextPromise = this.requestFactory.getAliases(appId, aliasLabel, aliasId, _options);
|
|
499
434
|
|
|
500
435
|
// build promise chain
|
|
501
436
|
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
|
|
@@ -509,18 +444,17 @@ export class ObservableDefaultApi {
|
|
|
509
444
|
for (let middleware of this.configuration.middleware) {
|
|
510
445
|
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
|
|
511
446
|
}
|
|
512
|
-
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.
|
|
447
|
+
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAliases(rsp)));
|
|
513
448
|
}));
|
|
514
449
|
}
|
|
515
450
|
|
|
516
451
|
/**
|
|
517
|
-
* Lists all Aliases for the User identified by
|
|
452
|
+
* Lists all Aliases for the User identified by :subscription_id.
|
|
518
453
|
* @param appId
|
|
519
|
-
* @param
|
|
520
|
-
* @param aliasId
|
|
454
|
+
* @param subscriptionId
|
|
521
455
|
*/
|
|
522
|
-
public
|
|
523
|
-
const requestContextPromise = this.requestFactory.
|
|
456
|
+
public getAliasesBySubscription(appId: string, subscriptionId: string, _options?: Configuration): Observable<UserIdentityBody> {
|
|
457
|
+
const requestContextPromise = this.requestFactory.getAliasesBySubscription(appId, subscriptionId, _options);
|
|
524
458
|
|
|
525
459
|
// build promise chain
|
|
526
460
|
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
|
|
@@ -534,7 +468,7 @@ export class ObservableDefaultApi {
|
|
|
534
468
|
for (let middleware of this.configuration.middleware) {
|
|
535
469
|
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
|
|
536
470
|
}
|
|
537
|
-
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.
|
|
471
|
+
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAliasesBySubscription(rsp)));
|
|
538
472
|
}));
|
|
539
473
|
}
|
|
540
474
|
|
|
@@ -585,30 +519,6 @@ export class ObservableDefaultApi {
|
|
|
585
519
|
}));
|
|
586
520
|
}
|
|
587
521
|
|
|
588
|
-
/**
|
|
589
|
-
* Manifest of In-App Messages the Subscription is eligible to display by the SDK.
|
|
590
|
-
* @param appId
|
|
591
|
-
* @param subscriptionId
|
|
592
|
-
*/
|
|
593
|
-
public getEligibleIams(appId: string, subscriptionId: string, _options?: Configuration): Observable<InlineResponse2003> {
|
|
594
|
-
const requestContextPromise = this.requestFactory.getEligibleIams(appId, subscriptionId, _options);
|
|
595
|
-
|
|
596
|
-
// build promise chain
|
|
597
|
-
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
|
|
598
|
-
for (let middleware of this.configuration.middleware) {
|
|
599
|
-
middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx)));
|
|
600
|
-
}
|
|
601
|
-
|
|
602
|
-
return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))).
|
|
603
|
-
pipe(mergeMap((response: ResponseContext) => {
|
|
604
|
-
let middlewarePostObservable = of(response);
|
|
605
|
-
for (let middleware of this.configuration.middleware) {
|
|
606
|
-
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
|
|
607
|
-
}
|
|
608
|
-
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getEligibleIams(rsp)));
|
|
609
|
-
}));
|
|
610
|
-
}
|
|
611
|
-
|
|
612
522
|
/**
|
|
613
523
|
* View the details of a single notification and outcomes associated with it
|
|
614
524
|
* View notification
|
|
@@ -638,10 +548,10 @@ export class ObservableDefaultApi {
|
|
|
638
548
|
* -> View the devices sent a message - OneSignal Paid Plan Required This method will return all devices that were sent the given notification_id of an Email or Push Notification if used within 7 days of the date sent. After 7 days of the sending date, the message history data will be unavailable. After a successful response is received, the destination url may be polled until the file becomes available. Most exports are done in ~1-3 minutes, so setting a poll interval of 10 seconds should be adequate. For use cases that are not meant to be consumed by a script, an email will be sent to the supplied email address. 🚧 Requirements A OneSignal Paid Plan. Turn on Send History via OneSignal API in Settings -> Analytics. Cannot get data before this was turned on. Must be called within 7 days after sending the message. Messages targeting under 1000 recipients will not have \"sent\" events recorded, but will show \"clicked\" events. Requires your OneSignal App\'s REST API Key, available in Keys & IDs.
|
|
639
549
|
* Notification History
|
|
640
550
|
* @param notificationId The \"id\" of the message found in the Notification object
|
|
641
|
-
* @param
|
|
551
|
+
* @param getNotificationHistoryRequestBody
|
|
642
552
|
*/
|
|
643
|
-
public getNotificationHistory(notificationId: string,
|
|
644
|
-
const requestContextPromise = this.requestFactory.getNotificationHistory(notificationId,
|
|
553
|
+
public getNotificationHistory(notificationId: string, getNotificationHistoryRequestBody: GetNotificationHistoryRequestBody, _options?: Configuration): Observable<NotificationHistorySuccessResponse> {
|
|
554
|
+
const requestContextPromise = this.requestFactory.getNotificationHistory(notificationId, getNotificationHistoryRequestBody, _options);
|
|
645
555
|
|
|
646
556
|
// build promise chain
|
|
647
557
|
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
|
|
@@ -716,40 +626,14 @@ export class ObservableDefaultApi {
|
|
|
716
626
|
}
|
|
717
627
|
|
|
718
628
|
/**
|
|
719
|
-
*
|
|
720
|
-
*
|
|
721
|
-
* @param appId
|
|
722
|
-
* @param
|
|
723
|
-
* @param
|
|
724
|
-
*/
|
|
725
|
-
public getPlayer(appId: string, playerId: string, emailAuthHash?: string, _options?: Configuration): Observable<Player> {
|
|
726
|
-
const requestContextPromise = this.requestFactory.getPlayer(appId, playerId, emailAuthHash, _options);
|
|
727
|
-
|
|
728
|
-
// build promise chain
|
|
729
|
-
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
|
|
730
|
-
for (let middleware of this.configuration.middleware) {
|
|
731
|
-
middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx)));
|
|
732
|
-
}
|
|
733
|
-
|
|
734
|
-
return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))).
|
|
735
|
-
pipe(mergeMap((response: ResponseContext) => {
|
|
736
|
-
let middlewarePostObservable = of(response);
|
|
737
|
-
for (let middleware of this.configuration.middleware) {
|
|
738
|
-
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
|
|
739
|
-
}
|
|
740
|
-
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getPlayer(rsp)));
|
|
741
|
-
}));
|
|
742
|
-
}
|
|
743
|
-
|
|
744
|
-
/**
|
|
745
|
-
* View the details of multiple devices in one of your OneSignal apps Unavailable for Apps Over 80,000 Users For performance reasons, this method is not available for larger apps. Larger apps should use the CSV export API endpoint, which is much more performant.
|
|
746
|
-
* View devices
|
|
747
|
-
* @param appId The app ID that you want to view players from
|
|
748
|
-
* @param limit How many devices to return. Max is 300. Default is 300
|
|
749
|
-
* @param offset Result offset. Default is 0. Results are sorted by id;
|
|
629
|
+
* Returns an array of segments from an app.
|
|
630
|
+
* Get Segments
|
|
631
|
+
* @param appId The OneSignal App ID for your app. Available in Keys & IDs.
|
|
632
|
+
* @param offset Segments are listed in ascending order of created_at date. offset will omit that number of segments from the beginning of the list. Eg offset 5, will remove the 5 earliest created Segments.
|
|
633
|
+
* @param limit The amount of Segments in the response. Maximum 300.
|
|
750
634
|
*/
|
|
751
|
-
public
|
|
752
|
-
const requestContextPromise = this.requestFactory.
|
|
635
|
+
public getSegments(appId: string, offset?: number, limit?: number, _options?: Configuration): Observable<GetSegmentsSuccessResponse> {
|
|
636
|
+
const requestContextPromise = this.requestFactory.getSegments(appId, offset, limit, _options);
|
|
753
637
|
|
|
754
638
|
// build promise chain
|
|
755
639
|
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
|
|
@@ -763,19 +647,18 @@ export class ObservableDefaultApi {
|
|
|
763
647
|
for (let middleware of this.configuration.middleware) {
|
|
764
648
|
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
|
|
765
649
|
}
|
|
766
|
-
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.
|
|
650
|
+
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getSegments(rsp)));
|
|
767
651
|
}));
|
|
768
652
|
}
|
|
769
653
|
|
|
770
654
|
/**
|
|
771
|
-
*
|
|
655
|
+
* Returns the User’s properties, Aliases, and Subscriptions.
|
|
772
656
|
* @param appId
|
|
773
657
|
* @param aliasLabel
|
|
774
658
|
* @param aliasId
|
|
775
|
-
* @param userIdentityRequestBody
|
|
776
659
|
*/
|
|
777
|
-
public
|
|
778
|
-
const requestContextPromise = this.requestFactory.
|
|
660
|
+
public getUser(appId: string, aliasLabel: string, aliasId: string, _options?: Configuration): Observable<User> {
|
|
661
|
+
const requestContextPromise = this.requestFactory.getUser(appId, aliasLabel, aliasId, _options);
|
|
779
662
|
|
|
780
663
|
// build promise chain
|
|
781
664
|
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
|
|
@@ -789,18 +672,18 @@ export class ObservableDefaultApi {
|
|
|
789
672
|
for (let middleware of this.configuration.middleware) {
|
|
790
673
|
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
|
|
791
674
|
}
|
|
792
|
-
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.
|
|
675
|
+
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getUser(rsp)));
|
|
793
676
|
}));
|
|
794
677
|
}
|
|
795
678
|
|
|
796
679
|
/**
|
|
797
|
-
*
|
|
680
|
+
* Transfers this Subscription to the User identified by the identity in the payload.
|
|
798
681
|
* @param appId
|
|
799
682
|
* @param subscriptionId
|
|
800
|
-
* @param
|
|
683
|
+
* @param transferSubscriptionRequestBody
|
|
801
684
|
*/
|
|
802
|
-
public
|
|
803
|
-
const requestContextPromise = this.requestFactory.
|
|
685
|
+
public transferSubscription(appId: string, subscriptionId: string, transferSubscriptionRequestBody: TransferSubscriptionRequestBody, _options?: Configuration): Observable<UserIdentityBody> {
|
|
686
|
+
const requestContextPromise = this.requestFactory.transferSubscription(appId, subscriptionId, transferSubscriptionRequestBody, _options);
|
|
804
687
|
|
|
805
688
|
// build promise chain
|
|
806
689
|
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
|
|
@@ -814,18 +697,19 @@ export class ObservableDefaultApi {
|
|
|
814
697
|
for (let middleware of this.configuration.middleware) {
|
|
815
698
|
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
|
|
816
699
|
}
|
|
817
|
-
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.
|
|
700
|
+
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.transferSubscription(rsp)));
|
|
818
701
|
}));
|
|
819
702
|
}
|
|
820
703
|
|
|
821
704
|
/**
|
|
822
|
-
*
|
|
823
|
-
*
|
|
824
|
-
* @param
|
|
825
|
-
* @param
|
|
705
|
+
* Unsubscribe an email with a token when using your own custom email unsubscribe landing page
|
|
706
|
+
* Unsubscribe with token
|
|
707
|
+
* @param appId The OneSignal App ID for your app. Available in Keys & IDs.
|
|
708
|
+
* @param notificationId The id of the message found in the creation notification POST response, View Notifications GET response, or URL within the Message Report.
|
|
709
|
+
* @param token The unsubscribe token that is generated via liquid syntax in {{subscription.unsubscribe_token}} when personalizing an email.
|
|
826
710
|
*/
|
|
827
|
-
public
|
|
828
|
-
const requestContextPromise = this.requestFactory.
|
|
711
|
+
public unsubscribeEmailWithToken(appId: string, notificationId: string, token: string, _options?: Configuration): Observable<GenericSuccessBoolResponse> {
|
|
712
|
+
const requestContextPromise = this.requestFactory.unsubscribeEmailWithToken(appId, notificationId, token, _options);
|
|
829
713
|
|
|
830
714
|
// build promise chain
|
|
831
715
|
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
|
|
@@ -839,7 +723,7 @@ export class ObservableDefaultApi {
|
|
|
839
723
|
for (let middleware of this.configuration.middleware) {
|
|
840
724
|
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
|
|
841
725
|
}
|
|
842
|
-
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.
|
|
726
|
+
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.unsubscribeEmailWithToken(rsp)));
|
|
843
727
|
}));
|
|
844
728
|
}
|
|
845
729
|
|
|
@@ -894,65 +778,14 @@ export class ObservableDefaultApi {
|
|
|
894
778
|
}));
|
|
895
779
|
}
|
|
896
780
|
|
|
897
|
-
/**
|
|
898
|
-
* Update an existing device in one of your OneSignal apps
|
|
899
|
-
* Edit device
|
|
900
|
-
* @param playerId Player\'s OneSignal ID
|
|
901
|
-
* @param player
|
|
902
|
-
*/
|
|
903
|
-
public updatePlayer(playerId: string, player: Player, _options?: Configuration): Observable<UpdatePlayerSuccessResponse> {
|
|
904
|
-
const requestContextPromise = this.requestFactory.updatePlayer(playerId, player, _options);
|
|
905
|
-
|
|
906
|
-
// build promise chain
|
|
907
|
-
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
|
|
908
|
-
for (let middleware of this.configuration.middleware) {
|
|
909
|
-
middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx)));
|
|
910
|
-
}
|
|
911
|
-
|
|
912
|
-
return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))).
|
|
913
|
-
pipe(mergeMap((response: ResponseContext) => {
|
|
914
|
-
let middlewarePostObservable = of(response);
|
|
915
|
-
for (let middleware of this.configuration.middleware) {
|
|
916
|
-
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
|
|
917
|
-
}
|
|
918
|
-
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.updatePlayer(rsp)));
|
|
919
|
-
}));
|
|
920
|
-
}
|
|
921
|
-
|
|
922
|
-
/**
|
|
923
|
-
* Update an existing device\'s tags in one of your OneSignal apps using the External User ID. Warning - Android SDK Data Synchronization Tags added through the Android SDK tagging methods may not update if using the API to change or update the same tag. For example, if you use SDK method sendTag(\"key\", \"value1\") then update the tag value to \"value2\" with this API endpoint. You will not be able to set the value back to \"value1\" through the SDK, you will need to change it to something different through the SDK to be reset. Recommendations if using this Endpoint on Android Mobile Apps: 1 - Do not use the same tag keys for SDK and API updates 2 - If you want to use the same key for both SDK and API updates, call the SDK getTags method first to update the device\'s tags. This is only applicable on the Android Mobile App SDKs. 📘 Deleting Tags To delete a tag, include its key and set its value to blank. Omitting a key/value will not delete it. For example, if I wanted to delete two existing tags rank and category while simultaneously adding a new tag class, the tags JSON would look like the following: \"tags\": { \"rank\": \"\", \"category\": \"\", \"class\": \"my_new_value\" }
|
|
924
|
-
* Edit tags with external user id
|
|
925
|
-
* @param appId The OneSignal App ID the user record is found under.
|
|
926
|
-
* @param externalUserId The External User ID mapped to teh device record in OneSignal. Must be actively set on the device to be updated.
|
|
927
|
-
* @param updatePlayerTagsRequestBody
|
|
928
|
-
*/
|
|
929
|
-
public updatePlayerTags(appId: string, externalUserId: string, updatePlayerTagsRequestBody?: UpdatePlayerTagsRequestBody, _options?: Configuration): Observable<UpdatePlayerTagsSuccessResponse> {
|
|
930
|
-
const requestContextPromise = this.requestFactory.updatePlayerTags(appId, externalUserId, updatePlayerTagsRequestBody, _options);
|
|
931
|
-
|
|
932
|
-
// build promise chain
|
|
933
|
-
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
|
|
934
|
-
for (let middleware of this.configuration.middleware) {
|
|
935
|
-
middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx)));
|
|
936
|
-
}
|
|
937
|
-
|
|
938
|
-
return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))).
|
|
939
|
-
pipe(mergeMap((response: ResponseContext) => {
|
|
940
|
-
let middlewarePostObservable = of(response);
|
|
941
|
-
for (let middleware of this.configuration.middleware) {
|
|
942
|
-
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
|
|
943
|
-
}
|
|
944
|
-
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.updatePlayerTags(rsp)));
|
|
945
|
-
}));
|
|
946
|
-
}
|
|
947
|
-
|
|
948
781
|
/**
|
|
949
782
|
* Updates an existing Subscription’s properties.
|
|
950
783
|
* @param appId
|
|
951
784
|
* @param subscriptionId
|
|
952
|
-
* @param
|
|
785
|
+
* @param subscriptionBody
|
|
953
786
|
*/
|
|
954
|
-
public updateSubscription(appId: string, subscriptionId: string,
|
|
955
|
-
const requestContextPromise = this.requestFactory.updateSubscription(appId, subscriptionId,
|
|
787
|
+
public updateSubscription(appId: string, subscriptionId: string, subscriptionBody: SubscriptionBody, _options?: Configuration): Observable<void> {
|
|
788
|
+
const requestContextPromise = this.requestFactory.updateSubscription(appId, subscriptionId, subscriptionBody, _options);
|
|
956
789
|
|
|
957
790
|
// build promise chain
|
|
958
791
|
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
|
|
@@ -977,7 +810,7 @@ export class ObservableDefaultApi {
|
|
|
977
810
|
* @param aliasId
|
|
978
811
|
* @param updateUserRequest
|
|
979
812
|
*/
|
|
980
|
-
public updateUser(appId: string, aliasLabel: string, aliasId: string, updateUserRequest: UpdateUserRequest, _options?: Configuration): Observable<
|
|
813
|
+
public updateUser(appId: string, aliasLabel: string, aliasId: string, updateUserRequest: UpdateUserRequest, _options?: Configuration): Observable<PropertiesBody> {
|
|
981
814
|
const requestContextPromise = this.requestFactory.updateUser(appId, aliasLabel, aliasId, updateUserRequest, _options);
|
|
982
815
|
|
|
983
816
|
// build promise chain
|