@onesignal/node-onesignal 5.15.0 → 5.17.0
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/dist/apis/DefaultApi.d.ts +4 -0
- package/dist/apis/DefaultApi.js +104 -54
- package/dist/models/BasicNotification.d.ts +4 -0
- package/dist/models/BasicNotification.js +12 -0
- package/dist/models/BasicNotificationAllOf.d.ts +4 -0
- package/dist/models/BasicNotificationAllOf.js +12 -0
- package/dist/models/EmailWarmUp.d.ts +23 -0
- package/dist/models/EmailWarmUp.js +39 -0
- package/dist/models/EmailWarmUpRequest.d.ts +20 -0
- package/dist/models/EmailWarmUpRequest.js +27 -0
- package/dist/models/EmailWarmUpStage.d.ts +20 -0
- package/dist/models/EmailWarmUpStage.js +39 -0
- package/dist/models/EstimateNotificationRecipientsRequest.d.ts +26 -0
- package/dist/models/EstimateNotificationRecipientsRequest.js +51 -0
- package/dist/models/EstimateNotificationRecipientsRequestAllOf.d.ts +24 -0
- package/dist/models/EstimateNotificationRecipientsRequestAllOf.js +39 -0
- package/dist/models/EstimateNotificationRecipientsSuccessResponse.d.ts +21 -0
- package/dist/models/EstimateNotificationRecipientsSuccessResponse.js +45 -0
- package/dist/models/Notification.d.ts +4 -0
- package/dist/models/Notification.js +12 -0
- package/dist/models/NotificationWithMeta.d.ts +4 -0
- package/dist/models/NotificationWithMeta.js +12 -0
- package/dist/models/NotificationWithMetaAllOf.d.ts +2 -0
- package/dist/models/NotificationWithMetaAllOf.js +6 -0
- package/dist/models/ObjectSerializer.d.ts +6 -0
- package/dist/models/ObjectSerializer.js +27 -0
- package/dist/models/all.d.ts +6 -0
- package/dist/models/all.js +6 -0
- package/dist/types/ObjectParamAPI.d.ts +6 -0
- package/dist/types/ObjectParamAPI.js +3 -0
- package/dist/types/ObservableAPI.d.ts +3 -0
- package/dist/types/ObservableAPI.js +15 -0
- package/dist/types/PromiseAPI.d.ts +3 -0
- package/dist/types/PromiseAPI.js +4 -0
- package/package.json +1 -1
|
@@ -9,6 +9,8 @@ import { CreateNotificationSuccessResponse } from '../models/CreateNotificationS
|
|
|
9
9
|
import { CreateSegmentSuccessResponse } from '../models/CreateSegmentSuccessResponse';
|
|
10
10
|
import { CreateTemplateRequest } from '../models/CreateTemplateRequest';
|
|
11
11
|
import { CustomEventsRequest } from '../models/CustomEventsRequest';
|
|
12
|
+
import { EstimateNotificationRecipientsRequest } from '../models/EstimateNotificationRecipientsRequest';
|
|
13
|
+
import { EstimateNotificationRecipientsSuccessResponse } from '../models/EstimateNotificationRecipientsSuccessResponse';
|
|
12
14
|
import { ExportEventsSuccessResponse } from '../models/ExportEventsSuccessResponse';
|
|
13
15
|
import { ExportSubscriptionsRequestBody } from '../models/ExportSubscriptionsRequestBody';
|
|
14
16
|
import { ExportSubscriptionsSuccessResponse } from '../models/ExportSubscriptionsSuccessResponse';
|
|
@@ -131,6 +133,9 @@ export interface DefaultApiDeleteUserRequest {
|
|
|
131
133
|
aliasLabel: string;
|
|
132
134
|
aliasId: string;
|
|
133
135
|
}
|
|
136
|
+
export interface DefaultApiEstimateNotificationRecipientsRequest {
|
|
137
|
+
estimateNotificationRecipientsRequest: EstimateNotificationRecipientsRequest;
|
|
138
|
+
}
|
|
134
139
|
export interface DefaultApiExportEventsRequest {
|
|
135
140
|
notificationId: string;
|
|
136
141
|
appId: string;
|
|
@@ -325,6 +330,7 @@ export declare class ObjectDefaultApi {
|
|
|
325
330
|
deleteSubscription(param: DefaultApiDeleteSubscriptionRequest, options?: Configuration): Promise<void>;
|
|
326
331
|
deleteTemplate(param: DefaultApiDeleteTemplateRequest, options?: Configuration): Promise<GenericSuccessBoolResponse>;
|
|
327
332
|
deleteUser(param: DefaultApiDeleteUserRequest, options?: Configuration): Promise<void>;
|
|
333
|
+
estimateNotificationRecipients(param: DefaultApiEstimateNotificationRecipientsRequest, options?: Configuration): Promise<EstimateNotificationRecipientsSuccessResponse>;
|
|
328
334
|
exportEvents(param: DefaultApiExportEventsRequest, options?: Configuration): Promise<ExportEventsSuccessResponse>;
|
|
329
335
|
exportSubscriptions(param: DefaultApiExportSubscriptionsRequest, options?: Configuration): Promise<ExportSubscriptionsSuccessResponse>;
|
|
330
336
|
getAliases(param: DefaultApiGetAliasesRequest, options?: Configuration): Promise<UserIdentityBody>;
|
|
@@ -66,6 +66,9 @@ class ObjectDefaultApi {
|
|
|
66
66
|
deleteUser(param, options) {
|
|
67
67
|
return this.api.deleteUser(param.appId, param.aliasLabel, param.aliasId, options).toPromise();
|
|
68
68
|
}
|
|
69
|
+
estimateNotificationRecipients(param, options) {
|
|
70
|
+
return this.api.estimateNotificationRecipients(param.estimateNotificationRecipientsRequest, options).toPromise();
|
|
71
|
+
}
|
|
69
72
|
exportEvents(param, options) {
|
|
70
73
|
return this.api.exportEvents(param.notificationId, param.appId, options).toPromise();
|
|
71
74
|
}
|
|
@@ -10,6 +10,8 @@ import { CreateNotificationSuccessResponse } from '../models/CreateNotificationS
|
|
|
10
10
|
import { CreateSegmentSuccessResponse } from '../models/CreateSegmentSuccessResponse';
|
|
11
11
|
import { CreateTemplateRequest } from '../models/CreateTemplateRequest';
|
|
12
12
|
import { CustomEventsRequest } from '../models/CustomEventsRequest';
|
|
13
|
+
import { EstimateNotificationRecipientsRequest } from '../models/EstimateNotificationRecipientsRequest';
|
|
14
|
+
import { EstimateNotificationRecipientsSuccessResponse } from '../models/EstimateNotificationRecipientsSuccessResponse';
|
|
13
15
|
import { ExportEventsSuccessResponse } from '../models/ExportEventsSuccessResponse';
|
|
14
16
|
import { ExportSubscriptionsRequestBody } from '../models/ExportSubscriptionsRequestBody';
|
|
15
17
|
import { ExportSubscriptionsSuccessResponse } from '../models/ExportSubscriptionsSuccessResponse';
|
|
@@ -71,6 +73,7 @@ export declare class ObservableDefaultApi {
|
|
|
71
73
|
deleteSubscription(appId: string, subscriptionId: string, _options?: Configuration): Observable<void>;
|
|
72
74
|
deleteTemplate(templateId: string, appId: string, _options?: Configuration): Observable<GenericSuccessBoolResponse>;
|
|
73
75
|
deleteUser(appId: string, aliasLabel: string, aliasId: string, _options?: Configuration): Observable<void>;
|
|
76
|
+
estimateNotificationRecipients(estimateNotificationRecipientsRequest: EstimateNotificationRecipientsRequest, _options?: Configuration): Observable<EstimateNotificationRecipientsSuccessResponse>;
|
|
74
77
|
exportEvents(notificationId: string, appId: string, _options?: Configuration): Observable<ExportEventsSuccessResponse>;
|
|
75
78
|
exportSubscriptions(appId: string, exportSubscriptionsRequestBody?: ExportSubscriptionsRequestBody, _options?: Configuration): Observable<ExportSubscriptionsSuccessResponse>;
|
|
76
79
|
getAliases(appId: string, aliasLabel: string, aliasId: string, _options?: Configuration): Observable<UserIdentityBody>;
|
|
@@ -310,6 +310,21 @@ class ObservableDefaultApi {
|
|
|
310
310
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.deleteUser(rsp)));
|
|
311
311
|
}));
|
|
312
312
|
}
|
|
313
|
+
estimateNotificationRecipients(estimateNotificationRecipientsRequest, _options) {
|
|
314
|
+
const requestContextPromise = this.requestFactory.estimateNotificationRecipients(estimateNotificationRecipientsRequest, _options);
|
|
315
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
316
|
+
for (let middleware of this.configuration.middleware) {
|
|
317
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
318
|
+
}
|
|
319
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
320
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
321
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
322
|
+
for (let middleware of this.configuration.middleware) {
|
|
323
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
324
|
+
}
|
|
325
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.estimateNotificationRecipients(rsp)));
|
|
326
|
+
}));
|
|
327
|
+
}
|
|
313
328
|
exportEvents(notificationId, appId, _options) {
|
|
314
329
|
const requestContextPromise = this.requestFactory.exportEvents(notificationId, appId, _options);
|
|
315
330
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
@@ -11,6 +11,8 @@ import { CreateNotificationSuccessResponse } from '../models/CreateNotificationS
|
|
|
11
11
|
import { CreateSegmentSuccessResponse } from '../models/CreateSegmentSuccessResponse';
|
|
12
12
|
import { CreateTemplateRequest } from '../models/CreateTemplateRequest';
|
|
13
13
|
import { CustomEventsRequest } from '../models/CustomEventsRequest';
|
|
14
|
+
import { EstimateNotificationRecipientsRequest } from '../models/EstimateNotificationRecipientsRequest';
|
|
15
|
+
import { EstimateNotificationRecipientsSuccessResponse } from '../models/EstimateNotificationRecipientsSuccessResponse';
|
|
14
16
|
import { ExportEventsSuccessResponse } from '../models/ExportEventsSuccessResponse';
|
|
15
17
|
import { ExportSubscriptionsRequestBody } from '../models/ExportSubscriptionsRequestBody';
|
|
16
18
|
import { ExportSubscriptionsSuccessResponse } from '../models/ExportSubscriptionsSuccessResponse';
|
|
@@ -72,6 +74,7 @@ export declare class PromiseDefaultApi {
|
|
|
72
74
|
deleteSubscription(appId: string, subscriptionId: string, _options?: Configuration): Promise<void>;
|
|
73
75
|
deleteTemplate(templateId: string, appId: string, _options?: Configuration): Promise<GenericSuccessBoolResponse>;
|
|
74
76
|
deleteUser(appId: string, aliasLabel: string, aliasId: string, _options?: Configuration): Promise<void>;
|
|
77
|
+
estimateNotificationRecipients(estimateNotificationRecipientsRequest: EstimateNotificationRecipientsRequest, _options?: Configuration): Promise<EstimateNotificationRecipientsSuccessResponse>;
|
|
75
78
|
exportEvents(notificationId: string, appId: string, _options?: Configuration): Promise<ExportEventsSuccessResponse>;
|
|
76
79
|
exportSubscriptions(appId: string, exportSubscriptionsRequestBody?: ExportSubscriptionsRequestBody, _options?: Configuration): Promise<ExportSubscriptionsSuccessResponse>;
|
|
77
80
|
getAliases(appId: string, aliasLabel: string, aliasId: string, _options?: Configuration): Promise<UserIdentityBody>;
|
package/dist/types/PromiseAPI.js
CHANGED
|
@@ -91,6 +91,10 @@ class PromiseDefaultApi {
|
|
|
91
91
|
const result = this.api.deleteUser(appId, aliasLabel, aliasId, _options);
|
|
92
92
|
return result.toPromise();
|
|
93
93
|
}
|
|
94
|
+
estimateNotificationRecipients(estimateNotificationRecipientsRequest, _options) {
|
|
95
|
+
const result = this.api.estimateNotificationRecipients(estimateNotificationRecipientsRequest, _options);
|
|
96
|
+
return result.toPromise();
|
|
97
|
+
}
|
|
94
98
|
exportEvents(notificationId, appId, _options) {
|
|
95
99
|
const result = this.api.exportEvents(notificationId, appId, _options);
|
|
96
100
|
return result.toPromise();
|