@pushwoosh/rpc-gateway-statistics-api 1.3.846 → 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
|
@@ -3807,6 +3807,12 @@ export const data = {
|
|
|
3807
3807
|
"method": "post",
|
|
3808
3808
|
"path": "/api/v2/statistics/overview/getEmailPerformance"
|
|
3809
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
|
+
},
|
|
3810
3816
|
"GetRetentionCurve": {
|
|
3811
3817
|
"request": "pushwoosh.statistics.statistics.v2.overviewkpi.GetRetentionCurveRequest",
|
|
3812
3818
|
"response": "pushwoosh.statistics.statistics.v2.overviewkpi.GetRetentionCurveResponse",
|
|
@@ -4283,6 +4289,58 @@ export const data = {
|
|
|
4283
4289
|
}
|
|
4284
4290
|
}
|
|
4285
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
|
+
},
|
|
4286
4344
|
"pushwoosh.statistics.statistics.v2.overviewkpi.GetRetentionCurveRequest": {
|
|
4287
4345
|
"type": "I",
|
|
4288
4346
|
"fields": {
|
package/package.json
CHANGED
|
@@ -8,6 +8,7 @@ export type OverviewKPIService_GetEmailRates = RpcMethod<GetEmailRatesRequest, G
|
|
|
8
8
|
export type OverviewKPIService_GetEmailActivityDistribution = RpcMethod<GetEmailActivityDistributionRequest, GetEmailActivityDistributionResponse>;
|
|
9
9
|
export type OverviewKPIService_GetEmailBaseChange = RpcMethod<GetEmailBaseChangeRequest, GetEmailBaseChangeResponse>;
|
|
10
10
|
export type OverviewKPIService_GetEmailPerformance = RpcMethod<GetEmailPerformanceRequest, GetEmailPerformanceResponse>;
|
|
11
|
+
export type OverviewKPIService_GetEmailCategoryStats = RpcMethod<GetEmailCategoryStatsRequest, GetEmailCategoryStatsResponse>;
|
|
11
12
|
export type OverviewKPIService_GetRetentionCurve = RpcMethod<GetRetentionCurveRequest, GetRetentionCurveResponse>;
|
|
12
13
|
export type OverviewKPIService_GetBaseChange = RpcMethod<GetBaseChangeRequest, GetBaseChangeResponse>;
|
|
13
14
|
export type OverviewKPIService_GetUserMessageMetrics = RpcMethod<GetUserMessageMetricsRequest, GetUserMessageMetricsResponse>;
|
|
@@ -37,6 +38,8 @@ export interface OverviewKPIService {
|
|
|
37
38
|
GetEmailBaseChange: OverviewKPIService_GetEmailBaseChange;
|
|
38
39
|
/** GetEmailPerformance returns the sends, deliveries, opens and clicks of the period. */
|
|
39
40
|
GetEmailPerformance: OverviewKPIService_GetEmailPerformance;
|
|
41
|
+
/** GetEmailCategoryStats returns the per-category email numbers of the period. */
|
|
42
|
+
GetEmailCategoryStats: OverviewKPIService_GetEmailCategoryStats;
|
|
40
43
|
/** GetRetentionCurve returns the D1/D7/D30 curve of one cohort. */
|
|
41
44
|
GetRetentionCurve: OverviewKPIService_GetRetentionCurve;
|
|
42
45
|
/** GetBaseChange returns how the push device base moved over a period. */
|
|
@@ -297,6 +300,37 @@ export type GetEmailPerformanceResponse = {
|
|
|
297
300
|
bySends: EmailPerformanceCounts;
|
|
298
301
|
byUsers: EmailPerformanceCounts;
|
|
299
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
|
+
};
|
|
300
334
|
export type GetRetentionCurveRequest = {
|
|
301
335
|
applicationCode: string;
|
|
302
336
|
/** day the cohort registered on */
|