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

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,12 @@ 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
+ },
3798
3804
  "GetRetentionCurve": {
3799
3805
  "request": "pushwoosh.statistics.statistics.v2.overviewkpi.GetRetentionCurveRequest",
3800
3806
  "response": "pushwoosh.statistics.statistics.v2.overviewkpi.GetRetentionCurveResponse",
@@ -4183,6 +4189,52 @@ export const data = {
4183
4189
  }
4184
4190
  }
4185
4191
  },
4192
+ "pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailBaseChangeRequest": {
4193
+ "type": "I",
4194
+ "fields": {
4195
+ "applicationCode": {
4196
+ "type": "string"
4197
+ },
4198
+ "dayFrom": {
4199
+ "type": "Date"
4200
+ },
4201
+ "dayTo": {
4202
+ "type": "Date"
4203
+ }
4204
+ }
4205
+ },
4206
+ "pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailBaseChangeResponse": {
4207
+ "type": "I",
4208
+ "fields": {
4209
+ "baseStartDay": {
4210
+ "type": "Date"
4211
+ },
4212
+ "baseStart": {
4213
+ "type": "number"
4214
+ },
4215
+ "baseEndDay": {
4216
+ "type": "Date"
4217
+ },
4218
+ "baseEnd": {
4219
+ "type": "number"
4220
+ },
4221
+ "unsubscribed": {
4222
+ "type": "number"
4223
+ },
4224
+ "complainedOrBounced": {
4225
+ "type": "number"
4226
+ },
4227
+ "newSubscribers": {
4228
+ "type": "number"
4229
+ },
4230
+ "otherChanges": {
4231
+ "type": "number"
4232
+ },
4233
+ "baseAvailable": {
4234
+ "type": "boolean"
4235
+ }
4236
+ }
4237
+ },
4186
4238
  "pushwoosh.statistics.statistics.v2.overviewkpi.GetRetentionCurveRequest": {
4187
4239
  "type": "I",
4188
4240
  "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.845",
4
4
  "description": "Statistics API gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -6,6 +6,7 @@ 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>;
9
10
  export type OverviewKPIService_GetRetentionCurve = RpcMethod<GetRetentionCurveRequest, GetRetentionCurveResponse>;
10
11
  export type OverviewKPIService_GetBaseChange = RpcMethod<GetBaseChangeRequest, GetBaseChangeResponse>;
11
12
  export type OverviewKPIService_GetUserMessageMetrics = RpcMethod<GetUserMessageMetricsRequest, GetUserMessageMetricsResponse>;
@@ -31,6 +32,8 @@ export interface OverviewKPIService {
31
32
  GetEmailRates: OverviewKPIService_GetEmailRates;
32
33
  /** GetEmailActivityDistribution splits the email base into clicked, opened and dormant users. */
33
34
  GetEmailActivityDistribution: OverviewKPIService_GetEmailActivityDistribution;
35
+ /** GetEmailBaseChange returns how the email user base moved over a period. */
36
+ GetEmailBaseChange: OverviewKPIService_GetEmailBaseChange;
34
37
  /** GetRetentionCurve returns the D1/D7/D30 curve of one cohort. */
35
38
  GetRetentionCurve: OverviewKPIService_GetRetentionCurve;
36
39
  /** GetBaseChange returns how the push device base moved over a period. */
@@ -242,6 +245,36 @@ export type GetEmailActivityDistributionResponse = {
242
245
  openedNotClickedPercent: number;
243
246
  dormantPercent: number;
244
247
  };
248
+ export type GetEmailBaseChangeRequest = {
249
+ applicationCode: string;
250
+ dayFrom: Date;
251
+ dayTo: Date;
252
+ };
253
+ export type GetEmailBaseChangeResponse = {
254
+ /**
255
+ * both ends are measured snapshots of the days named beside them, and the
256
+ * days are the first and the last the writer filled inside the period
257
+ */
258
+ baseStartDay: Date;
259
+ baseStart: number;
260
+ baseEndDay: Date;
261
+ baseEnd: number;
262
+ /**
263
+ * The flows below cover the days between the two ends, not the whole request.
264
+ * Unsubscribing leaves the address in place, so this one is never subtracted.
265
+ */
266
+ unsubscribed: number;
267
+ /** one count over both event types, not two counts added up */
268
+ complainedOrBounced: number;
269
+ newSubscribers: number;
270
+ /**
271
+ * what the two ends moved by beyond the flows above; negative as often as
272
+ * positive, so it is signed
273
+ */
274
+ otherChanges: number;
275
+ /** false when the period holds no snapshot day at all */
276
+ baseAvailable: boolean;
277
+ };
245
278
  export type GetRetentionCurveRequest = {
246
279
  applicationCode: string;
247
280
  /** day the cohort registered on */