@pushwoosh/rpc-gateway-statistics-api 1.3.817 → 1.3.819
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 +49 -0
- package/package.json +1 -1
- package/pushwoosh_statistics_statistics_v1.d.ts +27 -0
package/data.js
CHANGED
|
@@ -281,6 +281,12 @@ export const data = {
|
|
|
281
281
|
"response": "pushwoosh.statistics.statistics.v1.GetEmailLinkStatisticsResponse",
|
|
282
282
|
"method": "post",
|
|
283
283
|
"path": "/api/v2/statistics/emails/linksInteractions"
|
|
284
|
+
},
|
|
285
|
+
"GetAdCampaignStatistics": {
|
|
286
|
+
"request": "pushwoosh.statistics.statistics.v1.GetAdCampaignStatisticsRequest",
|
|
287
|
+
"response": "pushwoosh.statistics.statistics.v1.GetAdCampaignStatisticsResponse",
|
|
288
|
+
"method": "post",
|
|
289
|
+
"path": "/api/v2/statistics/emails/adCampaign"
|
|
284
290
|
}
|
|
285
291
|
}
|
|
286
292
|
},
|
|
@@ -2261,6 +2267,49 @@ export const data = {
|
|
|
2261
2267
|
}
|
|
2262
2268
|
}
|
|
2263
2269
|
},
|
|
2270
|
+
"pushwoosh.statistics.statistics.v1.GetAdCampaignStatisticsRequest": {
|
|
2271
|
+
"type": "I",
|
|
2272
|
+
"fields": {
|
|
2273
|
+
"campaignId": {
|
|
2274
|
+
"type": "number"
|
|
2275
|
+
},
|
|
2276
|
+
"dateRange": {
|
|
2277
|
+
"type": "pushwoosh.statistics.types.DateRange"
|
|
2278
|
+
}
|
|
2279
|
+
}
|
|
2280
|
+
},
|
|
2281
|
+
"pushwoosh.statistics.statistics.v1.AdCampaignStatisticsItem": {
|
|
2282
|
+
"type": "I",
|
|
2283
|
+
"fields": {
|
|
2284
|
+
"creativeId": {
|
|
2285
|
+
"type": "number"
|
|
2286
|
+
},
|
|
2287
|
+
"sends": {
|
|
2288
|
+
"type": "number"
|
|
2289
|
+
},
|
|
2290
|
+
"opens": {
|
|
2291
|
+
"type": "number"
|
|
2292
|
+
},
|
|
2293
|
+
"clicks": {
|
|
2294
|
+
"type": "number"
|
|
2295
|
+
},
|
|
2296
|
+
"totalClicks": {
|
|
2297
|
+
"type": "number"
|
|
2298
|
+
},
|
|
2299
|
+
"messages": {
|
|
2300
|
+
"type": "number"
|
|
2301
|
+
}
|
|
2302
|
+
}
|
|
2303
|
+
},
|
|
2304
|
+
"pushwoosh.statistics.statistics.v1.GetAdCampaignStatisticsResponse": {
|
|
2305
|
+
"type": "I",
|
|
2306
|
+
"fields": {
|
|
2307
|
+
"items": {
|
|
2308
|
+
"type": "pushwoosh.statistics.statistics.v1.AdCampaignStatisticsItem",
|
|
2309
|
+
"array": true
|
|
2310
|
+
}
|
|
2311
|
+
}
|
|
2312
|
+
},
|
|
2264
2313
|
"pushwoosh.statistics.statistics.v1.GetEmailLinkStatisticsRequest": {
|
|
2265
2314
|
"type": "I",
|
|
2266
2315
|
"fields": {
|
package/package.json
CHANGED
|
@@ -33,6 +33,7 @@ export type StatisticsService_GetMessagesFunnelStatisticsCP = RpcMethod<GetMessa
|
|
|
33
33
|
export type StatisticsService_GetFrequencyCappingTotalStatisticsCP = RpcMethod<GetFrequencyCappingTotalStatisticsCPRequest, GetFrequencyCappingTotalStatisticsCPResponse>;
|
|
34
34
|
export type StatisticsService_GetUsersPAEStatisticsCP = RpcMethod<GetUsersPAEStatisticsCPRequest, GetUsersPAEStatisticsCPResponse>;
|
|
35
35
|
export type StatisticsService_GetEmailLinkStatistics = RpcMethod<GetEmailLinkStatisticsRequest, GetEmailLinkStatisticsResponse>;
|
|
36
|
+
export type StatisticsService_GetAdCampaignStatistics = RpcMethod<GetAdCampaignStatisticsRequest, GetAdCampaignStatisticsResponse>;
|
|
36
37
|
/** StatisticsService provides statistics operations for messages, campaigns, and applications */
|
|
37
38
|
export interface StatisticsService {
|
|
38
39
|
/** TODO: delete? */
|
|
@@ -97,6 +98,8 @@ export interface StatisticsService {
|
|
|
97
98
|
GetUsersPAEStatisticsCP: StatisticsService_GetUsersPAEStatisticsCP;
|
|
98
99
|
/** GetEmailLinkStatistics returns email link click statistics with optional full link details */
|
|
99
100
|
GetEmailLinkStatistics: StatisticsService_GetEmailLinkStatistics;
|
|
101
|
+
/** GetAdCampaignStatistics returns per-creative results of an ad campaign sold in emails */
|
|
102
|
+
GetAdCampaignStatistics: StatisticsService_GetAdCampaignStatistics;
|
|
100
103
|
}
|
|
101
104
|
/** StatisticsByApplicationIDRequest represents a request for application statistics */
|
|
102
105
|
export type StatisticsByApplicationIDRequest = {
|
|
@@ -942,6 +945,30 @@ export type EmailLinkFilter = {
|
|
|
942
945
|
export type EmailLinkParams = {
|
|
943
946
|
withFullLinks: boolean;
|
|
944
947
|
};
|
|
948
|
+
export type GetAdCampaignStatisticsRequest = {
|
|
949
|
+
campaignId: number;
|
|
950
|
+
dateRange: pushwoosh_statistics_types_DateRange;
|
|
951
|
+
};
|
|
952
|
+
/**
|
|
953
|
+
* One row per creative of the campaign. Opens are opens of the letters that
|
|
954
|
+
* carried it: the creative is chosen once per send, so the send is the unit.
|
|
955
|
+
*/
|
|
956
|
+
export type AdCampaignStatisticsItem = {
|
|
957
|
+
creativeId: number;
|
|
958
|
+
/** letters of those sends */
|
|
959
|
+
sends: number;
|
|
960
|
+
/** unique devices that opened them */
|
|
961
|
+
opens: number;
|
|
962
|
+
/** unique devices that clicked the banner */
|
|
963
|
+
clicks: number;
|
|
964
|
+
/** every click on the banner */
|
|
965
|
+
totalClicks: number;
|
|
966
|
+
/** sends the creative was attached to */
|
|
967
|
+
messages: number;
|
|
968
|
+
};
|
|
969
|
+
export type GetAdCampaignStatisticsResponse = {
|
|
970
|
+
items: AdCampaignStatisticsItem[];
|
|
971
|
+
};
|
|
945
972
|
export type GetEmailLinkStatisticsRequest = {
|
|
946
973
|
filters: EmailLinkFilter;
|
|
947
974
|
params: EmailLinkParams;
|