@pushwoosh/rpc-gateway-statistics-api 1.3.790 → 1.3.791

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
@@ -3504,6 +3504,12 @@ export const data = {
3504
3504
  "response": "pushwoosh.statistics.statistics.v2.overviewkpi.GetRetentionCurveResponse",
3505
3505
  "method": "post",
3506
3506
  "path": "/api/v2/statistics/overview/getRetentionCurve"
3507
+ },
3508
+ "GetBaseChange": {
3509
+ "request": "pushwoosh.statistics.statistics.v2.overviewkpi.GetBaseChangeRequest",
3510
+ "response": "pushwoosh.statistics.statistics.v2.overviewkpi.GetBaseChangeResponse",
3511
+ "method": "post",
3512
+ "path": "/api/v2/statistics/overview/getBaseChange"
3507
3513
  }
3508
3514
  }
3509
3515
  },
@@ -3722,6 +3728,46 @@ export const data = {
3722
3728
  }
3723
3729
  }
3724
3730
  },
3731
+ "pushwoosh.statistics.statistics.v2.overviewkpi.GetBaseChangeRequest": {
3732
+ "type": "I",
3733
+ "fields": {
3734
+ "applicationCode": {
3735
+ "type": "string"
3736
+ },
3737
+ "dayFrom": {
3738
+ "type": "Date"
3739
+ },
3740
+ "dayTo": {
3741
+ "type": "Date"
3742
+ }
3743
+ }
3744
+ },
3745
+ "pushwoosh.statistics.statistics.v2.overviewkpi.GetBaseChangeResponse": {
3746
+ "type": "I",
3747
+ "fields": {
3748
+ "baseStartDay": {
3749
+ "type": "Date"
3750
+ },
3751
+ "baseStart": {
3752
+ "type": "number"
3753
+ },
3754
+ "baseEndDay": {
3755
+ "type": "Date"
3756
+ },
3757
+ "baseEnd": {
3758
+ "type": "number"
3759
+ },
3760
+ "newRegistrations": {
3761
+ "type": "number"
3762
+ },
3763
+ "expiredTokens": {
3764
+ "type": "number"
3765
+ },
3766
+ "baseAvailable": {
3767
+ "type": "boolean"
3768
+ }
3769
+ }
3770
+ },
3725
3771
  "pushwoosh.statistics.statistics.v2.overviewkpi.GetMAUOverviewRequest": {
3726
3772
  "type": "I",
3727
3773
  "fields": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-statistics-api",
3
- "version": "1.3.790",
3
+ "version": "1.3.791",
4
4
  "description": "Statistics API gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -4,6 +4,7 @@ export type OverviewKPIService_GetAudienceFunnel = RpcMethod<GetAudienceFunnelRe
4
4
  export type OverviewKPIService_GetReachByPlatform = RpcMethod<GetReachByPlatformRequest, GetReachByPlatformResponse>;
5
5
  export type OverviewKPIService_GetActiveTrend = RpcMethod<GetActiveTrendRequest, GetActiveTrendResponse>;
6
6
  export type OverviewKPIService_GetRetentionCurve = RpcMethod<GetRetentionCurveRequest, GetRetentionCurveResponse>;
7
+ export type OverviewKPIService_GetBaseChange = RpcMethod<GetBaseChangeRequest, GetBaseChangeResponse>;
7
8
  /**
8
9
  * OverviewKPIService serves the user-level Overview tab. Every method reads the
9
10
  * pre-aggregated daily tables only, never the raw actions log.
@@ -19,6 +20,8 @@ export interface OverviewKPIService {
19
20
  GetActiveTrend: OverviewKPIService_GetActiveTrend;
20
21
  /** GetRetentionCurve returns the D1/D7/D30 curve of one cohort. */
21
22
  GetRetentionCurve: OverviewKPIService_GetRetentionCurve;
23
+ /** GetBaseChange returns how the push device base moved over a period. */
24
+ GetBaseChange: OverviewKPIService_GetBaseChange;
22
25
  }
23
26
  export type GetOverviewKPIRequest = {
24
27
  applicationCode: string;
@@ -126,6 +129,27 @@ export type GetRetentionCurveResponse = {
126
129
  cohortDate: Date;
127
130
  points: GetRetentionCurveResponse_Point[];
128
131
  };
132
+ export type GetBaseChangeRequest = {
133
+ applicationCode: string;
134
+ dayFrom: Date;
135
+ dayTo: Date;
136
+ };
137
+ export type GetBaseChangeResponse = {
138
+ /**
139
+ * Both bases are measured snapshots of the day named beside them, never the
140
+ * sum of the flows: the flows do not add up to the difference by themselves.
141
+ */
142
+ baseStartDay: Date;
143
+ baseStart: number;
144
+ baseEndDay: Date;
145
+ baseEnd: number;
146
+ /** devices registered over the period, push platforms only */
147
+ newRegistrations: number;
148
+ /** devices whose token a provider reported invalid, gateway responses only */
149
+ expiredTokens: number;
150
+ /** false when no snapshot exists for either end of the period */
151
+ baseAvailable: boolean;
152
+ };
129
153
  export type GetMAUOverviewRequest = {
130
154
  /** applications to sum over; ids of other accounts are ignored */
131
155
  applicationIds: number[];