@pushwoosh/rpc-gateway-statistics-api 1.3.837 → 1.3.841

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
@@ -3739,6 +3739,18 @@ export const data = {
3739
3739
  "method": "post",
3740
3740
  "path": "/api/v2/statistics/overview/getActiveTrend"
3741
3741
  },
3742
+ "GetChannelUsersTrend": {
3743
+ "request": "pushwoosh.statistics.statistics.v2.overviewkpi.GetChannelUsersTrendRequest",
3744
+ "response": "pushwoosh.statistics.statistics.v2.overviewkpi.GetChannelUsersTrendResponse",
3745
+ "method": "post",
3746
+ "path": "/api/v2/statistics/overview/getChannelUsersTrend"
3747
+ },
3748
+ "GetEmailRates": {
3749
+ "request": "pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailRatesRequest",
3750
+ "response": "pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailRatesResponse",
3751
+ "method": "post",
3752
+ "path": "/api/v2/statistics/overview/getEmailRates"
3753
+ },
3742
3754
  "GetRetentionCurve": {
3743
3755
  "request": "pushwoosh.statistics.statistics.v2.overviewkpi.GetRetentionCurveRequest",
3744
3756
  "response": "pushwoosh.statistics.statistics.v2.overviewkpi.GetRetentionCurveResponse",
@@ -3961,6 +3973,129 @@ export const data = {
3961
3973
  }
3962
3974
  }
3963
3975
  },
3976
+ "pushwoosh.statistics.statistics.v2.overviewkpi.GetChannelUsersTrendRequest": {
3977
+ "type": "I",
3978
+ "fields": {
3979
+ "applicationCode": {
3980
+ "type": "string"
3981
+ },
3982
+ "dayFrom": {
3983
+ "type": "Date"
3984
+ },
3985
+ "dayTo": {
3986
+ "type": "Date"
3987
+ },
3988
+ "platformId": {
3989
+ "type": "number"
3990
+ }
3991
+ }
3992
+ },
3993
+ "pushwoosh.statistics.statistics.v2.overviewkpi.GetChannelUsersTrendResponse.Point": {
3994
+ "type": "I",
3995
+ "fields": {
3996
+ "day": {
3997
+ "type": "Date"
3998
+ },
3999
+ "usersWithChannel": {
4000
+ "type": "number"
4001
+ }
4002
+ }
4003
+ },
4004
+ "pushwoosh.statistics.statistics.v2.overviewkpi.GetChannelUsersTrendResponse": {
4005
+ "type": "I",
4006
+ "fields": {
4007
+ "points": {
4008
+ "type": "pushwoosh.statistics.statistics.v2.overviewkpi.GetChannelUsersTrendResponse.Point",
4009
+ "array": true
4010
+ }
4011
+ }
4012
+ },
4013
+ "pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailRatesRequest": {
4014
+ "type": "I",
4015
+ "fields": {
4016
+ "applicationCode": {
4017
+ "type": "string"
4018
+ },
4019
+ "dayFrom": {
4020
+ "type": "Date"
4021
+ },
4022
+ "dayTo": {
4023
+ "type": "Date"
4024
+ }
4025
+ }
4026
+ },
4027
+ "pushwoosh.statistics.statistics.v2.overviewkpi.EmailRates": {
4028
+ "type": "I",
4029
+ "fields": {
4030
+ "sends": {
4031
+ "type": "number"
4032
+ },
4033
+ "complaints": {
4034
+ "type": "number"
4035
+ },
4036
+ "hardbounces": {
4037
+ "type": "number"
4038
+ },
4039
+ "complaintRatePercent": {
4040
+ "type": "number"
4041
+ },
4042
+ "hardBounceRatePercent": {
4043
+ "type": "number"
4044
+ }
4045
+ }
4046
+ },
4047
+ "pushwoosh.statistics.statistics.v2.overviewkpi.EmailPauseCheck": {
4048
+ "type": "I",
4049
+ "fields": {
4050
+ "windowDays": {
4051
+ "type": "number"
4052
+ },
4053
+ "windowFrom": {
4054
+ "type": "Date"
4055
+ },
4056
+ "rates": {
4057
+ "type": "pushwoosh.statistics.statistics.v2.overviewkpi.EmailRates"
4058
+ },
4059
+ "complaintRateLimitPercent": {
4060
+ "type": "number"
4061
+ },
4062
+ "hardBounceRateLimitPercent": {
4063
+ "type": "number"
4064
+ },
4065
+ "minSends": {
4066
+ "type": "number"
4067
+ },
4068
+ "evaluated": {
4069
+ "type": "boolean"
4070
+ }
4071
+ }
4072
+ },
4073
+ "pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailRatesResponse.Point": {
4074
+ "type": "I",
4075
+ "fields": {
4076
+ "day": {
4077
+ "type": "Date"
4078
+ },
4079
+ "rates": {
4080
+ "type": "pushwoosh.statistics.statistics.v2.overviewkpi.EmailRates"
4081
+ }
4082
+ }
4083
+ },
4084
+ "pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailRatesResponse": {
4085
+ "type": "I",
4086
+ "fields": {
4087
+ "points": {
4088
+ "type": "pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailRatesResponse.Point",
4089
+ "array": true
4090
+ },
4091
+ "totals": {
4092
+ "type": "pushwoosh.statistics.statistics.v2.overviewkpi.EmailRates"
4093
+ },
4094
+ "pauseCheck": {
4095
+ "type": "pushwoosh.statistics.statistics.v2.overviewkpi.EmailPauseCheck"
4096
+ }
4097
+ }
4098
+ },
3964
4099
  "pushwoosh.statistics.statistics.v2.overviewkpi.GetRetentionCurveRequest": {
3965
4100
  "type": "I",
3966
4101
  "fields": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-statistics-api",
3
- "version": "1.3.837",
3
+ "version": "1.3.841",
4
4
  "description": "Statistics API gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -3,6 +3,8 @@ export type OverviewKPIService_GetOverviewKPI = RpcMethod<GetOverviewKPIRequest,
3
3
  export type OverviewKPIService_GetAudienceFunnel = RpcMethod<GetAudienceFunnelRequest, GetAudienceFunnelResponse>;
4
4
  export type OverviewKPIService_GetReachByPlatform = RpcMethod<GetReachByPlatformRequest, GetReachByPlatformResponse>;
5
5
  export type OverviewKPIService_GetActiveTrend = RpcMethod<GetActiveTrendRequest, GetActiveTrendResponse>;
6
+ export type OverviewKPIService_GetChannelUsersTrend = RpcMethod<GetChannelUsersTrendRequest, GetChannelUsersTrendResponse>;
7
+ export type OverviewKPIService_GetEmailRates = RpcMethod<GetEmailRatesRequest, GetEmailRatesResponse>;
6
8
  export type OverviewKPIService_GetRetentionCurve = RpcMethod<GetRetentionCurveRequest, GetRetentionCurveResponse>;
7
9
  export type OverviewKPIService_GetBaseChange = RpcMethod<GetBaseChangeRequest, GetBaseChangeResponse>;
8
10
  export type OverviewKPIService_GetUserMessageMetrics = RpcMethod<GetUserMessageMetricsRequest, GetUserMessageMetricsResponse>;
@@ -19,6 +21,13 @@ export interface OverviewKPIService {
19
21
  GetReachByPlatform: OverviewKPIService_GetReachByPlatform;
20
22
  /** GetActiveTrend returns the daily DAU and rolling-30 MAU series. */
21
23
  GetActiveTrend: OverviewKPIService_GetActiveTrend;
24
+ /** GetChannelUsersTrend returns the daily users-with-channel series of one platform. */
25
+ GetChannelUsersTrend: OverviewKPIService_GetChannelUsersTrend;
26
+ /**
27
+ * GetEmailRates returns the complaint and hard bounce rates, counted the way the
28
+ * sending pause counts them, plus the account-wide check that pause runs on.
29
+ */
30
+ GetEmailRates: OverviewKPIService_GetEmailRates;
22
31
  /** GetRetentionCurve returns the D1/D7/D30 curve of one cohort. */
23
32
  GetRetentionCurve: OverviewKPIService_GetRetentionCurve;
24
33
  /** GetBaseChange returns how the push device base moved over a period. */
@@ -146,6 +155,69 @@ export type GetActiveTrendResponse = {
146
155
  */
147
156
  activeMetricsAvailable: boolean;
148
157
  };
158
+ export type GetChannelUsersTrendRequest = {
159
+ applicationCode: string;
160
+ dayFrom: Date;
161
+ dayTo: Date;
162
+ /** platform the channel addresses the user on; email is 14, 0 is every channel */
163
+ platformId: number;
164
+ };
165
+ export type GetChannelUsersTrendResponse_Point = {
166
+ day: Date;
167
+ /** users holding an address on that platform, one snapshot day */
168
+ usersWithChannel: number;
169
+ };
170
+ export type GetChannelUsersTrendResponse = {
171
+ /** one point per day the writer has a row for; days it never ran are absent */
172
+ points: GetChannelUsersTrendResponse_Point[];
173
+ };
174
+ export type GetEmailRatesRequest = {
175
+ applicationCode: string;
176
+ dayFrom: Date;
177
+ dayTo: Date;
178
+ };
179
+ /**
180
+ * EmailRates is one tally in events, the unit channels/email-feedback-api pauses by:
181
+ * both rates divide by sends, deliveries take no part.
182
+ */
183
+ export type EmailRates = {
184
+ sends: number;
185
+ complaints: number;
186
+ hardbounces: number;
187
+ complaintRatePercent: number;
188
+ hardBounceRatePercent: number;
189
+ };
190
+ /**
191
+ * EmailPauseCheck is the very number the pause is decided on: the whole account over
192
+ * the restriction window, next to the limits it is compared against.
193
+ */
194
+ export type EmailPauseCheck = {
195
+ /** emailratecounteraggregateperiod of the account, in days */
196
+ windowDays: number;
197
+ windowFrom: Date;
198
+ rates: EmailRates;
199
+ complaintRateLimitPercent: number;
200
+ hardBounceRateLimitPercent: number;
201
+ /** sends the window needs before the limits are looked at */
202
+ minSends: number;
203
+ /** false while the window holds fewer sends than min_sends: no pause can follow */
204
+ evaluated: boolean;
205
+ };
206
+ export type GetEmailRatesResponse_Point = {
207
+ day: Date;
208
+ rates: EmailRates;
209
+ };
210
+ export type GetEmailRatesResponse = {
211
+ /** the requested application and period, one point per day */
212
+ points: GetEmailRatesResponse_Point[];
213
+ /** the same application over the whole requested period */
214
+ totals: EmailRates;
215
+ /**
216
+ * the account-wide window the pause reads; absent scope and window on purpose
217
+ * differ from the two above, and that difference is the point of this field
218
+ */
219
+ pauseCheck: EmailPauseCheck;
220
+ };
149
221
  export type GetRetentionCurveRequest = {
150
222
  applicationCode: string;
151
223
  /** day the cohort registered on */