@onesignal/node-onesignal 2.1.0-beta1 → 5.0.0-alpha-02
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/README.md +7 -7
- package/apis/DefaultApi.ts +671 -1316
- package/auth/auth.ts +14 -14
- package/configuration.ts +6 -6
- package/dist/apis/DefaultApi.d.ts +36 -63
- package/dist/apis/DefaultApi.js +654 -1212
- 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/Filter.d.ts +6 -2
- package/dist/models/Filter.js +24 -0
- package/dist/models/Filter.js.map +1 -1
- 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/InvalidIdentifierError.d.ts +1 -1
- package/dist/models/InvalidIdentifierError.js +2 -2
- package/dist/models/InvalidIdentifierError.js.map +1 -1
- 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/Segment.d.ts +2 -2
- package/dist/models/Segment.js +1 -1
- package/dist/models/Segment.js.map +1 -1
- 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/all.d.ts +15 -32
- package/dist/models/all.js +15 -32
- package/dist/models/all.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/GenericErrorErrorsInner.ts +1 -1
- 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/RateLimiterError.ts +1 -1
- 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 +1 -1
- package/types/ObjectParamAPI.ts +161 -357
- package/types/ObservableAPI.ts +108 -301
- package/types/PromiseAPI.ts +89 -184
- 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
|
@@ -1,82 +1,62 @@
|
|
|
1
1
|
import { Configuration } from '../configuration';
|
|
2
2
|
import { Observable } from '../rxjsStub';
|
|
3
3
|
import { App } from '../models/App';
|
|
4
|
-
import { BeginLiveActivityRequest } from '../models/BeginLiveActivityRequest';
|
|
5
|
-
import { CancelNotificationSuccessResponse } from '../models/CancelNotificationSuccessResponse';
|
|
6
4
|
import { CreateNotificationSuccessResponse } from '../models/CreateNotificationSuccessResponse';
|
|
7
|
-
import { CreatePlayerSuccessResponse } from '../models/CreatePlayerSuccessResponse';
|
|
8
5
|
import { CreateSegmentSuccessResponse } from '../models/CreateSegmentSuccessResponse';
|
|
9
|
-
import { CreateSubscriptionRequestBody } from '../models/CreateSubscriptionRequestBody';
|
|
10
|
-
import { DeletePlayerSuccessResponse } from '../models/DeletePlayerSuccessResponse';
|
|
11
|
-
import { DeleteSegmentSuccessResponse } from '../models/DeleteSegmentSuccessResponse';
|
|
12
6
|
import { ExportEventsSuccessResponse } from '../models/ExportEventsSuccessResponse';
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { InlineResponse201 } from '../models/InlineResponse201';
|
|
19
|
-
import { InlineResponse202 } from '../models/InlineResponse202';
|
|
7
|
+
import { ExportSubscriptionsRequestBody } from '../models/ExportSubscriptionsRequestBody';
|
|
8
|
+
import { ExportSubscriptionsSuccessResponse } from '../models/ExportSubscriptionsSuccessResponse';
|
|
9
|
+
import { GenericSuccessBoolResponse } from '../models/GenericSuccessBoolResponse';
|
|
10
|
+
import { GetNotificationHistoryRequestBody } from '../models/GetNotificationHistoryRequestBody';
|
|
11
|
+
import { GetSegmentsSuccessResponse } from '../models/GetSegmentsSuccessResponse';
|
|
20
12
|
import { Notification } from '../models/Notification';
|
|
21
13
|
import { NotificationHistorySuccessResponse } from '../models/NotificationHistorySuccessResponse';
|
|
22
14
|
import { NotificationSlice } from '../models/NotificationSlice';
|
|
23
15
|
import { NotificationWithMeta } from '../models/NotificationWithMeta';
|
|
24
16
|
import { OutcomesData } from '../models/OutcomesData';
|
|
25
|
-
import {
|
|
26
|
-
import { PlayerSlice } from '../models/PlayerSlice';
|
|
17
|
+
import { PropertiesBody } from '../models/PropertiesBody';
|
|
27
18
|
import { Segment } from '../models/Segment';
|
|
19
|
+
import { SubscriptionBody } from '../models/SubscriptionBody';
|
|
28
20
|
import { TransferSubscriptionRequestBody } from '../models/TransferSubscriptionRequestBody';
|
|
29
21
|
import { UpdateLiveActivityRequest } from '../models/UpdateLiveActivityRequest';
|
|
30
22
|
import { UpdateLiveActivitySuccessResponse } from '../models/UpdateLiveActivitySuccessResponse';
|
|
31
|
-
import { UpdatePlayerSuccessResponse } from '../models/UpdatePlayerSuccessResponse';
|
|
32
|
-
import { UpdatePlayerTagsRequestBody } from '../models/UpdatePlayerTagsRequestBody';
|
|
33
|
-
import { UpdatePlayerTagsSuccessResponse } from '../models/UpdatePlayerTagsSuccessResponse';
|
|
34
|
-
import { UpdateSubscriptionRequestBody } from '../models/UpdateSubscriptionRequestBody';
|
|
35
23
|
import { UpdateUserRequest } from '../models/UpdateUserRequest';
|
|
36
24
|
import { User } from '../models/User';
|
|
37
|
-
import {
|
|
38
|
-
import { UserIdentityResponse } from '../models/UserIdentityResponse';
|
|
25
|
+
import { UserIdentityBody } from '../models/UserIdentityBody';
|
|
39
26
|
import { DefaultApiRequestFactory, DefaultApiResponseProcessor } from "../apis/DefaultApi";
|
|
40
27
|
export declare class ObservableDefaultApi {
|
|
41
28
|
private requestFactory;
|
|
42
29
|
private responseProcessor;
|
|
43
30
|
private configuration;
|
|
44
31
|
constructor(configuration: Configuration, requestFactory?: DefaultApiRequestFactory, responseProcessor?: DefaultApiResponseProcessor);
|
|
45
|
-
|
|
46
|
-
|
|
32
|
+
cancelNotification(appId: string, notificationId: string, _options?: Configuration): Observable<GenericSuccessBoolResponse>;
|
|
33
|
+
createAlias(appId: string, aliasLabel: string, aliasId: string, userIdentityBody: UserIdentityBody, _options?: Configuration): Observable<UserIdentityBody>;
|
|
34
|
+
createAliasBySubscription(appId: string, subscriptionId: string, userIdentityBody: UserIdentityBody, _options?: Configuration): Observable<UserIdentityBody>;
|
|
47
35
|
createApp(app: App, _options?: Configuration): Observable<App>;
|
|
48
36
|
createNotification(notification: Notification, _options?: Configuration): Observable<CreateNotificationSuccessResponse>;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
createSubscription(appId: string, aliasLabel: string, aliasId: string, createSubscriptionRequestBody: CreateSubscriptionRequestBody, _options?: Configuration): Observable<InlineResponse201>;
|
|
37
|
+
createSegment(appId: string, segment?: Segment, _options?: Configuration): Observable<CreateSegmentSuccessResponse>;
|
|
38
|
+
createSubscription(appId: string, aliasLabel: string, aliasId: string, subscriptionBody: SubscriptionBody, _options?: Configuration): Observable<SubscriptionBody>;
|
|
52
39
|
createUser(appId: string, user: User, _options?: Configuration): Observable<User>;
|
|
53
|
-
deleteAlias(appId: string, aliasLabel: string, aliasId: string, aliasLabelToDelete: string, _options?: Configuration): Observable<
|
|
54
|
-
|
|
55
|
-
deleteSegments(appId: string, segmentId: string, _options?: Configuration): Observable<DeleteSegmentSuccessResponse>;
|
|
40
|
+
deleteAlias(appId: string, aliasLabel: string, aliasId: string, aliasLabelToDelete: string, _options?: Configuration): Observable<UserIdentityBody>;
|
|
41
|
+
deleteSegment(appId: string, segmentId: string, _options?: Configuration): Observable<GenericSuccessBoolResponse>;
|
|
56
42
|
deleteSubscription(appId: string, subscriptionId: string, _options?: Configuration): Observable<void>;
|
|
57
43
|
deleteUser(appId: string, aliasLabel: string, aliasId: string, _options?: Configuration): Observable<void>;
|
|
58
|
-
endLiveActivity(appId: string, activityId: string, subscriptionId: string, _options?: Configuration): Observable<void>;
|
|
59
44
|
exportEvents(notificationId: string, appId: string, _options?: Configuration): Observable<ExportEventsSuccessResponse>;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
fetchUserIdentity(appId: string, aliasLabel: string, aliasId: string, _options?: Configuration): Observable<InlineResponse200>;
|
|
45
|
+
exportSubscriptions(appId: string, exportSubscriptionsRequestBody?: ExportSubscriptionsRequestBody, _options?: Configuration): Observable<ExportSubscriptionsSuccessResponse>;
|
|
46
|
+
getAliases(appId: string, aliasLabel: string, aliasId: string, _options?: Configuration): Observable<UserIdentityBody>;
|
|
47
|
+
getAliasesBySubscription(appId: string, subscriptionId: string, _options?: Configuration): Observable<UserIdentityBody>;
|
|
64
48
|
getApp(appId: string, _options?: Configuration): Observable<App>;
|
|
65
49
|
getApps(_options?: Configuration): Observable<Array<App>>;
|
|
66
|
-
getEligibleIams(appId: string, subscriptionId: string, _options?: Configuration): Observable<InlineResponse2003>;
|
|
67
50
|
getNotification(appId: string, notificationId: string, _options?: Configuration): Observable<NotificationWithMeta>;
|
|
68
|
-
getNotificationHistory(notificationId: string,
|
|
51
|
+
getNotificationHistory(notificationId: string, getNotificationHistoryRequestBody: GetNotificationHistoryRequestBody, _options?: Configuration): Observable<NotificationHistorySuccessResponse>;
|
|
69
52
|
getNotifications(appId: string, limit?: number, offset?: number, kind?: 0 | 1 | 3, _options?: Configuration): Observable<NotificationSlice>;
|
|
70
53
|
getOutcomes(appId: string, outcomeNames: string, outcomeNames2?: string, outcomeTimeRange?: string, outcomePlatforms?: string, outcomeAttribution?: string, _options?: Configuration): Observable<OutcomesData>;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
transferSubscription(appId: string, subscriptionId: string, transferSubscriptionRequestBody: TransferSubscriptionRequestBody, _options?: Configuration): Observable<UserIdentityResponse>;
|
|
54
|
+
getSegments(appId: string, offset?: number, limit?: number, _options?: Configuration): Observable<GetSegmentsSuccessResponse>;
|
|
55
|
+
getUser(appId: string, aliasLabel: string, aliasId: string, _options?: Configuration): Observable<User>;
|
|
56
|
+
transferSubscription(appId: string, subscriptionId: string, transferSubscriptionRequestBody: TransferSubscriptionRequestBody, _options?: Configuration): Observable<UserIdentityBody>;
|
|
57
|
+
unsubscribeEmailWithToken(appId: string, notificationId: string, token: string, _options?: Configuration): Observable<GenericSuccessBoolResponse>;
|
|
76
58
|
updateApp(appId: string, app: App, _options?: Configuration): Observable<App>;
|
|
77
59
|
updateLiveActivity(appId: string, activityId: string, updateLiveActivityRequest: UpdateLiveActivityRequest, _options?: Configuration): Observable<UpdateLiveActivitySuccessResponse>;
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
updateSubscription(appId: string, subscriptionId: string, updateSubscriptionRequestBody: UpdateSubscriptionRequestBody, _options?: Configuration): Observable<void>;
|
|
81
|
-
updateUser(appId: string, aliasLabel: string, aliasId: string, updateUserRequest: UpdateUserRequest, _options?: Configuration): Observable<InlineResponse202>;
|
|
60
|
+
updateSubscription(appId: string, subscriptionId: string, subscriptionBody: SubscriptionBody, _options?: Configuration): Observable<void>;
|
|
61
|
+
updateUser(appId: string, aliasLabel: string, aliasId: string, updateUserRequest: UpdateUserRequest, _options?: Configuration): Observable<PropertiesBody>;
|
|
82
62
|
}
|