@pushwoosh/rpc-gateway-statistics-api 1.3.878 → 1.3.880

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/data.js CHANGED
@@ -1481,6 +1481,47 @@ export const data = {
1481
1481
  },
1482
1482
  "unsubscribes": {
1483
1483
  "type": "number"
1484
+ },
1485
+ "bounceReasons": {
1486
+ "type": "pushwoosh.statistics.statistics.v1.EmailProviderBounceReason",
1487
+ "array": true
1488
+ }
1489
+ }
1490
+ },
1491
+ "pushwoosh.statistics.statistics.v1.EmailProviderBounceReason": {
1492
+ "type": "I",
1493
+ "fields": {
1494
+ "reason": {
1495
+ "type": "string"
1496
+ },
1497
+ "type": {
1498
+ "type": "pushwoosh.statistics.statistics.v1.EmailBounceType"
1499
+ },
1500
+ "count": {
1501
+ "type": "number"
1502
+ },
1503
+ "topCodes": {
1504
+ "type": "pushwoosh.statistics.statistics.v1.EmailProviderBounceCode",
1505
+ "array": true
1506
+ }
1507
+ }
1508
+ },
1509
+ "pushwoosh.statistics.statistics.v1.EmailBounceType": {
1510
+ "type": "E",
1511
+ "values": [
1512
+ "EMAIL_BOUNCE_TYPE_UNSPECIFIED",
1513
+ "EMAIL_BOUNCE_TYPE_HARD",
1514
+ "EMAIL_BOUNCE_TYPE_SOFT"
1515
+ ]
1516
+ },
1517
+ "pushwoosh.statistics.statistics.v1.EmailProviderBounceCode": {
1518
+ "type": "I",
1519
+ "fields": {
1520
+ "code": {
1521
+ "type": "string"
1522
+ },
1523
+ "count": {
1524
+ "type": "number"
1484
1525
  }
1485
1526
  }
1486
1527
  },
@@ -4498,20 +4539,6 @@ export const data = {
4498
4539
  }
4499
4540
  }
4500
4541
  },
4501
- "pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailRatesResponse.BounceReason": {
4502
- "type": "I",
4503
- "fields": {
4504
- "reason": {
4505
- "type": "string"
4506
- },
4507
- "hard": {
4508
- "type": "number"
4509
- },
4510
- "soft": {
4511
- "type": "number"
4512
- }
4513
- }
4514
- },
4515
4542
  "pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailRatesResponse": {
4516
4543
  "type": "I",
4517
4544
  "fields": {
@@ -4524,10 +4551,6 @@ export const data = {
4524
4551
  },
4525
4552
  "pauseCheck": {
4526
4553
  "type": "pushwoosh.statistics.statistics.v2.overviewkpi.EmailPauseCheck"
4527
- },
4528
- "bounceReasons": {
4529
- "type": "pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailRatesResponse.BounceReason",
4530
- "array": true
4531
4554
  }
4532
4555
  }
4533
4556
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-statistics-api",
3
- "version": "1.3.878",
3
+ "version": "1.3.880",
4
4
  "description": "Statistics API gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -602,6 +602,25 @@ export type EmailProviderStatistics = {
602
602
  softBounces: number;
603
603
  complaints: number;
604
604
  unsubscribes: number;
605
+ /** Bounce events of this provider by reason, most first; rates divide by sends above. */
606
+ bounceReasons: EmailProviderBounceReason[];
607
+ };
608
+ /**
609
+ * The bounce events of one provider that email-feedback-api classified into one reason,
610
+ * hard or soft; events logged before it wrote bounceReason are left out.
611
+ */
612
+ export type EmailProviderBounceReason = {
613
+ /** The bounceReason value, e.g. mailbox_full. */
614
+ reason: string;
615
+ type: EmailBounceType;
616
+ count: number;
617
+ /** Up to three SMTP codes of these events, most first: the enhanced status, else the basic one. */
618
+ topCodes: EmailProviderBounceCode[];
619
+ };
620
+ export type EmailBounceType = 'EMAIL_BOUNCE_TYPE_UNSPECIFIED' | 'EMAIL_BOUNCE_TYPE_HARD' | 'EMAIL_BOUNCE_TYPE_SOFT';
621
+ export type EmailProviderBounceCode = {
622
+ code: string;
623
+ count: number;
605
624
  };
606
625
  export type GetEmailProviderStatisticsCPResponse = {
607
626
  /** Providers with at least one event in the window, most sends first. */
@@ -265,12 +265,6 @@ export type GetEmailRatesResponse_Point = {
265
265
  day: Date;
266
266
  rates: EmailRates;
267
267
  };
268
- export type GetEmailRatesResponse_BounceReason = {
269
- /** the bounceReason value email-feedback-api wrote, e.g. mailbox_full */
270
- reason: string;
271
- hard: number;
272
- soft: number;
273
- };
274
268
  export type GetEmailRatesResponse = {
275
269
  /** the requested application and period, one point per day */
276
270
  points: GetEmailRatesResponse_Point[];
@@ -281,11 +275,6 @@ export type GetEmailRatesResponse = {
281
275
  * differ from the two above, and that difference is the point of this field
282
276
  */
283
277
  pauseCheck: EmailPauseCheck;
284
- /**
285
- * bounce events of the same application and period as totals, by hard+soft desc;
286
- * only bounces logged since email-feedback-api started writing bounceReason
287
- */
288
- bounceReasons: GetEmailRatesResponse_BounceReason[];
289
278
  };
290
279
  export type GetEmailActivityDistributionRequest = {
291
280
  applicationCode: string;