@pushwoosh/rpc-gateway-statistics-api 1.3.841 → 1.3.843
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
|
@@ -1914,6 +1914,18 @@ export const data = {
|
|
|
1914
1914
|
}
|
|
1915
1915
|
}
|
|
1916
1916
|
},
|
|
1917
|
+
"pushwoosh.statistics.statistics.v1.MessageHistoryChannel": {
|
|
1918
|
+
"type": "E",
|
|
1919
|
+
"values": [
|
|
1920
|
+
"MESSAGE_HISTORY_CHANNEL_UNSPECIFIED",
|
|
1921
|
+
"MESSAGE_HISTORY_CHANNEL_PUSH",
|
|
1922
|
+
"MESSAGE_HISTORY_CHANNEL_INBOX",
|
|
1923
|
+
"MESSAGE_HISTORY_CHANNEL_EMAIL",
|
|
1924
|
+
"MESSAGE_HISTORY_CHANNEL_SMS",
|
|
1925
|
+
"MESSAGE_HISTORY_CHANNEL_WHATSAPP",
|
|
1926
|
+
"MESSAGE_HISTORY_CHANNEL_FB_MESSENGER"
|
|
1927
|
+
]
|
|
1928
|
+
},
|
|
1917
1929
|
"pushwoosh.statistics.statistics.v1.GetMessageHistoryFilters": {
|
|
1918
1930
|
"type": "I",
|
|
1919
1931
|
"fields": {
|
|
@@ -1950,6 +1962,9 @@ export const data = {
|
|
|
1950
1962
|
"messageCodes": {
|
|
1951
1963
|
"type": "string",
|
|
1952
1964
|
"array": true
|
|
1965
|
+
},
|
|
1966
|
+
"channel": {
|
|
1967
|
+
"type": "pushwoosh.statistics.statistics.v1.MessageHistoryChannel"
|
|
1953
1968
|
}
|
|
1954
1969
|
}
|
|
1955
1970
|
},
|
|
@@ -2000,6 +2015,20 @@ export const data = {
|
|
|
2000
2015
|
}
|
|
2001
2016
|
}
|
|
2002
2017
|
},
|
|
2018
|
+
"pushwoosh.statistics.statistics.v1.MessageHistoryInboxMetric": {
|
|
2019
|
+
"type": "I",
|
|
2020
|
+
"fields": {
|
|
2021
|
+
"read": {
|
|
2022
|
+
"type": "number"
|
|
2023
|
+
},
|
|
2024
|
+
"clicked": {
|
|
2025
|
+
"type": "number"
|
|
2026
|
+
},
|
|
2027
|
+
"clickRate": {
|
|
2028
|
+
"type": "number"
|
|
2029
|
+
}
|
|
2030
|
+
}
|
|
2031
|
+
},
|
|
2003
2032
|
"pushwoosh.statistics.statistics.v1.MessageHistoryItemMetric": {
|
|
2004
2033
|
"type": "I",
|
|
2005
2034
|
"fields": {
|
|
@@ -2014,6 +2043,9 @@ export const data = {
|
|
|
2014
2043
|
},
|
|
2015
2044
|
"errors": {
|
|
2016
2045
|
"type": "number"
|
|
2046
|
+
},
|
|
2047
|
+
"inbox": {
|
|
2048
|
+
"type": "pushwoosh.statistics.statistics.v1.MessageHistoryInboxMetric"
|
|
2017
2049
|
}
|
|
2018
2050
|
}
|
|
2019
2051
|
},
|
|
@@ -2080,6 +2112,12 @@ export const data = {
|
|
|
2080
2112
|
},
|
|
2081
2113
|
"smsPresetCode": {
|
|
2082
2114
|
"type": "string"
|
|
2115
|
+
},
|
|
2116
|
+
"inboxExpiresAt": {
|
|
2117
|
+
"type": "string"
|
|
2118
|
+
},
|
|
2119
|
+
"channel": {
|
|
2120
|
+
"type": "pushwoosh.statistics.statistics.v1.MessageHistoryChannel"
|
|
2083
2121
|
}
|
|
2084
2122
|
}
|
|
2085
2123
|
},
|
|
@@ -3751,6 +3789,12 @@ export const data = {
|
|
|
3751
3789
|
"method": "post",
|
|
3752
3790
|
"path": "/api/v2/statistics/overview/getEmailRates"
|
|
3753
3791
|
},
|
|
3792
|
+
"GetEmailActivityDistribution": {
|
|
3793
|
+
"request": "pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailActivityDistributionRequest",
|
|
3794
|
+
"response": "pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailActivityDistributionResponse",
|
|
3795
|
+
"method": "post",
|
|
3796
|
+
"path": "/api/v2/statistics/overview/getEmailActivityDistribution"
|
|
3797
|
+
},
|
|
3754
3798
|
"GetRetentionCurve": {
|
|
3755
3799
|
"request": "pushwoosh.statistics.statistics.v2.overviewkpi.GetRetentionCurveRequest",
|
|
3756
3800
|
"response": "pushwoosh.statistics.statistics.v2.overviewkpi.GetRetentionCurveResponse",
|
|
@@ -4096,6 +4140,49 @@ export const data = {
|
|
|
4096
4140
|
}
|
|
4097
4141
|
}
|
|
4098
4142
|
},
|
|
4143
|
+
"pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailActivityDistributionRequest": {
|
|
4144
|
+
"type": "I",
|
|
4145
|
+
"fields": {
|
|
4146
|
+
"applicationCode": {
|
|
4147
|
+
"type": "string"
|
|
4148
|
+
},
|
|
4149
|
+
"dayFrom": {
|
|
4150
|
+
"type": "Date"
|
|
4151
|
+
},
|
|
4152
|
+
"dayTo": {
|
|
4153
|
+
"type": "Date"
|
|
4154
|
+
}
|
|
4155
|
+
}
|
|
4156
|
+
},
|
|
4157
|
+
"pushwoosh.statistics.statistics.v2.overviewkpi.GetEmailActivityDistributionResponse": {
|
|
4158
|
+
"type": "I",
|
|
4159
|
+
"fields": {
|
|
4160
|
+
"base": {
|
|
4161
|
+
"type": "number"
|
|
4162
|
+
},
|
|
4163
|
+
"baseDay": {
|
|
4164
|
+
"type": "Date"
|
|
4165
|
+
},
|
|
4166
|
+
"clicked": {
|
|
4167
|
+
"type": "number"
|
|
4168
|
+
},
|
|
4169
|
+
"openedNotClicked": {
|
|
4170
|
+
"type": "number"
|
|
4171
|
+
},
|
|
4172
|
+
"dormant": {
|
|
4173
|
+
"type": "number"
|
|
4174
|
+
},
|
|
4175
|
+
"clickedPercent": {
|
|
4176
|
+
"type": "number"
|
|
4177
|
+
},
|
|
4178
|
+
"openedNotClickedPercent": {
|
|
4179
|
+
"type": "number"
|
|
4180
|
+
},
|
|
4181
|
+
"dormantPercent": {
|
|
4182
|
+
"type": "number"
|
|
4183
|
+
}
|
|
4184
|
+
}
|
|
4185
|
+
},
|
|
4099
4186
|
"pushwoosh.statistics.statistics.v2.overviewkpi.GetRetentionCurveRequest": {
|
|
4100
4187
|
"type": "I",
|
|
4101
4188
|
"fields": {
|
package/package.json
CHANGED
|
@@ -804,6 +804,11 @@ export type MessageHistoryOrderBy = {
|
|
|
804
804
|
by: MessageHistoryOrderColumn;
|
|
805
805
|
order: OrderType;
|
|
806
806
|
};
|
|
807
|
+
/**
|
|
808
|
+
* MessageHistoryChannel is one tab of the one-time messages listing: a message belongs to
|
|
809
|
+
* exactly one channel, told apart by its source and platforms
|
|
810
|
+
*/
|
|
811
|
+
export type MessageHistoryChannel = 'MESSAGE_HISTORY_CHANNEL_UNSPECIFIED' | 'MESSAGE_HISTORY_CHANNEL_PUSH' | 'MESSAGE_HISTORY_CHANNEL_INBOX' | 'MESSAGE_HISTORY_CHANNEL_EMAIL' | 'MESSAGE_HISTORY_CHANNEL_SMS' | 'MESSAGE_HISTORY_CHANNEL_WHATSAPP' | 'MESSAGE_HISTORY_CHANNEL_FB_MESSENGER';
|
|
807
812
|
export type GetMessageHistoryFilters = {
|
|
808
813
|
statuses: MessageStatus[];
|
|
809
814
|
platforms: number[];
|
|
@@ -814,6 +819,7 @@ export type GetMessageHistoryFilters = {
|
|
|
814
819
|
campaigns: string[];
|
|
815
820
|
messageIds: number[];
|
|
816
821
|
messageCodes: string[];
|
|
822
|
+
channel: MessageHistoryChannel;
|
|
817
823
|
};
|
|
818
824
|
export type GetMessageHistoryRequest_MessageType = 'UNKNOWN' | 'MARKETING' | 'TRANSACTIONAL';
|
|
819
825
|
export type GetMessageHistoryRequest = {
|
|
@@ -829,11 +835,23 @@ export type GetMessageHistoryRequest = {
|
|
|
829
835
|
messageType: GetMessageHistoryRequest_MessageType;
|
|
830
836
|
checkForMessages: boolean;
|
|
831
837
|
};
|
|
838
|
+
/**
|
|
839
|
+
* MessageHistoryInboxMetric counts an App Inbox message's entries by what their users did
|
|
840
|
+
* with them; users, not devices, one per entry over its whole lifetime
|
|
841
|
+
*/
|
|
842
|
+
export type MessageHistoryInboxMetric = {
|
|
843
|
+
read: number;
|
|
844
|
+
clicked: number;
|
|
845
|
+
/** clicked / recipients, percent */
|
|
846
|
+
clickRate: number;
|
|
847
|
+
};
|
|
832
848
|
export type MessageHistoryItemMetric = {
|
|
833
849
|
recipients: number;
|
|
834
850
|
opened: number;
|
|
835
851
|
ctr: number;
|
|
836
852
|
errors: number;
|
|
853
|
+
/** App Inbox messages only */
|
|
854
|
+
inbox: MessageHistoryInboxMetric;
|
|
837
855
|
};
|
|
838
856
|
export type MessageHistoryItem = {
|
|
839
857
|
messageId: number;
|
|
@@ -857,6 +875,9 @@ export type MessageHistoryItem = {
|
|
|
857
875
|
viberTemplateId: string;
|
|
858
876
|
whatsappContentId: string;
|
|
859
877
|
smsPresetCode: string;
|
|
878
|
+
/** App Inbox messages only; when the entries leave the inboxes */
|
|
879
|
+
inboxExpiresAt: string;
|
|
880
|
+
channel: MessageHistoryChannel;
|
|
860
881
|
};
|
|
861
882
|
export type GetMessageHistoryResponse = {
|
|
862
883
|
total: number;
|
|
@@ -5,6 +5,7 @@ export type OverviewKPIService_GetReachByPlatform = RpcMethod<GetReachByPlatform
|
|
|
5
5
|
export type OverviewKPIService_GetActiveTrend = RpcMethod<GetActiveTrendRequest, GetActiveTrendResponse>;
|
|
6
6
|
export type OverviewKPIService_GetChannelUsersTrend = RpcMethod<GetChannelUsersTrendRequest, GetChannelUsersTrendResponse>;
|
|
7
7
|
export type OverviewKPIService_GetEmailRates = RpcMethod<GetEmailRatesRequest, GetEmailRatesResponse>;
|
|
8
|
+
export type OverviewKPIService_GetEmailActivityDistribution = RpcMethod<GetEmailActivityDistributionRequest, GetEmailActivityDistributionResponse>;
|
|
8
9
|
export type OverviewKPIService_GetRetentionCurve = RpcMethod<GetRetentionCurveRequest, GetRetentionCurveResponse>;
|
|
9
10
|
export type OverviewKPIService_GetBaseChange = RpcMethod<GetBaseChangeRequest, GetBaseChangeResponse>;
|
|
10
11
|
export type OverviewKPIService_GetUserMessageMetrics = RpcMethod<GetUserMessageMetricsRequest, GetUserMessageMetricsResponse>;
|
|
@@ -28,6 +29,8 @@ export interface OverviewKPIService {
|
|
|
28
29
|
* sending pause counts them, plus the account-wide check that pause runs on.
|
|
29
30
|
*/
|
|
30
31
|
GetEmailRates: OverviewKPIService_GetEmailRates;
|
|
32
|
+
/** GetEmailActivityDistribution splits the email base into clicked, opened and dormant users. */
|
|
33
|
+
GetEmailActivityDistribution: OverviewKPIService_GetEmailActivityDistribution;
|
|
31
34
|
/** GetRetentionCurve returns the D1/D7/D30 curve of one cohort. */
|
|
32
35
|
GetRetentionCurve: OverviewKPIService_GetRetentionCurve;
|
|
33
36
|
/** GetBaseChange returns how the push device base moved over a period. */
|
|
@@ -218,6 +221,27 @@ export type GetEmailRatesResponse = {
|
|
|
218
221
|
*/
|
|
219
222
|
pauseCheck: EmailPauseCheck;
|
|
220
223
|
};
|
|
224
|
+
export type GetEmailActivityDistributionRequest = {
|
|
225
|
+
applicationCode: string;
|
|
226
|
+
dayFrom: Date;
|
|
227
|
+
dayTo: Date;
|
|
228
|
+
};
|
|
229
|
+
export type GetEmailActivityDistributionResponse = {
|
|
230
|
+
/** users of the base, taken from the last snapshot day the writer has filled */
|
|
231
|
+
base: number;
|
|
232
|
+
baseDay: Date;
|
|
233
|
+
/** a click writes an open of its own, so the two groups below never overlap */
|
|
234
|
+
clicked: number;
|
|
235
|
+
openedNotClicked: number;
|
|
236
|
+
/**
|
|
237
|
+
* the base less the two above, floored at zero: the base is a snapshot while
|
|
238
|
+
* the activity is a period, so a churned user can outlive their own row
|
|
239
|
+
*/
|
|
240
|
+
dormant: number;
|
|
241
|
+
clickedPercent: number;
|
|
242
|
+
openedNotClickedPercent: number;
|
|
243
|
+
dormantPercent: number;
|
|
244
|
+
};
|
|
221
245
|
export type GetRetentionCurveRequest = {
|
|
222
246
|
applicationCode: string;
|
|
223
247
|
/** day the cohort registered on */
|