@pushwoosh/rpc-gateway-statistics-api 1.3.752 → 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
@@ -195,6 +195,18 @@ export const data = {
195
195
  "method": "post",
196
196
  "path": "/api/v2/statistics/audience/getSubscribersTotalStatistics"
197
197
  },
198
+ "GetSubscribersDailyStatisticsCP": {
199
+ "request": "pushwoosh.statistics.statistics.v1.GetSubscribersDailyStatisticsCPRequest",
200
+ "response": "pushwoosh.statistics.statistics.v1.GetSubscribersDailyStatisticsCPResponse",
201
+ "method": "post",
202
+ "path": "/api/v2/statistics/audience/getSubscribersDailyStatistics"
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
+ },
198
210
  "GetRetentionTotalStatisticsCP": {
199
211
  "request": "pushwoosh.statistics.statistics.v1.GetRetentionTotalStatisticsCPRequest",
200
212
  "response": "pushwoosh.statistics.statistics.v1.GetRetentionTotalStatisticsCPResponse",
@@ -880,6 +892,9 @@ export const data = {
880
892
  },
881
893
  "complaints": {
882
894
  "type": "number"
895
+ },
896
+ "unsubs": {
897
+ "type": "number"
883
898
  }
884
899
  }
885
900
  },
@@ -1103,6 +1118,98 @@ export const data = {
1103
1118
  }
1104
1119
  }
1105
1120
  },
1121
+ "pushwoosh.statistics.statistics.v1.GetSubscribersDailyStatisticsCPRequest": {
1122
+ "type": "I",
1123
+ "fields": {
1124
+ "applicationCode": {
1125
+ "type": "string"
1126
+ },
1127
+ "timestampFrom": {
1128
+ "type": "string"
1129
+ },
1130
+ "timestampTo": {
1131
+ "type": "string"
1132
+ },
1133
+ "platformIds": {
1134
+ "type": "number",
1135
+ "array": true
1136
+ }
1137
+ }
1138
+ },
1139
+ "pushwoosh.statistics.statistics.v1.SubscribersDailyCount": {
1140
+ "type": "I",
1141
+ "fields": {
1142
+ "subscribed": {
1143
+ "type": "number"
1144
+ },
1145
+ "unsubscribed": {
1146
+ "type": "number"
1147
+ }
1148
+ }
1149
+ },
1150
+ "pushwoosh.statistics.statistics.v1.SubscribersDailyCountWithTimestampPlatformID": {
1151
+ "type": "I",
1152
+ "fields": {
1153
+ "timestamp": {
1154
+ "type": "string"
1155
+ },
1156
+ "platformId": {
1157
+ "type": "number"
1158
+ },
1159
+ "metrics": {
1160
+ "type": "pushwoosh.statistics.statistics.v1.SubscribersDailyCount"
1161
+ }
1162
+ }
1163
+ },
1164
+ "pushwoosh.statistics.statistics.v1.GetSubscribersDailyStatisticsCPResponse": {
1165
+ "type": "I",
1166
+ "fields": {
1167
+ "rows": {
1168
+ "type": "pushwoosh.statistics.statistics.v1.SubscribersDailyCountWithTimestampPlatformID",
1169
+ "array": true
1170
+ }
1171
+ }
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
+ },
1106
1213
  "pushwoosh.statistics.statistics.v1.GetRetentionTotalStatisticsCPRequest": {
1107
1214
  "type": "I",
1108
1215
  "fields": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-statistics-api",
3
- "version": "1.3.752",
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",
@@ -20,6 +20,8 @@ export type StatisticsService_GetInappTotalStatisticsCP = RpcMethod<GetInappTota
20
20
  export type StatisticsService_GetEmailClicksTotalStatisticsCP = RpcMethod<GetEmailClicksTotalStatisticsCPRequest, GetEmailClicksTotalStatisticsCPResponse>;
21
21
  export type StatisticsService_GetAverageCTRTotalStatisticsCP = RpcMethod<GetAverageCTRTotalStatisticsCPRequest, GetAverageCTRTotalStatisticsCPResponse>;
22
22
  export type StatisticsService_GetSubscribersTotalStatisticsCP = RpcMethod<GetSubscribersTotalStatisticsCPRequest, GetSubscribersTotalStatisticsCPResponse>;
23
+ export type StatisticsService_GetSubscribersDailyStatisticsCP = RpcMethod<GetSubscribersDailyStatisticsCPRequest, GetSubscribersDailyStatisticsCPResponse>;
24
+ export type StatisticsService_GetEmailActivityDistributionCP = RpcMethod<GetEmailActivityDistributionCPRequest, GetEmailActivityDistributionCPResponse>;
23
25
  export type StatisticsService_GetRetentionTotalStatisticsCP = RpcMethod<GetRetentionTotalStatisticsCPRequest, GetRetentionTotalStatisticsCPResponse>;
24
26
  export type StatisticsService_GetEngagementTotalStatisticsCP = RpcMethod<GetEngagementTotalStatisticsCPRequest, GetEngagementTotalStatisticsCPResponse>;
25
27
  export type StatisticsService_GetActiveUsersTotalStatisticsCP = RpcMethod<GetActiveUsersTotalStatisticsCPRequest, GetActiveUsersTotalStatisticsCPResponse>;
@@ -64,6 +66,10 @@ export interface StatisticsService {
64
66
  GetAverageCTRTotalStatisticsCP: StatisticsService_GetAverageCTRTotalStatisticsCP;
65
67
  /** GetSubscribersTotalStatisticsCP returns subscriber statistics for control panel */
66
68
  GetSubscribersTotalStatisticsCP: StatisticsService_GetSubscribersTotalStatisticsCP;
69
+ /** GetSubscribersDailyStatisticsCP returns daily subscribers by platform over the requested period for control panel */
70
+ GetSubscribersDailyStatisticsCP: StatisticsService_GetSubscribersDailyStatisticsCP;
71
+ /** GetEmailActivityDistributionCP splits the email subscribers base by what they did in the period */
72
+ GetEmailActivityDistributionCP: StatisticsService_GetEmailActivityDistributionCP;
67
73
  /** GetRetentionTotalStatisticsCP returns user retention statistics */
68
74
  GetRetentionTotalStatisticsCP: StatisticsService_GetRetentionTotalStatisticsCP;
69
75
  /** GetEngagementTotalStatisticsCP returns user engagement metrics */
@@ -343,6 +349,7 @@ export type ShortMessageMetric = {
343
349
  hardBounces: number;
344
350
  softBounces: number;
345
351
  complaints: number;
352
+ unsubs: number;
346
353
  };
347
354
  export type ShortMessageMetricWithTimestampPlatformID = {
348
355
  timestamp: string;
@@ -419,6 +426,48 @@ export type GetSubscribersTotalStatisticsCPResponse = {
419
426
  rows: MetricDevicePushCountWithTimestampPlatformID[];
420
427
  totals: PlatformDevicePushCount[];
421
428
  };
429
+ export type GetSubscribersDailyStatisticsCPRequest = {
430
+ applicationCode: string;
431
+ timestampFrom: string;
432
+ timestampTo: string;
433
+ platformIds: number[];
434
+ };
435
+ /**
436
+ * subscribed = can be messaged on the platform, unsubscribed = address or token present but messaging off.
437
+ * Email (platform 14) has no opt-out state in this source, so unsubscribed is always 0 there.
438
+ */
439
+ export type SubscribersDailyCount = {
440
+ subscribed: number;
441
+ unsubscribed: number;
442
+ };
443
+ export type SubscribersDailyCountWithTimestampPlatformID = {
444
+ timestamp: string;
445
+ platformId: number;
446
+ metrics: SubscribersDailyCount;
447
+ };
448
+ export type GetSubscribersDailyStatisticsCPResponse = {
449
+ rows: SubscribersDailyCountWithTimestampPlatformID[];
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
+ };
422
471
  export type GetRetentionTotalStatisticsCPRequest = {
423
472
  applicationCode: string;
424
473
  timestampFrom: string;