@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/auth/auth.ts
CHANGED
|
@@ -27,7 +27,7 @@ export interface TokenProvider {
|
|
|
27
27
|
/**
|
|
28
28
|
* Applies http authentication to the request context.
|
|
29
29
|
*/
|
|
30
|
-
export class
|
|
30
|
+
export class RestApiKeyAuthentication implements SecurityAuthentication {
|
|
31
31
|
/**
|
|
32
32
|
* Configures the http authentication with the required details.
|
|
33
33
|
*
|
|
@@ -36,7 +36,7 @@ export class AppKeyAuthentication implements SecurityAuthentication {
|
|
|
36
36
|
public constructor(private tokenProvider: TokenProvider) {}
|
|
37
37
|
|
|
38
38
|
public getName(): string {
|
|
39
|
-
return "
|
|
39
|
+
return "rest_api_key";
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
public async applySecurityAuthentication(context: RequestContext) {
|
|
@@ -47,7 +47,7 @@ export class AppKeyAuthentication implements SecurityAuthentication {
|
|
|
47
47
|
/**
|
|
48
48
|
* Applies http authentication to the request context.
|
|
49
49
|
*/
|
|
50
|
-
export class
|
|
50
|
+
export class UserAuthKeyAuthentication implements SecurityAuthentication {
|
|
51
51
|
/**
|
|
52
52
|
* Configures the http authentication with the required details.
|
|
53
53
|
*
|
|
@@ -56,7 +56,7 @@ export class UserKeyAuthentication implements SecurityAuthentication {
|
|
|
56
56
|
public constructor(private tokenProvider: TokenProvider) {}
|
|
57
57
|
|
|
58
58
|
public getName(): string {
|
|
59
|
-
return "
|
|
59
|
+
return "user_auth_key";
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
public async applySecurityAuthentication(context: RequestContext) {
|
|
@@ -67,8 +67,8 @@ export class UserKeyAuthentication implements SecurityAuthentication {
|
|
|
67
67
|
|
|
68
68
|
export type AuthMethods = {
|
|
69
69
|
"default"?: SecurityAuthentication,
|
|
70
|
-
"
|
|
71
|
-
"
|
|
70
|
+
"rest_api_key"?: SecurityAuthentication,
|
|
71
|
+
"user_auth_key"?: SecurityAuthentication
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
export type ApiKeyConfiguration = string;
|
|
@@ -78,8 +78,8 @@ export type OAuth2Configuration = { accessToken: string };
|
|
|
78
78
|
|
|
79
79
|
export type AuthMethodsConfiguration = {
|
|
80
80
|
"default"?: SecurityAuthentication,
|
|
81
|
-
"
|
|
82
|
-
"
|
|
81
|
+
"rest_api_key"?: HttpBearerConfiguration,
|
|
82
|
+
"user_auth_key"?: HttpBearerConfiguration
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
/**
|
|
@@ -94,15 +94,15 @@ export function configureAuthMethods(config: AuthMethodsConfiguration | undefine
|
|
|
94
94
|
}
|
|
95
95
|
authMethods["default"] = config["default"]
|
|
96
96
|
|
|
97
|
-
if (config["
|
|
98
|
-
authMethods["
|
|
99
|
-
config["
|
|
97
|
+
if (config["rest_api_key"]) {
|
|
98
|
+
authMethods["rest_api_key"] = new RestApiKeyAuthentication(
|
|
99
|
+
config["rest_api_key"]["tokenProvider"]
|
|
100
100
|
);
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
if (config["
|
|
104
|
-
authMethods["
|
|
105
|
-
config["
|
|
103
|
+
if (config["user_auth_key"]) {
|
|
104
|
+
authMethods["user_auth_key"] = new UserAuthKeyAuthentication(
|
|
105
|
+
config["user_auth_key"]["tokenProvider"]
|
|
106
106
|
);
|
|
107
107
|
}
|
|
108
108
|
|
package/configuration.ts
CHANGED
|
@@ -39,8 +39,8 @@ export interface ConfigurationParameters {
|
|
|
39
39
|
/**
|
|
40
40
|
* Faster way to configure authentication methods
|
|
41
41
|
*/
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
restApiKey?: string;
|
|
43
|
+
userAuthKey?: string;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
/**
|
|
@@ -58,14 +58,14 @@ export interface ConfigurationParameters {
|
|
|
58
58
|
export function createConfiguration(conf: ConfigurationParameters): Configuration {
|
|
59
59
|
|
|
60
60
|
const authMethods: AuthMethodsConfiguration = {
|
|
61
|
-
'
|
|
61
|
+
'rest_api_key': {
|
|
62
62
|
tokenProvider: {
|
|
63
|
-
getToken: () => conf.
|
|
63
|
+
getToken: () => conf.restApiKey || ''
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
|
-
'
|
|
66
|
+
'user_auth_key': {
|
|
67
67
|
tokenProvider: {
|
|
68
|
-
getToken: () => conf.
|
|
68
|
+
getToken: () => conf.userAuthKey || ''
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
}
|
|
@@ -2,116 +2,89 @@ import { BaseAPIRequestFactory } from './baseapi';
|
|
|
2
2
|
import { Configuration } from '../configuration';
|
|
3
3
|
import { RequestContext, ResponseContext } from '../http/http';
|
|
4
4
|
import { App } from '../models/App';
|
|
5
|
-
import { BeginLiveActivityRequest } from '../models/BeginLiveActivityRequest';
|
|
6
|
-
import { CancelNotificationSuccessResponse } from '../models/CancelNotificationSuccessResponse';
|
|
7
5
|
import { CreateNotificationSuccessResponse } from '../models/CreateNotificationSuccessResponse';
|
|
8
|
-
import { CreatePlayerSuccessResponse } from '../models/CreatePlayerSuccessResponse';
|
|
9
6
|
import { CreateSegmentSuccessResponse } from '../models/CreateSegmentSuccessResponse';
|
|
10
|
-
import { CreateSubscriptionRequestBody } from '../models/CreateSubscriptionRequestBody';
|
|
11
|
-
import { DeletePlayerSuccessResponse } from '../models/DeletePlayerSuccessResponse';
|
|
12
|
-
import { DeleteSegmentSuccessResponse } from '../models/DeleteSegmentSuccessResponse';
|
|
13
7
|
import { ExportEventsSuccessResponse } from '../models/ExportEventsSuccessResponse';
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { InlineResponse201 } from '../models/InlineResponse201';
|
|
20
|
-
import { InlineResponse202 } from '../models/InlineResponse202';
|
|
8
|
+
import { ExportSubscriptionsRequestBody } from '../models/ExportSubscriptionsRequestBody';
|
|
9
|
+
import { ExportSubscriptionsSuccessResponse } from '../models/ExportSubscriptionsSuccessResponse';
|
|
10
|
+
import { GenericSuccessBoolResponse } from '../models/GenericSuccessBoolResponse';
|
|
11
|
+
import { GetNotificationHistoryRequestBody } from '../models/GetNotificationHistoryRequestBody';
|
|
12
|
+
import { GetSegmentsSuccessResponse } from '../models/GetSegmentsSuccessResponse';
|
|
21
13
|
import { Notification } from '../models/Notification';
|
|
22
14
|
import { NotificationHistorySuccessResponse } from '../models/NotificationHistorySuccessResponse';
|
|
23
15
|
import { NotificationSlice } from '../models/NotificationSlice';
|
|
24
16
|
import { NotificationWithMeta } from '../models/NotificationWithMeta';
|
|
25
17
|
import { OutcomesData } from '../models/OutcomesData';
|
|
26
|
-
import {
|
|
27
|
-
import { PlayerSlice } from '../models/PlayerSlice';
|
|
18
|
+
import { PropertiesBody } from '../models/PropertiesBody';
|
|
28
19
|
import { Segment } from '../models/Segment';
|
|
20
|
+
import { SubscriptionBody } from '../models/SubscriptionBody';
|
|
29
21
|
import { TransferSubscriptionRequestBody } from '../models/TransferSubscriptionRequestBody';
|
|
30
22
|
import { UpdateLiveActivityRequest } from '../models/UpdateLiveActivityRequest';
|
|
31
23
|
import { UpdateLiveActivitySuccessResponse } from '../models/UpdateLiveActivitySuccessResponse';
|
|
32
|
-
import { UpdatePlayerSuccessResponse } from '../models/UpdatePlayerSuccessResponse';
|
|
33
|
-
import { UpdatePlayerTagsRequestBody } from '../models/UpdatePlayerTagsRequestBody';
|
|
34
|
-
import { UpdatePlayerTagsSuccessResponse } from '../models/UpdatePlayerTagsSuccessResponse';
|
|
35
|
-
import { UpdateSubscriptionRequestBody } from '../models/UpdateSubscriptionRequestBody';
|
|
36
24
|
import { UpdateUserRequest } from '../models/UpdateUserRequest';
|
|
37
25
|
import { User } from '../models/User';
|
|
38
|
-
import {
|
|
39
|
-
import { UserIdentityResponse } from '../models/UserIdentityResponse';
|
|
26
|
+
import { UserIdentityBody } from '../models/UserIdentityBody';
|
|
40
27
|
export declare class DefaultApiRequestFactory extends BaseAPIRequestFactory {
|
|
41
|
-
beginLiveActivity(appId: string, activityId: string, beginLiveActivityRequest: BeginLiveActivityRequest, _options?: Configuration): Promise<RequestContext>;
|
|
42
28
|
cancelNotification(appId: string, notificationId: string, _options?: Configuration): Promise<RequestContext>;
|
|
29
|
+
createAlias(appId: string, aliasLabel: string, aliasId: string, userIdentityBody: UserIdentityBody, _options?: Configuration): Promise<RequestContext>;
|
|
30
|
+
createAliasBySubscription(appId: string, subscriptionId: string, userIdentityBody: UserIdentityBody, _options?: Configuration): Promise<RequestContext>;
|
|
43
31
|
createApp(app: App, _options?: Configuration): Promise<RequestContext>;
|
|
44
32
|
createNotification(notification: Notification, _options?: Configuration): Promise<RequestContext>;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
createSubscription(appId: string, aliasLabel: string, aliasId: string, createSubscriptionRequestBody: CreateSubscriptionRequestBody, _options?: Configuration): Promise<RequestContext>;
|
|
33
|
+
createSegment(appId: string, segment?: Segment, _options?: Configuration): Promise<RequestContext>;
|
|
34
|
+
createSubscription(appId: string, aliasLabel: string, aliasId: string, subscriptionBody: SubscriptionBody, _options?: Configuration): Promise<RequestContext>;
|
|
48
35
|
createUser(appId: string, user: User, _options?: Configuration): Promise<RequestContext>;
|
|
49
36
|
deleteAlias(appId: string, aliasLabel: string, aliasId: string, aliasLabelToDelete: string, _options?: Configuration): Promise<RequestContext>;
|
|
50
|
-
|
|
51
|
-
deleteSegments(appId: string, segmentId: string, _options?: Configuration): Promise<RequestContext>;
|
|
37
|
+
deleteSegment(appId: string, segmentId: string, _options?: Configuration): Promise<RequestContext>;
|
|
52
38
|
deleteSubscription(appId: string, subscriptionId: string, _options?: Configuration): Promise<RequestContext>;
|
|
53
39
|
deleteUser(appId: string, aliasLabel: string, aliasId: string, _options?: Configuration): Promise<RequestContext>;
|
|
54
|
-
endLiveActivity(appId: string, activityId: string, subscriptionId: string, _options?: Configuration): Promise<RequestContext>;
|
|
55
40
|
exportEvents(notificationId: string, appId: string, _options?: Configuration): Promise<RequestContext>;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
fetchUserIdentity(appId: string, aliasLabel: string, aliasId: string, _options?: Configuration): Promise<RequestContext>;
|
|
41
|
+
exportSubscriptions(appId: string, exportSubscriptionsRequestBody?: ExportSubscriptionsRequestBody, _options?: Configuration): Promise<RequestContext>;
|
|
42
|
+
getAliases(appId: string, aliasLabel: string, aliasId: string, _options?: Configuration): Promise<RequestContext>;
|
|
43
|
+
getAliasesBySubscription(appId: string, subscriptionId: string, _options?: Configuration): Promise<RequestContext>;
|
|
60
44
|
getApp(appId: string, _options?: Configuration): Promise<RequestContext>;
|
|
61
45
|
getApps(_options?: Configuration): Promise<RequestContext>;
|
|
62
|
-
getEligibleIams(appId: string, subscriptionId: string, _options?: Configuration): Promise<RequestContext>;
|
|
63
46
|
getNotification(appId: string, notificationId: string, _options?: Configuration): Promise<RequestContext>;
|
|
64
|
-
getNotificationHistory(notificationId: string,
|
|
47
|
+
getNotificationHistory(notificationId: string, getNotificationHistoryRequestBody: GetNotificationHistoryRequestBody, _options?: Configuration): Promise<RequestContext>;
|
|
65
48
|
getNotifications(appId: string, limit?: number, offset?: number, kind?: 0 | 1 | 3, _options?: Configuration): Promise<RequestContext>;
|
|
66
49
|
getOutcomes(appId: string, outcomeNames: string, outcomeNames2?: string, outcomeTimeRange?: string, outcomePlatforms?: string, outcomeAttribution?: string, _options?: Configuration): Promise<RequestContext>;
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
identifyUserByAlias(appId: string, aliasLabel: string, aliasId: string, userIdentityRequestBody: UserIdentityRequestBody, _options?: Configuration): Promise<RequestContext>;
|
|
70
|
-
identifyUserBySubscriptionId(appId: string, subscriptionId: string, userIdentityRequestBody: UserIdentityRequestBody, _options?: Configuration): Promise<RequestContext>;
|
|
50
|
+
getSegments(appId: string, offset?: number, limit?: number, _options?: Configuration): Promise<RequestContext>;
|
|
51
|
+
getUser(appId: string, aliasLabel: string, aliasId: string, _options?: Configuration): Promise<RequestContext>;
|
|
71
52
|
transferSubscription(appId: string, subscriptionId: string, transferSubscriptionRequestBody: TransferSubscriptionRequestBody, _options?: Configuration): Promise<RequestContext>;
|
|
53
|
+
unsubscribeEmailWithToken(appId: string, notificationId: string, token: string, _options?: Configuration): Promise<RequestContext>;
|
|
72
54
|
updateApp(appId: string, app: App, _options?: Configuration): Promise<RequestContext>;
|
|
73
55
|
updateLiveActivity(appId: string, activityId: string, updateLiveActivityRequest: UpdateLiveActivityRequest, _options?: Configuration): Promise<RequestContext>;
|
|
74
|
-
|
|
75
|
-
updatePlayerTags(appId: string, externalUserId: string, updatePlayerTagsRequestBody?: UpdatePlayerTagsRequestBody, _options?: Configuration): Promise<RequestContext>;
|
|
76
|
-
updateSubscription(appId: string, subscriptionId: string, updateSubscriptionRequestBody: UpdateSubscriptionRequestBody, _options?: Configuration): Promise<RequestContext>;
|
|
56
|
+
updateSubscription(appId: string, subscriptionId: string, subscriptionBody: SubscriptionBody, _options?: Configuration): Promise<RequestContext>;
|
|
77
57
|
updateUser(appId: string, aliasLabel: string, aliasId: string, updateUserRequest: UpdateUserRequest, _options?: Configuration): Promise<RequestContext>;
|
|
78
58
|
}
|
|
79
59
|
export declare class DefaultApiResponseProcessor {
|
|
80
|
-
|
|
81
|
-
|
|
60
|
+
cancelNotification(response: ResponseContext): Promise<GenericSuccessBoolResponse>;
|
|
61
|
+
createAlias(response: ResponseContext): Promise<UserIdentityBody>;
|
|
62
|
+
createAliasBySubscription(response: ResponseContext): Promise<UserIdentityBody>;
|
|
82
63
|
createApp(response: ResponseContext): Promise<App>;
|
|
83
64
|
createNotification(response: ResponseContext): Promise<CreateNotificationSuccessResponse>;
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
createSubscription(response: ResponseContext): Promise<InlineResponse201>;
|
|
65
|
+
createSegment(response: ResponseContext): Promise<CreateSegmentSuccessResponse>;
|
|
66
|
+
createSubscription(response: ResponseContext): Promise<SubscriptionBody>;
|
|
87
67
|
createUser(response: ResponseContext): Promise<User>;
|
|
88
|
-
deleteAlias(response: ResponseContext): Promise<
|
|
89
|
-
|
|
90
|
-
deleteSegments(response: ResponseContext): Promise<DeleteSegmentSuccessResponse>;
|
|
68
|
+
deleteAlias(response: ResponseContext): Promise<UserIdentityBody>;
|
|
69
|
+
deleteSegment(response: ResponseContext): Promise<GenericSuccessBoolResponse>;
|
|
91
70
|
deleteSubscription(response: ResponseContext): Promise<void>;
|
|
92
71
|
deleteUser(response: ResponseContext): Promise<void>;
|
|
93
|
-
endLiveActivity(response: ResponseContext): Promise<void>;
|
|
94
72
|
exportEvents(response: ResponseContext): Promise<ExportEventsSuccessResponse>;
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
fetchUserIdentity(response: ResponseContext): Promise<InlineResponse200>;
|
|
73
|
+
exportSubscriptions(response: ResponseContext): Promise<ExportSubscriptionsSuccessResponse>;
|
|
74
|
+
getAliases(response: ResponseContext): Promise<UserIdentityBody>;
|
|
75
|
+
getAliasesBySubscription(response: ResponseContext): Promise<UserIdentityBody>;
|
|
99
76
|
getApp(response: ResponseContext): Promise<App>;
|
|
100
77
|
getApps(response: ResponseContext): Promise<Array<App>>;
|
|
101
|
-
getEligibleIams(response: ResponseContext): Promise<InlineResponse2003>;
|
|
102
78
|
getNotification(response: ResponseContext): Promise<NotificationWithMeta>;
|
|
103
79
|
getNotificationHistory(response: ResponseContext): Promise<NotificationHistorySuccessResponse>;
|
|
104
80
|
getNotifications(response: ResponseContext): Promise<NotificationSlice>;
|
|
105
81
|
getOutcomes(response: ResponseContext): Promise<OutcomesData>;
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
transferSubscription(response: ResponseContext): Promise<UserIdentityResponse>;
|
|
82
|
+
getSegments(response: ResponseContext): Promise<GetSegmentsSuccessResponse>;
|
|
83
|
+
getUser(response: ResponseContext): Promise<User>;
|
|
84
|
+
transferSubscription(response: ResponseContext): Promise<UserIdentityBody>;
|
|
85
|
+
unsubscribeEmailWithToken(response: ResponseContext): Promise<GenericSuccessBoolResponse>;
|
|
111
86
|
updateApp(response: ResponseContext): Promise<App>;
|
|
112
87
|
updateLiveActivity(response: ResponseContext): Promise<UpdateLiveActivitySuccessResponse>;
|
|
113
|
-
updatePlayer(response: ResponseContext): Promise<UpdatePlayerSuccessResponse>;
|
|
114
|
-
updatePlayerTags(response: ResponseContext): Promise<UpdatePlayerTagsSuccessResponse>;
|
|
115
88
|
updateSubscription(response: ResponseContext): Promise<void>;
|
|
116
|
-
updateUser(response: ResponseContext): Promise<
|
|
89
|
+
updateUser(response: ResponseContext): Promise<PropertiesBody>;
|
|
117
90
|
}
|