@pushwoosh/rpc-gateway-statistics-api 1.3.751 → 1.3.753
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 +58 -0
- package/package.json +1 -1
- package/pushwoosh_statistics_statistics_v1.d.ts +25 -0
package/data.js
CHANGED
|
@@ -195,6 +195,12 @@ 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
|
+
},
|
|
198
204
|
"GetRetentionTotalStatisticsCP": {
|
|
199
205
|
"request": "pushwoosh.statistics.statistics.v1.GetRetentionTotalStatisticsCPRequest",
|
|
200
206
|
"response": "pushwoosh.statistics.statistics.v1.GetRetentionTotalStatisticsCPResponse",
|
|
@@ -1103,6 +1109,58 @@ export const data = {
|
|
|
1103
1109
|
}
|
|
1104
1110
|
}
|
|
1105
1111
|
},
|
|
1112
|
+
"pushwoosh.statistics.statistics.v1.GetSubscribersDailyStatisticsCPRequest": {
|
|
1113
|
+
"type": "I",
|
|
1114
|
+
"fields": {
|
|
1115
|
+
"applicationCode": {
|
|
1116
|
+
"type": "string"
|
|
1117
|
+
},
|
|
1118
|
+
"timestampFrom": {
|
|
1119
|
+
"type": "string"
|
|
1120
|
+
},
|
|
1121
|
+
"timestampTo": {
|
|
1122
|
+
"type": "string"
|
|
1123
|
+
},
|
|
1124
|
+
"platformIds": {
|
|
1125
|
+
"type": "number",
|
|
1126
|
+
"array": true
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
},
|
|
1130
|
+
"pushwoosh.statistics.statistics.v1.SubscribersDailyCount": {
|
|
1131
|
+
"type": "I",
|
|
1132
|
+
"fields": {
|
|
1133
|
+
"subscribed": {
|
|
1134
|
+
"type": "number"
|
|
1135
|
+
},
|
|
1136
|
+
"unsubscribed": {
|
|
1137
|
+
"type": "number"
|
|
1138
|
+
}
|
|
1139
|
+
}
|
|
1140
|
+
},
|
|
1141
|
+
"pushwoosh.statistics.statistics.v1.SubscribersDailyCountWithTimestampPlatformID": {
|
|
1142
|
+
"type": "I",
|
|
1143
|
+
"fields": {
|
|
1144
|
+
"timestamp": {
|
|
1145
|
+
"type": "string"
|
|
1146
|
+
},
|
|
1147
|
+
"platformId": {
|
|
1148
|
+
"type": "number"
|
|
1149
|
+
},
|
|
1150
|
+
"metrics": {
|
|
1151
|
+
"type": "pushwoosh.statistics.statistics.v1.SubscribersDailyCount"
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
},
|
|
1155
|
+
"pushwoosh.statistics.statistics.v1.GetSubscribersDailyStatisticsCPResponse": {
|
|
1156
|
+
"type": "I",
|
|
1157
|
+
"fields": {
|
|
1158
|
+
"rows": {
|
|
1159
|
+
"type": "pushwoosh.statistics.statistics.v1.SubscribersDailyCountWithTimestampPlatformID",
|
|
1160
|
+
"array": true
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
},
|
|
1106
1164
|
"pushwoosh.statistics.statistics.v1.GetRetentionTotalStatisticsCPRequest": {
|
|
1107
1165
|
"type": "I",
|
|
1108
1166
|
"fields": {
|
package/package.json
CHANGED
|
@@ -20,6 +20,7 @@ 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>;
|
|
23
24
|
export type StatisticsService_GetRetentionTotalStatisticsCP = RpcMethod<GetRetentionTotalStatisticsCPRequest, GetRetentionTotalStatisticsCPResponse>;
|
|
24
25
|
export type StatisticsService_GetEngagementTotalStatisticsCP = RpcMethod<GetEngagementTotalStatisticsCPRequest, GetEngagementTotalStatisticsCPResponse>;
|
|
25
26
|
export type StatisticsService_GetActiveUsersTotalStatisticsCP = RpcMethod<GetActiveUsersTotalStatisticsCPRequest, GetActiveUsersTotalStatisticsCPResponse>;
|
|
@@ -64,6 +65,8 @@ export interface StatisticsService {
|
|
|
64
65
|
GetAverageCTRTotalStatisticsCP: StatisticsService_GetAverageCTRTotalStatisticsCP;
|
|
65
66
|
/** GetSubscribersTotalStatisticsCP returns subscriber statistics for control panel */
|
|
66
67
|
GetSubscribersTotalStatisticsCP: StatisticsService_GetSubscribersTotalStatisticsCP;
|
|
68
|
+
/** GetSubscribersDailyStatisticsCP returns daily subscribers by platform over the requested period for control panel */
|
|
69
|
+
GetSubscribersDailyStatisticsCP: StatisticsService_GetSubscribersDailyStatisticsCP;
|
|
67
70
|
/** GetRetentionTotalStatisticsCP returns user retention statistics */
|
|
68
71
|
GetRetentionTotalStatisticsCP: StatisticsService_GetRetentionTotalStatisticsCP;
|
|
69
72
|
/** GetEngagementTotalStatisticsCP returns user engagement metrics */
|
|
@@ -419,6 +422,28 @@ export type GetSubscribersTotalStatisticsCPResponse = {
|
|
|
419
422
|
rows: MetricDevicePushCountWithTimestampPlatformID[];
|
|
420
423
|
totals: PlatformDevicePushCount[];
|
|
421
424
|
};
|
|
425
|
+
export type GetSubscribersDailyStatisticsCPRequest = {
|
|
426
|
+
applicationCode: string;
|
|
427
|
+
timestampFrom: string;
|
|
428
|
+
timestampTo: string;
|
|
429
|
+
platformIds: number[];
|
|
430
|
+
};
|
|
431
|
+
/**
|
|
432
|
+
* subscribed = can be messaged on the platform, unsubscribed = address or token present but messaging off.
|
|
433
|
+
* Email (platform 14) has no opt-out state in this source, so unsubscribed is always 0 there.
|
|
434
|
+
*/
|
|
435
|
+
export type SubscribersDailyCount = {
|
|
436
|
+
subscribed: number;
|
|
437
|
+
unsubscribed: number;
|
|
438
|
+
};
|
|
439
|
+
export type SubscribersDailyCountWithTimestampPlatformID = {
|
|
440
|
+
timestamp: string;
|
|
441
|
+
platformId: number;
|
|
442
|
+
metrics: SubscribersDailyCount;
|
|
443
|
+
};
|
|
444
|
+
export type GetSubscribersDailyStatisticsCPResponse = {
|
|
445
|
+
rows: SubscribersDailyCountWithTimestampPlatformID[];
|
|
446
|
+
};
|
|
422
447
|
export type GetRetentionTotalStatisticsCPRequest = {
|
|
423
448
|
applicationCode: string;
|
|
424
449
|
timestampFrom: string;
|