@pushwoosh/rpc-gateway-statistics-api 1.3.755 → 1.3.757

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
@@ -207,6 +207,12 @@ export const data = {
207
207
  "method": "post",
208
208
  "path": "/api/v2/statistics/audience/getEmailActivityDistribution"
209
209
  },
210
+ "GetEmailEventTriggeredPerformanceCP": {
211
+ "request": "pushwoosh.statistics.statistics.v1.GetEmailEventTriggeredPerformanceCPRequest",
212
+ "response": "pushwoosh.statistics.statistics.v1.GetEmailEventTriggeredPerformanceCPResponse",
213
+ "method": "post",
214
+ "path": "/api/v2/statistics/audience/getEmailEventTriggeredPerformance"
215
+ },
210
216
  "GetRetentionTotalStatisticsCP": {
211
217
  "request": "pushwoosh.statistics.statistics.v1.GetRetentionTotalStatisticsCPRequest",
212
218
  "response": "pushwoosh.statistics.statistics.v1.GetRetentionTotalStatisticsCPResponse",
@@ -1210,6 +1216,54 @@ export const data = {
1210
1216
  }
1211
1217
  }
1212
1218
  },
1219
+ "pushwoosh.statistics.statistics.v1.GetEmailEventTriggeredPerformanceCPRequest": {
1220
+ "type": "I",
1221
+ "fields": {
1222
+ "applicationCode": {
1223
+ "type": "string"
1224
+ },
1225
+ "timestampFrom": {
1226
+ "type": "string"
1227
+ },
1228
+ "timestampTo": {
1229
+ "type": "string"
1230
+ }
1231
+ }
1232
+ },
1233
+ "pushwoosh.statistics.statistics.v1.EmailPerformanceCounts": {
1234
+ "type": "I",
1235
+ "fields": {
1236
+ "sends": {
1237
+ "type": "number"
1238
+ },
1239
+ "deliveries": {
1240
+ "type": "number"
1241
+ },
1242
+ "opens": {
1243
+ "type": "number"
1244
+ },
1245
+ "clicks": {
1246
+ "type": "number"
1247
+ }
1248
+ }
1249
+ },
1250
+ "pushwoosh.statistics.statistics.v1.GetEmailEventTriggeredPerformanceCPResponse": {
1251
+ "type": "I",
1252
+ "fields": {
1253
+ "bySends": {
1254
+ "type": "pushwoosh.statistics.statistics.v1.EmailPerformanceCounts"
1255
+ },
1256
+ "byUniques": {
1257
+ "type": "pushwoosh.statistics.statistics.v1.EmailPerformanceCounts"
1258
+ },
1259
+ "windowFrom": {
1260
+ "type": "string"
1261
+ },
1262
+ "windowTo": {
1263
+ "type": "string"
1264
+ }
1265
+ }
1266
+ },
1213
1267
  "pushwoosh.statistics.statistics.v1.GetRetentionTotalStatisticsCPRequest": {
1214
1268
  "type": "I",
1215
1269
  "fields": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-statistics-api",
3
- "version": "1.3.755",
3
+ "version": "1.3.757",
4
4
  "description": "Statistics API gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -22,6 +22,7 @@ export type StatisticsService_GetAverageCTRTotalStatisticsCP = RpcMethod<GetAver
22
22
  export type StatisticsService_GetSubscribersTotalStatisticsCP = RpcMethod<GetSubscribersTotalStatisticsCPRequest, GetSubscribersTotalStatisticsCPResponse>;
23
23
  export type StatisticsService_GetSubscribersDailyStatisticsCP = RpcMethod<GetSubscribersDailyStatisticsCPRequest, GetSubscribersDailyStatisticsCPResponse>;
24
24
  export type StatisticsService_GetEmailActivityDistributionCP = RpcMethod<GetEmailActivityDistributionCPRequest, GetEmailActivityDistributionCPResponse>;
25
+ export type StatisticsService_GetEmailEventTriggeredPerformanceCP = RpcMethod<GetEmailEventTriggeredPerformanceCPRequest, GetEmailEventTriggeredPerformanceCPResponse>;
25
26
  export type StatisticsService_GetRetentionTotalStatisticsCP = RpcMethod<GetRetentionTotalStatisticsCPRequest, GetRetentionTotalStatisticsCPResponse>;
26
27
  export type StatisticsService_GetEngagementTotalStatisticsCP = RpcMethod<GetEngagementTotalStatisticsCPRequest, GetEngagementTotalStatisticsCPResponse>;
27
28
  export type StatisticsService_GetActiveUsersTotalStatisticsCP = RpcMethod<GetActiveUsersTotalStatisticsCPRequest, GetActiveUsersTotalStatisticsCPResponse>;
@@ -70,6 +71,8 @@ export interface StatisticsService {
70
71
  GetSubscribersDailyStatisticsCP: StatisticsService_GetSubscribersDailyStatisticsCP;
71
72
  /** GetEmailActivityDistributionCP splits the email subscribers base by what they did in the period */
72
73
  GetEmailActivityDistributionCP: StatisticsService_GetEmailActivityDistributionCP;
74
+ /** GetEmailEventTriggeredPerformanceCP returns performance of event-triggered emails for control panel */
75
+ GetEmailEventTriggeredPerformanceCP: StatisticsService_GetEmailEventTriggeredPerformanceCP;
73
76
  /** GetRetentionTotalStatisticsCP returns user retention statistics */
74
77
  GetRetentionTotalStatisticsCP: StatisticsService_GetRetentionTotalStatisticsCP;
75
78
  /** GetEngagementTotalStatisticsCP returns user engagement metrics */
@@ -468,6 +471,32 @@ export type GetEmailActivityDistributionCPResponse = {
468
471
  windowFrom: string;
469
472
  windowTo: string;
470
473
  };
474
+ export type GetEmailEventTriggeredPerformanceCPRequest = {
475
+ applicationCode: string;
476
+ timestampFrom: string;
477
+ timestampTo: string;
478
+ };
479
+ export type EmailPerformanceCounts = {
480
+ sends: number;
481
+ deliveries: number;
482
+ opens: number;
483
+ clicks: number;
484
+ };
485
+ /**
486
+ * Event-triggered here means everything sent by automation — Customer Journey and the
487
+ * triggered API — as opposed to one-time campaigns composed in the control panel.
488
+ */
489
+ export type GetEmailEventTriggeredPerformanceCPResponse = {
490
+ /**
491
+ * by_sends counts every send, by_uniques counts each recipient once; both come from one
492
+ * read so the control panel switches between them without a refetch.
493
+ */
494
+ bySends: EmailPerformanceCounts;
495
+ byUniques: EmailPerformanceCounts;
496
+ /** The window actually read, clamped to the event log retention. */
497
+ windowFrom: string;
498
+ windowTo: string;
499
+ };
471
500
  export type GetRetentionTotalStatisticsCPRequest = {
472
501
  applicationCode: string;
473
502
  timestampFrom: string;