@pushwoosh/rpc-gateway-statistics-api 1.3.850 → 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": {
@@ -5316,6 +5374,18 @@ export const data = {
5316
5374
  "totalOpensAmpp": {
5317
5375
  "type": "number",
5318
5376
  "array": true
5377
+ },
5378
+ "reached": {
5379
+ "type": "number",
5380
+ "array": true
5381
+ },
5382
+ "read": {
5383
+ "type": "number",
5384
+ "array": true
5385
+ },
5386
+ "dismissed": {
5387
+ "type": "number",
5388
+ "array": true
5319
5389
  }
5320
5390
  }
5321
5391
  },
@@ -5372,6 +5442,15 @@ export const data = {
5372
5442
  },
5373
5443
  "totalOpenedAmpp": {
5374
5444
  "type": "number"
5445
+ },
5446
+ "reached": {
5447
+ "type": "number"
5448
+ },
5449
+ "read": {
5450
+ "type": "number"
5451
+ },
5452
+ "dismissed": {
5453
+ "type": "number"
5375
5454
  }
5376
5455
  }
5377
5456
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-statistics-api",
3
- "version": "1.3.850",
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 */
@@ -441,7 +441,7 @@ export type GetJourneyMetricsRequest = {
441
441
  };
442
442
  /** ChannelMetrics contains metrics for a specific channel over time */
443
443
  export type GetJourneyMetricsResponse_ChannelMetrics = {
444
- /** Channel name (push, email, whatsapp, sms) */
444
+ /** Channel name (push, email, whatsapp, sms, line, inbox) */
445
445
  channel: string;
446
446
  /** Sends for each timestamp */
447
447
  sends: number[];
@@ -457,7 +457,7 @@ export type GetJourneyMetricsResponse_ChannelMetrics = {
457
457
  softBounces: number[];
458
458
  /** Complaints for each timestamp */
459
459
  complaints: number[];
460
- /** Link clicks for each timestamp */
460
+ /** Link clicks for each timestamp; for inbox: entries opened (tapped) */
461
461
  clicks: number[];
462
462
  /** Unsubscribes for each timestamp */
463
463
  unsubscribes: number[];
@@ -469,10 +469,16 @@ export type GetJourneyMetricsResponse_ChannelMetrics = {
469
469
  opensAmpp: number[];
470
470
  /** Total ampp (Apple MPP / machine) opens for each timestamp, subset of total_opens */
471
471
  totalOpensAmpp: number[];
472
+ /** App Inbox only: entries that first reached the state inside the interval. Zero for other channels. */
473
+ reached: number[];
474
+ /** Read */
475
+ read: number[];
476
+ /** Dismissed, read or not */
477
+ dismissed: number[];
472
478
  };
473
479
  /** ChannelTotals contains totals for a specific channel */
474
480
  export type GetJourneyMetricsResponse_ChannelTotals = {
475
- /** Channel name (push, email, whatsapp, sms) */
481
+ /** Channel name (push, email, whatsapp, sms, line, inbox) */
476
482
  channel: string;
477
483
  /** Total messages sent for this channel */
478
484
  sent: number;
@@ -490,7 +496,7 @@ export type GetJourneyMetricsResponse_ChannelTotals = {
490
496
  softBounces: number;
491
497
  /** Total complaints for this channel */
492
498
  complaints: number;
493
- /** Total link clicks for this channel */
499
+ /** Total link clicks for this channel; for inbox: entries opened (tapped) */
494
500
  clicks: number;
495
501
  /** Total unsubscribes for this channel */
496
502
  unsubscribes: number;
@@ -506,6 +512,12 @@ export type GetJourneyMetricsResponse_ChannelTotals = {
506
512
  openedAmpp: number;
507
513
  /** Total ampp (Apple MPP / machine) opens for this channel, subset of total_opened */
508
514
  totalOpenedAmpp: number;
515
+ /** App Inbox only, zero for other channels. */
516
+ reached: number;
517
+ /** Entries read */
518
+ read: number;
519
+ /** Entries dismissed, read or not */
520
+ dismissed: number;
509
521
  };
510
522
  /** GetJourneyMetricsResponse contains journey metrics with time series data and totals broken down by channels */
511
523
  export type GetJourneyMetricsResponse = {