@pushwoosh/rpc-gateway-statistics-api 1.3.840 → 1.3.841
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
|
@@ -3745,6 +3745,12 @@ export const data = {
|
|
|
3745
3745
|
"method": "post",
|
|
3746
3746
|
"path": "/api/v2/statistics/overview/getChannelUsersTrend"
|
|
3747
3747
|
},
|
|
3748
|
+
"GetEmailRates": {
|
|
3749
|
+
"request": "pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailRatesRequest",
|
|
3750
|
+
"response": "pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailRatesResponse",
|
|
3751
|
+
"method": "post",
|
|
3752
|
+
"path": "/api/v2/statistics/overview/getEmailRates"
|
|
3753
|
+
},
|
|
3748
3754
|
"GetRetentionCurve": {
|
|
3749
3755
|
"request": "pushwoosh.statistics.statistics.v2.overviewkpi.GetRetentionCurveRequest",
|
|
3750
3756
|
"response": "pushwoosh.statistics.statistics.v2.overviewkpi.GetRetentionCurveResponse",
|
|
@@ -4004,6 +4010,92 @@ export const data = {
|
|
|
4004
4010
|
}
|
|
4005
4011
|
}
|
|
4006
4012
|
},
|
|
4013
|
+
"pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailRatesRequest": {
|
|
4014
|
+
"type": "I",
|
|
4015
|
+
"fields": {
|
|
4016
|
+
"applicationCode": {
|
|
4017
|
+
"type": "string"
|
|
4018
|
+
},
|
|
4019
|
+
"dayFrom": {
|
|
4020
|
+
"type": "Date"
|
|
4021
|
+
},
|
|
4022
|
+
"dayTo": {
|
|
4023
|
+
"type": "Date"
|
|
4024
|
+
}
|
|
4025
|
+
}
|
|
4026
|
+
},
|
|
4027
|
+
"pushwoosh.statistics.statistics.v2.overviewkpi.EmailRates": {
|
|
4028
|
+
"type": "I",
|
|
4029
|
+
"fields": {
|
|
4030
|
+
"sends": {
|
|
4031
|
+
"type": "number"
|
|
4032
|
+
},
|
|
4033
|
+
"complaints": {
|
|
4034
|
+
"type": "number"
|
|
4035
|
+
},
|
|
4036
|
+
"hardbounces": {
|
|
4037
|
+
"type": "number"
|
|
4038
|
+
},
|
|
4039
|
+
"complaintRatePercent": {
|
|
4040
|
+
"type": "number"
|
|
4041
|
+
},
|
|
4042
|
+
"hardBounceRatePercent": {
|
|
4043
|
+
"type": "number"
|
|
4044
|
+
}
|
|
4045
|
+
}
|
|
4046
|
+
},
|
|
4047
|
+
"pushwoosh.statistics.statistics.v2.overviewkpi.EmailPauseCheck": {
|
|
4048
|
+
"type": "I",
|
|
4049
|
+
"fields": {
|
|
4050
|
+
"windowDays": {
|
|
4051
|
+
"type": "number"
|
|
4052
|
+
},
|
|
4053
|
+
"windowFrom": {
|
|
4054
|
+
"type": "Date"
|
|
4055
|
+
},
|
|
4056
|
+
"rates": {
|
|
4057
|
+
"type": "pushwoosh.statistics.statistics.v2.overviewkpi.EmailRates"
|
|
4058
|
+
},
|
|
4059
|
+
"complaintRateLimitPercent": {
|
|
4060
|
+
"type": "number"
|
|
4061
|
+
},
|
|
4062
|
+
"hardBounceRateLimitPercent": {
|
|
4063
|
+
"type": "number"
|
|
4064
|
+
},
|
|
4065
|
+
"minSends": {
|
|
4066
|
+
"type": "number"
|
|
4067
|
+
},
|
|
4068
|
+
"evaluated": {
|
|
4069
|
+
"type": "boolean"
|
|
4070
|
+
}
|
|
4071
|
+
}
|
|
4072
|
+
},
|
|
4073
|
+
"pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailRatesResponse.Point": {
|
|
4074
|
+
"type": "I",
|
|
4075
|
+
"fields": {
|
|
4076
|
+
"day": {
|
|
4077
|
+
"type": "Date"
|
|
4078
|
+
},
|
|
4079
|
+
"rates": {
|
|
4080
|
+
"type": "pushwoosh.statistics.statistics.v2.overviewkpi.EmailRates"
|
|
4081
|
+
}
|
|
4082
|
+
}
|
|
4083
|
+
},
|
|
4084
|
+
"pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailRatesResponse": {
|
|
4085
|
+
"type": "I",
|
|
4086
|
+
"fields": {
|
|
4087
|
+
"points": {
|
|
4088
|
+
"type": "pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailRatesResponse.Point",
|
|
4089
|
+
"array": true
|
|
4090
|
+
},
|
|
4091
|
+
"totals": {
|
|
4092
|
+
"type": "pushwoosh.statistics.statistics.v2.overviewkpi.EmailRates"
|
|
4093
|
+
},
|
|
4094
|
+
"pauseCheck": {
|
|
4095
|
+
"type": "pushwoosh.statistics.statistics.v2.overviewkpi.EmailPauseCheck"
|
|
4096
|
+
}
|
|
4097
|
+
}
|
|
4098
|
+
},
|
|
4007
4099
|
"pushwoosh.statistics.statistics.v2.overviewkpi.GetRetentionCurveRequest": {
|
|
4008
4100
|
"type": "I",
|
|
4009
4101
|
"fields": {
|
package/package.json
CHANGED
|
@@ -4,6 +4,7 @@ export type OverviewKPIService_GetAudienceFunnel = RpcMethod<GetAudienceFunnelRe
|
|
|
4
4
|
export type OverviewKPIService_GetReachByPlatform = RpcMethod<GetReachByPlatformRequest, GetReachByPlatformResponse>;
|
|
5
5
|
export type OverviewKPIService_GetActiveTrend = RpcMethod<GetActiveTrendRequest, GetActiveTrendResponse>;
|
|
6
6
|
export type OverviewKPIService_GetChannelUsersTrend = RpcMethod<GetChannelUsersTrendRequest, GetChannelUsersTrendResponse>;
|
|
7
|
+
export type OverviewKPIService_GetEmailRates = RpcMethod<GetEmailRatesRequest, GetEmailRatesResponse>;
|
|
7
8
|
export type OverviewKPIService_GetRetentionCurve = RpcMethod<GetRetentionCurveRequest, GetRetentionCurveResponse>;
|
|
8
9
|
export type OverviewKPIService_GetBaseChange = RpcMethod<GetBaseChangeRequest, GetBaseChangeResponse>;
|
|
9
10
|
export type OverviewKPIService_GetUserMessageMetrics = RpcMethod<GetUserMessageMetricsRequest, GetUserMessageMetricsResponse>;
|
|
@@ -22,6 +23,11 @@ export interface OverviewKPIService {
|
|
|
22
23
|
GetActiveTrend: OverviewKPIService_GetActiveTrend;
|
|
23
24
|
/** GetChannelUsersTrend returns the daily users-with-channel series of one platform. */
|
|
24
25
|
GetChannelUsersTrend: OverviewKPIService_GetChannelUsersTrend;
|
|
26
|
+
/**
|
|
27
|
+
* GetEmailRates returns the complaint and hard bounce rates, counted the way the
|
|
28
|
+
* sending pause counts them, plus the account-wide check that pause runs on.
|
|
29
|
+
*/
|
|
30
|
+
GetEmailRates: OverviewKPIService_GetEmailRates;
|
|
25
31
|
/** GetRetentionCurve returns the D1/D7/D30 curve of one cohort. */
|
|
26
32
|
GetRetentionCurve: OverviewKPIService_GetRetentionCurve;
|
|
27
33
|
/** GetBaseChange returns how the push device base moved over a period. */
|
|
@@ -165,6 +171,53 @@ export type GetChannelUsersTrendResponse = {
|
|
|
165
171
|
/** one point per day the writer has a row for; days it never ran are absent */
|
|
166
172
|
points: GetChannelUsersTrendResponse_Point[];
|
|
167
173
|
};
|
|
174
|
+
export type GetEmailRatesRequest = {
|
|
175
|
+
applicationCode: string;
|
|
176
|
+
dayFrom: Date;
|
|
177
|
+
dayTo: Date;
|
|
178
|
+
};
|
|
179
|
+
/**
|
|
180
|
+
* EmailRates is one tally in events, the unit channels/email-feedback-api pauses by:
|
|
181
|
+
* both rates divide by sends, deliveries take no part.
|
|
182
|
+
*/
|
|
183
|
+
export type EmailRates = {
|
|
184
|
+
sends: number;
|
|
185
|
+
complaints: number;
|
|
186
|
+
hardbounces: number;
|
|
187
|
+
complaintRatePercent: number;
|
|
188
|
+
hardBounceRatePercent: number;
|
|
189
|
+
};
|
|
190
|
+
/**
|
|
191
|
+
* EmailPauseCheck is the very number the pause is decided on: the whole account over
|
|
192
|
+
* the restriction window, next to the limits it is compared against.
|
|
193
|
+
*/
|
|
194
|
+
export type EmailPauseCheck = {
|
|
195
|
+
/** emailratecounteraggregateperiod of the account, in days */
|
|
196
|
+
windowDays: number;
|
|
197
|
+
windowFrom: Date;
|
|
198
|
+
rates: EmailRates;
|
|
199
|
+
complaintRateLimitPercent: number;
|
|
200
|
+
hardBounceRateLimitPercent: number;
|
|
201
|
+
/** sends the window needs before the limits are looked at */
|
|
202
|
+
minSends: number;
|
|
203
|
+
/** false while the window holds fewer sends than min_sends: no pause can follow */
|
|
204
|
+
evaluated: boolean;
|
|
205
|
+
};
|
|
206
|
+
export type GetEmailRatesResponse_Point = {
|
|
207
|
+
day: Date;
|
|
208
|
+
rates: EmailRates;
|
|
209
|
+
};
|
|
210
|
+
export type GetEmailRatesResponse = {
|
|
211
|
+
/** the requested application and period, one point per day */
|
|
212
|
+
points: GetEmailRatesResponse_Point[];
|
|
213
|
+
/** the same application over the whole requested period */
|
|
214
|
+
totals: EmailRates;
|
|
215
|
+
/**
|
|
216
|
+
* the account-wide window the pause reads; absent scope and window on purpose
|
|
217
|
+
* differ from the two above, and that difference is the point of this field
|
|
218
|
+
*/
|
|
219
|
+
pauseCheck: EmailPauseCheck;
|
|
220
|
+
};
|
|
168
221
|
export type GetRetentionCurveRequest = {
|
|
169
222
|
applicationCode: string;
|
|
170
223
|
/** day the cohort registered on */
|