@pushwoosh/rpc-gateway-statistics-api 1.3.765 → 1.3.766
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
|
@@ -3821,6 +3821,12 @@ export const data = {
|
|
|
3821
3821
|
"response": "pushwoosh.statistics.statistics.v2.statistics.GetActiveAudienceResponse",
|
|
3822
3822
|
"method": "post",
|
|
3823
3823
|
"path": "/api/v2/statistics/audience/getActiveAudience"
|
|
3824
|
+
},
|
|
3825
|
+
"GetEmailCategoryPerformance": {
|
|
3826
|
+
"request": "pushwoosh.statistics.statistics.v2.statistics.GetEmailCategoryPerformanceRequest",
|
|
3827
|
+
"response": "pushwoosh.statistics.statistics.v2.statistics.GetEmailCategoryPerformanceResponse",
|
|
3828
|
+
"method": "post",
|
|
3829
|
+
"path": "/api/v2/statistics/messages/getEmailCategoryPerformance"
|
|
3824
3830
|
}
|
|
3825
3831
|
}
|
|
3826
3832
|
},
|
|
@@ -5370,5 +5376,59 @@ export const data = {
|
|
|
5370
5376
|
"array": true
|
|
5371
5377
|
}
|
|
5372
5378
|
}
|
|
5379
|
+
},
|
|
5380
|
+
"pushwoosh.statistics.statistics.v2.statistics.GetEmailCategoryPerformanceRequest": {
|
|
5381
|
+
"type": "I",
|
|
5382
|
+
"fields": {
|
|
5383
|
+
"application": {
|
|
5384
|
+
"type": "string"
|
|
5385
|
+
},
|
|
5386
|
+
"dateFrom": {
|
|
5387
|
+
"type": "Date"
|
|
5388
|
+
},
|
|
5389
|
+
"dateTo": {
|
|
5390
|
+
"type": "Date"
|
|
5391
|
+
},
|
|
5392
|
+
"campaignCategories": {
|
|
5393
|
+
"type": "string",
|
|
5394
|
+
"mapKeyType": "number"
|
|
5395
|
+
}
|
|
5396
|
+
}
|
|
5397
|
+
},
|
|
5398
|
+
"pushwoosh.statistics.statistics.v2.statistics.EmailCategoryCounters": {
|
|
5399
|
+
"type": "I",
|
|
5400
|
+
"fields": {
|
|
5401
|
+
"categoryCode": {
|
|
5402
|
+
"type": "string"
|
|
5403
|
+
},
|
|
5404
|
+
"sends": {
|
|
5405
|
+
"type": "number"
|
|
5406
|
+
},
|
|
5407
|
+
"opens": {
|
|
5408
|
+
"type": "number"
|
|
5409
|
+
},
|
|
5410
|
+
"clicks": {
|
|
5411
|
+
"type": "number"
|
|
5412
|
+
}
|
|
5413
|
+
}
|
|
5414
|
+
},
|
|
5415
|
+
"pushwoosh.statistics.statistics.v2.statistics.GetEmailCategoryPerformanceResponse": {
|
|
5416
|
+
"type": "I",
|
|
5417
|
+
"fields": {
|
|
5418
|
+
"categories": {
|
|
5419
|
+
"type": "pushwoosh.statistics.statistics.v2.statistics.EmailCategoryCounters",
|
|
5420
|
+
"array": true
|
|
5421
|
+
},
|
|
5422
|
+
"unsubscribes": {
|
|
5423
|
+
"type": "number",
|
|
5424
|
+
"mapKeyType": "string"
|
|
5425
|
+
},
|
|
5426
|
+
"windowFrom": {
|
|
5427
|
+
"type": "Date"
|
|
5428
|
+
},
|
|
5429
|
+
"windowTo": {
|
|
5430
|
+
"type": "Date"
|
|
5431
|
+
}
|
|
5432
|
+
}
|
|
5373
5433
|
}
|
|
5374
5434
|
};
|
package/package.json
CHANGED
|
@@ -17,6 +17,7 @@ export type StatisticsService_GetCampaignDeliveryFunnel = RpcMethod<GetCampaignD
|
|
|
17
17
|
export type StatisticsService_GetMessageDeliveryTimeline = RpcMethod<GetMessageDeliveryTimelineRequest, GetDeliveryTimelineResponse>;
|
|
18
18
|
export type StatisticsService_GetCampaignDeliveryTimeline = RpcMethod<GetCampaignDeliveryTimelineRequest, GetDeliveryTimelineResponse>;
|
|
19
19
|
export type StatisticsService_GetActiveAudience = RpcMethod<GetActiveAudienceRequest, GetActiveAudienceResponse>;
|
|
20
|
+
export type StatisticsService_GetEmailCategoryPerformance = RpcMethod<GetEmailCategoryPerformanceRequest, GetEmailCategoryPerformanceResponse>;
|
|
20
21
|
/** StatisticsService provides various statistics operations */
|
|
21
22
|
export interface StatisticsService {
|
|
22
23
|
/** GetMessagesStatistics returns message statistics grouped by platform and time intervals */
|
|
@@ -65,6 +66,11 @@ export interface StatisticsService {
|
|
|
65
66
|
GetCampaignDeliveryTimeline: StatisticsService_GetCampaignDeliveryTimeline;
|
|
66
67
|
/** GetActiveAudience returns active users and active devices groped by application and platform */
|
|
67
68
|
GetActiveAudience: StatisticsService_GetActiveAudience;
|
|
69
|
+
/**
|
|
70
|
+
* GetEmailCategoryPerformance counts email sends, openers and clickers per category code.
|
|
71
|
+
* The caller names the categories; statistics only groups by the names it is given.
|
|
72
|
+
*/
|
|
73
|
+
GetEmailCategoryPerformance: StatisticsService_GetEmailCategoryPerformance;
|
|
68
74
|
}
|
|
69
75
|
/** EmailEventType represents different types of email delivery events */
|
|
70
76
|
export type EmailEventType =
|
|
@@ -1106,3 +1112,42 @@ export type GetControlGroupAnalyticsResponse = {
|
|
|
1106
1112
|
/** Per-event analytics rows */
|
|
1107
1113
|
events: ControlGroupAnalyticsEvent[];
|
|
1108
1114
|
};
|
|
1115
|
+
/** GetEmailCategoryPerformanceRequest asks for per-category counters over the period */
|
|
1116
|
+
export type GetEmailCategoryPerformanceRequest = {
|
|
1117
|
+
/** Application Code */
|
|
1118
|
+
application: string;
|
|
1119
|
+
/** Period start */
|
|
1120
|
+
dateFrom: Date;
|
|
1121
|
+
/** Period end */
|
|
1122
|
+
dateTo: Date;
|
|
1123
|
+
/**
|
|
1124
|
+
* Category code per campaign, for the email sends that have no message row of their own;
|
|
1125
|
+
* a send with a message row is named by the message and ignores this map.
|
|
1126
|
+
*/
|
|
1127
|
+
campaignCategories: Record<number, string>;
|
|
1128
|
+
};
|
|
1129
|
+
/** EmailCategoryCounters holds the counters of one category code */
|
|
1130
|
+
export type EmailCategoryCounters = {
|
|
1131
|
+
/** Category code the sends were grouped by */
|
|
1132
|
+
categoryCode: string;
|
|
1133
|
+
/** Letters sent */
|
|
1134
|
+
sends: number;
|
|
1135
|
+
/** Recipients who opened at least one of them */
|
|
1136
|
+
opens: number;
|
|
1137
|
+
/** Recipients who clicked a link other than unsubscribe */
|
|
1138
|
+
clicks: number;
|
|
1139
|
+
};
|
|
1140
|
+
/**
|
|
1141
|
+
* GetEmailCategoryPerformanceResponse contains per-category counters and the unsubscribes
|
|
1142
|
+
* the unsubscribe event reports, keyed by the category name it carries
|
|
1143
|
+
*/
|
|
1144
|
+
export type GetEmailCategoryPerformanceResponse = {
|
|
1145
|
+
/** Categories something was sent to */
|
|
1146
|
+
categories: EmailCategoryCounters[];
|
|
1147
|
+
/** Unsubscribed recipients per category name */
|
|
1148
|
+
unsubscribes: Record<string, number>;
|
|
1149
|
+
/** Window actually read, clamped to retention */
|
|
1150
|
+
windowFrom: Date;
|
|
1151
|
+
/** Window actually read */
|
|
1152
|
+
windowTo: Date;
|
|
1153
|
+
};
|