@pushwoosh/rpc-gateway-statistics-api 1.3.884 → 1.3.886
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
|
@@ -5063,6 +5063,106 @@ export const data = {
|
|
|
5063
5063
|
}
|
|
5064
5064
|
}
|
|
5065
5065
|
},
|
|
5066
|
+
"pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailPostmasterOverviewRequest": {
|
|
5067
|
+
"type": "I",
|
|
5068
|
+
"fields": {
|
|
5069
|
+
"applicationCode": {
|
|
5070
|
+
"type": "string"
|
|
5071
|
+
},
|
|
5072
|
+
"dayFrom": {
|
|
5073
|
+
"type": "Date"
|
|
5074
|
+
},
|
|
5075
|
+
"dayTo": {
|
|
5076
|
+
"type": "Date"
|
|
5077
|
+
}
|
|
5078
|
+
}
|
|
5079
|
+
},
|
|
5080
|
+
"pushwoosh.statistics.statistics.v2.overviewkpi.EmailPostmasterErrorCode": {
|
|
5081
|
+
"type": "E",
|
|
5082
|
+
"values": [
|
|
5083
|
+
"EMAIL_POSTMASTER_ERROR_CODE_UNKNOWN",
|
|
5084
|
+
"EMAIL_POSTMASTER_ERROR_CODE_BAD_ATTACHMENT",
|
|
5085
|
+
"EMAIL_POSTMASTER_ERROR_CODE_BAD_OR_MISSING_PTR_RECORD",
|
|
5086
|
+
"EMAIL_POSTMASTER_ERROR_CODE_IP_IN_RBLS",
|
|
5087
|
+
"EMAIL_POSTMASTER_ERROR_CODE_LOW_DOMAIN_REPUTATION",
|
|
5088
|
+
"EMAIL_POSTMASTER_ERROR_CODE_LOW_IP_REPUTATION",
|
|
5089
|
+
"EMAIL_POSTMASTER_ERROR_CODE_SPAMMY_CONTENT",
|
|
5090
|
+
"EMAIL_POSTMASTER_ERROR_CODE_STAMP_POLICY_ERROR",
|
|
5091
|
+
"EMAIL_POSTMASTER_ERROR_CODE_ANOMALOUS_TRAFFIC_PATTERN",
|
|
5092
|
+
"EMAIL_POSTMASTER_ERROR_CODE_OTHER"
|
|
5093
|
+
]
|
|
5094
|
+
},
|
|
5095
|
+
"pushwoosh.statistics.statistics.v2.overviewkpi.EmailPostmasterErrorReason": {
|
|
5096
|
+
"type": "I",
|
|
5097
|
+
"fields": {
|
|
5098
|
+
"errorType": {
|
|
5099
|
+
"type": "string"
|
|
5100
|
+
},
|
|
5101
|
+
"errorReason": {
|
|
5102
|
+
"type": "string"
|
|
5103
|
+
},
|
|
5104
|
+
"rate": {
|
|
5105
|
+
"type": "number"
|
|
5106
|
+
},
|
|
5107
|
+
"code": {
|
|
5108
|
+
"type": "pushwoosh.statistics.statistics.v2.overviewkpi.EmailPostmasterErrorCode"
|
|
5109
|
+
}
|
|
5110
|
+
}
|
|
5111
|
+
},
|
|
5112
|
+
"pushwoosh.statistics.statistics.v2.overviewkpi.EmailPostmasterDomain.Day": {
|
|
5113
|
+
"type": "I",
|
|
5114
|
+
"fields": {
|
|
5115
|
+
"day": {
|
|
5116
|
+
"type": "Date"
|
|
5117
|
+
},
|
|
5118
|
+
"spamRate": {
|
|
5119
|
+
"type": "number"
|
|
5120
|
+
}
|
|
5121
|
+
}
|
|
5122
|
+
},
|
|
5123
|
+
"pushwoosh.statistics.statistics.v2.overviewkpi.EmailPostmasterDomain": {
|
|
5124
|
+
"type": "I",
|
|
5125
|
+
"fields": {
|
|
5126
|
+
"domain": {
|
|
5127
|
+
"type": "string"
|
|
5128
|
+
},
|
|
5129
|
+
"hasData": {
|
|
5130
|
+
"type": "boolean"
|
|
5131
|
+
},
|
|
5132
|
+
"spamRate": {
|
|
5133
|
+
"type": "number"
|
|
5134
|
+
},
|
|
5135
|
+
"hasPrevious": {
|
|
5136
|
+
"type": "boolean"
|
|
5137
|
+
},
|
|
5138
|
+
"previousSpamRate": {
|
|
5139
|
+
"type": "number"
|
|
5140
|
+
},
|
|
5141
|
+
"days": {
|
|
5142
|
+
"type": "pushwoosh.statistics.statistics.v2.overviewkpi.EmailPostmasterDomain.Day",
|
|
5143
|
+
"array": true
|
|
5144
|
+
},
|
|
5145
|
+
"deliveryErrorRate": {
|
|
5146
|
+
"type": "number"
|
|
5147
|
+
},
|
|
5148
|
+
"errorReasons": {
|
|
5149
|
+
"type": "pushwoosh.statistics.statistics.v2.overviewkpi.EmailPostmasterErrorReason",
|
|
5150
|
+
"array": true
|
|
5151
|
+
},
|
|
5152
|
+
"lastDay": {
|
|
5153
|
+
"type": "Date"
|
|
5154
|
+
}
|
|
5155
|
+
}
|
|
5156
|
+
},
|
|
5157
|
+
"pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailPostmasterOverviewResponse": {
|
|
5158
|
+
"type": "I",
|
|
5159
|
+
"fields": {
|
|
5160
|
+
"domains": {
|
|
5161
|
+
"type": "pushwoosh.statistics.statistics.v2.overviewkpi.EmailPostmasterDomain",
|
|
5162
|
+
"array": true
|
|
5163
|
+
}
|
|
5164
|
+
}
|
|
5165
|
+
},
|
|
5066
5166
|
"pushwoosh.statistics.statistics.v2.statistics.StatisticsService": {
|
|
5067
5167
|
"type": "S",
|
|
5068
5168
|
"key": "statisticsV2",
|
|
@@ -5163,6 +5263,12 @@ export const data = {
|
|
|
5163
5263
|
"method": "post",
|
|
5164
5264
|
"path": "/api/v2/statistics/messages/getCampaignDeliveryTimeline"
|
|
5165
5265
|
},
|
|
5266
|
+
"GetPopupFormsStatistics": {
|
|
5267
|
+
"request": "pushwoosh.statistics.statistics.v2.statistics.GetPopupFormsStatisticsRequest",
|
|
5268
|
+
"response": "pushwoosh.statistics.statistics.v2.statistics.GetPopupFormsStatisticsResponse",
|
|
5269
|
+
"method": "post",
|
|
5270
|
+
"path": "/api/v2/statistics/forms/getPopupFormsStatistics"
|
|
5271
|
+
},
|
|
5166
5272
|
"GetEmailCategoryPerformance": {
|
|
5167
5273
|
"request": "pushwoosh.statistics.statistics.v2.statistics.GetEmailCategoryPerformanceRequest",
|
|
5168
5274
|
"response": "pushwoosh.statistics.statistics.v2.statistics.GetEmailCategoryPerformanceResponse",
|
package/package.json
CHANGED
|
@@ -563,3 +563,47 @@ export type GetUserMessageMetricsResponse = {
|
|
|
563
563
|
*/
|
|
564
564
|
days: GetUserMessageMetricsResponse_Day[];
|
|
565
565
|
};
|
|
566
|
+
export type GetEmailPostmasterOverviewRequest = {
|
|
567
|
+
applicationCode: string;
|
|
568
|
+
dayFrom: Date;
|
|
569
|
+
dayTo: Date;
|
|
570
|
+
};
|
|
571
|
+
/** Gmail Postmaster delivery error reasons known to this API; anything Gmail adds later is UNKNOWN. */
|
|
572
|
+
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';
|
|
573
|
+
/** EmailPostmasterErrorReason is the average daily share of mail Gmail refused for one reason. */
|
|
574
|
+
export type EmailPostmasterErrorReason = {
|
|
575
|
+
/** reject or temp_fail, as Gmail reports it. */
|
|
576
|
+
errorType: string;
|
|
577
|
+
/** Raw Gmail reason, for display of a reason the code does not know yet; branch on code. */
|
|
578
|
+
errorReason: string;
|
|
579
|
+
rate: number;
|
|
580
|
+
/** Stable code of error_reason. */
|
|
581
|
+
code: EmailPostmasterErrorCode;
|
|
582
|
+
};
|
|
583
|
+
export type EmailPostmasterDomain_Day = {
|
|
584
|
+
day: Date;
|
|
585
|
+
spamRate: number;
|
|
586
|
+
};
|
|
587
|
+
/**
|
|
588
|
+
* EmailPostmasterDomain is one verified sender domain. Rates are fractions averaged over the days
|
|
589
|
+
* Gmail reported, since Postmaster gives no volumes to weight them by; a day without data is absent.
|
|
590
|
+
*/
|
|
591
|
+
export type EmailPostmasterDomain = {
|
|
592
|
+
domain: string;
|
|
593
|
+
/** False when Gmail reported nothing in the period, e.g. too little mail to Gmail. */
|
|
594
|
+
hasData: boolean;
|
|
595
|
+
spamRate: number;
|
|
596
|
+
/** The same average over the period of equal length right before; has_previous is false without data. */
|
|
597
|
+
hasPrevious: boolean;
|
|
598
|
+
previousSpamRate: number;
|
|
599
|
+
days: EmailPostmasterDomain_Day[];
|
|
600
|
+
deliveryErrorRate: number;
|
|
601
|
+
/** Largest first; reasons Gmail reported as zero are left out. */
|
|
602
|
+
errorReasons: EmailPostmasterErrorReason[];
|
|
603
|
+
/** Last day Gmail has published; Gmail publishes a day about three days late. */
|
|
604
|
+
lastDay: Date;
|
|
605
|
+
};
|
|
606
|
+
export type GetEmailPostmasterOverviewResponse = {
|
|
607
|
+
/** Sorted by name; empty when no domain of the account is verified in Gmail Postmaster. */
|
|
608
|
+
domains: EmailPostmasterDomain[];
|
|
609
|
+
};
|
|
@@ -16,6 +16,7 @@ export type StatisticsService_GetMessageDeliveryFunnel = RpcMethod<GetMessageDel
|
|
|
16
16
|
export type StatisticsService_GetCampaignDeliveryFunnel = RpcMethod<GetCampaignDeliveryFunnelRequest, GetDeliveryFunnelResponse>;
|
|
17
17
|
export type StatisticsService_GetMessageDeliveryTimeline = RpcMethod<GetMessageDeliveryTimelineRequest, GetDeliveryTimelineResponse>;
|
|
18
18
|
export type StatisticsService_GetCampaignDeliveryTimeline = RpcMethod<GetCampaignDeliveryTimelineRequest, GetDeliveryTimelineResponse>;
|
|
19
|
+
export type StatisticsService_GetPopupFormsStatistics = RpcMethod<GetPopupFormsStatisticsRequest, GetPopupFormsStatisticsResponse>;
|
|
19
20
|
export type StatisticsService_GetEmailCategoryPerformance = RpcMethod<GetEmailCategoryPerformanceRequest, GetEmailCategoryPerformanceResponse>;
|
|
20
21
|
/** StatisticsService provides various statistics operations */
|
|
21
22
|
export interface StatisticsService {
|
|
@@ -63,6 +64,8 @@ export interface StatisticsService {
|
|
|
63
64
|
* Uniques stay unique within a message, so one subscriber can count more than once.
|
|
64
65
|
*/
|
|
65
66
|
GetCampaignDeliveryTimeline: StatisticsService_GetCampaignDeliveryTimeline;
|
|
67
|
+
/** GetPopupFormsStatistics returns popup forms statistics (visits, impressions, submits, confirmed, submit errors) */
|
|
68
|
+
GetPopupFormsStatistics: StatisticsService_GetPopupFormsStatistics;
|
|
66
69
|
/**
|
|
67
70
|
* GetEmailCategoryPerformance counts email sends, openers and clickers per category code.
|
|
68
71
|
* The caller names the categories; statistics only groups by the names it is given.
|