@pushwoosh/rpc-gateway-statistics-api 1.3.842 → 1.3.843
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
|
@@ -3789,6 +3789,12 @@ export const data = {
|
|
|
3789
3789
|
"method": "post",
|
|
3790
3790
|
"path": "/api/v2/statistics/overview/getEmailRates"
|
|
3791
3791
|
},
|
|
3792
|
+
"GetEmailActivityDistribution": {
|
|
3793
|
+
"request": "pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailActivityDistributionRequest",
|
|
3794
|
+
"response": "pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailActivityDistributionResponse",
|
|
3795
|
+
"method": "post",
|
|
3796
|
+
"path": "/api/v2/statistics/overview/getEmailActivityDistribution"
|
|
3797
|
+
},
|
|
3792
3798
|
"GetRetentionCurve": {
|
|
3793
3799
|
"request": "pushwoosh.statistics.statistics.v2.overviewkpi.GetRetentionCurveRequest",
|
|
3794
3800
|
"response": "pushwoosh.statistics.statistics.v2.overviewkpi.GetRetentionCurveResponse",
|
|
@@ -4134,6 +4140,49 @@ export const data = {
|
|
|
4134
4140
|
}
|
|
4135
4141
|
}
|
|
4136
4142
|
},
|
|
4143
|
+
"pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailActivityDistributionRequest": {
|
|
4144
|
+
"type": "I",
|
|
4145
|
+
"fields": {
|
|
4146
|
+
"applicationCode": {
|
|
4147
|
+
"type": "string"
|
|
4148
|
+
},
|
|
4149
|
+
"dayFrom": {
|
|
4150
|
+
"type": "Date"
|
|
4151
|
+
},
|
|
4152
|
+
"dayTo": {
|
|
4153
|
+
"type": "Date"
|
|
4154
|
+
}
|
|
4155
|
+
}
|
|
4156
|
+
},
|
|
4157
|
+
"pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailActivityDistributionResponse": {
|
|
4158
|
+
"type": "I",
|
|
4159
|
+
"fields": {
|
|
4160
|
+
"base": {
|
|
4161
|
+
"type": "number"
|
|
4162
|
+
},
|
|
4163
|
+
"baseDay": {
|
|
4164
|
+
"type": "Date"
|
|
4165
|
+
},
|
|
4166
|
+
"clicked": {
|
|
4167
|
+
"type": "number"
|
|
4168
|
+
},
|
|
4169
|
+
"openedNotClicked": {
|
|
4170
|
+
"type": "number"
|
|
4171
|
+
},
|
|
4172
|
+
"dormant": {
|
|
4173
|
+
"type": "number"
|
|
4174
|
+
},
|
|
4175
|
+
"clickedPercent": {
|
|
4176
|
+
"type": "number"
|
|
4177
|
+
},
|
|
4178
|
+
"openedNotClickedPercent": {
|
|
4179
|
+
"type": "number"
|
|
4180
|
+
},
|
|
4181
|
+
"dormantPercent": {
|
|
4182
|
+
"type": "number"
|
|
4183
|
+
}
|
|
4184
|
+
}
|
|
4185
|
+
},
|
|
4137
4186
|
"pushwoosh.statistics.statistics.v2.overviewkpi.GetRetentionCurveRequest": {
|
|
4138
4187
|
"type": "I",
|
|
4139
4188
|
"fields": {
|
package/package.json
CHANGED
|
@@ -5,6 +5,7 @@ export type OverviewKPIService_GetReachByPlatform = RpcMethod<GetReachByPlatform
|
|
|
5
5
|
export type OverviewKPIService_GetActiveTrend = RpcMethod<GetActiveTrendRequest, GetActiveTrendResponse>;
|
|
6
6
|
export type OverviewKPIService_GetChannelUsersTrend = RpcMethod<GetChannelUsersTrendRequest, GetChannelUsersTrendResponse>;
|
|
7
7
|
export type OverviewKPIService_GetEmailRates = RpcMethod<GetEmailRatesRequest, GetEmailRatesResponse>;
|
|
8
|
+
export type OverviewKPIService_GetEmailActivityDistribution = RpcMethod<GetEmailActivityDistributionRequest, GetEmailActivityDistributionResponse>;
|
|
8
9
|
export type OverviewKPIService_GetRetentionCurve = RpcMethod<GetRetentionCurveRequest, GetRetentionCurveResponse>;
|
|
9
10
|
export type OverviewKPIService_GetBaseChange = RpcMethod<GetBaseChangeRequest, GetBaseChangeResponse>;
|
|
10
11
|
export type OverviewKPIService_GetUserMessageMetrics = RpcMethod<GetUserMessageMetricsRequest, GetUserMessageMetricsResponse>;
|
|
@@ -28,6 +29,8 @@ export interface OverviewKPIService {
|
|
|
28
29
|
* sending pause counts them, plus the account-wide check that pause runs on.
|
|
29
30
|
*/
|
|
30
31
|
GetEmailRates: OverviewKPIService_GetEmailRates;
|
|
32
|
+
/** GetEmailActivityDistribution splits the email base into clicked, opened and dormant users. */
|
|
33
|
+
GetEmailActivityDistribution: OverviewKPIService_GetEmailActivityDistribution;
|
|
31
34
|
/** GetRetentionCurve returns the D1/D7/D30 curve of one cohort. */
|
|
32
35
|
GetRetentionCurve: OverviewKPIService_GetRetentionCurve;
|
|
33
36
|
/** GetBaseChange returns how the push device base moved over a period. */
|
|
@@ -218,6 +221,27 @@ export type GetEmailRatesResponse = {
|
|
|
218
221
|
*/
|
|
219
222
|
pauseCheck: EmailPauseCheck;
|
|
220
223
|
};
|
|
224
|
+
export type GetEmailActivityDistributionRequest = {
|
|
225
|
+
applicationCode: string;
|
|
226
|
+
dayFrom: Date;
|
|
227
|
+
dayTo: Date;
|
|
228
|
+
};
|
|
229
|
+
export type GetEmailActivityDistributionResponse = {
|
|
230
|
+
/** users of the base, taken from the last snapshot day the writer has filled */
|
|
231
|
+
base: number;
|
|
232
|
+
baseDay: Date;
|
|
233
|
+
/** a click writes an open of its own, so the two groups below never overlap */
|
|
234
|
+
clicked: number;
|
|
235
|
+
openedNotClicked: number;
|
|
236
|
+
/**
|
|
237
|
+
* the base less the two above, floored at zero: the base is a snapshot while
|
|
238
|
+
* the activity is a period, so a churned user can outlive their own row
|
|
239
|
+
*/
|
|
240
|
+
dormant: number;
|
|
241
|
+
clickedPercent: number;
|
|
242
|
+
openedNotClickedPercent: number;
|
|
243
|
+
dormantPercent: number;
|
|
244
|
+
};
|
|
221
245
|
export type GetRetentionCurveRequest = {
|
|
222
246
|
applicationCode: string;
|
|
223
247
|
/** day the cohort registered on */
|