@pushwoosh/rpc-gateway-statistics-api 1.3.811 → 1.3.813
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
|
@@ -3601,6 +3601,12 @@ export const data = {
|
|
|
3601
3601
|
"response": "pushwoosh.statistics.statistics.v2.overviewkpi.GetBaseChangeResponse",
|
|
3602
3602
|
"method": "post",
|
|
3603
3603
|
"path": "/api/v2/statistics/overview/getBaseChange"
|
|
3604
|
+
},
|
|
3605
|
+
"GetUserMessageMetrics": {
|
|
3606
|
+
"request": "pushwoosh.statistics.statistics.v2.overviewkpi.GetUserMessageMetricsRequest",
|
|
3607
|
+
"response": "pushwoosh.statistics.statistics.v2.overviewkpi.GetUserMessageMetricsResponse",
|
|
3608
|
+
"method": "post",
|
|
3609
|
+
"path": "/api/v2/statistics/overview/getUserMessageMetrics"
|
|
3604
3610
|
}
|
|
3605
3611
|
}
|
|
3606
3612
|
},
|
|
@@ -3897,6 +3903,67 @@ export const data = {
|
|
|
3897
3903
|
}
|
|
3898
3904
|
}
|
|
3899
3905
|
},
|
|
3906
|
+
"pushwoosh.statistics.statistics.v2.overviewkpi.GetUserMessageMetricsRequest": {
|
|
3907
|
+
"type": "I",
|
|
3908
|
+
"fields": {
|
|
3909
|
+
"applicationCode": {
|
|
3910
|
+
"type": "string"
|
|
3911
|
+
},
|
|
3912
|
+
"dayFrom": {
|
|
3913
|
+
"type": "Date"
|
|
3914
|
+
},
|
|
3915
|
+
"dayTo": {
|
|
3916
|
+
"type": "Date"
|
|
3917
|
+
}
|
|
3918
|
+
}
|
|
3919
|
+
},
|
|
3920
|
+
"pushwoosh.statistics.statistics.v2.overviewkpi.GetUserMessageMetricsResponse.Platform": {
|
|
3921
|
+
"type": "I",
|
|
3922
|
+
"fields": {
|
|
3923
|
+
"platformId": {
|
|
3924
|
+
"type": "number"
|
|
3925
|
+
},
|
|
3926
|
+
"sends": {
|
|
3927
|
+
"type": "number"
|
|
3928
|
+
},
|
|
3929
|
+
"deliveries": {
|
|
3930
|
+
"type": "number"
|
|
3931
|
+
},
|
|
3932
|
+
"errors": {
|
|
3933
|
+
"type": "number"
|
|
3934
|
+
},
|
|
3935
|
+
"deliveryRatePercent": {
|
|
3936
|
+
"type": "number"
|
|
3937
|
+
}
|
|
3938
|
+
}
|
|
3939
|
+
},
|
|
3940
|
+
"pushwoosh.statistics.statistics.v2.overviewkpi.GetUserMessageMetricsResponse": {
|
|
3941
|
+
"type": "I",
|
|
3942
|
+
"fields": {
|
|
3943
|
+
"sends": {
|
|
3944
|
+
"type": "number"
|
|
3945
|
+
},
|
|
3946
|
+
"deliveries": {
|
|
3947
|
+
"type": "number"
|
|
3948
|
+
},
|
|
3949
|
+
"errors": {
|
|
3950
|
+
"type": "number"
|
|
3951
|
+
},
|
|
3952
|
+
"deliveryRatePercent": {
|
|
3953
|
+
"type": "number"
|
|
3954
|
+
},
|
|
3955
|
+
"platforms": {
|
|
3956
|
+
"type": "pushwoosh.statistics.statistics.v2.overviewkpi.GetUserMessageMetricsResponse.Platform",
|
|
3957
|
+
"array": true
|
|
3958
|
+
},
|
|
3959
|
+
"firstWrittenDay": {
|
|
3960
|
+
"type": "Date"
|
|
3961
|
+
},
|
|
3962
|
+
"dataAvailable": {
|
|
3963
|
+
"type": "boolean"
|
|
3964
|
+
}
|
|
3965
|
+
}
|
|
3966
|
+
},
|
|
3900
3967
|
"pushwoosh.statistics.statistics.v2.statistics.StatisticsService": {
|
|
3901
3968
|
"type": "S",
|
|
3902
3969
|
"key": "statisticsV2",
|
package/package.json
CHANGED
|
@@ -5,6 +5,7 @@ export type OverviewKPIService_GetReachByPlatform = RpcMethod<GetReachByPlatform
|
|
|
5
5
|
export type OverviewKPIService_GetActiveTrend = RpcMethod<GetActiveTrendRequest, GetActiveTrendResponse>;
|
|
6
6
|
export type OverviewKPIService_GetRetentionCurve = RpcMethod<GetRetentionCurveRequest, GetRetentionCurveResponse>;
|
|
7
7
|
export type OverviewKPIService_GetBaseChange = RpcMethod<GetBaseChangeRequest, GetBaseChangeResponse>;
|
|
8
|
+
export type OverviewKPIService_GetUserMessageMetrics = RpcMethod<GetUserMessageMetricsRequest, GetUserMessageMetricsResponse>;
|
|
8
9
|
/**
|
|
9
10
|
* OverviewKPIService serves the user-level Overview tab. Every method reads the
|
|
10
11
|
* pre-aggregated daily tables only, never the raw actions log.
|
|
@@ -22,6 +23,8 @@ export interface OverviewKPIService {
|
|
|
22
23
|
GetRetentionCurve: OverviewKPIService_GetRetentionCurve;
|
|
23
24
|
/** GetBaseChange returns how the push device base moved over a period. */
|
|
24
25
|
GetBaseChange: OverviewKPIService_GetBaseChange;
|
|
26
|
+
/** GetUserMessageMetrics returns the Performance numbers counted in users. */
|
|
27
|
+
GetUserMessageMetrics: OverviewKPIService_GetUserMessageMetrics;
|
|
25
28
|
}
|
|
26
29
|
export type GetOverviewKPIRequest = {
|
|
27
30
|
applicationCode: string;
|
|
@@ -177,3 +180,37 @@ export type GetMAUOverviewResponse = {
|
|
|
177
180
|
/** same sum restricted to users holding a valid push token */
|
|
178
181
|
activeWithToken30: number;
|
|
179
182
|
};
|
|
183
|
+
export type GetUserMessageMetricsRequest = {
|
|
184
|
+
applicationCode: string;
|
|
185
|
+
dayFrom: Date;
|
|
186
|
+
dayTo: Date;
|
|
187
|
+
};
|
|
188
|
+
export type GetUserMessageMetricsResponse_Platform = {
|
|
189
|
+
platformId: number;
|
|
190
|
+
sends: number;
|
|
191
|
+
deliveries: number;
|
|
192
|
+
errors: number;
|
|
193
|
+
deliveryRatePercent: number;
|
|
194
|
+
};
|
|
195
|
+
export type GetUserMessageMetricsResponse = {
|
|
196
|
+
/** users the gateway was asked for: the ones it took plus the ones it refused */
|
|
197
|
+
sends: number;
|
|
198
|
+
/** users the gateway took, confirmed by the device or not */
|
|
199
|
+
deliveries: number;
|
|
200
|
+
/** users whose send the gateway refused */
|
|
201
|
+
errors: number;
|
|
202
|
+
/** deliveries over sends, in percent, rounded to two decimals */
|
|
203
|
+
deliveryRatePercent: number;
|
|
204
|
+
/**
|
|
205
|
+
* a user reached on two platforms is counted in each, so the rows do not sum
|
|
206
|
+
* to the totals above
|
|
207
|
+
*/
|
|
208
|
+
platforms: GetUserMessageMetricsResponse_Platform[];
|
|
209
|
+
/**
|
|
210
|
+
* first day the mart holds for this application; an earlier day_from asks for
|
|
211
|
+
* numbers that were never written and can no longer be rebuilt
|
|
212
|
+
*/
|
|
213
|
+
firstWrittenDay: Date;
|
|
214
|
+
/** false when the mart has nothing for this application at all */
|
|
215
|
+
dataAvailable: boolean;
|
|
216
|
+
};
|