@pushwoosh/rpc-gateway-statistics-api 1.3.817 → 1.3.818

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
@@ -2261,6 +2261,49 @@ export const data = {
2261
2261
  }
2262
2262
  }
2263
2263
  },
2264
+ "pushwoosh.statistics.statistics.v1.GetAdCampaignStatisticsRequest": {
2265
+ "type": "I",
2266
+ "fields": {
2267
+ "campaignId": {
2268
+ "type": "number"
2269
+ },
2270
+ "dateRange": {
2271
+ "type": "pushwoosh.statistics.types.DateRange"
2272
+ }
2273
+ }
2274
+ },
2275
+ "pushwoosh.statistics.statistics.v1.AdCampaignStatisticsItem": {
2276
+ "type": "I",
2277
+ "fields": {
2278
+ "creativeId": {
2279
+ "type": "number"
2280
+ },
2281
+ "sends": {
2282
+ "type": "number"
2283
+ },
2284
+ "opens": {
2285
+ "type": "number"
2286
+ },
2287
+ "clicks": {
2288
+ "type": "number"
2289
+ },
2290
+ "totalClicks": {
2291
+ "type": "number"
2292
+ },
2293
+ "messages": {
2294
+ "type": "number"
2295
+ }
2296
+ }
2297
+ },
2298
+ "pushwoosh.statistics.statistics.v1.GetAdCampaignStatisticsResponse": {
2299
+ "type": "I",
2300
+ "fields": {
2301
+ "items": {
2302
+ "type": "pushwoosh.statistics.statistics.v1.AdCampaignStatisticsItem",
2303
+ "array": true
2304
+ }
2305
+ }
2306
+ },
2264
2307
  "pushwoosh.statistics.statistics.v1.GetEmailLinkStatisticsRequest": {
2265
2308
  "type": "I",
2266
2309
  "fields": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-statistics-api",
3
- "version": "1.3.817",
3
+ "version": "1.3.818",
4
4
  "description": "Statistics API gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -942,6 +942,30 @@ export type EmailLinkFilter = {
942
942
  export type EmailLinkParams = {
943
943
  withFullLinks: boolean;
944
944
  };
945
+ export type GetAdCampaignStatisticsRequest = {
946
+ campaignId: number;
947
+ dateRange: pushwoosh_statistics_types_DateRange;
948
+ };
949
+ /**
950
+ * One row per creative of the campaign. Opens are opens of the letters that
951
+ * carried it: the creative is chosen once per send, so the send is the unit.
952
+ */
953
+ export type AdCampaignStatisticsItem = {
954
+ creativeId: number;
955
+ /** letters of those sends */
956
+ sends: number;
957
+ /** unique devices that opened them */
958
+ opens: number;
959
+ /** unique devices that clicked the banner */
960
+ clicks: number;
961
+ /** every click on the banner */
962
+ totalClicks: number;
963
+ /** sends the creative was attached to */
964
+ messages: number;
965
+ };
966
+ export type GetAdCampaignStatisticsResponse = {
967
+ items: AdCampaignStatisticsItem[];
968
+ };
945
969
  export type GetEmailLinkStatisticsRequest = {
946
970
  filters: EmailLinkFilter;
947
971
  params: EmailLinkParams;