@pushwoosh/rpc-gateway-statistics-api 1.3.758 → 1.3.760

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
@@ -219,6 +219,18 @@ export const data = {
219
219
  "method": "post",
220
220
  "path": "/api/v2/statistics/audience/getEmailCategoryPerformance"
221
221
  },
222
+ "GetEmailFrequencyCappingCP": {
223
+ "request": "pushwoosh.statistics.statistics.v1.GetEmailFrequencyCappingCPRequest",
224
+ "response": "pushwoosh.statistics.statistics.v1.GetEmailFrequencyCappingCPResponse",
225
+ "method": "post",
226
+ "path": "/api/v2/statistics/audience/getEmailFrequencyCapping"
227
+ },
228
+ "GetEmailUnsubscribeByFrequencyCP": {
229
+ "request": "pushwoosh.statistics.statistics.v1.GetEmailUnsubscribeByFrequencyCPRequest",
230
+ "response": "pushwoosh.statistics.statistics.v1.GetEmailUnsubscribeByFrequencyCPResponse",
231
+ "method": "post",
232
+ "path": "/api/v2/statistics/audience/getEmailUnsubscribeByFrequency"
233
+ },
222
234
  "GetRetentionTotalStatisticsCP": {
223
235
  "request": "pushwoosh.statistics.statistics.v1.GetRetentionTotalStatisticsCPRequest",
224
236
  "response": "pushwoosh.statistics.statistics.v1.GetRetentionTotalStatisticsCPResponse",
@@ -1322,6 +1334,101 @@ export const data = {
1322
1334
  }
1323
1335
  }
1324
1336
  },
1337
+ "pushwoosh.statistics.statistics.v1.GetEmailFrequencyCappingCPRequest": {
1338
+ "type": "I",
1339
+ "fields": {
1340
+ "applicationCode": {
1341
+ "type": "string"
1342
+ },
1343
+ "timestampFrom": {
1344
+ "type": "string"
1345
+ },
1346
+ "timestampTo": {
1347
+ "type": "string"
1348
+ }
1349
+ }
1350
+ },
1351
+ "pushwoosh.statistics.statistics.v1.EmailFrequencyCappingMetricWithTimestamp": {
1352
+ "type": "I",
1353
+ "fields": {
1354
+ "timestamp": {
1355
+ "type": "string"
1356
+ },
1357
+ "suppressions": {
1358
+ "type": "number"
1359
+ },
1360
+ "uniqueUsers": {
1361
+ "type": "number"
1362
+ }
1363
+ }
1364
+ },
1365
+ "pushwoosh.statistics.statistics.v1.GetEmailFrequencyCappingCPResponse": {
1366
+ "type": "I",
1367
+ "fields": {
1368
+ "suppressions": {
1369
+ "type": "number"
1370
+ },
1371
+ "uniqueUsers": {
1372
+ "type": "number"
1373
+ },
1374
+ "rows": {
1375
+ "type": "pushwoosh.statistics.statistics.v1.EmailFrequencyCappingMetricWithTimestamp",
1376
+ "array": true
1377
+ },
1378
+ "windowFrom": {
1379
+ "type": "string"
1380
+ },
1381
+ "windowTo": {
1382
+ "type": "string"
1383
+ }
1384
+ }
1385
+ },
1386
+ "pushwoosh.statistics.statistics.v1.GetEmailUnsubscribeByFrequencyCPRequest": {
1387
+ "type": "I",
1388
+ "fields": {
1389
+ "applicationCode": {
1390
+ "type": "string"
1391
+ },
1392
+ "timestampFrom": {
1393
+ "type": "string"
1394
+ },
1395
+ "timestampTo": {
1396
+ "type": "string"
1397
+ }
1398
+ }
1399
+ },
1400
+ "pushwoosh.statistics.statistics.v1.EmailUnsubscribeFrequencyBucket": {
1401
+ "type": "I",
1402
+ "fields": {
1403
+ "from": {
1404
+ "type": "number"
1405
+ },
1406
+ "to": {
1407
+ "type": "number"
1408
+ },
1409
+ "recipients": {
1410
+ "type": "number"
1411
+ },
1412
+ "unsubscribed": {
1413
+ "type": "number"
1414
+ }
1415
+ }
1416
+ },
1417
+ "pushwoosh.statistics.statistics.v1.GetEmailUnsubscribeByFrequencyCPResponse": {
1418
+ "type": "I",
1419
+ "fields": {
1420
+ "buckets": {
1421
+ "type": "pushwoosh.statistics.statistics.v1.EmailUnsubscribeFrequencyBucket",
1422
+ "array": true
1423
+ },
1424
+ "windowFrom": {
1425
+ "type": "string"
1426
+ },
1427
+ "windowTo": {
1428
+ "type": "string"
1429
+ }
1430
+ }
1431
+ },
1325
1432
  "pushwoosh.statistics.statistics.v1.GetRetentionTotalStatisticsCPRequest": {
1326
1433
  "type": "I",
1327
1434
  "fields": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-statistics-api",
3
- "version": "1.3.758",
3
+ "version": "1.3.760",
4
4
  "description": "Statistics API gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -24,6 +24,8 @@ export type StatisticsService_GetSubscribersDailyStatisticsCP = RpcMethod<GetSub
24
24
  export type StatisticsService_GetEmailActivityDistributionCP = RpcMethod<GetEmailActivityDistributionCPRequest, GetEmailActivityDistributionCPResponse>;
25
25
  export type StatisticsService_GetEmailEventTriggeredPerformanceCP = RpcMethod<GetEmailEventTriggeredPerformanceCPRequest, GetEmailEventTriggeredPerformanceCPResponse>;
26
26
  export type StatisticsService_GetEmailCategoryPerformanceCP = RpcMethod<GetEmailCategoryPerformanceCPRequest, GetEmailCategoryPerformanceCPResponse>;
27
+ export type StatisticsService_GetEmailFrequencyCappingCP = RpcMethod<GetEmailFrequencyCappingCPRequest, GetEmailFrequencyCappingCPResponse>;
28
+ export type StatisticsService_GetEmailUnsubscribeByFrequencyCP = RpcMethod<GetEmailUnsubscribeByFrequencyCPRequest, GetEmailUnsubscribeByFrequencyCPResponse>;
27
29
  export type StatisticsService_GetRetentionTotalStatisticsCP = RpcMethod<GetRetentionTotalStatisticsCPRequest, GetRetentionTotalStatisticsCPResponse>;
28
30
  export type StatisticsService_GetEngagementTotalStatisticsCP = RpcMethod<GetEngagementTotalStatisticsCPRequest, GetEngagementTotalStatisticsCPResponse>;
29
31
  export type StatisticsService_GetActiveUsersTotalStatisticsCP = RpcMethod<GetActiveUsersTotalStatisticsCPRequest, GetActiveUsersTotalStatisticsCPResponse>;
@@ -76,6 +78,10 @@ export interface StatisticsService {
76
78
  GetEmailEventTriggeredPerformanceCP: StatisticsService_GetEmailEventTriggeredPerformanceCP;
77
79
  /** GetEmailCategoryPerformanceCP returns per-email-category performance for control panel */
78
80
  GetEmailCategoryPerformanceCP: StatisticsService_GetEmailCategoryPerformanceCP;
81
+ /** GetEmailFrequencyCappingCP returns email sends suppressed by frequency capping for control panel */
82
+ GetEmailFrequencyCappingCP: StatisticsService_GetEmailFrequencyCappingCP;
83
+ /** GetEmailUnsubscribeByFrequencyCP returns the unsubscribe rate by how many letters an address got */
84
+ GetEmailUnsubscribeByFrequencyCP: StatisticsService_GetEmailUnsubscribeByFrequencyCP;
79
85
  /** GetRetentionTotalStatisticsCP returns user retention statistics */
80
86
  GetRetentionTotalStatisticsCP: StatisticsService_GetRetentionTotalStatisticsCP;
81
87
  /** GetEngagementTotalStatisticsCP returns user engagement metrics */
@@ -521,6 +527,49 @@ export type GetEmailCategoryPerformanceCPResponse = {
521
527
  windowFrom: string;
522
528
  windowTo: string;
523
529
  };
530
+ export type GetEmailFrequencyCappingCPRequest = {
531
+ applicationCode: string;
532
+ timestampFrom: string;
533
+ timestampTo: string;
534
+ };
535
+ export type EmailFrequencyCappingMetricWithTimestamp = {
536
+ timestamp: string;
537
+ suppressions: number;
538
+ uniqueUsers: number;
539
+ };
540
+ /**
541
+ * rows are daily buckets, zero-filled over the window; the totals stand apart because a
542
+ * unique-users total is not the sum of its daily ones.
543
+ */
544
+ export type GetEmailFrequencyCappingCPResponse = {
545
+ suppressions: number;
546
+ uniqueUsers: number;
547
+ rows: EmailFrequencyCappingMetricWithTimestamp[];
548
+ /** The window actually read, clamped to the action log retention. */
549
+ windowFrom: string;
550
+ windowTo: string;
551
+ };
552
+ export type GetEmailUnsubscribeByFrequencyCPRequest = {
553
+ applicationCode: string;
554
+ timestampFrom: string;
555
+ timestampTo: string;
556
+ };
557
+ /**
558
+ * One bucket of addresses by how many letters they got in the period; to = 0 is the open
559
+ * ended last bucket.
560
+ */
561
+ export type EmailUnsubscribeFrequencyBucket = {
562
+ from: number;
563
+ to: number;
564
+ recipients: number;
565
+ unsubscribed: number;
566
+ };
567
+ export type GetEmailUnsubscribeByFrequencyCPResponse = {
568
+ buckets: EmailUnsubscribeFrequencyBucket[];
569
+ /** The window actually read, clamped to the action log retention. */
570
+ windowFrom: string;
571
+ windowTo: string;
572
+ };
524
573
  export type GetRetentionTotalStatisticsCPRequest = {
525
574
  applicationCode: string;
526
575
  timestampFrom: string;