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

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",
@@ -4204,6 +4210,9 @@ export const data = {
4204
4210
  },
4205
4211
  "dormantPercent": {
4206
4212
  "type": "number"
4213
+ },
4214
+ "machineOnlyOpeners": {
4215
+ "type": "number"
4207
4216
  }
4208
4217
  }
4209
4218
  },
@@ -4390,6 +4399,58 @@ export const data = {
4390
4399
  }
4391
4400
  }
4392
4401
  },
4402
+ "pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailFrequencyCappingRequest": {
4403
+ "type": "I",
4404
+ "fields": {
4405
+ "applicationCode": {
4406
+ "type": "string"
4407
+ },
4408
+ "dayFrom": {
4409
+ "type": "Date"
4410
+ },
4411
+ "dayTo": {
4412
+ "type": "Date"
4413
+ }
4414
+ }
4415
+ },
4416
+ "pushwoosh.statistics.statistics.v2.overviewkpi.EmailFrequencyCappingDay": {
4417
+ "type": "I",
4418
+ "fields": {
4419
+ "day": {
4420
+ "type": "Date"
4421
+ },
4422
+ "suppressions": {
4423
+ "type": "number"
4424
+ },
4425
+ "uniqueUsers": {
4426
+ "type": "number"
4427
+ }
4428
+ }
4429
+ },
4430
+ "pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailFrequencyCappingResponse": {
4431
+ "type": "I",
4432
+ "fields": {
4433
+ "suppressions": {
4434
+ "type": "number"
4435
+ },
4436
+ "uniqueUsers": {
4437
+ "type": "number"
4438
+ },
4439
+ "rows": {
4440
+ "type": "pushwoosh.statistics.statistics.v2.overviewkpi.EmailFrequencyCappingDay",
4441
+ "array": true
4442
+ },
4443
+ "unresolvedSuppressions": {
4444
+ "type": "number"
4445
+ },
4446
+ "windowFrom": {
4447
+ "type": "Date"
4448
+ },
4449
+ "windowTo": {
4450
+ "type": "Date"
4451
+ }
4452
+ }
4453
+ },
4393
4454
  "pushwoosh.statistics.statistics.v2.overviewkpi.GetRetentionCurveRequest": {
4394
4455
  "type": "I",
4395
4456
  "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.853",
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. */
@@ -253,6 +256,11 @@ export type GetEmailActivityDistributionResponse = {
253
256
  clickedPercent: number;
254
257
  openedNotClickedPercent: number;
255
258
  dormantPercent: number;
259
+ /**
260
+ * of the dormant, those whose only opens in the period were Apple MPP prefetches:
261
+ * a machine fetched the pixel, so nothing proves the letter was read
262
+ */
263
+ machineOnlyOpeners: number;
256
264
  };
257
265
  export type GetEmailBaseChangeRequest = {
258
266
  applicationCode: string;
@@ -359,6 +367,32 @@ export type GetEmailSendFrequencyResponse = {
359
367
  */
360
368
  unsubscribedWithoutSends: number;
361
369
  };
370
+ export type GetEmailFrequencyCappingRequest = {
371
+ applicationCode: string;
372
+ dayFrom: Date;
373
+ dayTo: Date;
374
+ };
375
+ /** EmailFrequencyCappingDay is one bar of the chart under the totals. */
376
+ export type EmailFrequencyCappingDay = {
377
+ day: Date;
378
+ suppressions: number;
379
+ uniqueUsers: number;
380
+ };
381
+ export type GetEmailFrequencyCappingResponse = {
382
+ suppressions: number;
383
+ /** not the sum of the daily ones: a user suppressed on two days counts once */
384
+ uniqueUsers: number;
385
+ /** zero-filled over the window, so a quiet day is a bar of zero and not a gap */
386
+ rows: EmailFrequencyCappingDay[];
387
+ /**
388
+ * suppressions whose message row has already expired, so no channel could be
389
+ * read off them; they are in none of the numbers above
390
+ */
391
+ unresolvedSuppressions: number;
392
+ /** the window actually read, clamped to the suppression mart retention */
393
+ windowFrom: Date;
394
+ windowTo: Date;
395
+ };
362
396
  export type GetRetentionCurveRequest = {
363
397
  applicationCode: string;
364
398
  /** day the cohort registered on */