@pushwoosh/rpc-gateway-statistics-api 1.3.885 → 1.3.887

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
@@ -4100,6 +4100,12 @@ export const data = {
4100
4100
  "method": "post",
4101
4101
  "path": "/api/v2/statistics/overview/getEmailRates"
4102
4102
  },
4103
+ "GetEmailPostmasterOverview": {
4104
+ "request": "pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailPostmasterOverviewRequest",
4105
+ "response": "pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailPostmasterOverviewResponse",
4106
+ "method": "post",
4107
+ "path": "/api/v2/statistics/overview/getEmailPostmasterOverview"
4108
+ },
4103
4109
  "GetEmailActivityDistribution": {
4104
4110
  "request": "pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailActivityDistributionRequest",
4105
4111
  "response": "pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailActivityDistributionResponse",
@@ -5063,6 +5069,106 @@ export const data = {
5063
5069
  }
5064
5070
  }
5065
5071
  },
5072
+ "pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailPostmasterOverviewRequest": {
5073
+ "type": "I",
5074
+ "fields": {
5075
+ "applicationCode": {
5076
+ "type": "string"
5077
+ },
5078
+ "dayFrom": {
5079
+ "type": "Date"
5080
+ },
5081
+ "dayTo": {
5082
+ "type": "Date"
5083
+ }
5084
+ }
5085
+ },
5086
+ "pushwoosh.statistics.statistics.v2.overviewkpi.EmailPostmasterErrorCode": {
5087
+ "type": "E",
5088
+ "values": [
5089
+ "EMAIL_POSTMASTER_ERROR_CODE_UNKNOWN",
5090
+ "EMAIL_POSTMASTER_ERROR_CODE_BAD_ATTACHMENT",
5091
+ "EMAIL_POSTMASTER_ERROR_CODE_BAD_OR_MISSING_PTR_RECORD",
5092
+ "EMAIL_POSTMASTER_ERROR_CODE_IP_IN_RBLS",
5093
+ "EMAIL_POSTMASTER_ERROR_CODE_LOW_DOMAIN_REPUTATION",
5094
+ "EMAIL_POSTMASTER_ERROR_CODE_LOW_IP_REPUTATION",
5095
+ "EMAIL_POSTMASTER_ERROR_CODE_SPAMMY_CONTENT",
5096
+ "EMAIL_POSTMASTER_ERROR_CODE_STAMP_POLICY_ERROR",
5097
+ "EMAIL_POSTMASTER_ERROR_CODE_ANOMALOUS_TRAFFIC_PATTERN",
5098
+ "EMAIL_POSTMASTER_ERROR_CODE_OTHER"
5099
+ ]
5100
+ },
5101
+ "pushwoosh.statistics.statistics.v2.overviewkpi.EmailPostmasterErrorReason": {
5102
+ "type": "I",
5103
+ "fields": {
5104
+ "errorType": {
5105
+ "type": "string"
5106
+ },
5107
+ "errorReason": {
5108
+ "type": "string"
5109
+ },
5110
+ "rate": {
5111
+ "type": "number"
5112
+ },
5113
+ "code": {
5114
+ "type": "pushwoosh.statistics.statistics.v2.overviewkpi.EmailPostmasterErrorCode"
5115
+ }
5116
+ }
5117
+ },
5118
+ "pushwoosh.statistics.statistics.v2.overviewkpi.EmailPostmasterDomain.Day": {
5119
+ "type": "I",
5120
+ "fields": {
5121
+ "day": {
5122
+ "type": "Date"
5123
+ },
5124
+ "spamRate": {
5125
+ "type": "number"
5126
+ }
5127
+ }
5128
+ },
5129
+ "pushwoosh.statistics.statistics.v2.overviewkpi.EmailPostmasterDomain": {
5130
+ "type": "I",
5131
+ "fields": {
5132
+ "domain": {
5133
+ "type": "string"
5134
+ },
5135
+ "hasData": {
5136
+ "type": "boolean"
5137
+ },
5138
+ "spamRate": {
5139
+ "type": "number"
5140
+ },
5141
+ "hasPrevious": {
5142
+ "type": "boolean"
5143
+ },
5144
+ "previousSpamRate": {
5145
+ "type": "number"
5146
+ },
5147
+ "days": {
5148
+ "type": "pushwoosh.statistics.statistics.v2.overviewkpi.EmailPostmasterDomain.Day",
5149
+ "array": true
5150
+ },
5151
+ "deliveryErrorRate": {
5152
+ "type": "number"
5153
+ },
5154
+ "errorReasons": {
5155
+ "type": "pushwoosh.statistics.statistics.v2.overviewkpi.EmailPostmasterErrorReason",
5156
+ "array": true
5157
+ },
5158
+ "lastDay": {
5159
+ "type": "Date"
5160
+ }
5161
+ }
5162
+ },
5163
+ "pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailPostmasterOverviewResponse": {
5164
+ "type": "I",
5165
+ "fields": {
5166
+ "domains": {
5167
+ "type": "pushwoosh.statistics.statistics.v2.overviewkpi.EmailPostmasterDomain",
5168
+ "array": true
5169
+ }
5170
+ }
5171
+ },
5066
5172
  "pushwoosh.statistics.statistics.v2.statistics.StatisticsService": {
5067
5173
  "type": "S",
5068
5174
  "key": "statisticsV2",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-statistics-api",
3
- "version": "1.3.885",
3
+ "version": "1.3.887",
4
4
  "description": "Statistics API gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -6,6 +6,7 @@ export type OverviewKPIService_GetChannelReach = RpcMethod<GetChannelReachReques
6
6
  export type OverviewKPIService_GetActiveTrend = RpcMethod<GetActiveTrendRequest, GetActiveTrendResponse>;
7
7
  export type OverviewKPIService_GetChannelUsersTrend = RpcMethod<GetChannelUsersTrendRequest, GetChannelUsersTrendResponse>;
8
8
  export type OverviewKPIService_GetEmailRates = RpcMethod<GetEmailRatesRequest, GetEmailRatesResponse>;
9
+ export type OverviewKPIService_GetEmailPostmasterOverview = RpcMethod<GetEmailPostmasterOverviewRequest, GetEmailPostmasterOverviewResponse>;
9
10
  export type OverviewKPIService_GetEmailActivityDistribution = RpcMethod<GetEmailActivityDistributionRequest, GetEmailActivityDistributionResponse>;
10
11
  export type OverviewKPIService_GetEmailBaseChange = RpcMethod<GetEmailBaseChangeRequest, GetEmailBaseChangeResponse>;
11
12
  export type OverviewKPIService_GetEmailPerformance = RpcMethod<GetEmailPerformanceRequest, GetEmailPerformanceResponse>;
@@ -40,6 +41,11 @@ export interface OverviewKPIService {
40
41
  * sending pause counts them, plus the account-wide check that pause runs on.
41
42
  */
42
43
  GetEmailRates: OverviewKPIService_GetEmailRates;
44
+ /**
45
+ * GetEmailPostmasterOverview returns Gmail Postmaster stats of the account's sender domains
46
+ * connected and verified in Settings → Email Configuration: the whole domain's mail, not only Pushwoosh's.
47
+ */
48
+ GetEmailPostmasterOverview: OverviewKPIService_GetEmailPostmasterOverview;
43
49
  /** GetEmailActivityDistribution splits the email base into clicked, opened and dormant users. */
44
50
  GetEmailActivityDistribution: OverviewKPIService_GetEmailActivityDistribution;
45
51
  /** GetEmailBaseChange returns how the email user base moved over a period. */
@@ -563,3 +569,47 @@ export type GetUserMessageMetricsResponse = {
563
569
  */
564
570
  days: GetUserMessageMetricsResponse_Day[];
565
571
  };
572
+ export type GetEmailPostmasterOverviewRequest = {
573
+ applicationCode: string;
574
+ dayFrom: Date;
575
+ dayTo: Date;
576
+ };
577
+ /** Gmail Postmaster delivery error reasons known to this API; anything Gmail adds later is UNKNOWN. */
578
+ export type EmailPostmasterErrorCode = 'EMAIL_POSTMASTER_ERROR_CODE_UNKNOWN' | 'EMAIL_POSTMASTER_ERROR_CODE_BAD_ATTACHMENT' | 'EMAIL_POSTMASTER_ERROR_CODE_BAD_OR_MISSING_PTR_RECORD' | 'EMAIL_POSTMASTER_ERROR_CODE_IP_IN_RBLS' | 'EMAIL_POSTMASTER_ERROR_CODE_LOW_DOMAIN_REPUTATION' | 'EMAIL_POSTMASTER_ERROR_CODE_LOW_IP_REPUTATION' | 'EMAIL_POSTMASTER_ERROR_CODE_SPAMMY_CONTENT' | 'EMAIL_POSTMASTER_ERROR_CODE_STAMP_POLICY_ERROR' | 'EMAIL_POSTMASTER_ERROR_CODE_ANOMALOUS_TRAFFIC_PATTERN' | 'EMAIL_POSTMASTER_ERROR_CODE_OTHER';
579
+ /** EmailPostmasterErrorReason is the average daily share of mail Gmail refused for one reason. */
580
+ export type EmailPostmasterErrorReason = {
581
+ /** reject or temp_fail, as Gmail reports it. */
582
+ errorType: string;
583
+ /** Raw Gmail reason, for display of a reason the code does not know yet; branch on code. */
584
+ errorReason: string;
585
+ rate: number;
586
+ /** Stable code of error_reason. */
587
+ code: EmailPostmasterErrorCode;
588
+ };
589
+ export type EmailPostmasterDomain_Day = {
590
+ day: Date;
591
+ spamRate: number;
592
+ };
593
+ /**
594
+ * EmailPostmasterDomain is one verified sender domain. Rates are fractions averaged over the days
595
+ * Gmail reported, since Postmaster gives no volumes to weight them by; a day without data is absent.
596
+ */
597
+ export type EmailPostmasterDomain = {
598
+ domain: string;
599
+ /** False when Gmail reported nothing in the period, e.g. too little mail to Gmail. */
600
+ hasData: boolean;
601
+ spamRate: number;
602
+ /** The same average over the period of equal length right before; has_previous is false without data. */
603
+ hasPrevious: boolean;
604
+ previousSpamRate: number;
605
+ days: EmailPostmasterDomain_Day[];
606
+ deliveryErrorRate: number;
607
+ /** Largest first; reasons Gmail reported as zero are left out. */
608
+ errorReasons: EmailPostmasterErrorReason[];
609
+ /** Last day Gmail has published; Gmail publishes a day about three days late. */
610
+ lastDay: Date;
611
+ };
612
+ export type GetEmailPostmasterOverviewResponse = {
613
+ /** Sorted by name; empty when no domain of the account is verified in Gmail Postmaster. */
614
+ domains: EmailPostmasterDomain[];
615
+ };