@onesignal/node-onesignal 5.16.0 → 5.18.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 +7 -0
- package/dist/apis/DefaultApi.js +153 -54
- package/dist/models/EmailReputationResponse.d.ts +20 -0
- package/dist/models/EmailReputationResponse.js +33 -0
- package/dist/models/EmailReputationWindow.d.ts +18 -0
- package/dist/models/EmailReputationWindow.js +27 -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/ObjectSerializer.d.ts +5 -0
- package/dist/models/ObjectSerializer.js +17 -0
- package/dist/models/all.d.ts +5 -0
- package/dist/models/all.js +5 -0
- package/dist/types/ObjectParamAPI.d.ts +11 -0
- package/dist/types/ObjectParamAPI.js +6 -0
- package/dist/types/ObservableAPI.d.ts +5 -0
- package/dist/types/ObservableAPI.js +30 -0
- package/dist/types/PromiseAPI.d.ts +5 -0
- package/dist/types/PromiseAPI.js +8 -0
- package/package.json +1 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EmailReputationResponse = void 0;
|
|
4
|
+
class EmailReputationResponse {
|
|
5
|
+
static getAttributeTypeMap() {
|
|
6
|
+
return EmailReputationResponse.attributeTypeMap;
|
|
7
|
+
}
|
|
8
|
+
constructor() {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.EmailReputationResponse = EmailReputationResponse;
|
|
12
|
+
EmailReputationResponse.discriminator = undefined;
|
|
13
|
+
EmailReputationResponse.attributeTypeMap = [
|
|
14
|
+
{
|
|
15
|
+
"name": "last_24_hours",
|
|
16
|
+
"baseName": "last_24_hours",
|
|
17
|
+
"type": "EmailReputationWindow",
|
|
18
|
+
"format": ""
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "last_7_days",
|
|
22
|
+
"baseName": "last_7_days",
|
|
23
|
+
"type": "EmailReputationWindow",
|
|
24
|
+
"format": ""
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "last_30_days",
|
|
28
|
+
"baseName": "last_30_days",
|
|
29
|
+
"type": "EmailReputationWindow",
|
|
30
|
+
"format": ""
|
|
31
|
+
}
|
|
32
|
+
];
|
|
33
|
+
//# sourceMappingURL=EmailReputationResponse.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare class EmailReputationWindow {
|
|
2
|
+
'bounce_rate'?: number;
|
|
3
|
+
'complaint_rate'?: number;
|
|
4
|
+
static readonly discriminator: string | undefined;
|
|
5
|
+
static readonly attributeTypeMap: Array<{
|
|
6
|
+
name: string;
|
|
7
|
+
baseName: string;
|
|
8
|
+
type: string;
|
|
9
|
+
format: string;
|
|
10
|
+
}>;
|
|
11
|
+
static getAttributeTypeMap(): {
|
|
12
|
+
name: string;
|
|
13
|
+
baseName: string;
|
|
14
|
+
type: string;
|
|
15
|
+
format: string;
|
|
16
|
+
}[];
|
|
17
|
+
constructor();
|
|
18
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EmailReputationWindow = void 0;
|
|
4
|
+
class EmailReputationWindow {
|
|
5
|
+
static getAttributeTypeMap() {
|
|
6
|
+
return EmailReputationWindow.attributeTypeMap;
|
|
7
|
+
}
|
|
8
|
+
constructor() {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.EmailReputationWindow = EmailReputationWindow;
|
|
12
|
+
EmailReputationWindow.discriminator = undefined;
|
|
13
|
+
EmailReputationWindow.attributeTypeMap = [
|
|
14
|
+
{
|
|
15
|
+
"name": "bounce_rate",
|
|
16
|
+
"baseName": "bounce_rate",
|
|
17
|
+
"type": "number",
|
|
18
|
+
"format": "double"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "complaint_rate",
|
|
22
|
+
"baseName": "complaint_rate",
|
|
23
|
+
"type": "number",
|
|
24
|
+
"format": "double"
|
|
25
|
+
}
|
|
26
|
+
];
|
|
27
|
+
//# sourceMappingURL=EmailReputationWindow.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { FilterExpression } from './FilterExpression';
|
|
2
|
+
export declare class EstimateNotificationRecipientsRequest {
|
|
3
|
+
'included_segments'?: Array<string>;
|
|
4
|
+
'excluded_segments'?: Array<string>;
|
|
5
|
+
'app_id': string;
|
|
6
|
+
'filters'?: Array<FilterExpression>;
|
|
7
|
+
'include_aliases'?: {
|
|
8
|
+
[key: string]: Array<string>;
|
|
9
|
+
};
|
|
10
|
+
'target_channel'?: EstimateNotificationRecipientsRequestTargetChannelEnum;
|
|
11
|
+
static readonly discriminator: string | undefined;
|
|
12
|
+
static readonly attributeTypeMap: Array<{
|
|
13
|
+
name: string;
|
|
14
|
+
baseName: string;
|
|
15
|
+
type: string;
|
|
16
|
+
format: string;
|
|
17
|
+
}>;
|
|
18
|
+
static getAttributeTypeMap(): {
|
|
19
|
+
name: string;
|
|
20
|
+
baseName: string;
|
|
21
|
+
type: string;
|
|
22
|
+
format: string;
|
|
23
|
+
}[];
|
|
24
|
+
constructor();
|
|
25
|
+
}
|
|
26
|
+
export type EstimateNotificationRecipientsRequestTargetChannelEnum = "push" | "email" | "sms";
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EstimateNotificationRecipientsRequest = void 0;
|
|
4
|
+
class EstimateNotificationRecipientsRequest {
|
|
5
|
+
static getAttributeTypeMap() {
|
|
6
|
+
return EstimateNotificationRecipientsRequest.attributeTypeMap;
|
|
7
|
+
}
|
|
8
|
+
constructor() {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.EstimateNotificationRecipientsRequest = EstimateNotificationRecipientsRequest;
|
|
12
|
+
EstimateNotificationRecipientsRequest.discriminator = undefined;
|
|
13
|
+
EstimateNotificationRecipientsRequest.attributeTypeMap = [
|
|
14
|
+
{
|
|
15
|
+
"name": "included_segments",
|
|
16
|
+
"baseName": "included_segments",
|
|
17
|
+
"type": "Array<string>",
|
|
18
|
+
"format": ""
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "excluded_segments",
|
|
22
|
+
"baseName": "excluded_segments",
|
|
23
|
+
"type": "Array<string>",
|
|
24
|
+
"format": ""
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "app_id",
|
|
28
|
+
"baseName": "app_id",
|
|
29
|
+
"type": "string",
|
|
30
|
+
"format": ""
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "filters",
|
|
34
|
+
"baseName": "filters",
|
|
35
|
+
"type": "Array<FilterExpression>",
|
|
36
|
+
"format": ""
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "include_aliases",
|
|
40
|
+
"baseName": "include_aliases",
|
|
41
|
+
"type": "{ [key: string]: Array<string>; }",
|
|
42
|
+
"format": ""
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "target_channel",
|
|
46
|
+
"baseName": "target_channel",
|
|
47
|
+
"type": "EstimateNotificationRecipientsRequestTargetChannelEnum",
|
|
48
|
+
"format": ""
|
|
49
|
+
}
|
|
50
|
+
];
|
|
51
|
+
//# sourceMappingURL=EstimateNotificationRecipientsRequest.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { FilterExpression } from './FilterExpression';
|
|
2
|
+
export declare class EstimateNotificationRecipientsRequestAllOf {
|
|
3
|
+
'app_id'?: string;
|
|
4
|
+
'filters'?: Array<FilterExpression>;
|
|
5
|
+
'include_aliases'?: {
|
|
6
|
+
[key: string]: Array<string>;
|
|
7
|
+
};
|
|
8
|
+
'target_channel'?: EstimateNotificationRecipientsRequestAllOfTargetChannelEnum;
|
|
9
|
+
static readonly discriminator: string | undefined;
|
|
10
|
+
static readonly attributeTypeMap: Array<{
|
|
11
|
+
name: string;
|
|
12
|
+
baseName: string;
|
|
13
|
+
type: string;
|
|
14
|
+
format: string;
|
|
15
|
+
}>;
|
|
16
|
+
static getAttributeTypeMap(): {
|
|
17
|
+
name: string;
|
|
18
|
+
baseName: string;
|
|
19
|
+
type: string;
|
|
20
|
+
format: string;
|
|
21
|
+
}[];
|
|
22
|
+
constructor();
|
|
23
|
+
}
|
|
24
|
+
export type EstimateNotificationRecipientsRequestAllOfTargetChannelEnum = "push" | "email" | "sms";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EstimateNotificationRecipientsRequestAllOf = void 0;
|
|
4
|
+
class EstimateNotificationRecipientsRequestAllOf {
|
|
5
|
+
static getAttributeTypeMap() {
|
|
6
|
+
return EstimateNotificationRecipientsRequestAllOf.attributeTypeMap;
|
|
7
|
+
}
|
|
8
|
+
constructor() {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.EstimateNotificationRecipientsRequestAllOf = EstimateNotificationRecipientsRequestAllOf;
|
|
12
|
+
EstimateNotificationRecipientsRequestAllOf.discriminator = undefined;
|
|
13
|
+
EstimateNotificationRecipientsRequestAllOf.attributeTypeMap = [
|
|
14
|
+
{
|
|
15
|
+
"name": "app_id",
|
|
16
|
+
"baseName": "app_id",
|
|
17
|
+
"type": "string",
|
|
18
|
+
"format": ""
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "filters",
|
|
22
|
+
"baseName": "filters",
|
|
23
|
+
"type": "Array<FilterExpression>",
|
|
24
|
+
"format": ""
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "include_aliases",
|
|
28
|
+
"baseName": "include_aliases",
|
|
29
|
+
"type": "{ [key: string]: Array<string>; }",
|
|
30
|
+
"format": ""
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "target_channel",
|
|
34
|
+
"baseName": "target_channel",
|
|
35
|
+
"type": "EstimateNotificationRecipientsRequestAllOfTargetChannelEnum",
|
|
36
|
+
"format": ""
|
|
37
|
+
}
|
|
38
|
+
];
|
|
39
|
+
//# sourceMappingURL=EstimateNotificationRecipientsRequestAllOf.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare class EstimateNotificationRecipientsSuccessResponse {
|
|
2
|
+
'count'?: number;
|
|
3
|
+
'uncapped_count'?: number;
|
|
4
|
+
'cap_applied'?: boolean;
|
|
5
|
+
'mobile_suppressed'?: boolean;
|
|
6
|
+
'mobile_excluded_count'?: number;
|
|
7
|
+
static readonly discriminator: string | undefined;
|
|
8
|
+
static readonly attributeTypeMap: Array<{
|
|
9
|
+
name: string;
|
|
10
|
+
baseName: string;
|
|
11
|
+
type: string;
|
|
12
|
+
format: string;
|
|
13
|
+
}>;
|
|
14
|
+
static getAttributeTypeMap(): {
|
|
15
|
+
name: string;
|
|
16
|
+
baseName: string;
|
|
17
|
+
type: string;
|
|
18
|
+
format: string;
|
|
19
|
+
}[];
|
|
20
|
+
constructor();
|
|
21
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EstimateNotificationRecipientsSuccessResponse = void 0;
|
|
4
|
+
class EstimateNotificationRecipientsSuccessResponse {
|
|
5
|
+
static getAttributeTypeMap() {
|
|
6
|
+
return EstimateNotificationRecipientsSuccessResponse.attributeTypeMap;
|
|
7
|
+
}
|
|
8
|
+
constructor() {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.EstimateNotificationRecipientsSuccessResponse = EstimateNotificationRecipientsSuccessResponse;
|
|
12
|
+
EstimateNotificationRecipientsSuccessResponse.discriminator = undefined;
|
|
13
|
+
EstimateNotificationRecipientsSuccessResponse.attributeTypeMap = [
|
|
14
|
+
{
|
|
15
|
+
"name": "count",
|
|
16
|
+
"baseName": "count",
|
|
17
|
+
"type": "number",
|
|
18
|
+
"format": ""
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "uncapped_count",
|
|
22
|
+
"baseName": "uncapped_count",
|
|
23
|
+
"type": "number",
|
|
24
|
+
"format": ""
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "cap_applied",
|
|
28
|
+
"baseName": "cap_applied",
|
|
29
|
+
"type": "boolean",
|
|
30
|
+
"format": ""
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "mobile_suppressed",
|
|
34
|
+
"baseName": "mobile_suppressed",
|
|
35
|
+
"type": "boolean",
|
|
36
|
+
"format": ""
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "mobile_excluded_count",
|
|
40
|
+
"baseName": "mobile_excluded_count",
|
|
41
|
+
"type": "number",
|
|
42
|
+
"format": ""
|
|
43
|
+
}
|
|
44
|
+
];
|
|
45
|
+
//# sourceMappingURL=EstimateNotificationRecipientsSuccessResponse.js.map
|
|
@@ -23,9 +23,14 @@ export * from './CreateUserConflictResponseErrorsItemsMeta';
|
|
|
23
23
|
export * from './CustomEvent';
|
|
24
24
|
export * from './CustomEventsRequest';
|
|
25
25
|
export * from './DeliveryData';
|
|
26
|
+
export * from './EmailReputationResponse';
|
|
27
|
+
export * from './EmailReputationWindow';
|
|
26
28
|
export * from './EmailWarmUp';
|
|
27
29
|
export * from './EmailWarmUpRequest';
|
|
28
30
|
export * from './EmailWarmUpStage';
|
|
31
|
+
export * from './EstimateNotificationRecipientsRequest';
|
|
32
|
+
export * from './EstimateNotificationRecipientsRequestAllOf';
|
|
33
|
+
export * from './EstimateNotificationRecipientsSuccessResponse';
|
|
29
34
|
export * from './ExportEventsSuccessResponse';
|
|
30
35
|
export * from './ExportSubscriptionsRequestBody';
|
|
31
36
|
export * from './ExportSubscriptionsSuccessResponse';
|
|
@@ -40,9 +40,14 @@ __exportStar(require("./CreateUserConflictResponseErrorsItemsMeta"), exports);
|
|
|
40
40
|
__exportStar(require("./CustomEvent"), exports);
|
|
41
41
|
__exportStar(require("./CustomEventsRequest"), exports);
|
|
42
42
|
__exportStar(require("./DeliveryData"), exports);
|
|
43
|
+
__exportStar(require("./EmailReputationResponse"), exports);
|
|
44
|
+
__exportStar(require("./EmailReputationWindow"), exports);
|
|
43
45
|
__exportStar(require("./EmailWarmUp"), exports);
|
|
44
46
|
__exportStar(require("./EmailWarmUpRequest"), exports);
|
|
45
47
|
__exportStar(require("./EmailWarmUpStage"), exports);
|
|
48
|
+
__exportStar(require("./EstimateNotificationRecipientsRequest"), exports);
|
|
49
|
+
__exportStar(require("./EstimateNotificationRecipientsRequestAllOf"), exports);
|
|
50
|
+
__exportStar(require("./EstimateNotificationRecipientsSuccessResponse"), exports);
|
|
46
51
|
__exportStar(require("./ExportEventsSuccessResponse"), exports);
|
|
47
52
|
__exportStar(require("./ExportSubscriptionsRequestBody"), exports);
|
|
48
53
|
__exportStar(require("./ExportSubscriptionsSuccessResponse"), exports);
|
|
@@ -144,9 +149,14 @@ const CreateUserConflictResponseErrorsItemsMeta_1 = require("./CreateUserConflic
|
|
|
144
149
|
const CustomEvent_1 = require("./CustomEvent");
|
|
145
150
|
const CustomEventsRequest_1 = require("./CustomEventsRequest");
|
|
146
151
|
const DeliveryData_1 = require("./DeliveryData");
|
|
152
|
+
const EmailReputationResponse_1 = require("./EmailReputationResponse");
|
|
153
|
+
const EmailReputationWindow_1 = require("./EmailReputationWindow");
|
|
147
154
|
const EmailWarmUp_1 = require("./EmailWarmUp");
|
|
148
155
|
const EmailWarmUpRequest_1 = require("./EmailWarmUpRequest");
|
|
149
156
|
const EmailWarmUpStage_1 = require("./EmailWarmUpStage");
|
|
157
|
+
const EstimateNotificationRecipientsRequest_1 = require("./EstimateNotificationRecipientsRequest");
|
|
158
|
+
const EstimateNotificationRecipientsRequestAllOf_1 = require("./EstimateNotificationRecipientsRequestAllOf");
|
|
159
|
+
const EstimateNotificationRecipientsSuccessResponse_1 = require("./EstimateNotificationRecipientsSuccessResponse");
|
|
150
160
|
const ExportEventsSuccessResponse_1 = require("./ExportEventsSuccessResponse");
|
|
151
161
|
const ExportSubscriptionsRequestBody_1 = require("./ExportSubscriptionsRequestBody");
|
|
152
162
|
const ExportSubscriptionsSuccessResponse_1 = require("./ExportSubscriptionsSuccessResponse");
|
|
@@ -252,6 +262,8 @@ let enumsMap = new Set([
|
|
|
252
262
|
"EmailWarmUpStrategyEnum",
|
|
253
263
|
"EmailWarmUpStatusEnum",
|
|
254
264
|
"EmailWarmUpRequestStrategyEnum",
|
|
265
|
+
"EstimateNotificationRecipientsRequestTargetChannelEnum",
|
|
266
|
+
"EstimateNotificationRecipientsRequestAllOfTargetChannelEnum",
|
|
255
267
|
"FilterRelationEnum",
|
|
256
268
|
"FilterExpressionRelationEnum",
|
|
257
269
|
"FilterExpressionOperatorEnum",
|
|
@@ -313,9 +325,14 @@ let typeMap = {
|
|
|
313
325
|
"CustomEvent": CustomEvent_1.CustomEvent,
|
|
314
326
|
"CustomEventsRequest": CustomEventsRequest_1.CustomEventsRequest,
|
|
315
327
|
"DeliveryData": DeliveryData_1.DeliveryData,
|
|
328
|
+
"EmailReputationResponse": EmailReputationResponse_1.EmailReputationResponse,
|
|
329
|
+
"EmailReputationWindow": EmailReputationWindow_1.EmailReputationWindow,
|
|
316
330
|
"EmailWarmUp": EmailWarmUp_1.EmailWarmUp,
|
|
317
331
|
"EmailWarmUpRequest": EmailWarmUpRequest_1.EmailWarmUpRequest,
|
|
318
332
|
"EmailWarmUpStage": EmailWarmUpStage_1.EmailWarmUpStage,
|
|
333
|
+
"EstimateNotificationRecipientsRequest": EstimateNotificationRecipientsRequest_1.EstimateNotificationRecipientsRequest,
|
|
334
|
+
"EstimateNotificationRecipientsRequestAllOf": EstimateNotificationRecipientsRequestAllOf_1.EstimateNotificationRecipientsRequestAllOf,
|
|
335
|
+
"EstimateNotificationRecipientsSuccessResponse": EstimateNotificationRecipientsSuccessResponse_1.EstimateNotificationRecipientsSuccessResponse,
|
|
319
336
|
"ExportEventsSuccessResponse": ExportEventsSuccessResponse_1.ExportEventsSuccessResponse,
|
|
320
337
|
"ExportSubscriptionsRequestBody": ExportSubscriptionsRequestBody_1.ExportSubscriptionsRequestBody,
|
|
321
338
|
"ExportSubscriptionsSuccessResponse": ExportSubscriptionsSuccessResponse_1.ExportSubscriptionsSuccessResponse,
|
package/dist/models/all.d.ts
CHANGED
|
@@ -23,9 +23,14 @@ export * from './CreateUserConflictResponseErrorsItemsMeta';
|
|
|
23
23
|
export * from './CustomEvent';
|
|
24
24
|
export * from './CustomEventsRequest';
|
|
25
25
|
export * from './DeliveryData';
|
|
26
|
+
export * from './EmailReputationResponse';
|
|
27
|
+
export * from './EmailReputationWindow';
|
|
26
28
|
export * from './EmailWarmUp';
|
|
27
29
|
export * from './EmailWarmUpRequest';
|
|
28
30
|
export * from './EmailWarmUpStage';
|
|
31
|
+
export * from './EstimateNotificationRecipientsRequest';
|
|
32
|
+
export * from './EstimateNotificationRecipientsRequestAllOf';
|
|
33
|
+
export * from './EstimateNotificationRecipientsSuccessResponse';
|
|
29
34
|
export * from './ExportEventsSuccessResponse';
|
|
30
35
|
export * from './ExportSubscriptionsRequestBody';
|
|
31
36
|
export * from './ExportSubscriptionsSuccessResponse';
|
package/dist/models/all.js
CHANGED
|
@@ -39,9 +39,14 @@ __exportStar(require("./CreateUserConflictResponseErrorsItemsMeta"), exports);
|
|
|
39
39
|
__exportStar(require("./CustomEvent"), exports);
|
|
40
40
|
__exportStar(require("./CustomEventsRequest"), exports);
|
|
41
41
|
__exportStar(require("./DeliveryData"), exports);
|
|
42
|
+
__exportStar(require("./EmailReputationResponse"), exports);
|
|
43
|
+
__exportStar(require("./EmailReputationWindow"), exports);
|
|
42
44
|
__exportStar(require("./EmailWarmUp"), exports);
|
|
43
45
|
__exportStar(require("./EmailWarmUpRequest"), exports);
|
|
44
46
|
__exportStar(require("./EmailWarmUpStage"), exports);
|
|
47
|
+
__exportStar(require("./EstimateNotificationRecipientsRequest"), exports);
|
|
48
|
+
__exportStar(require("./EstimateNotificationRecipientsRequestAllOf"), exports);
|
|
49
|
+
__exportStar(require("./EstimateNotificationRecipientsSuccessResponse"), exports);
|
|
45
50
|
__exportStar(require("./ExportEventsSuccessResponse"), exports);
|
|
46
51
|
__exportStar(require("./ExportSubscriptionsRequestBody"), exports);
|
|
47
52
|
__exportStar(require("./ExportSubscriptionsSuccessResponse"), exports);
|
|
@@ -9,6 +9,9 @@ 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 { EmailReputationResponse } from '../models/EmailReputationResponse';
|
|
13
|
+
import { EstimateNotificationRecipientsRequest } from '../models/EstimateNotificationRecipientsRequest';
|
|
14
|
+
import { EstimateNotificationRecipientsSuccessResponse } from '../models/EstimateNotificationRecipientsSuccessResponse';
|
|
12
15
|
import { ExportEventsSuccessResponse } from '../models/ExportEventsSuccessResponse';
|
|
13
16
|
import { ExportSubscriptionsRequestBody } from '../models/ExportSubscriptionsRequestBody';
|
|
14
17
|
import { ExportSubscriptionsSuccessResponse } from '../models/ExportSubscriptionsSuccessResponse';
|
|
@@ -131,6 +134,9 @@ export interface DefaultApiDeleteUserRequest {
|
|
|
131
134
|
aliasLabel: string;
|
|
132
135
|
aliasId: string;
|
|
133
136
|
}
|
|
137
|
+
export interface DefaultApiEstimateNotificationRecipientsRequest {
|
|
138
|
+
estimateNotificationRecipientsRequest: EstimateNotificationRecipientsRequest;
|
|
139
|
+
}
|
|
134
140
|
export interface DefaultApiExportEventsRequest {
|
|
135
141
|
notificationId: string;
|
|
136
142
|
appId: string;
|
|
@@ -153,6 +159,9 @@ export interface DefaultApiGetAppRequest {
|
|
|
153
159
|
}
|
|
154
160
|
export interface DefaultApiGetAppsRequest {
|
|
155
161
|
}
|
|
162
|
+
export interface DefaultApiGetEmailReputationRequest {
|
|
163
|
+
appId: string;
|
|
164
|
+
}
|
|
156
165
|
export interface DefaultApiGetNotificationRequest {
|
|
157
166
|
appId: string;
|
|
158
167
|
notificationId: string;
|
|
@@ -325,12 +334,14 @@ export declare class ObjectDefaultApi {
|
|
|
325
334
|
deleteSubscription(param: DefaultApiDeleteSubscriptionRequest, options?: Configuration): Promise<void>;
|
|
326
335
|
deleteTemplate(param: DefaultApiDeleteTemplateRequest, options?: Configuration): Promise<GenericSuccessBoolResponse>;
|
|
327
336
|
deleteUser(param: DefaultApiDeleteUserRequest, options?: Configuration): Promise<void>;
|
|
337
|
+
estimateNotificationRecipients(param: DefaultApiEstimateNotificationRecipientsRequest, options?: Configuration): Promise<EstimateNotificationRecipientsSuccessResponse>;
|
|
328
338
|
exportEvents(param: DefaultApiExportEventsRequest, options?: Configuration): Promise<ExportEventsSuccessResponse>;
|
|
329
339
|
exportSubscriptions(param: DefaultApiExportSubscriptionsRequest, options?: Configuration): Promise<ExportSubscriptionsSuccessResponse>;
|
|
330
340
|
getAliases(param: DefaultApiGetAliasesRequest, options?: Configuration): Promise<UserIdentityBody>;
|
|
331
341
|
getAliasesBySubscription(param: DefaultApiGetAliasesBySubscriptionRequest, options?: Configuration): Promise<UserIdentityBody>;
|
|
332
342
|
getApp(param: DefaultApiGetAppRequest, options?: Configuration): Promise<App>;
|
|
333
343
|
getApps(param?: DefaultApiGetAppsRequest, options?: Configuration): Promise<Array<App>>;
|
|
344
|
+
getEmailReputation(param: DefaultApiGetEmailReputationRequest, options?: Configuration): Promise<EmailReputationResponse>;
|
|
334
345
|
getNotification(param: DefaultApiGetNotificationRequest, options?: Configuration): Promise<NotificationWithMeta>;
|
|
335
346
|
getNotificationHistory(param: DefaultApiGetNotificationHistoryRequest, options?: Configuration): Promise<NotificationHistorySuccessResponse>;
|
|
336
347
|
getNotifications(param: DefaultApiGetNotificationsRequest, options?: Configuration): Promise<NotificationSlice>;
|
|
@@ -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
|
}
|
|
@@ -84,6 +87,9 @@ class ObjectDefaultApi {
|
|
|
84
87
|
getApps(param = {}, options) {
|
|
85
88
|
return this.api.getApps(options).toPromise();
|
|
86
89
|
}
|
|
90
|
+
getEmailReputation(param, options) {
|
|
91
|
+
return this.api.getEmailReputation(param.appId, options).toPromise();
|
|
92
|
+
}
|
|
87
93
|
getNotification(param, options) {
|
|
88
94
|
return this.api.getNotification(param.appId, param.notificationId, options).toPromise();
|
|
89
95
|
}
|
|
@@ -10,6 +10,9 @@ 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 { EmailReputationResponse } from '../models/EmailReputationResponse';
|
|
14
|
+
import { EstimateNotificationRecipientsRequest } from '../models/EstimateNotificationRecipientsRequest';
|
|
15
|
+
import { EstimateNotificationRecipientsSuccessResponse } from '../models/EstimateNotificationRecipientsSuccessResponse';
|
|
13
16
|
import { ExportEventsSuccessResponse } from '../models/ExportEventsSuccessResponse';
|
|
14
17
|
import { ExportSubscriptionsRequestBody } from '../models/ExportSubscriptionsRequestBody';
|
|
15
18
|
import { ExportSubscriptionsSuccessResponse } from '../models/ExportSubscriptionsSuccessResponse';
|
|
@@ -71,12 +74,14 @@ export declare class ObservableDefaultApi {
|
|
|
71
74
|
deleteSubscription(appId: string, subscriptionId: string, _options?: Configuration): Observable<void>;
|
|
72
75
|
deleteTemplate(templateId: string, appId: string, _options?: Configuration): Observable<GenericSuccessBoolResponse>;
|
|
73
76
|
deleteUser(appId: string, aliasLabel: string, aliasId: string, _options?: Configuration): Observable<void>;
|
|
77
|
+
estimateNotificationRecipients(estimateNotificationRecipientsRequest: EstimateNotificationRecipientsRequest, _options?: Configuration): Observable<EstimateNotificationRecipientsSuccessResponse>;
|
|
74
78
|
exportEvents(notificationId: string, appId: string, _options?: Configuration): Observable<ExportEventsSuccessResponse>;
|
|
75
79
|
exportSubscriptions(appId: string, exportSubscriptionsRequestBody?: ExportSubscriptionsRequestBody, _options?: Configuration): Observable<ExportSubscriptionsSuccessResponse>;
|
|
76
80
|
getAliases(appId: string, aliasLabel: string, aliasId: string, _options?: Configuration): Observable<UserIdentityBody>;
|
|
77
81
|
getAliasesBySubscription(appId: string, subscriptionId: string, _options?: Configuration): Observable<UserIdentityBody>;
|
|
78
82
|
getApp(appId: string, _options?: Configuration): Observable<App>;
|
|
79
83
|
getApps(_options?: Configuration): Observable<Array<App>>;
|
|
84
|
+
getEmailReputation(appId: string, _options?: Configuration): Observable<EmailReputationResponse>;
|
|
80
85
|
getNotification(appId: string, notificationId: string, _options?: Configuration): Observable<NotificationWithMeta>;
|
|
81
86
|
getNotificationHistory(notificationId: string, getNotificationHistoryRequestBody: GetNotificationHistoryRequestBody, _options?: Configuration): Observable<NotificationHistorySuccessResponse>;
|
|
82
87
|
getNotifications(appId: string, limit?: number, offset?: number, kind?: 0 | 1 | 3, timeOffset?: string, _options?: Configuration): Observable<NotificationSlice>;
|
|
@@ -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);
|
|
@@ -400,6 +415,21 @@ class ObservableDefaultApi {
|
|
|
400
415
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getApps(rsp)));
|
|
401
416
|
}));
|
|
402
417
|
}
|
|
418
|
+
getEmailReputation(appId, _options) {
|
|
419
|
+
const requestContextPromise = this.requestFactory.getEmailReputation(appId, _options);
|
|
420
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
421
|
+
for (let middleware of this.configuration.middleware) {
|
|
422
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
423
|
+
}
|
|
424
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
425
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
426
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
427
|
+
for (let middleware of this.configuration.middleware) {
|
|
428
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
429
|
+
}
|
|
430
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getEmailReputation(rsp)));
|
|
431
|
+
}));
|
|
432
|
+
}
|
|
403
433
|
getNotification(appId, notificationId, _options) {
|
|
404
434
|
const requestContextPromise = this.requestFactory.getNotification(appId, notificationId, _options);
|
|
405
435
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
@@ -11,6 +11,9 @@ 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 { EmailReputationResponse } from '../models/EmailReputationResponse';
|
|
15
|
+
import { EstimateNotificationRecipientsRequest } from '../models/EstimateNotificationRecipientsRequest';
|
|
16
|
+
import { EstimateNotificationRecipientsSuccessResponse } from '../models/EstimateNotificationRecipientsSuccessResponse';
|
|
14
17
|
import { ExportEventsSuccessResponse } from '../models/ExportEventsSuccessResponse';
|
|
15
18
|
import { ExportSubscriptionsRequestBody } from '../models/ExportSubscriptionsRequestBody';
|
|
16
19
|
import { ExportSubscriptionsSuccessResponse } from '../models/ExportSubscriptionsSuccessResponse';
|
|
@@ -72,12 +75,14 @@ export declare class PromiseDefaultApi {
|
|
|
72
75
|
deleteSubscription(appId: string, subscriptionId: string, _options?: Configuration): Promise<void>;
|
|
73
76
|
deleteTemplate(templateId: string, appId: string, _options?: Configuration): Promise<GenericSuccessBoolResponse>;
|
|
74
77
|
deleteUser(appId: string, aliasLabel: string, aliasId: string, _options?: Configuration): Promise<void>;
|
|
78
|
+
estimateNotificationRecipients(estimateNotificationRecipientsRequest: EstimateNotificationRecipientsRequest, _options?: Configuration): Promise<EstimateNotificationRecipientsSuccessResponse>;
|
|
75
79
|
exportEvents(notificationId: string, appId: string, _options?: Configuration): Promise<ExportEventsSuccessResponse>;
|
|
76
80
|
exportSubscriptions(appId: string, exportSubscriptionsRequestBody?: ExportSubscriptionsRequestBody, _options?: Configuration): Promise<ExportSubscriptionsSuccessResponse>;
|
|
77
81
|
getAliases(appId: string, aliasLabel: string, aliasId: string, _options?: Configuration): Promise<UserIdentityBody>;
|
|
78
82
|
getAliasesBySubscription(appId: string, subscriptionId: string, _options?: Configuration): Promise<UserIdentityBody>;
|
|
79
83
|
getApp(appId: string, _options?: Configuration): Promise<App>;
|
|
80
84
|
getApps(_options?: Configuration): Promise<Array<App>>;
|
|
85
|
+
getEmailReputation(appId: string, _options?: Configuration): Promise<EmailReputationResponse>;
|
|
81
86
|
getNotification(appId: string, notificationId: string, _options?: Configuration): Promise<NotificationWithMeta>;
|
|
82
87
|
getNotificationHistory(notificationId: string, getNotificationHistoryRequestBody: GetNotificationHistoryRequestBody, _options?: Configuration): Promise<NotificationHistorySuccessResponse>;
|
|
83
88
|
getNotifications(appId: string, limit?: number, offset?: number, kind?: 0 | 1 | 3, timeOffset?: string, _options?: Configuration): Promise<NotificationSlice>;
|
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();
|
|
@@ -115,6 +119,10 @@ class PromiseDefaultApi {
|
|
|
115
119
|
const result = this.api.getApps(_options);
|
|
116
120
|
return result.toPromise();
|
|
117
121
|
}
|
|
122
|
+
getEmailReputation(appId, _options) {
|
|
123
|
+
const result = this.api.getEmailReputation(appId, _options);
|
|
124
|
+
return result.toPromise();
|
|
125
|
+
}
|
|
118
126
|
getNotification(appId, notificationId, _options) {
|
|
119
127
|
const result = this.api.getNotification(appId, notificationId, _options);
|
|
120
128
|
return result.toPromise();
|