@pushwoosh/rpc-gateway-statistics-api 1.3.845 → 1.3.847
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
|
@@ -3801,6 +3801,18 @@ export const data = {
|
|
|
3801
3801
|
"method": "post",
|
|
3802
3802
|
"path": "/api/v2/statistics/overview/getEmailBaseChange"
|
|
3803
3803
|
},
|
|
3804
|
+
"GetEmailPerformance": {
|
|
3805
|
+
"request": "pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailPerformanceRequest",
|
|
3806
|
+
"response": "pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailPerformanceResponse",
|
|
3807
|
+
"method": "post",
|
|
3808
|
+
"path": "/api/v2/statistics/overview/getEmailPerformance"
|
|
3809
|
+
},
|
|
3810
|
+
"GetEmailCategoryStats": {
|
|
3811
|
+
"request": "pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailCategoryStatsRequest",
|
|
3812
|
+
"response": "pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailCategoryStatsResponse",
|
|
3813
|
+
"method": "post",
|
|
3814
|
+
"path": "/api/v2/statistics/overview/getEmailCategoryStats"
|
|
3815
|
+
},
|
|
3804
3816
|
"GetRetentionCurve": {
|
|
3805
3817
|
"request": "pushwoosh.statistics.statistics.v2.overviewkpi.GetRetentionCurveRequest",
|
|
3806
3818
|
"response": "pushwoosh.statistics.statistics.v2.overviewkpi.GetRetentionCurveResponse",
|
|
@@ -4235,6 +4247,100 @@ export const data = {
|
|
|
4235
4247
|
}
|
|
4236
4248
|
}
|
|
4237
4249
|
},
|
|
4250
|
+
"pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailPerformanceRequest": {
|
|
4251
|
+
"type": "I",
|
|
4252
|
+
"fields": {
|
|
4253
|
+
"applicationCode": {
|
|
4254
|
+
"type": "string"
|
|
4255
|
+
},
|
|
4256
|
+
"dayFrom": {
|
|
4257
|
+
"type": "Date"
|
|
4258
|
+
},
|
|
4259
|
+
"dayTo": {
|
|
4260
|
+
"type": "Date"
|
|
4261
|
+
}
|
|
4262
|
+
}
|
|
4263
|
+
},
|
|
4264
|
+
"pushwoosh.statistics.statistics.v2.overviewkpi.EmailPerformanceCounts": {
|
|
4265
|
+
"type": "I",
|
|
4266
|
+
"fields": {
|
|
4267
|
+
"sends": {
|
|
4268
|
+
"type": "number"
|
|
4269
|
+
},
|
|
4270
|
+
"deliveries": {
|
|
4271
|
+
"type": "number"
|
|
4272
|
+
},
|
|
4273
|
+
"opens": {
|
|
4274
|
+
"type": "number"
|
|
4275
|
+
},
|
|
4276
|
+
"clicks": {
|
|
4277
|
+
"type": "number"
|
|
4278
|
+
}
|
|
4279
|
+
}
|
|
4280
|
+
},
|
|
4281
|
+
"pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailPerformanceResponse": {
|
|
4282
|
+
"type": "I",
|
|
4283
|
+
"fields": {
|
|
4284
|
+
"bySends": {
|
|
4285
|
+
"type": "pushwoosh.statistics.statistics.v2.overviewkpi.EmailPerformanceCounts"
|
|
4286
|
+
},
|
|
4287
|
+
"byUsers": {
|
|
4288
|
+
"type": "pushwoosh.statistics.statistics.v2.overviewkpi.EmailPerformanceCounts"
|
|
4289
|
+
}
|
|
4290
|
+
}
|
|
4291
|
+
},
|
|
4292
|
+
"pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailCategoryStatsRequest": {
|
|
4293
|
+
"type": "I",
|
|
4294
|
+
"fields": {
|
|
4295
|
+
"applicationCode": {
|
|
4296
|
+
"type": "string"
|
|
4297
|
+
},
|
|
4298
|
+
"dayFrom": {
|
|
4299
|
+
"type": "Date"
|
|
4300
|
+
},
|
|
4301
|
+
"dayTo": {
|
|
4302
|
+
"type": "Date"
|
|
4303
|
+
}
|
|
4304
|
+
}
|
|
4305
|
+
},
|
|
4306
|
+
"pushwoosh.statistics.statistics.v2.overviewkpi.EmailCategoryStats": {
|
|
4307
|
+
"type": "I",
|
|
4308
|
+
"fields": {
|
|
4309
|
+
"categoryCode": {
|
|
4310
|
+
"type": "string"
|
|
4311
|
+
},
|
|
4312
|
+
"categoryName": {
|
|
4313
|
+
"type": "string"
|
|
4314
|
+
},
|
|
4315
|
+
"sends": {
|
|
4316
|
+
"type": "number"
|
|
4317
|
+
},
|
|
4318
|
+
"recipients": {
|
|
4319
|
+
"type": "number"
|
|
4320
|
+
},
|
|
4321
|
+
"opens": {
|
|
4322
|
+
"type": "number"
|
|
4323
|
+
},
|
|
4324
|
+
"clicks": {
|
|
4325
|
+
"type": "number"
|
|
4326
|
+
},
|
|
4327
|
+
"unsubscribers": {
|
|
4328
|
+
"type": "number"
|
|
4329
|
+
},
|
|
4330
|
+
"cohortUnsubscribers": {
|
|
4331
|
+
"type": "number"
|
|
4332
|
+
}
|
|
4333
|
+
}
|
|
4334
|
+
},
|
|
4335
|
+
"pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailCategoryStatsResponse": {
|
|
4336
|
+
"type": "I",
|
|
4337
|
+
"fields": {
|
|
4338
|
+
"rows": {
|
|
4339
|
+
"type": "pushwoosh.statistics.statistics.v2.overviewkpi.EmailCategoryStats",
|
|
4340
|
+
"array": true
|
|
4341
|
+
}
|
|
4342
|
+
}
|
|
4343
|
+
},
|
|
4238
4344
|
"pushwoosh.statistics.statistics.v2.overviewkpi.GetRetentionCurveRequest": {
|
|
4239
4345
|
"type": "I",
|
|
4240
4346
|
"fields": {
|
package/package.json
CHANGED
|
@@ -7,6 +7,8 @@ export type OverviewKPIService_GetChannelUsersTrend = RpcMethod<GetChannelUsersT
|
|
|
7
7
|
export type OverviewKPIService_GetEmailRates = RpcMethod<GetEmailRatesRequest, GetEmailRatesResponse>;
|
|
8
8
|
export type OverviewKPIService_GetEmailActivityDistribution = RpcMethod<GetEmailActivityDistributionRequest, GetEmailActivityDistributionResponse>;
|
|
9
9
|
export type OverviewKPIService_GetEmailBaseChange = RpcMethod<GetEmailBaseChangeRequest, GetEmailBaseChangeResponse>;
|
|
10
|
+
export type OverviewKPIService_GetEmailPerformance = RpcMethod<GetEmailPerformanceRequest, GetEmailPerformanceResponse>;
|
|
11
|
+
export type OverviewKPIService_GetEmailCategoryStats = RpcMethod<GetEmailCategoryStatsRequest, GetEmailCategoryStatsResponse>;
|
|
10
12
|
export type OverviewKPIService_GetRetentionCurve = RpcMethod<GetRetentionCurveRequest, GetRetentionCurveResponse>;
|
|
11
13
|
export type OverviewKPIService_GetBaseChange = RpcMethod<GetBaseChangeRequest, GetBaseChangeResponse>;
|
|
12
14
|
export type OverviewKPIService_GetUserMessageMetrics = RpcMethod<GetUserMessageMetricsRequest, GetUserMessageMetricsResponse>;
|
|
@@ -34,6 +36,10 @@ export interface OverviewKPIService {
|
|
|
34
36
|
GetEmailActivityDistribution: OverviewKPIService_GetEmailActivityDistribution;
|
|
35
37
|
/** GetEmailBaseChange returns how the email user base moved over a period. */
|
|
36
38
|
GetEmailBaseChange: OverviewKPIService_GetEmailBaseChange;
|
|
39
|
+
/** GetEmailPerformance returns the sends, deliveries, opens and clicks of the period. */
|
|
40
|
+
GetEmailPerformance: OverviewKPIService_GetEmailPerformance;
|
|
41
|
+
/** GetEmailCategoryStats returns the per-category email numbers of the period. */
|
|
42
|
+
GetEmailCategoryStats: OverviewKPIService_GetEmailCategoryStats;
|
|
37
43
|
/** GetRetentionCurve returns the D1/D7/D30 curve of one cohort. */
|
|
38
44
|
GetRetentionCurve: OverviewKPIService_GetRetentionCurve;
|
|
39
45
|
/** GetBaseChange returns how the push device base moved over a period. */
|
|
@@ -275,6 +281,56 @@ export type GetEmailBaseChangeResponse = {
|
|
|
275
281
|
/** false when the period holds no snapshot day at all */
|
|
276
282
|
baseAvailable: boolean;
|
|
277
283
|
};
|
|
284
|
+
export type GetEmailPerformanceRequest = {
|
|
285
|
+
applicationCode: string;
|
|
286
|
+
dayFrom: Date;
|
|
287
|
+
dayTo: Date;
|
|
288
|
+
};
|
|
289
|
+
/** EmailPerformanceCounts is one counting unit of the four numbers the tiles divide. */
|
|
290
|
+
export type EmailPerformanceCounts = {
|
|
291
|
+
sends: number;
|
|
292
|
+
deliveries: number;
|
|
293
|
+
/** Apple MPP prefetches are left out where the log marks them */
|
|
294
|
+
opens: number;
|
|
295
|
+
/** clicks on our own unsubscribe link belong to the unsubscribe event, not here */
|
|
296
|
+
clicks: number;
|
|
297
|
+
};
|
|
298
|
+
export type GetEmailPerformanceResponse = {
|
|
299
|
+
/** every email of the application, whatever composed it */
|
|
300
|
+
bySends: EmailPerformanceCounts;
|
|
301
|
+
byUsers: EmailPerformanceCounts;
|
|
302
|
+
};
|
|
303
|
+
export type GetEmailCategoryStatsRequest = {
|
|
304
|
+
applicationCode: string;
|
|
305
|
+
dayFrom: Date;
|
|
306
|
+
dayTo: Date;
|
|
307
|
+
};
|
|
308
|
+
/**
|
|
309
|
+
* EmailCategoryStats is one row of the table. An empty code is the letters that
|
|
310
|
+
* neither their message nor their journey point names.
|
|
311
|
+
*/
|
|
312
|
+
export type EmailCategoryStats = {
|
|
313
|
+
categoryCode: string;
|
|
314
|
+
categoryName: string;
|
|
315
|
+
/** letters, not recipients */
|
|
316
|
+
sends: number;
|
|
317
|
+
recipients: number;
|
|
318
|
+
/** users who opened; Apple MPP prefetches are left out where the log marks them */
|
|
319
|
+
opens: number;
|
|
320
|
+
/** users who clicked; our own unsubscribe link belongs to the unsubscribe event */
|
|
321
|
+
clicks: number;
|
|
322
|
+
/** everyone who unsubscribed inside the period, whatever letter caused it */
|
|
323
|
+
unsubscribers: number;
|
|
324
|
+
/**
|
|
325
|
+
* of them, those whose letter was sent inside the period too: the only
|
|
326
|
+
* numerator that cannot exceed the sends it is divided by
|
|
327
|
+
*/
|
|
328
|
+
cohortUnsubscribers: number;
|
|
329
|
+
};
|
|
330
|
+
export type GetEmailCategoryStatsResponse = {
|
|
331
|
+
/** one row per category of the application, zero rows and the unnamed row included */
|
|
332
|
+
rows: EmailCategoryStats[];
|
|
333
|
+
};
|
|
278
334
|
export type GetRetentionCurveRequest = {
|
|
279
335
|
applicationCode: string;
|
|
280
336
|
/** day the cohort registered on */
|