@onesignal/node-onesignal 2.0.1-beta2 → 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 +401 -778
- package/apis/DefaultApi.ts +682 -1216
- package/auth/auth.ts +14 -14
- package/configuration.ts +6 -6
- package/dist/apis/DefaultApi.d.ts +36 -63
- package/dist/apis/DefaultApi.js +653 -1174
- 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/{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/{ExportPlayersSuccessResponse.d.ts → ExportSubscriptionsSuccessResponse.d.ts} +1 -1
- 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/GenericError.d.ts +3 -2
- package/dist/models/GenericError.js +13 -1
- package/dist/models/GenericError.js.map +1 -1
- 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 +15 -32
- package/dist/models/ObjectSerializer.js +50 -102
- 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/{DeleteSegmentNotFoundResponse.d.ts → RateLimitError.d.ts} +3 -2
- package/dist/models/RateLimitError.js +28 -0
- package/dist/models/RateLimitError.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/{CreateSubscriptionRequestBody.d.ts → SegmentData.d.ts} +8 -4
- 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/{CreatePlayerSuccessResponse.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/{BeginLiveActivityRequest.d.ts → WebButton.d.ts} +5 -3
- package/dist/models/WebButton.js +40 -0
- package/dist/models/WebButton.js.map +1 -0
- package/dist/models/all.d.ts +15 -32
- package/dist/models/all.js +15 -32
- 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 +52 -102
- package/dist/types/ObjectParamAPI.js +26 -47
- package/dist/types/ObjectParamAPI.js.map +1 -1
- package/dist/types/ObservableAPI.d.ts +25 -45
- package/dist/types/ObservableAPI.js +82 -250
- package/dist/types/ObservableAPI.js.map +1 -1
- package/dist/types/PromiseAPI.d.ts +25 -45
- package/dist/types/PromiseAPI.js +32 -60
- 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/ExportEventsSuccessResponse.ts +1 -1
- package/models/{ExportPlayersRequestBody.ts → ExportSubscriptionsRequestBody.ts} +3 -3
- package/models/{ExportPlayersSuccessResponse.ts → ExportSubscriptionsSuccessResponse.ts} +3 -3
- package/models/Filter.ts +45 -5
- package/models/FilterExpression.ts +120 -0
- package/models/GenericError.ts +17 -4
- package/models/{DeletePlayerSuccessResponse.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 +57 -109
- 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/{CreatePlayerSuccessResponse.ts → RateLimitError.ts} +10 -10
- 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/{BeginLiveActivityRequest.ts → WebButton.ts} +23 -9
- package/models/all.ts +15 -32
- package/package.json +2 -2
- package/servers.ts +1 -1
- package/types/ObjectParamAPI.ts +161 -357
- package/types/ObservableAPI.ts +108 -301
- package/types/PromiseAPI.ts +89 -184
- package/dist/models/BeginLiveActivityRequest.js +0 -28
- package/dist/models/BeginLiveActivityRequest.js.map +0 -1
- package/dist/models/CancelNotificationSuccessResponse.d.ts +0 -17
- package/dist/models/CancelNotificationSuccessResponse.js +0 -22
- package/dist/models/CancelNotificationSuccessResponse.js.map +0 -1
- package/dist/models/CreatePlayerSuccessResponse.js +0 -28
- package/dist/models/CreatePlayerSuccessResponse.js.map +0 -1
- package/dist/models/CreateSubscriptionRequestBody.js +0 -28
- package/dist/models/CreateSubscriptionRequestBody.js.map +0 -1
- package/dist/models/DeletePlayerNotFoundResponse.d.ts +0 -17
- 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/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/GetNotificationRequestBody.js +0 -34
- package/dist/models/GetNotificationRequestBody.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/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/CancelNotificationSuccessResponse.ts +0 -31
- package/models/CreateSubscriptionRequestBody.ts +0 -39
- package/models/DeletePlayerNotFoundResponse.ts +0 -31
- package/models/DeleteSegmentNotFoundResponse.ts +0 -31
- package/models/DeleteSegmentSuccessResponse.ts +0 -31
- package/models/FilterExpressions.ts +0 -80
- 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/PromiseAPI.ts
CHANGED
|
@@ -6,37 +6,26 @@ import { App } from '../models/App';
|
|
|
6
6
|
import { BasicNotification } from '../models/BasicNotification';
|
|
7
7
|
import { BasicNotificationAllOf } from '../models/BasicNotificationAllOf';
|
|
8
8
|
import { BasicNotificationAllOfAndroidBackgroundLayout } from '../models/BasicNotificationAllOfAndroidBackgroundLayout';
|
|
9
|
-
import { BeginLiveActivityRequest } from '../models/BeginLiveActivityRequest';
|
|
10
9
|
import { Button } from '../models/Button';
|
|
11
|
-
import { CancelNotificationSuccessResponse } from '../models/CancelNotificationSuccessResponse';
|
|
12
10
|
import { CreateNotificationSuccessResponse } from '../models/CreateNotificationSuccessResponse';
|
|
13
|
-
import { CreatePlayerSuccessResponse } from '../models/CreatePlayerSuccessResponse';
|
|
14
11
|
import { CreateSegmentConflictResponse } from '../models/CreateSegmentConflictResponse';
|
|
15
12
|
import { CreateSegmentSuccessResponse } from '../models/CreateSegmentSuccessResponse';
|
|
16
|
-
import { CreateSubscriptionRequestBody } from '../models/CreateSubscriptionRequestBody';
|
|
17
13
|
import { CreateUserConflictResponse } from '../models/CreateUserConflictResponse';
|
|
18
14
|
import { CreateUserConflictResponseErrorsInner } from '../models/CreateUserConflictResponseErrorsInner';
|
|
19
15
|
import { CreateUserConflictResponseErrorsItemsMeta } from '../models/CreateUserConflictResponseErrorsItemsMeta';
|
|
20
|
-
import { DeletePlayerNotFoundResponse } from '../models/DeletePlayerNotFoundResponse';
|
|
21
|
-
import { DeletePlayerSuccessResponse } from '../models/DeletePlayerSuccessResponse';
|
|
22
|
-
import { DeleteSegmentNotFoundResponse } from '../models/DeleteSegmentNotFoundResponse';
|
|
23
|
-
import { DeleteSegmentSuccessResponse } from '../models/DeleteSegmentSuccessResponse';
|
|
24
16
|
import { DeliveryData } from '../models/DeliveryData';
|
|
25
17
|
import { ExportEventsSuccessResponse } from '../models/ExportEventsSuccessResponse';
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
18
|
+
import { ExportSubscriptionsRequestBody } from '../models/ExportSubscriptionsRequestBody';
|
|
19
|
+
import { ExportSubscriptionsSuccessResponse } from '../models/ExportSubscriptionsSuccessResponse';
|
|
28
20
|
import { Filter } from '../models/Filter';
|
|
29
|
-
import {
|
|
21
|
+
import { FilterExpression } from '../models/FilterExpression';
|
|
30
22
|
import { GenericError } from '../models/GenericError';
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import { InlineResponse2003 } from '../models/InlineResponse2003';
|
|
35
|
-
import { InlineResponse201 } from '../models/InlineResponse201';
|
|
36
|
-
import { InlineResponse202 } from '../models/InlineResponse202';
|
|
23
|
+
import { GenericSuccessBoolResponse } from '../models/GenericSuccessBoolResponse';
|
|
24
|
+
import { GetNotificationHistoryRequestBody } from '../models/GetNotificationHistoryRequestBody';
|
|
25
|
+
import { GetSegmentsSuccessResponse } from '../models/GetSegmentsSuccessResponse';
|
|
37
26
|
import { InvalidIdentifierError } from '../models/InvalidIdentifierError';
|
|
27
|
+
import { LanguageStringMap } from '../models/LanguageStringMap';
|
|
38
28
|
import { Notification } from '../models/Notification';
|
|
39
|
-
import { Notification200Errors } from '../models/Notification200Errors';
|
|
40
29
|
import { NotificationAllOf } from '../models/NotificationAllOf';
|
|
41
30
|
import { NotificationHistorySuccessResponse } from '../models/NotificationHistorySuccessResponse';
|
|
42
31
|
import { NotificationSlice } from '../models/NotificationSlice';
|
|
@@ -49,30 +38,24 @@ import { OutcomesData } from '../models/OutcomesData';
|
|
|
49
38
|
import { PlatformDeliveryData } from '../models/PlatformDeliveryData';
|
|
50
39
|
import { PlatformDeliveryDataEmailAllOf } from '../models/PlatformDeliveryDataEmailAllOf';
|
|
51
40
|
import { PlatformDeliveryDataSmsAllOf } from '../models/PlatformDeliveryDataSmsAllOf';
|
|
52
|
-
import {
|
|
53
|
-
import { PlayerNotificationTarget } from '../models/PlayerNotificationTarget';
|
|
54
|
-
import { PlayerNotificationTargetIncludeAliases } from '../models/PlayerNotificationTargetIncludeAliases';
|
|
55
|
-
import { PlayerSlice } from '../models/PlayerSlice';
|
|
41
|
+
import { PropertiesBody } from '../models/PropertiesBody';
|
|
56
42
|
import { PropertiesDeltas } from '../models/PropertiesDeltas';
|
|
57
43
|
import { PropertiesObject } from '../models/PropertiesObject';
|
|
58
44
|
import { Purchase } from '../models/Purchase';
|
|
59
|
-
import {
|
|
45
|
+
import { RateLimitError } from '../models/RateLimitError';
|
|
60
46
|
import { Segment } from '../models/Segment';
|
|
47
|
+
import { SegmentData } from '../models/SegmentData';
|
|
61
48
|
import { SegmentNotificationTarget } from '../models/SegmentNotificationTarget';
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
49
|
+
import { Subscription } from '../models/Subscription';
|
|
50
|
+
import { SubscriptionBody } from '../models/SubscriptionBody';
|
|
51
|
+
import { SubscriptionNotificationTarget } from '../models/SubscriptionNotificationTarget';
|
|
64
52
|
import { TransferSubscriptionRequestBody } from '../models/TransferSubscriptionRequestBody';
|
|
65
53
|
import { UpdateLiveActivityRequest } from '../models/UpdateLiveActivityRequest';
|
|
66
54
|
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
55
|
import { UpdateUserRequest } from '../models/UpdateUserRequest';
|
|
72
56
|
import { User } from '../models/User';
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import { UserSubscriptionOptions } from '../models/UserSubscriptionOptions';
|
|
57
|
+
import { UserIdentityBody } from '../models/UserIdentityBody';
|
|
58
|
+
import { WebButton } from '../models/WebButton';
|
|
76
59
|
import { ObservableDefaultApi } from './ObservableAPI';
|
|
77
60
|
|
|
78
61
|
import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/DefaultApi";
|
|
@@ -88,25 +71,36 @@ export class PromiseDefaultApi {
|
|
|
88
71
|
}
|
|
89
72
|
|
|
90
73
|
/**
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
* @param appId
|
|
94
|
-
* @param
|
|
95
|
-
* @param beginLiveActivityRequest
|
|
74
|
+
* Used to stop a scheduled or currently outgoing notification
|
|
75
|
+
* Stop a scheduled or currently outgoing notification
|
|
76
|
+
* @param appId
|
|
77
|
+
* @param notificationId
|
|
96
78
|
*/
|
|
97
|
-
public
|
|
98
|
-
const result = this.api.
|
|
79
|
+
public cancelNotification(appId: string, notificationId: string, _options?: Configuration): Promise<GenericSuccessBoolResponse> {
|
|
80
|
+
const result = this.api.cancelNotification(appId, notificationId, _options);
|
|
99
81
|
return result.toPromise();
|
|
100
82
|
}
|
|
101
83
|
|
|
102
84
|
/**
|
|
103
|
-
*
|
|
104
|
-
* Stop a scheduled or currently outgoing notification
|
|
85
|
+
* Upserts one or more Aliases to an existing User identified by (:alias_label, :alias_id).
|
|
105
86
|
* @param appId
|
|
106
|
-
* @param
|
|
87
|
+
* @param aliasLabel
|
|
88
|
+
* @param aliasId
|
|
89
|
+
* @param userIdentityBody
|
|
107
90
|
*/
|
|
108
|
-
public
|
|
109
|
-
const result = this.api.
|
|
91
|
+
public createAlias(appId: string, aliasLabel: string, aliasId: string, userIdentityBody: UserIdentityBody, _options?: Configuration): Promise<UserIdentityBody> {
|
|
92
|
+
const result = this.api.createAlias(appId, aliasLabel, aliasId, userIdentityBody, _options);
|
|
93
|
+
return result.toPromise();
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Upserts one or more Aliases for the User identified by :subscription_id.
|
|
98
|
+
* @param appId
|
|
99
|
+
* @param subscriptionId
|
|
100
|
+
* @param userIdentityBody
|
|
101
|
+
*/
|
|
102
|
+
public createAliasBySubscription(appId: string, subscriptionId: string, userIdentityBody: UserIdentityBody, _options?: Configuration): Promise<UserIdentityBody> {
|
|
103
|
+
const result = this.api.createAliasBySubscription(appId, subscriptionId, userIdentityBody, _options);
|
|
110
104
|
return result.toPromise();
|
|
111
105
|
}
|
|
112
106
|
|
|
@@ -131,23 +125,13 @@ export class PromiseDefaultApi {
|
|
|
131
125
|
}
|
|
132
126
|
|
|
133
127
|
/**
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
* @param player
|
|
137
|
-
*/
|
|
138
|
-
public createPlayer(player: Player, _options?: Configuration): Promise<CreatePlayerSuccessResponse> {
|
|
139
|
-
const result = this.api.createPlayer(player, _options);
|
|
140
|
-
return result.toPromise();
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* Create segments 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 Segments endpoint and re-create it with this endpoint to edit.
|
|
145
|
-
* Create Segments
|
|
128
|
+
* 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.
|
|
129
|
+
* Create Segment
|
|
146
130
|
* @param appId The OneSignal App ID for your app. Available in Keys & IDs.
|
|
147
131
|
* @param segment
|
|
148
132
|
*/
|
|
149
|
-
public
|
|
150
|
-
const result = this.api.
|
|
133
|
+
public createSegment(appId: string, segment?: Segment, _options?: Configuration): Promise<CreateSegmentSuccessResponse> {
|
|
134
|
+
const result = this.api.createSegment(appId, segment, _options);
|
|
151
135
|
return result.toPromise();
|
|
152
136
|
}
|
|
153
137
|
|
|
@@ -156,10 +140,10 @@ export class PromiseDefaultApi {
|
|
|
156
140
|
* @param appId
|
|
157
141
|
* @param aliasLabel
|
|
158
142
|
* @param aliasId
|
|
159
|
-
* @param
|
|
143
|
+
* @param subscriptionBody
|
|
160
144
|
*/
|
|
161
|
-
public createSubscription(appId: string, aliasLabel: string, aliasId: string,
|
|
162
|
-
const result = this.api.createSubscription(appId, aliasLabel, aliasId,
|
|
145
|
+
public createSubscription(appId: string, aliasLabel: string, aliasId: string, subscriptionBody: SubscriptionBody, _options?: Configuration): Promise<SubscriptionBody> {
|
|
146
|
+
const result = this.api.createSubscription(appId, aliasLabel, aliasId, subscriptionBody, _options);
|
|
163
147
|
return result.toPromise();
|
|
164
148
|
}
|
|
165
149
|
|
|
@@ -180,30 +164,19 @@ export class PromiseDefaultApi {
|
|
|
180
164
|
* @param aliasId
|
|
181
165
|
* @param aliasLabelToDelete
|
|
182
166
|
*/
|
|
183
|
-
public deleteAlias(appId: string, aliasLabel: string, aliasId: string, aliasLabelToDelete: string, _options?: Configuration): Promise<
|
|
167
|
+
public deleteAlias(appId: string, aliasLabel: string, aliasId: string, aliasLabelToDelete: string, _options?: Configuration): Promise<UserIdentityBody> {
|
|
184
168
|
const result = this.api.deleteAlias(appId, aliasLabel, aliasId, aliasLabelToDelete, _options);
|
|
185
169
|
return result.toPromise();
|
|
186
170
|
}
|
|
187
171
|
|
|
188
172
|
/**
|
|
189
|
-
* Delete
|
|
190
|
-
* Delete
|
|
191
|
-
* @param appId The OneSignal App ID for your app. Available in Keys & IDs.
|
|
192
|
-
* @param playerId The OneSignal player_id
|
|
193
|
-
*/
|
|
194
|
-
public deletePlayer(appId: string, playerId: string, _options?: Configuration): Promise<DeletePlayerSuccessResponse> {
|
|
195
|
-
const result = this.api.deletePlayer(appId, playerId, _options);
|
|
196
|
-
return result.toPromise();
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
/**
|
|
200
|
-
* 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.
|
|
201
|
-
* Delete Segments
|
|
173
|
+
* 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.
|
|
174
|
+
* Delete Segment
|
|
202
175
|
* @param appId The OneSignal App ID for your app. Available in Keys & IDs.
|
|
203
176
|
* @param segmentId The segment_id can be found in the URL of the segment when viewing it in the dashboard.
|
|
204
177
|
*/
|
|
205
|
-
public
|
|
206
|
-
const result = this.api.
|
|
178
|
+
public deleteSegment(appId: string, segmentId: string, _options?: Configuration): Promise<GenericSuccessBoolResponse> {
|
|
179
|
+
const result = this.api.deleteSegment(appId, segmentId, _options);
|
|
207
180
|
return result.toPromise();
|
|
208
181
|
}
|
|
209
182
|
|
|
@@ -228,18 +201,6 @@ export class PromiseDefaultApi {
|
|
|
228
201
|
return result.toPromise();
|
|
229
202
|
}
|
|
230
203
|
|
|
231
|
-
/**
|
|
232
|
-
* Stops a Live Activity
|
|
233
|
-
* Stop Live Activity
|
|
234
|
-
* @param appId The OneSignal App ID for your app. Available in Keys & IDs.
|
|
235
|
-
* @param activityId Live Activity record ID
|
|
236
|
-
* @param subscriptionId Subscription ID
|
|
237
|
-
*/
|
|
238
|
-
public endLiveActivity(appId: string, activityId: string, subscriptionId: string, _options?: Configuration): Promise<void> {
|
|
239
|
-
const result = this.api.endLiveActivity(appId, activityId, subscriptionId, _options);
|
|
240
|
-
return result.toPromise();
|
|
241
|
-
}
|
|
242
|
-
|
|
243
204
|
/**
|
|
244
205
|
* 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.
|
|
245
206
|
* Export CSV of Events
|
|
@@ -253,44 +214,33 @@ export class PromiseDefaultApi {
|
|
|
253
214
|
|
|
254
215
|
/**
|
|
255
216
|
* 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. |
|
|
256
|
-
* Export CSV of
|
|
217
|
+
* Export CSV of Subscriptions
|
|
257
218
|
* @param appId The app ID that you want to export devices from
|
|
258
|
-
* @param
|
|
259
|
-
*/
|
|
260
|
-
public exportPlayers(appId: string, exportPlayersRequestBody?: ExportPlayersRequestBody, _options?: Configuration): Promise<ExportPlayersSuccessResponse> {
|
|
261
|
-
const result = this.api.exportPlayers(appId, exportPlayersRequestBody, _options);
|
|
262
|
-
return result.toPromise();
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
/**
|
|
266
|
-
* Lists all Aliases for the User identified by :subscription_id.
|
|
267
|
-
* @param appId
|
|
268
|
-
* @param subscriptionId
|
|
219
|
+
* @param exportSubscriptionsRequestBody
|
|
269
220
|
*/
|
|
270
|
-
public
|
|
271
|
-
const result = this.api.
|
|
221
|
+
public exportSubscriptions(appId: string, exportSubscriptionsRequestBody?: ExportSubscriptionsRequestBody, _options?: Configuration): Promise<ExportSubscriptionsSuccessResponse> {
|
|
222
|
+
const result = this.api.exportSubscriptions(appId, exportSubscriptionsRequestBody, _options);
|
|
272
223
|
return result.toPromise();
|
|
273
224
|
}
|
|
274
225
|
|
|
275
226
|
/**
|
|
276
|
-
*
|
|
227
|
+
* Lists all Aliases for the User identified by (:alias_label, :alias_id).
|
|
277
228
|
* @param appId
|
|
278
229
|
* @param aliasLabel
|
|
279
230
|
* @param aliasId
|
|
280
231
|
*/
|
|
281
|
-
public
|
|
282
|
-
const result = this.api.
|
|
232
|
+
public getAliases(appId: string, aliasLabel: string, aliasId: string, _options?: Configuration): Promise<UserIdentityBody> {
|
|
233
|
+
const result = this.api.getAliases(appId, aliasLabel, aliasId, _options);
|
|
283
234
|
return result.toPromise();
|
|
284
235
|
}
|
|
285
236
|
|
|
286
237
|
/**
|
|
287
|
-
* Lists all Aliases for the User identified by
|
|
238
|
+
* Lists all Aliases for the User identified by :subscription_id.
|
|
288
239
|
* @param appId
|
|
289
|
-
* @param
|
|
290
|
-
* @param aliasId
|
|
240
|
+
* @param subscriptionId
|
|
291
241
|
*/
|
|
292
|
-
public
|
|
293
|
-
const result = this.api.
|
|
242
|
+
public getAliasesBySubscription(appId: string, subscriptionId: string, _options?: Configuration): Promise<UserIdentityBody> {
|
|
243
|
+
const result = this.api.getAliasesBySubscription(appId, subscriptionId, _options);
|
|
294
244
|
return result.toPromise();
|
|
295
245
|
}
|
|
296
246
|
|
|
@@ -313,16 +263,6 @@ export class PromiseDefaultApi {
|
|
|
313
263
|
return result.toPromise();
|
|
314
264
|
}
|
|
315
265
|
|
|
316
|
-
/**
|
|
317
|
-
* Manifest of In-App Messages the Subscription is eligible to display by the SDK.
|
|
318
|
-
* @param appId
|
|
319
|
-
* @param subscriptionId
|
|
320
|
-
*/
|
|
321
|
-
public getEligibleIams(appId: string, subscriptionId: string, _options?: Configuration): Promise<InlineResponse2003> {
|
|
322
|
-
const result = this.api.getEligibleIams(appId, subscriptionId, _options);
|
|
323
|
-
return result.toPromise();
|
|
324
|
-
}
|
|
325
|
-
|
|
326
266
|
/**
|
|
327
267
|
* View the details of a single notification and outcomes associated with it
|
|
328
268
|
* View notification
|
|
@@ -338,10 +278,10 @@ export class PromiseDefaultApi {
|
|
|
338
278
|
* -> 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.
|
|
339
279
|
* Notification History
|
|
340
280
|
* @param notificationId The \"id\" of the message found in the Notification object
|
|
341
|
-
* @param
|
|
281
|
+
* @param getNotificationHistoryRequestBody
|
|
342
282
|
*/
|
|
343
|
-
public getNotificationHistory(notificationId: string,
|
|
344
|
-
const result = this.api.getNotificationHistory(notificationId,
|
|
283
|
+
public getNotificationHistory(notificationId: string, getNotificationHistoryRequestBody: GetNotificationHistoryRequestBody, _options?: Configuration): Promise<NotificationHistorySuccessResponse> {
|
|
284
|
+
const result = this.api.getNotificationHistory(notificationId, getNotificationHistoryRequestBody, _options);
|
|
345
285
|
return result.toPromise();
|
|
346
286
|
}
|
|
347
287
|
|
|
@@ -374,60 +314,48 @@ export class PromiseDefaultApi {
|
|
|
374
314
|
}
|
|
375
315
|
|
|
376
316
|
/**
|
|
377
|
-
*
|
|
378
|
-
*
|
|
379
|
-
* @param appId
|
|
380
|
-
* @param
|
|
381
|
-
* @param
|
|
382
|
-
*/
|
|
383
|
-
public getPlayer(appId: string, playerId: string, emailAuthHash?: string, _options?: Configuration): Promise<Player> {
|
|
384
|
-
const result = this.api.getPlayer(appId, playerId, emailAuthHash, _options);
|
|
385
|
-
return result.toPromise();
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
/**
|
|
389
|
-
* 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.
|
|
390
|
-
* View devices
|
|
391
|
-
* @param appId The app ID that you want to view players from
|
|
392
|
-
* @param limit How many devices to return. Max is 300. Default is 300
|
|
393
|
-
* @param offset Result offset. Default is 0. Results are sorted by id;
|
|
317
|
+
* Returns an array of segments from an app.
|
|
318
|
+
* Get Segments
|
|
319
|
+
* @param appId The OneSignal App ID for your app. Available in Keys & IDs.
|
|
320
|
+
* @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.
|
|
321
|
+
* @param limit The amount of Segments in the response. Maximum 300.
|
|
394
322
|
*/
|
|
395
|
-
public
|
|
396
|
-
const result = this.api.
|
|
323
|
+
public getSegments(appId: string, offset?: number, limit?: number, _options?: Configuration): Promise<GetSegmentsSuccessResponse> {
|
|
324
|
+
const result = this.api.getSegments(appId, offset, limit, _options);
|
|
397
325
|
return result.toPromise();
|
|
398
326
|
}
|
|
399
327
|
|
|
400
328
|
/**
|
|
401
|
-
*
|
|
329
|
+
* Returns the User’s properties, Aliases, and Subscriptions.
|
|
402
330
|
* @param appId
|
|
403
331
|
* @param aliasLabel
|
|
404
332
|
* @param aliasId
|
|
405
|
-
* @param userIdentityRequestBody
|
|
406
333
|
*/
|
|
407
|
-
public
|
|
408
|
-
const result = this.api.
|
|
334
|
+
public getUser(appId: string, aliasLabel: string, aliasId: string, _options?: Configuration): Promise<User> {
|
|
335
|
+
const result = this.api.getUser(appId, aliasLabel, aliasId, _options);
|
|
409
336
|
return result.toPromise();
|
|
410
337
|
}
|
|
411
338
|
|
|
412
339
|
/**
|
|
413
|
-
*
|
|
340
|
+
* Transfers this Subscription to the User identified by the identity in the payload.
|
|
414
341
|
* @param appId
|
|
415
342
|
* @param subscriptionId
|
|
416
|
-
* @param
|
|
343
|
+
* @param transferSubscriptionRequestBody
|
|
417
344
|
*/
|
|
418
|
-
public
|
|
419
|
-
const result = this.api.
|
|
345
|
+
public transferSubscription(appId: string, subscriptionId: string, transferSubscriptionRequestBody: TransferSubscriptionRequestBody, _options?: Configuration): Promise<UserIdentityBody> {
|
|
346
|
+
const result = this.api.transferSubscription(appId, subscriptionId, transferSubscriptionRequestBody, _options);
|
|
420
347
|
return result.toPromise();
|
|
421
348
|
}
|
|
422
349
|
|
|
423
350
|
/**
|
|
424
|
-
*
|
|
425
|
-
*
|
|
426
|
-
* @param
|
|
427
|
-
* @param
|
|
351
|
+
* Unsubscribe an email with a token when using your own custom email unsubscribe landing page
|
|
352
|
+
* Unsubscribe with token
|
|
353
|
+
* @param appId The OneSignal App ID for your app. Available in Keys & IDs.
|
|
354
|
+
* @param notificationId The id of the message found in the creation notification POST response, View Notifications GET response, or URL within the Message Report.
|
|
355
|
+
* @param token The unsubscribe token that is generated via liquid syntax in {{subscription.unsubscribe_token}} when personalizing an email.
|
|
428
356
|
*/
|
|
429
|
-
public
|
|
430
|
-
const result = this.api.
|
|
357
|
+
public unsubscribeEmailWithToken(appId: string, notificationId: string, token: string, _options?: Configuration): Promise<GenericSuccessBoolResponse> {
|
|
358
|
+
const result = this.api.unsubscribeEmailWithToken(appId, notificationId, token, _options);
|
|
431
359
|
return result.toPromise();
|
|
432
360
|
}
|
|
433
361
|
|
|
@@ -454,37 +382,14 @@ export class PromiseDefaultApi {
|
|
|
454
382
|
return result.toPromise();
|
|
455
383
|
}
|
|
456
384
|
|
|
457
|
-
/**
|
|
458
|
-
* Update an existing device in one of your OneSignal apps
|
|
459
|
-
* Edit device
|
|
460
|
-
* @param playerId Player\'s OneSignal ID
|
|
461
|
-
* @param player
|
|
462
|
-
*/
|
|
463
|
-
public updatePlayer(playerId: string, player: Player, _options?: Configuration): Promise<UpdatePlayerSuccessResponse> {
|
|
464
|
-
const result = this.api.updatePlayer(playerId, player, _options);
|
|
465
|
-
return result.toPromise();
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
/**
|
|
469
|
-
* 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\" }
|
|
470
|
-
* Edit tags with external user id
|
|
471
|
-
* @param appId The OneSignal App ID the user record is found under.
|
|
472
|
-
* @param externalUserId The External User ID mapped to teh device record in OneSignal. Must be actively set on the device to be updated.
|
|
473
|
-
* @param updatePlayerTagsRequestBody
|
|
474
|
-
*/
|
|
475
|
-
public updatePlayerTags(appId: string, externalUserId: string, updatePlayerTagsRequestBody?: UpdatePlayerTagsRequestBody, _options?: Configuration): Promise<UpdatePlayerTagsSuccessResponse> {
|
|
476
|
-
const result = this.api.updatePlayerTags(appId, externalUserId, updatePlayerTagsRequestBody, _options);
|
|
477
|
-
return result.toPromise();
|
|
478
|
-
}
|
|
479
|
-
|
|
480
385
|
/**
|
|
481
386
|
* Updates an existing Subscription’s properties.
|
|
482
387
|
* @param appId
|
|
483
388
|
* @param subscriptionId
|
|
484
|
-
* @param
|
|
389
|
+
* @param subscriptionBody
|
|
485
390
|
*/
|
|
486
|
-
public updateSubscription(appId: string, subscriptionId: string,
|
|
487
|
-
const result = this.api.updateSubscription(appId, subscriptionId,
|
|
391
|
+
public updateSubscription(appId: string, subscriptionId: string, subscriptionBody: SubscriptionBody, _options?: Configuration): Promise<void> {
|
|
392
|
+
const result = this.api.updateSubscription(appId, subscriptionId, subscriptionBody, _options);
|
|
488
393
|
return result.toPromise();
|
|
489
394
|
}
|
|
490
395
|
|
|
@@ -495,7 +400,7 @@ export class PromiseDefaultApi {
|
|
|
495
400
|
* @param aliasId
|
|
496
401
|
* @param updateUserRequest
|
|
497
402
|
*/
|
|
498
|
-
public updateUser(appId: string, aliasLabel: string, aliasId: string, updateUserRequest: UpdateUserRequest, _options?: Configuration): Promise<
|
|
403
|
+
public updateUser(appId: string, aliasLabel: string, aliasId: string, updateUserRequest: UpdateUserRequest, _options?: Configuration): Promise<PropertiesBody> {
|
|
499
404
|
const result = this.api.updateUser(appId, aliasLabel, aliasId, updateUserRequest, _options);
|
|
500
405
|
return result.toPromise();
|
|
501
406
|
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BeginLiveActivityRequest = void 0;
|
|
4
|
-
var BeginLiveActivityRequest = (function () {
|
|
5
|
-
function BeginLiveActivityRequest() {
|
|
6
|
-
}
|
|
7
|
-
BeginLiveActivityRequest.getAttributeTypeMap = function () {
|
|
8
|
-
return BeginLiveActivityRequest.attributeTypeMap;
|
|
9
|
-
};
|
|
10
|
-
BeginLiveActivityRequest.discriminator = undefined;
|
|
11
|
-
BeginLiveActivityRequest.attributeTypeMap = [
|
|
12
|
-
{
|
|
13
|
-
"name": "push_token",
|
|
14
|
-
"baseName": "push_token",
|
|
15
|
-
"type": "string",
|
|
16
|
-
"format": ""
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"name": "subscription_id",
|
|
20
|
-
"baseName": "subscription_id",
|
|
21
|
-
"type": "string",
|
|
22
|
-
"format": ""
|
|
23
|
-
}
|
|
24
|
-
];
|
|
25
|
-
return BeginLiveActivityRequest;
|
|
26
|
-
}());
|
|
27
|
-
exports.BeginLiveActivityRequest = BeginLiveActivityRequest;
|
|
28
|
-
//# sourceMappingURL=BeginLiveActivityRequest.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BeginLiveActivityRequest.js","sourceRoot":"","sources":["../../models/BeginLiveActivityRequest.ts"],"names":[],"mappings":";;;AAUA;IAwBI;IACA,CAAC;IALM,4CAAmB,GAA1B;QACI,OAAO,wBAAwB,CAAC,gBAAgB,CAAC;IACrD,CAAC;IAlBe,sCAAa,GAAuB,SAAS,CAAC;IAE9C,yCAAgB,GAA0E;QACtG;YACI,MAAM,EAAE,YAAY;YACpB,UAAU,EAAE,YAAY;YACxB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,EAAE;SACf;QACD;YACI,MAAM,EAAE,iBAAiB;YACzB,UAAU,EAAE,iBAAiB;YAC7B,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,EAAE;SACf;KAAK,CAAC;IAQf,+BAAC;CAAA,AA1BD,IA0BC;AA1BY,4DAAwB"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare class CancelNotificationSuccessResponse {
|
|
2
|
-
'success'?: boolean;
|
|
3
|
-
static readonly discriminator: string | undefined;
|
|
4
|
-
static readonly attributeTypeMap: Array<{
|
|
5
|
-
name: string;
|
|
6
|
-
baseName: string;
|
|
7
|
-
type: string;
|
|
8
|
-
format: string;
|
|
9
|
-
}>;
|
|
10
|
-
static getAttributeTypeMap(): {
|
|
11
|
-
name: string;
|
|
12
|
-
baseName: string;
|
|
13
|
-
type: string;
|
|
14
|
-
format: string;
|
|
15
|
-
}[];
|
|
16
|
-
constructor();
|
|
17
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CancelNotificationSuccessResponse = void 0;
|
|
4
|
-
var CancelNotificationSuccessResponse = (function () {
|
|
5
|
-
function CancelNotificationSuccessResponse() {
|
|
6
|
-
}
|
|
7
|
-
CancelNotificationSuccessResponse.getAttributeTypeMap = function () {
|
|
8
|
-
return CancelNotificationSuccessResponse.attributeTypeMap;
|
|
9
|
-
};
|
|
10
|
-
CancelNotificationSuccessResponse.discriminator = undefined;
|
|
11
|
-
CancelNotificationSuccessResponse.attributeTypeMap = [
|
|
12
|
-
{
|
|
13
|
-
"name": "success",
|
|
14
|
-
"baseName": "success",
|
|
15
|
-
"type": "boolean",
|
|
16
|
-
"format": ""
|
|
17
|
-
}
|
|
18
|
-
];
|
|
19
|
-
return CancelNotificationSuccessResponse;
|
|
20
|
-
}());
|
|
21
|
-
exports.CancelNotificationSuccessResponse = CancelNotificationSuccessResponse;
|
|
22
|
-
//# sourceMappingURL=CancelNotificationSuccessResponse.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CancelNotificationSuccessResponse.js","sourceRoot":"","sources":["../../models/CancelNotificationSuccessResponse.ts"],"names":[],"mappings":";;;AAUA;IAiBI;IACA,CAAC;IALM,qDAAmB,GAA1B;QACI,OAAO,iCAAiC,CAAC,gBAAgB,CAAC;IAC9D,CAAC;IAZe,+CAAa,GAAuB,SAAS,CAAC;IAE9C,kDAAgB,GAA0E;QACtG;YACI,MAAM,EAAE,SAAS;YACjB,UAAU,EAAE,SAAS;YACrB,MAAM,EAAE,SAAS;YACjB,QAAQ,EAAE,EAAE;SACf;KAAK,CAAC;IAQf,wCAAC;CAAA,AAnBD,IAmBC;AAnBY,8EAAiC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CreatePlayerSuccessResponse = void 0;
|
|
4
|
-
var CreatePlayerSuccessResponse = (function () {
|
|
5
|
-
function CreatePlayerSuccessResponse() {
|
|
6
|
-
}
|
|
7
|
-
CreatePlayerSuccessResponse.getAttributeTypeMap = function () {
|
|
8
|
-
return CreatePlayerSuccessResponse.attributeTypeMap;
|
|
9
|
-
};
|
|
10
|
-
CreatePlayerSuccessResponse.discriminator = undefined;
|
|
11
|
-
CreatePlayerSuccessResponse.attributeTypeMap = [
|
|
12
|
-
{
|
|
13
|
-
"name": "success",
|
|
14
|
-
"baseName": "success",
|
|
15
|
-
"type": "boolean",
|
|
16
|
-
"format": ""
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"name": "id",
|
|
20
|
-
"baseName": "id",
|
|
21
|
-
"type": "string",
|
|
22
|
-
"format": ""
|
|
23
|
-
}
|
|
24
|
-
];
|
|
25
|
-
return CreatePlayerSuccessResponse;
|
|
26
|
-
}());
|
|
27
|
-
exports.CreatePlayerSuccessResponse = CreatePlayerSuccessResponse;
|
|
28
|
-
//# sourceMappingURL=CreatePlayerSuccessResponse.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CreatePlayerSuccessResponse.js","sourceRoot":"","sources":["../../models/CreatePlayerSuccessResponse.ts"],"names":[],"mappings":";;;AAUA;IAwBI;IACA,CAAC;IALM,+CAAmB,GAA1B;QACI,OAAO,2BAA2B,CAAC,gBAAgB,CAAC;IACxD,CAAC;IAlBe,yCAAa,GAAuB,SAAS,CAAC;IAE9C,4CAAgB,GAA0E;QACtG;YACI,MAAM,EAAE,SAAS;YACjB,UAAU,EAAE,SAAS;YACrB,MAAM,EAAE,SAAS;YACjB,QAAQ,EAAE,EAAE;SACf;QACD;YACI,MAAM,EAAE,IAAI;YACZ,UAAU,EAAE,IAAI;YAChB,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,EAAE;SACf;KAAK,CAAC;IAQf,kCAAC;CAAA,AA1BD,IA0BC;AA1BY,kEAA2B"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CreateSubscriptionRequestBody = void 0;
|
|
4
|
-
var CreateSubscriptionRequestBody = (function () {
|
|
5
|
-
function CreateSubscriptionRequestBody() {
|
|
6
|
-
}
|
|
7
|
-
CreateSubscriptionRequestBody.getAttributeTypeMap = function () {
|
|
8
|
-
return CreateSubscriptionRequestBody.attributeTypeMap;
|
|
9
|
-
};
|
|
10
|
-
CreateSubscriptionRequestBody.discriminator = undefined;
|
|
11
|
-
CreateSubscriptionRequestBody.attributeTypeMap = [
|
|
12
|
-
{
|
|
13
|
-
"name": "subscription",
|
|
14
|
-
"baseName": "subscription",
|
|
15
|
-
"type": "SubscriptionObject",
|
|
16
|
-
"format": ""
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"name": "retain_previous_owner",
|
|
20
|
-
"baseName": "retain_previous_owner",
|
|
21
|
-
"type": "boolean",
|
|
22
|
-
"format": ""
|
|
23
|
-
}
|
|
24
|
-
];
|
|
25
|
-
return CreateSubscriptionRequestBody;
|
|
26
|
-
}());
|
|
27
|
-
exports.CreateSubscriptionRequestBody = CreateSubscriptionRequestBody;
|
|
28
|
-
//# sourceMappingURL=CreateSubscriptionRequestBody.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CreateSubscriptionRequestBody.js","sourceRoot":"","sources":["../../models/CreateSubscriptionRequestBody.ts"],"names":[],"mappings":";;;AAWA;IAwBI;IACA,CAAC;IALM,iDAAmB,GAA1B;QACI,OAAO,6BAA6B,CAAC,gBAAgB,CAAC;IAC1D,CAAC;IAlBe,2CAAa,GAAuB,SAAS,CAAC;IAE9C,8CAAgB,GAA0E;QACtG;YACI,MAAM,EAAE,cAAc;YACtB,UAAU,EAAE,cAAc;YAC1B,MAAM,EAAE,oBAAoB;YAC5B,QAAQ,EAAE,EAAE;SACf;QACD;YACI,MAAM,EAAE,uBAAuB;YAC/B,UAAU,EAAE,uBAAuB;YACnC,MAAM,EAAE,SAAS;YACjB,QAAQ,EAAE,EAAE;SACf;KAAK,CAAC;IAQf,oCAAC;CAAA,AA1BD,IA0BC;AA1BY,sEAA6B"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare class DeletePlayerNotFoundResponse {
|
|
2
|
-
'success'?: boolean;
|
|
3
|
-
static readonly discriminator: string | undefined;
|
|
4
|
-
static readonly attributeTypeMap: Array<{
|
|
5
|
-
name: string;
|
|
6
|
-
baseName: string;
|
|
7
|
-
type: string;
|
|
8
|
-
format: string;
|
|
9
|
-
}>;
|
|
10
|
-
static getAttributeTypeMap(): {
|
|
11
|
-
name: string;
|
|
12
|
-
baseName: string;
|
|
13
|
-
type: string;
|
|
14
|
-
format: string;
|
|
15
|
-
}[];
|
|
16
|
-
constructor();
|
|
17
|
-
}
|