@pushwoosh/rpc-gateway-statistics-api 1.3.844 → 1.3.846

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
@@ -3795,6 +3795,18 @@ export const data = {
3795
3795
  "method": "post",
3796
3796
  "path": "/api/v2/statistics/overview/getEmailActivityDistribution"
3797
3797
  },
3798
+ "GetEmailBaseChange": {
3799
+ "request": "pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailBaseChangeRequest",
3800
+ "response": "pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailBaseChangeResponse",
3801
+ "method": "post",
3802
+ "path": "/api/v2/statistics/overview/getEmailBaseChange"
3803
+ },
3804
+ "GetEmailPerformance": {
3805
+ "request": "pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailPerformanceRequest",
3806
+ "response": "pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailPerformanceResponse",
3807
+ "method": "post",
3808
+ "path": "/api/v2/statistics/overview/getEmailPerformance"
3809
+ },
3798
3810
  "GetRetentionCurve": {
3799
3811
  "request": "pushwoosh.statistics.statistics.v2.overviewkpi.GetRetentionCurveRequest",
3800
3812
  "response": "pushwoosh.statistics.statistics.v2.overviewkpi.GetRetentionCurveResponse",
@@ -4183,6 +4195,94 @@ export const data = {
4183
4195
  }
4184
4196
  }
4185
4197
  },
4198
+ "pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailBaseChangeRequest": {
4199
+ "type": "I",
4200
+ "fields": {
4201
+ "applicationCode": {
4202
+ "type": "string"
4203
+ },
4204
+ "dayFrom": {
4205
+ "type": "Date"
4206
+ },
4207
+ "dayTo": {
4208
+ "type": "Date"
4209
+ }
4210
+ }
4211
+ },
4212
+ "pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailBaseChangeResponse": {
4213
+ "type": "I",
4214
+ "fields": {
4215
+ "baseStartDay": {
4216
+ "type": "Date"
4217
+ },
4218
+ "baseStart": {
4219
+ "type": "number"
4220
+ },
4221
+ "baseEndDay": {
4222
+ "type": "Date"
4223
+ },
4224
+ "baseEnd": {
4225
+ "type": "number"
4226
+ },
4227
+ "unsubscribed": {
4228
+ "type": "number"
4229
+ },
4230
+ "complainedOrBounced": {
4231
+ "type": "number"
4232
+ },
4233
+ "newSubscribers": {
4234
+ "type": "number"
4235
+ },
4236
+ "otherChanges": {
4237
+ "type": "number"
4238
+ },
4239
+ "baseAvailable": {
4240
+ "type": "boolean"
4241
+ }
4242
+ }
4243
+ },
4244
+ "pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailPerformanceRequest": {
4245
+ "type": "I",
4246
+ "fields": {
4247
+ "applicationCode": {
4248
+ "type": "string"
4249
+ },
4250
+ "dayFrom": {
4251
+ "type": "Date"
4252
+ },
4253
+ "dayTo": {
4254
+ "type": "Date"
4255
+ }
4256
+ }
4257
+ },
4258
+ "pushwoosh.statistics.statistics.v2.overviewkpi.EmailPerformanceCounts": {
4259
+ "type": "I",
4260
+ "fields": {
4261
+ "sends": {
4262
+ "type": "number"
4263
+ },
4264
+ "deliveries": {
4265
+ "type": "number"
4266
+ },
4267
+ "opens": {
4268
+ "type": "number"
4269
+ },
4270
+ "clicks": {
4271
+ "type": "number"
4272
+ }
4273
+ }
4274
+ },
4275
+ "pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailPerformanceResponse": {
4276
+ "type": "I",
4277
+ "fields": {
4278
+ "bySends": {
4279
+ "type": "pushwoosh.statistics.statistics.v2.overviewkpi.EmailPerformanceCounts"
4280
+ },
4281
+ "byUsers": {
4282
+ "type": "pushwoosh.statistics.statistics.v2.overviewkpi.EmailPerformanceCounts"
4283
+ }
4284
+ }
4285
+ },
4186
4286
  "pushwoosh.statistics.statistics.v2.overviewkpi.GetRetentionCurveRequest": {
4187
4287
  "type": "I",
4188
4288
  "fields": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-statistics-api",
3
- "version": "1.3.844",
3
+ "version": "1.3.846",
4
4
  "description": "Statistics API gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -6,6 +6,8 @@ export type OverviewKPIService_GetActiveTrend = RpcMethod<GetActiveTrendRequest,
6
6
  export type OverviewKPIService_GetChannelUsersTrend = RpcMethod<GetChannelUsersTrendRequest, GetChannelUsersTrendResponse>;
7
7
  export type OverviewKPIService_GetEmailRates = RpcMethod<GetEmailRatesRequest, GetEmailRatesResponse>;
8
8
  export type OverviewKPIService_GetEmailActivityDistribution = RpcMethod<GetEmailActivityDistributionRequest, GetEmailActivityDistributionResponse>;
9
+ export type OverviewKPIService_GetEmailBaseChange = RpcMethod<GetEmailBaseChangeRequest, GetEmailBaseChangeResponse>;
10
+ export type OverviewKPIService_GetEmailPerformance = RpcMethod<GetEmailPerformanceRequest, GetEmailPerformanceResponse>;
9
11
  export type OverviewKPIService_GetRetentionCurve = RpcMethod<GetRetentionCurveRequest, GetRetentionCurveResponse>;
10
12
  export type OverviewKPIService_GetBaseChange = RpcMethod<GetBaseChangeRequest, GetBaseChangeResponse>;
11
13
  export type OverviewKPIService_GetUserMessageMetrics = RpcMethod<GetUserMessageMetricsRequest, GetUserMessageMetricsResponse>;
@@ -31,6 +33,10 @@ export interface OverviewKPIService {
31
33
  GetEmailRates: OverviewKPIService_GetEmailRates;
32
34
  /** GetEmailActivityDistribution splits the email base into clicked, opened and dormant users. */
33
35
  GetEmailActivityDistribution: OverviewKPIService_GetEmailActivityDistribution;
36
+ /** GetEmailBaseChange returns how the email user base moved over a period. */
37
+ GetEmailBaseChange: OverviewKPIService_GetEmailBaseChange;
38
+ /** GetEmailPerformance returns the sends, deliveries, opens and clicks of the period. */
39
+ GetEmailPerformance: OverviewKPIService_GetEmailPerformance;
34
40
  /** GetRetentionCurve returns the D1/D7/D30 curve of one cohort. */
35
41
  GetRetentionCurve: OverviewKPIService_GetRetentionCurve;
36
42
  /** GetBaseChange returns how the push device base moved over a period. */
@@ -242,6 +248,55 @@ export type GetEmailActivityDistributionResponse = {
242
248
  openedNotClickedPercent: number;
243
249
  dormantPercent: number;
244
250
  };
251
+ export type GetEmailBaseChangeRequest = {
252
+ applicationCode: string;
253
+ dayFrom: Date;
254
+ dayTo: Date;
255
+ };
256
+ export type GetEmailBaseChangeResponse = {
257
+ /**
258
+ * both ends are measured snapshots of the days named beside them, and the
259
+ * days are the first and the last the writer filled inside the period
260
+ */
261
+ baseStartDay: Date;
262
+ baseStart: number;
263
+ baseEndDay: Date;
264
+ baseEnd: number;
265
+ /**
266
+ * The flows below cover the days between the two ends, not the whole request.
267
+ * Unsubscribing leaves the address in place, so this one is never subtracted.
268
+ */
269
+ unsubscribed: number;
270
+ /** one count over both event types, not two counts added up */
271
+ complainedOrBounced: number;
272
+ newSubscribers: number;
273
+ /**
274
+ * what the two ends moved by beyond the flows above; negative as often as
275
+ * positive, so it is signed
276
+ */
277
+ otherChanges: number;
278
+ /** false when the period holds no snapshot day at all */
279
+ baseAvailable: boolean;
280
+ };
281
+ export type GetEmailPerformanceRequest = {
282
+ applicationCode: string;
283
+ dayFrom: Date;
284
+ dayTo: Date;
285
+ };
286
+ /** EmailPerformanceCounts is one counting unit of the four numbers the tiles divide. */
287
+ export type EmailPerformanceCounts = {
288
+ sends: number;
289
+ deliveries: number;
290
+ /** Apple MPP prefetches are left out where the log marks them */
291
+ opens: number;
292
+ /** clicks on our own unsubscribe link belong to the unsubscribe event, not here */
293
+ clicks: number;
294
+ };
295
+ export type GetEmailPerformanceResponse = {
296
+ /** every email of the application, whatever composed it */
297
+ bySends: EmailPerformanceCounts;
298
+ byUsers: EmailPerformanceCounts;
299
+ };
245
300
  export type GetRetentionCurveRequest = {
246
301
  applicationCode: string;
247
302
  /** day the cohort registered on */