@pushwoosh/rpc-gateway-statistics-api 1.3.753 → 1.3.754

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
@@ -201,6 +201,12 @@ export const data = {
201
201
  "method": "post",
202
202
  "path": "/api/v2/statistics/audience/getSubscribersDailyStatistics"
203
203
  },
204
+ "GetEmailActivityDistributionCP": {
205
+ "request": "pushwoosh.statistics.statistics.v1.GetEmailActivityDistributionCPRequest",
206
+ "response": "pushwoosh.statistics.statistics.v1.GetEmailActivityDistributionCPResponse",
207
+ "method": "post",
208
+ "path": "/api/v2/statistics/audience/getEmailActivityDistribution"
209
+ },
204
210
  "GetRetentionTotalStatisticsCP": {
205
211
  "request": "pushwoosh.statistics.statistics.v1.GetRetentionTotalStatisticsCPRequest",
206
212
  "response": "pushwoosh.statistics.statistics.v1.GetRetentionTotalStatisticsCPResponse",
@@ -886,6 +892,9 @@ export const data = {
886
892
  },
887
893
  "complaints": {
888
894
  "type": "number"
895
+ },
896
+ "unsubs": {
897
+ "type": "number"
889
898
  }
890
899
  }
891
900
  },
@@ -1161,6 +1170,46 @@ export const data = {
1161
1170
  }
1162
1171
  }
1163
1172
  },
1173
+ "pushwoosh.statistics.statistics.v1.GetEmailActivityDistributionCPRequest": {
1174
+ "type": "I",
1175
+ "fields": {
1176
+ "applicationCode": {
1177
+ "type": "string"
1178
+ },
1179
+ "timestampFrom": {
1180
+ "type": "string"
1181
+ },
1182
+ "timestampTo": {
1183
+ "type": "string"
1184
+ }
1185
+ }
1186
+ },
1187
+ "pushwoosh.statistics.statistics.v1.GetEmailActivityDistributionCPResponse": {
1188
+ "type": "I",
1189
+ "fields": {
1190
+ "base": {
1191
+ "type": "number"
1192
+ },
1193
+ "clicked": {
1194
+ "type": "number"
1195
+ },
1196
+ "openedNotClicked": {
1197
+ "type": "number"
1198
+ },
1199
+ "dormant": {
1200
+ "type": "number"
1201
+ },
1202
+ "machineOnlyOpeners": {
1203
+ "type": "number"
1204
+ },
1205
+ "windowFrom": {
1206
+ "type": "string"
1207
+ },
1208
+ "windowTo": {
1209
+ "type": "string"
1210
+ }
1211
+ }
1212
+ },
1164
1213
  "pushwoosh.statistics.statistics.v1.GetRetentionTotalStatisticsCPRequest": {
1165
1214
  "type": "I",
1166
1215
  "fields": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-statistics-api",
3
- "version": "1.3.753",
3
+ "version": "1.3.754",
4
4
  "description": "Statistics API gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -21,6 +21,7 @@ export type StatisticsService_GetEmailClicksTotalStatisticsCP = RpcMethod<GetEma
21
21
  export type StatisticsService_GetAverageCTRTotalStatisticsCP = RpcMethod<GetAverageCTRTotalStatisticsCPRequest, GetAverageCTRTotalStatisticsCPResponse>;
22
22
  export type StatisticsService_GetSubscribersTotalStatisticsCP = RpcMethod<GetSubscribersTotalStatisticsCPRequest, GetSubscribersTotalStatisticsCPResponse>;
23
23
  export type StatisticsService_GetSubscribersDailyStatisticsCP = RpcMethod<GetSubscribersDailyStatisticsCPRequest, GetSubscribersDailyStatisticsCPResponse>;
24
+ export type StatisticsService_GetEmailActivityDistributionCP = RpcMethod<GetEmailActivityDistributionCPRequest, GetEmailActivityDistributionCPResponse>;
24
25
  export type StatisticsService_GetRetentionTotalStatisticsCP = RpcMethod<GetRetentionTotalStatisticsCPRequest, GetRetentionTotalStatisticsCPResponse>;
25
26
  export type StatisticsService_GetEngagementTotalStatisticsCP = RpcMethod<GetEngagementTotalStatisticsCPRequest, GetEngagementTotalStatisticsCPResponse>;
26
27
  export type StatisticsService_GetActiveUsersTotalStatisticsCP = RpcMethod<GetActiveUsersTotalStatisticsCPRequest, GetActiveUsersTotalStatisticsCPResponse>;
@@ -67,6 +68,8 @@ export interface StatisticsService {
67
68
  GetSubscribersTotalStatisticsCP: StatisticsService_GetSubscribersTotalStatisticsCP;
68
69
  /** GetSubscribersDailyStatisticsCP returns daily subscribers by platform over the requested period for control panel */
69
70
  GetSubscribersDailyStatisticsCP: StatisticsService_GetSubscribersDailyStatisticsCP;
71
+ /** GetEmailActivityDistributionCP splits the email subscribers base by what they did in the period */
72
+ GetEmailActivityDistributionCP: StatisticsService_GetEmailActivityDistributionCP;
70
73
  /** GetRetentionTotalStatisticsCP returns user retention statistics */
71
74
  GetRetentionTotalStatisticsCP: StatisticsService_GetRetentionTotalStatisticsCP;
72
75
  /** GetEngagementTotalStatisticsCP returns user engagement metrics */
@@ -346,6 +349,7 @@ export type ShortMessageMetric = {
346
349
  hardBounces: number;
347
350
  softBounces: number;
348
351
  complaints: number;
352
+ unsubs: number;
349
353
  };
350
354
  export type ShortMessageMetricWithTimestampPlatformID = {
351
355
  timestamp: string;
@@ -444,6 +448,26 @@ export type SubscribersDailyCountWithTimestampPlatformID = {
444
448
  export type GetSubscribersDailyStatisticsCPResponse = {
445
449
  rows: SubscribersDailyCountWithTimestampPlatformID[];
446
450
  };
451
+ export type GetEmailActivityDistributionCPRequest = {
452
+ applicationCode: string;
453
+ timestampFrom: string;
454
+ timestampTo: string;
455
+ };
456
+ /**
457
+ * The three buckets partition the base: dormant is what is left of it, so the shares
458
+ * always add up to 100%.
459
+ */
460
+ export type GetEmailActivityDistributionCPResponse = {
461
+ base: number;
462
+ clicked: number;
463
+ openedNotClicked: number;
464
+ dormant: number;
465
+ /** Addresses whose only opens were machine ones (Apple MPP), counted as dormant. */
466
+ machineOnlyOpeners: number;
467
+ /** The window actually read, clamped to the event log retention. */
468
+ windowFrom: string;
469
+ windowTo: string;
470
+ };
447
471
  export type GetRetentionTotalStatisticsCPRequest = {
448
472
  applicationCode: string;
449
473
  timestampFrom: string;