@pushwoosh/rpc-gateway-statistics-api 1.3.851 → 1.3.852

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
@@ -3819,6 +3819,12 @@ export const data = {
3819
3819
  "method": "post",
3820
3820
  "path": "/api/v2/statistics/overview/getEmailSendFrequency"
3821
3821
  },
3822
+ "GetEmailFrequencyCapping": {
3823
+ "request": "pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailFrequencyCappingRequest",
3824
+ "response": "pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailFrequencyCappingResponse",
3825
+ "method": "post",
3826
+ "path": "/api/v2/statistics/overview/getEmailFrequencyCapping"
3827
+ },
3822
3828
  "GetRetentionCurve": {
3823
3829
  "request": "pushwoosh.statistics.statistics.v2.overviewkpi.GetRetentionCurveRequest",
3824
3830
  "response": "pushwoosh.statistics.statistics.v2.overviewkpi.GetRetentionCurveResponse",
@@ -4390,6 +4396,58 @@ export const data = {
4390
4396
  }
4391
4397
  }
4392
4398
  },
4399
+ "pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailFrequencyCappingRequest": {
4400
+ "type": "I",
4401
+ "fields": {
4402
+ "applicationCode": {
4403
+ "type": "string"
4404
+ },
4405
+ "dayFrom": {
4406
+ "type": "Date"
4407
+ },
4408
+ "dayTo": {
4409
+ "type": "Date"
4410
+ }
4411
+ }
4412
+ },
4413
+ "pushwoosh.statistics.statistics.v2.overviewkpi.EmailFrequencyCappingDay": {
4414
+ "type": "I",
4415
+ "fields": {
4416
+ "day": {
4417
+ "type": "Date"
4418
+ },
4419
+ "suppressions": {
4420
+ "type": "number"
4421
+ },
4422
+ "uniqueUsers": {
4423
+ "type": "number"
4424
+ }
4425
+ }
4426
+ },
4427
+ "pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailFrequencyCappingResponse": {
4428
+ "type": "I",
4429
+ "fields": {
4430
+ "suppressions": {
4431
+ "type": "number"
4432
+ },
4433
+ "uniqueUsers": {
4434
+ "type": "number"
4435
+ },
4436
+ "rows": {
4437
+ "type": "pushwoosh.statistics.statistics.v2.overviewkpi.EmailFrequencyCappingDay",
4438
+ "array": true
4439
+ },
4440
+ "unresolvedSuppressions": {
4441
+ "type": "number"
4442
+ },
4443
+ "windowFrom": {
4444
+ "type": "Date"
4445
+ },
4446
+ "windowTo": {
4447
+ "type": "Date"
4448
+ }
4449
+ }
4450
+ },
4393
4451
  "pushwoosh.statistics.statistics.v2.overviewkpi.GetRetentionCurveRequest": {
4394
4452
  "type": "I",
4395
4453
  "fields": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-statistics-api",
3
- "version": "1.3.851",
3
+ "version": "1.3.852",
4
4
  "description": "Statistics API gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -10,6 +10,7 @@ export type OverviewKPIService_GetEmailBaseChange = RpcMethod<GetEmailBaseChange
10
10
  export type OverviewKPIService_GetEmailPerformance = RpcMethod<GetEmailPerformanceRequest, GetEmailPerformanceResponse>;
11
11
  export type OverviewKPIService_GetEmailCategoryStats = RpcMethod<GetEmailCategoryStatsRequest, GetEmailCategoryStatsResponse>;
12
12
  export type OverviewKPIService_GetEmailSendFrequency = RpcMethod<GetEmailSendFrequencyRequest, GetEmailSendFrequencyResponse>;
13
+ export type OverviewKPIService_GetEmailFrequencyCapping = RpcMethod<GetEmailFrequencyCappingRequest, GetEmailFrequencyCappingResponse>;
13
14
  export type OverviewKPIService_GetRetentionCurve = RpcMethod<GetRetentionCurveRequest, GetRetentionCurveResponse>;
14
15
  export type OverviewKPIService_GetBaseChange = RpcMethod<GetBaseChangeRequest, GetBaseChangeResponse>;
15
16
  export type OverviewKPIService_GetUserMessageMetrics = RpcMethod<GetUserMessageMetricsRequest, GetUserMessageMetricsResponse>;
@@ -43,6 +44,8 @@ export interface OverviewKPIService {
43
44
  GetEmailCategoryStats: OverviewKPIService_GetEmailCategoryStats;
44
45
  /** GetEmailSendFrequency splits the users of the period by how many letters they got. */
45
46
  GetEmailSendFrequency: OverviewKPIService_GetEmailSendFrequency;
47
+ /** GetEmailFrequencyCapping returns the email sends frequency capping suppressed. */
48
+ GetEmailFrequencyCapping: OverviewKPIService_GetEmailFrequencyCapping;
46
49
  /** GetRetentionCurve returns the D1/D7/D30 curve of one cohort. */
47
50
  GetRetentionCurve: OverviewKPIService_GetRetentionCurve;
48
51
  /** GetBaseChange returns how the push device base moved over a period. */
@@ -359,6 +362,32 @@ export type GetEmailSendFrequencyResponse = {
359
362
  */
360
363
  unsubscribedWithoutSends: number;
361
364
  };
365
+ export type GetEmailFrequencyCappingRequest = {
366
+ applicationCode: string;
367
+ dayFrom: Date;
368
+ dayTo: Date;
369
+ };
370
+ /** EmailFrequencyCappingDay is one bar of the chart under the totals. */
371
+ export type EmailFrequencyCappingDay = {
372
+ day: Date;
373
+ suppressions: number;
374
+ uniqueUsers: number;
375
+ };
376
+ export type GetEmailFrequencyCappingResponse = {
377
+ suppressions: number;
378
+ /** not the sum of the daily ones: a user suppressed on two days counts once */
379
+ uniqueUsers: number;
380
+ /** zero-filled over the window, so a quiet day is a bar of zero and not a gap */
381
+ rows: EmailFrequencyCappingDay[];
382
+ /**
383
+ * suppressions whose message row has already expired, so no channel could be
384
+ * read off them; they are in none of the numbers above
385
+ */
386
+ unresolvedSuppressions: number;
387
+ /** the window actually read, clamped to the suppression mart retention */
388
+ windowFrom: Date;
389
+ windowTo: Date;
390
+ };
362
391
  export type GetRetentionCurveRequest = {
363
392
  applicationCode: string;
364
393
  /** day the cohort registered on */