@pushwoosh/rpc-gateway-statistics-api 1.3.858 → 1.3.860

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
@@ -3777,6 +3777,12 @@ export const data = {
3777
3777
  "method": "post",
3778
3778
  "path": "/api/v2/statistics/overview/getReachByPlatform"
3779
3779
  },
3780
+ "GetChannelReach": {
3781
+ "request": "pushwoosh.statistics.statistics.v2.overviewkpi.GetChannelReachRequest",
3782
+ "response": "pushwoosh.statistics.statistics.v2.overviewkpi.GetChannelReachResponse",
3783
+ "method": "post",
3784
+ "path": "/api/v2/statistics/overview/getChannelReach"
3785
+ },
3780
3786
  "GetActiveTrend": {
3781
3787
  "request": "pushwoosh.statistics.statistics.v2.overviewkpi.GetActiveTrendRequest",
3782
3788
  "response": "pushwoosh.statistics.statistics.v2.overviewkpi.GetActiveTrendResponse",
@@ -4007,6 +4013,79 @@ export const data = {
4007
4013
  }
4008
4014
  }
4009
4015
  },
4016
+ "pushwoosh.statistics.statistics.v2.overviewkpi.ReachChannel": {
4017
+ "type": "E",
4018
+ "values": [
4019
+ "REACH_CHANNEL_UNSPECIFIED",
4020
+ "REACH_CHANNEL_PUSH",
4021
+ "REACH_CHANNEL_EMAIL",
4022
+ "REACH_CHANNEL_SMS",
4023
+ "REACH_CHANNEL_WHATSAPP",
4024
+ "REACH_CHANNEL_INBOX"
4025
+ ]
4026
+ },
4027
+ "pushwoosh.statistics.statistics.v2.overviewkpi.GetChannelReachRequest": {
4028
+ "type": "I",
4029
+ "fields": {
4030
+ "applicationCode": {
4031
+ "type": "string"
4032
+ },
4033
+ "day": {
4034
+ "type": "Date"
4035
+ }
4036
+ }
4037
+ },
4038
+ "pushwoosh.statistics.statistics.v2.overviewkpi.GetChannelReachResponse.Combination": {
4039
+ "type": "I",
4040
+ "fields": {
4041
+ "channels": {
4042
+ "type": "pushwoosh.statistics.statistics.v2.overviewkpi.ReachChannel",
4043
+ "array": true
4044
+ },
4045
+ "users": {
4046
+ "type": "number"
4047
+ },
4048
+ "percent": {
4049
+ "type": "number"
4050
+ }
4051
+ }
4052
+ },
4053
+ "pushwoosh.statistics.statistics.v2.overviewkpi.GetChannelReachResponse": {
4054
+ "type": "I",
4055
+ "fields": {
4056
+ "day": {
4057
+ "type": "Date"
4058
+ },
4059
+ "total": {
4060
+ "type": "number"
4061
+ },
4062
+ "reachable": {
4063
+ "type": "number"
4064
+ },
4065
+ "reachablePercent": {
4066
+ "type": "number"
4067
+ },
4068
+ "multiChannel": {
4069
+ "type": "number"
4070
+ },
4071
+ "multiChannelPercent": {
4072
+ "type": "number"
4073
+ },
4074
+ "combinations": {
4075
+ "type": "pushwoosh.statistics.statistics.v2.overviewkpi.GetChannelReachResponse.Combination",
4076
+ "array": true
4077
+ },
4078
+ "unreachable": {
4079
+ "type": "number"
4080
+ },
4081
+ "unreachablePercent": {
4082
+ "type": "number"
4083
+ },
4084
+ "inboxAvailable": {
4085
+ "type": "boolean"
4086
+ }
4087
+ }
4088
+ },
4010
4089
  "pushwoosh.statistics.statistics.v2.overviewkpi.GetActiveTrendRequest": {
4011
4090
  "type": "I",
4012
4091
  "fields": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-statistics-api",
3
- "version": "1.3.858",
3
+ "version": "1.3.860",
4
4
  "description": "Statistics API gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -2,6 +2,7 @@ import { RpcMethod } from './commonTypes';
2
2
  export type OverviewKPIService_GetOverviewKPI = RpcMethod<GetOverviewKPIRequest, GetOverviewKPIResponse>;
3
3
  export type OverviewKPIService_GetAudienceFunnel = RpcMethod<GetAudienceFunnelRequest, GetAudienceFunnelResponse>;
4
4
  export type OverviewKPIService_GetReachByPlatform = RpcMethod<GetReachByPlatformRequest, GetReachByPlatformResponse>;
5
+ export type OverviewKPIService_GetChannelReach = RpcMethod<GetChannelReachRequest, GetChannelReachResponse>;
5
6
  export type OverviewKPIService_GetActiveTrend = RpcMethod<GetActiveTrendRequest, GetActiveTrendResponse>;
6
7
  export type OverviewKPIService_GetChannelUsersTrend = RpcMethod<GetChannelUsersTrendRequest, GetChannelUsersTrendResponse>;
7
8
  export type OverviewKPIService_GetEmailRates = RpcMethod<GetEmailRatesRequest, GetEmailRatesResponse>;
@@ -25,6 +26,11 @@ export interface OverviewKPIService {
25
26
  GetAudienceFunnel: OverviewKPIService_GetAudienceFunnel;
26
27
  /** GetReachByPlatform returns reachable users split by platform. */
27
28
  GetReachByPlatform: OverviewKPIService_GetReachByPlatform;
29
+ /**
30
+ * GetChannelReach splits the users of a snapshot day by the exact set of channels
31
+ * they are reachable on, so every user lands in one combination.
32
+ */
33
+ GetChannelReach: OverviewKPIService_GetChannelReach;
28
34
  /** GetActiveTrend returns the daily DAU and rolling-30 MAU series. */
29
35
  GetActiveTrend: OverviewKPIService_GetActiveTrend;
30
36
  /** GetChannelUsersTrend returns the daily users-with-channel series of one platform. */
@@ -131,8 +137,8 @@ export type GetReachByPlatformResponse_Platform = {
131
137
  /** reachable users active within the window, same 30 days as the funnel */
132
138
  activeReachable: number;
133
139
  /**
134
- * users reachable on this platform by any channel, push token or email
135
- * address alike; the only non-zero field on an email, SMS or WhatsApp row
140
+ * users reachable on this platform: PAE on a push platform, an address on
141
+ * email, SMS or WhatsApp, where it is the only non-zero field
136
142
  */
137
143
  usersWithChannel: number;
138
144
  };
@@ -146,6 +152,40 @@ export type GetReachByPlatformResponse = {
146
152
  */
147
153
  platforms: GetReachByPlatformResponse_Platform[];
148
154
  };
155
+ export type ReachChannel = 'REACH_CHANNEL_UNSPECIFIED'
156
+ /** a device with a token and push permission */
157
+ | 'REACH_CHANNEL_PUSH'
158
+ /** an address with no unsubscribe and no hard bounce */
159
+ | 'REACH_CHANNEL_EMAIL' | 'REACH_CHANNEL_SMS' | 'REACH_CHANNEL_WHATSAPP'
160
+ /** any app or browser device, token or not; only for an application that shows an inbox */
161
+ | 'REACH_CHANNEL_INBOX';
162
+ export type GetChannelReachRequest = {
163
+ applicationCode: string;
164
+ day: Date;
165
+ };
166
+ export type GetChannelReachResponse_Combination = {
167
+ /** the exact set: a user in this row is reachable on these channels and no other */
168
+ channels: ReachChannel[];
169
+ users: number;
170
+ /** of total, in percent */
171
+ percent: number;
172
+ };
173
+ export type GetChannelReachResponse = {
174
+ day: Date;
175
+ /** every user of the application; combinations plus unreachable add up to it */
176
+ total: number;
177
+ reachable: number;
178
+ reachablePercent: number;
179
+ /** users reachable on two channels or more */
180
+ multiChannel: number;
181
+ multiChannelPercent: number;
182
+ /** largest first; empty combinations and the unreachable users are left out */
183
+ combinations: GetChannelReachResponse_Combination[];
184
+ unreachable: number;
185
+ unreachablePercent: number;
186
+ /** false when the application shows no inbox: its inbox users are folded into the rest */
187
+ inboxAvailable: boolean;
188
+ };
149
189
  export type GetActiveTrendRequest = {
150
190
  applicationCode: string;
151
191
  dayFrom: Date;