@pushwoosh/rpc-gateway-statistics-api 1.3.790 → 1.3.792
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
|
@@ -3504,6 +3504,12 @@ export const data = {
|
|
|
3504
3504
|
"response": "pushwoosh.statistics.statistics.v2.overviewkpi.GetRetentionCurveResponse",
|
|
3505
3505
|
"method": "post",
|
|
3506
3506
|
"path": "/api/v2/statistics/overview/getRetentionCurve"
|
|
3507
|
+
},
|
|
3508
|
+
"GetBaseChange": {
|
|
3509
|
+
"request": "pushwoosh.statistics.statistics.v2.overviewkpi.GetBaseChangeRequest",
|
|
3510
|
+
"response": "pushwoosh.statistics.statistics.v2.overviewkpi.GetBaseChangeResponse",
|
|
3511
|
+
"method": "post",
|
|
3512
|
+
"path": "/api/v2/statistics/overview/getBaseChange"
|
|
3507
3513
|
}
|
|
3508
3514
|
}
|
|
3509
3515
|
},
|
|
@@ -3573,6 +3579,9 @@ export const data = {
|
|
|
3573
3579
|
"totalUsers": {
|
|
3574
3580
|
"type": "number"
|
|
3575
3581
|
},
|
|
3582
|
+
"usersWithPushDevice": {
|
|
3583
|
+
"type": "number"
|
|
3584
|
+
},
|
|
3576
3585
|
"subscribers": {
|
|
3577
3586
|
"type": "number"
|
|
3578
3587
|
},
|
|
@@ -3722,6 +3731,46 @@ export const data = {
|
|
|
3722
3731
|
}
|
|
3723
3732
|
}
|
|
3724
3733
|
},
|
|
3734
|
+
"pushwoosh.statistics.statistics.v2.overviewkpi.GetBaseChangeRequest": {
|
|
3735
|
+
"type": "I",
|
|
3736
|
+
"fields": {
|
|
3737
|
+
"applicationCode": {
|
|
3738
|
+
"type": "string"
|
|
3739
|
+
},
|
|
3740
|
+
"dayFrom": {
|
|
3741
|
+
"type": "Date"
|
|
3742
|
+
},
|
|
3743
|
+
"dayTo": {
|
|
3744
|
+
"type": "Date"
|
|
3745
|
+
}
|
|
3746
|
+
}
|
|
3747
|
+
},
|
|
3748
|
+
"pushwoosh.statistics.statistics.v2.overviewkpi.GetBaseChangeResponse": {
|
|
3749
|
+
"type": "I",
|
|
3750
|
+
"fields": {
|
|
3751
|
+
"baseStartDay": {
|
|
3752
|
+
"type": "Date"
|
|
3753
|
+
},
|
|
3754
|
+
"baseStart": {
|
|
3755
|
+
"type": "number"
|
|
3756
|
+
},
|
|
3757
|
+
"baseEndDay": {
|
|
3758
|
+
"type": "Date"
|
|
3759
|
+
},
|
|
3760
|
+
"baseEnd": {
|
|
3761
|
+
"type": "number"
|
|
3762
|
+
},
|
|
3763
|
+
"newRegistrations": {
|
|
3764
|
+
"type": "number"
|
|
3765
|
+
},
|
|
3766
|
+
"expiredTokens": {
|
|
3767
|
+
"type": "number"
|
|
3768
|
+
},
|
|
3769
|
+
"baseAvailable": {
|
|
3770
|
+
"type": "boolean"
|
|
3771
|
+
}
|
|
3772
|
+
}
|
|
3773
|
+
},
|
|
3725
3774
|
"pushwoosh.statistics.statistics.v2.overviewkpi.GetMAUOverviewRequest": {
|
|
3726
3775
|
"type": "I",
|
|
3727
3776
|
"fields": {
|
package/package.json
CHANGED
|
@@ -4,6 +4,7 @@ export type OverviewKPIService_GetAudienceFunnel = RpcMethod<GetAudienceFunnelRe
|
|
|
4
4
|
export type OverviewKPIService_GetReachByPlatform = RpcMethod<GetReachByPlatformRequest, GetReachByPlatformResponse>;
|
|
5
5
|
export type OverviewKPIService_GetActiveTrend = RpcMethod<GetActiveTrendRequest, GetActiveTrendResponse>;
|
|
6
6
|
export type OverviewKPIService_GetRetentionCurve = RpcMethod<GetRetentionCurveRequest, GetRetentionCurveResponse>;
|
|
7
|
+
export type OverviewKPIService_GetBaseChange = RpcMethod<GetBaseChangeRequest, GetBaseChangeResponse>;
|
|
7
8
|
/**
|
|
8
9
|
* OverviewKPIService serves the user-level Overview tab. Every method reads the
|
|
9
10
|
* pre-aggregated daily tables only, never the raw actions log.
|
|
@@ -19,6 +20,8 @@ export interface OverviewKPIService {
|
|
|
19
20
|
GetActiveTrend: OverviewKPIService_GetActiveTrend;
|
|
20
21
|
/** GetRetentionCurve returns the D1/D7/D30 curve of one cohort. */
|
|
21
22
|
GetRetentionCurve: OverviewKPIService_GetRetentionCurve;
|
|
23
|
+
/** GetBaseChange returns how the push device base moved over a period. */
|
|
24
|
+
GetBaseChange: OverviewKPIService_GetBaseChange;
|
|
22
25
|
}
|
|
23
26
|
export type GetOverviewKPIRequest = {
|
|
24
27
|
applicationCode: string;
|
|
@@ -55,6 +58,8 @@ export type GetAudienceFunnelResponse = {
|
|
|
55
58
|
day: Date;
|
|
56
59
|
/** all users of the application */
|
|
57
60
|
totalUsers: number;
|
|
61
|
+
/** users with at least one push device, with or without a token */
|
|
62
|
+
usersWithPushDevice: number;
|
|
58
63
|
/** users with at least one push device holding a valid token */
|
|
59
64
|
subscribers: number;
|
|
60
65
|
/** users with push permission and a valid token */
|
|
@@ -70,7 +75,7 @@ export type GetAudienceFunnelResponse = {
|
|
|
70
75
|
/** token present, system permission revoked */
|
|
71
76
|
permissionOff: number;
|
|
72
77
|
permissionOffPercent: number;
|
|
73
|
-
/**
|
|
78
|
+
/** has a push device but no token at all */
|
|
74
79
|
neverOptedIn: number;
|
|
75
80
|
neverOptedInPercent: number;
|
|
76
81
|
};
|
|
@@ -126,6 +131,27 @@ export type GetRetentionCurveResponse = {
|
|
|
126
131
|
cohortDate: Date;
|
|
127
132
|
points: GetRetentionCurveResponse_Point[];
|
|
128
133
|
};
|
|
134
|
+
export type GetBaseChangeRequest = {
|
|
135
|
+
applicationCode: string;
|
|
136
|
+
dayFrom: Date;
|
|
137
|
+
dayTo: Date;
|
|
138
|
+
};
|
|
139
|
+
export type GetBaseChangeResponse = {
|
|
140
|
+
/**
|
|
141
|
+
* Both bases are measured snapshots of the day named beside them, never the
|
|
142
|
+
* sum of the flows: the flows do not add up to the difference by themselves.
|
|
143
|
+
*/
|
|
144
|
+
baseStartDay: Date;
|
|
145
|
+
baseStart: number;
|
|
146
|
+
baseEndDay: Date;
|
|
147
|
+
baseEnd: number;
|
|
148
|
+
/** devices registered over the period, push platforms only */
|
|
149
|
+
newRegistrations: number;
|
|
150
|
+
/** devices whose token a provider reported invalid, gateway responses only */
|
|
151
|
+
expiredTokens: number;
|
|
152
|
+
/** false when no snapshot exists for either end of the period */
|
|
153
|
+
baseAvailable: boolean;
|
|
154
|
+
};
|
|
129
155
|
export type GetMAUOverviewRequest = {
|
|
130
156
|
/** applications to sum over; ids of other accounts are ignored */
|
|
131
157
|
applicationIds: number[];
|