@pushwoosh/rpc-v2-http-api-data 0.2.152 → 0.2.153
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/applications_statistics.d.ts +33 -0
- package/data.js +58 -0
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@ export type ApplicationsStatisticsService_GetMAUStatistics = RpcMethod<GetMAUSta
|
|
|
4
4
|
export type ApplicationsStatisticsService_GetDAUStatistics = RpcMethod<GetDAUStatisticsRequest, GetDAUStatisticsResponse>;
|
|
5
5
|
export type ApplicationsStatisticsService_GetPushApplicationStatistics = RpcMethod<GetPushApplicationStatisticsRequest, GetPushApplicationStatisticsResponse>;
|
|
6
6
|
export type ApplicationsStatisticsService_GetEmailApplicationStatistics = RpcMethod<GetEmailApplicationStatisticsRequest, GetEmailApplicationStatisticsResponse>;
|
|
7
|
+
export type ApplicationsStatisticsService_GetEmailCategoryPerformance = RpcMethod<GetEmailCategoryPerformanceRequest, GetEmailCategoryPerformanceResponse>;
|
|
7
8
|
export interface ApplicationsStatisticsService {
|
|
8
9
|
/** Returns the total registered-users time series for an application (application code XXXXX-XXXXX). Use for the overall audience-size trend; use get_application_mau_statistics or get_application_dau_statistics for active-user counts. */
|
|
9
10
|
GetUsersStatistics: ApplicationsStatisticsService_GetUsersStatistics;
|
|
@@ -15,6 +16,8 @@ export interface ApplicationsStatisticsService {
|
|
|
15
16
|
GetPushApplicationStatistics: ApplicationsStatisticsService_GetPushApplicationStatistics;
|
|
16
17
|
/** Returns per-platform email time series (total devices, sends, open rate) for an application (application code XXXXX-XXXXX). Use for the email channel dashboard; use get_application_push_statistics for the push channel. */
|
|
17
18
|
GetEmailApplicationStatistics: ApplicationsStatisticsService_GetEmailApplicationStatistics;
|
|
19
|
+
/** Returns one row per email category of an application (application code XXXXX-XXXXX): sends, openers, clickers and unsubscribes over the period. Use for the email category table of project statistics. */
|
|
20
|
+
GetEmailCategoryPerformance: ApplicationsStatisticsService_GetEmailCategoryPerformance;
|
|
18
21
|
}
|
|
19
22
|
export type TimeInterval = 'TIME_INTERVAL_UNSPECIFIED' | 'TIME_INTERVAL_HOUR' | 'TIME_INTERVAL_DAY' | 'TIME_INTERVAL_WEEK' | 'TIME_INTERVAL_MONTH';
|
|
20
23
|
export type GetUsersStatisticsRequest = {
|
|
@@ -87,3 +90,33 @@ export type GetEmailApplicationStatisticsResponse = {
|
|
|
87
90
|
/** Time interval for grouping data */
|
|
88
91
|
interval: TimeInterval;
|
|
89
92
|
};
|
|
93
|
+
export type GetEmailCategoryPerformanceRequest = {
|
|
94
|
+
/** Application code (format XXXXX-XXXXX) to fetch statistics for. */
|
|
95
|
+
application?: string;
|
|
96
|
+
/** Period start */
|
|
97
|
+
dateFrom?: Date;
|
|
98
|
+
/** Period end */
|
|
99
|
+
dateTo?: Date;
|
|
100
|
+
};
|
|
101
|
+
export type EmailCategoryPerformance = {
|
|
102
|
+
/** Category code */
|
|
103
|
+
categoryCode: string;
|
|
104
|
+
/** Category name as the account named it */
|
|
105
|
+
categoryName: string;
|
|
106
|
+
/** Letters sent */
|
|
107
|
+
sends: number;
|
|
108
|
+
/** Recipients who opened at least one of them */
|
|
109
|
+
opens: number;
|
|
110
|
+
/** Recipients who clicked a link other than unsubscribe */
|
|
111
|
+
clicks: number;
|
|
112
|
+
/** Recipients who unsubscribed from this very category */
|
|
113
|
+
unsubscribes: number;
|
|
114
|
+
};
|
|
115
|
+
export type GetEmailCategoryPerformanceResponse = {
|
|
116
|
+
/** One row per category of the application, zero rows included */
|
|
117
|
+
rows: EmailCategoryPerformance[];
|
|
118
|
+
/** Window actually read, clamped to the log retention */
|
|
119
|
+
windowFrom: Date;
|
|
120
|
+
/** Window actually read */
|
|
121
|
+
windowTo: Date;
|
|
122
|
+
};
|
package/data.js
CHANGED
|
@@ -6801,6 +6801,12 @@ export const data = {
|
|
|
6801
6801
|
"response": "pushwoosh.rpc_v2.applications_statistics.GetEmailApplicationStatisticsResponse",
|
|
6802
6802
|
"method": "post",
|
|
6803
6803
|
"path": "/api/v2/statistics/messages/getEmailApplicationStatistics"
|
|
6804
|
+
},
|
|
6805
|
+
"GetEmailCategoryPerformance": {
|
|
6806
|
+
"request": "pushwoosh.rpc_v2.applications_statistics.GetEmailCategoryPerformanceRequest",
|
|
6807
|
+
"response": "pushwoosh.rpc_v2.applications_statistics.GetEmailCategoryPerformanceResponse",
|
|
6808
|
+
"method": "post",
|
|
6809
|
+
"path": "/api/v2/statistics/messages/getEmailCategoryPerformance"
|
|
6804
6810
|
}
|
|
6805
6811
|
}
|
|
6806
6812
|
},
|
|
@@ -6956,6 +6962,58 @@ export const data = {
|
|
|
6956
6962
|
}
|
|
6957
6963
|
}
|
|
6958
6964
|
},
|
|
6965
|
+
"pushwoosh.rpc_v2.applications_statistics.GetEmailCategoryPerformanceRequest": {
|
|
6966
|
+
"type": "I",
|
|
6967
|
+
"fields": {
|
|
6968
|
+
"application": {
|
|
6969
|
+
"type": "string"
|
|
6970
|
+
},
|
|
6971
|
+
"dateFrom": {
|
|
6972
|
+
"type": "Date"
|
|
6973
|
+
},
|
|
6974
|
+
"dateTo": {
|
|
6975
|
+
"type": "Date"
|
|
6976
|
+
}
|
|
6977
|
+
}
|
|
6978
|
+
},
|
|
6979
|
+
"pushwoosh.rpc_v2.applications_statistics.EmailCategoryPerformance": {
|
|
6980
|
+
"type": "I",
|
|
6981
|
+
"fields": {
|
|
6982
|
+
"categoryCode": {
|
|
6983
|
+
"type": "string"
|
|
6984
|
+
},
|
|
6985
|
+
"categoryName": {
|
|
6986
|
+
"type": "string"
|
|
6987
|
+
},
|
|
6988
|
+
"sends": {
|
|
6989
|
+
"type": "number"
|
|
6990
|
+
},
|
|
6991
|
+
"opens": {
|
|
6992
|
+
"type": "number"
|
|
6993
|
+
},
|
|
6994
|
+
"clicks": {
|
|
6995
|
+
"type": "number"
|
|
6996
|
+
},
|
|
6997
|
+
"unsubscribes": {
|
|
6998
|
+
"type": "number"
|
|
6999
|
+
}
|
|
7000
|
+
}
|
|
7001
|
+
},
|
|
7002
|
+
"pushwoosh.rpc_v2.applications_statistics.GetEmailCategoryPerformanceResponse": {
|
|
7003
|
+
"type": "I",
|
|
7004
|
+
"fields": {
|
|
7005
|
+
"rows": {
|
|
7006
|
+
"type": "pushwoosh.rpc_v2.applications_statistics.EmailCategoryPerformance",
|
|
7007
|
+
"array": true
|
|
7008
|
+
},
|
|
7009
|
+
"windowFrom": {
|
|
7010
|
+
"type": "Date"
|
|
7011
|
+
},
|
|
7012
|
+
"windowTo": {
|
|
7013
|
+
"type": "Date"
|
|
7014
|
+
}
|
|
7015
|
+
}
|
|
7016
|
+
},
|
|
6959
7017
|
"pushwoosh.rpc_v2.campaigns.CampaignsService": {
|
|
6960
7018
|
"type": "S",
|
|
6961
7019
|
"key": "campaigns",
|