@pushwoosh/rpc-gateway-statistics-api 1.3.816 → 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": {
@@ -4114,6 +4157,12 @@ export const data = {
4114
4157
  "response": "pushwoosh.statistics.statistics.v2.statistics.GetEmailCategoryPerformanceResponse",
4115
4158
  "method": "post",
4116
4159
  "path": "/api/v2/statistics/messages/getEmailCategoryPerformance"
4160
+ },
4161
+ "GetConversionsBoard": {
4162
+ "request": "pushwoosh.statistics.statistics.v2.statistics.GetConversionsBoardRequest",
4163
+ "response": "pushwoosh.statistics.statistics.v2.statistics.GetConversionsBoardResponse",
4164
+ "method": "post",
4165
+ "path": "/api/v2/statistics/messages/getConversionsBoard"
4117
4166
  }
4118
4167
  }
4119
4168
  },
@@ -5751,5 +5800,122 @@ export const data = {
5751
5800
  "type": "Date"
5752
5801
  }
5753
5802
  }
5803
+ },
5804
+ "pushwoosh.statistics.statistics.v2.statistics.ContactType": {
5805
+ "type": "E",
5806
+ "values": [
5807
+ "CONTACT_TYPE_UNSPECIFIED",
5808
+ "CONTACT_TYPE_CLICK",
5809
+ "CONTACT_TYPE_SENT"
5810
+ ]
5811
+ },
5812
+ "pushwoosh.statistics.statistics.v2.statistics.GetConversionsBoardRequest": {
5813
+ "type": "I",
5814
+ "fields": {
5815
+ "application": {
5816
+ "type": "string"
5817
+ },
5818
+ "event": {
5819
+ "type": "string"
5820
+ },
5821
+ "timestampFrom": {
5822
+ "type": "Date"
5823
+ },
5824
+ "timestampTo": {
5825
+ "type": "Date"
5826
+ },
5827
+ "attributionWindowSeconds": {
5828
+ "type": "number"
5829
+ },
5830
+ "contactType": {
5831
+ "type": "pushwoosh.statistics.statistics.v2.statistics.ContactType"
5832
+ }
5833
+ }
5834
+ },
5835
+ "pushwoosh.statistics.statistics.v2.statistics.GetConversionsBoardResponse.Revenue": {
5836
+ "type": "I",
5837
+ "fields": {
5838
+ "currency": {
5839
+ "type": "string"
5840
+ },
5841
+ "amount": {
5842
+ "type": "number"
5843
+ }
5844
+ }
5845
+ },
5846
+ "pushwoosh.statistics.statistics.v2.statistics.GetConversionsBoardResponse.Row": {
5847
+ "type": "I",
5848
+ "fields": {
5849
+ "messageId": {
5850
+ "type": "number"
5851
+ },
5852
+ "campaignId": {
5853
+ "type": "number"
5854
+ },
5855
+ "messageCode": {
5856
+ "type": "string"
5857
+ },
5858
+ "name": {
5859
+ "type": "string"
5860
+ },
5861
+ "sent": {
5862
+ "type": "number"
5863
+ },
5864
+ "opened": {
5865
+ "type": "number"
5866
+ },
5867
+ "clicked": {
5868
+ "type": "number"
5869
+ },
5870
+ "conversions": {
5871
+ "type": "number"
5872
+ },
5873
+ "uniqueUsers": {
5874
+ "type": "number"
5875
+ },
5876
+ "revenue": {
5877
+ "type": "pushwoosh.statistics.statistics.v2.statistics.GetConversionsBoardResponse.Revenue",
5878
+ "array": true
5879
+ }
5880
+ }
5881
+ },
5882
+ "pushwoosh.statistics.statistics.v2.statistics.GetConversionsBoardResponse.Totals": {
5883
+ "type": "I",
5884
+ "fields": {
5885
+ "conversions": {
5886
+ "type": "number"
5887
+ },
5888
+ "attributedConversions": {
5889
+ "type": "number"
5890
+ },
5891
+ "uniqueUsers": {
5892
+ "type": "number"
5893
+ },
5894
+ "revenue": {
5895
+ "type": "pushwoosh.statistics.statistics.v2.statistics.GetConversionsBoardResponse.Revenue",
5896
+ "array": true
5897
+ }
5898
+ }
5899
+ },
5900
+ "pushwoosh.statistics.statistics.v2.statistics.GetConversionsBoardResponse": {
5901
+ "type": "I",
5902
+ "fields": {
5903
+ "totals": {
5904
+ "type": "pushwoosh.statistics.statistics.v2.statistics.GetConversionsBoardResponse.Totals"
5905
+ },
5906
+ "rows": {
5907
+ "type": "pushwoosh.statistics.statistics.v2.statistics.GetConversionsBoardResponse.Row",
5908
+ "array": true
5909
+ },
5910
+ "attributionWindowSeconds": {
5911
+ "type": "number"
5912
+ },
5913
+ "contactType": {
5914
+ "type": "pushwoosh.statistics.statistics.v2.statistics.ContactType"
5915
+ },
5916
+ "touchesFrom": {
5917
+ "type": "Date"
5918
+ }
5919
+ }
5754
5920
  }
5755
5921
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-statistics-api",
3
- "version": "1.3.816",
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;
@@ -18,6 +18,7 @@ export type StatisticsService_GetMessageDeliveryTimeline = RpcMethod<GetMessageD
18
18
  export type StatisticsService_GetCampaignDeliveryTimeline = RpcMethod<GetCampaignDeliveryTimelineRequest, GetDeliveryTimelineResponse>;
19
19
  export type StatisticsService_GetActiveAudience = RpcMethod<GetActiveAudienceRequest, GetActiveAudienceResponse>;
20
20
  export type StatisticsService_GetEmailCategoryPerformance = RpcMethod<GetEmailCategoryPerformanceRequest, GetEmailCategoryPerformanceResponse>;
21
+ export type StatisticsService_GetConversionsBoard = RpcMethod<GetConversionsBoardRequest, GetConversionsBoardResponse>;
21
22
  /** StatisticsService provides various statistics operations */
22
23
  export interface StatisticsService {
23
24
  /** GetMessagesStatistics returns message statistics grouped by platform and time intervals */
@@ -71,6 +72,11 @@ export interface StatisticsService {
71
72
  * The caller names the categories; statistics only groups by the names it is given.
72
73
  */
73
74
  GetEmailCategoryPerformance: StatisticsService_GetEmailCategoryPerformance;
75
+ /**
76
+ * Campaign attribution board: conversions and revenue of an application's messages, each
77
+ * conversion credited to the last touch inside the attribution window (last touch).
78
+ */
79
+ GetConversionsBoard: StatisticsService_GetConversionsBoard;
74
80
  }
75
81
  /** EmailEventType represents different types of email delivery events */
76
82
  export type EmailEventType =
@@ -1177,3 +1183,53 @@ export type GetEmailCategoryPerformanceResponse = {
1177
1183
  /** Window actually read */
1178
1184
  windowTo: Date;
1179
1185
  };
1186
+ export type ContactType = 'CONTACT_TYPE_UNSPECIFIED' | 'CONTACT_TYPE_CLICK' | 'CONTACT_TYPE_SENT';
1187
+ export type GetConversionsBoardRequest = {
1188
+ /** Application Code */
1189
+ application: string;
1190
+ /** Conversion event name from the application's conversion settings */
1191
+ event: string;
1192
+ /** Conversion time range start */
1193
+ timestampFrom: Date;
1194
+ /** Conversion time range end */
1195
+ timestampTo: Date;
1196
+ /** Overrides the configured window; 0 keeps the setting */
1197
+ attributionWindowSeconds: number;
1198
+ /** Overrides the configured contact type; UNSPECIFIED keeps the setting */
1199
+ contactType: ContactType;
1200
+ };
1201
+ export type GetConversionsBoardResponse_Revenue = {
1202
+ currency: string;
1203
+ amount: number;
1204
+ };
1205
+ export type GetConversionsBoardResponse_Row = {
1206
+ messageId: number;
1207
+ campaignId: number;
1208
+ messageCode: string;
1209
+ name: string;
1210
+ sent: number;
1211
+ opened: number;
1212
+ clicked: number;
1213
+ conversions: number;
1214
+ uniqueUsers: number;
1215
+ revenue: GetConversionsBoardResponse_Revenue[];
1216
+ };
1217
+ export type GetConversionsBoardResponse_Totals = {
1218
+ /** All conversions of the event in the period */
1219
+ conversions: number;
1220
+ /** Conversions credited to a message */
1221
+ attributedConversions: number;
1222
+ uniqueUsers: number;
1223
+ /** Revenue of attributed conversions */
1224
+ revenue: GetConversionsBoardResponse_Revenue[];
1225
+ };
1226
+ export type GetConversionsBoardResponse = {
1227
+ totals: GetConversionsBoardResponse_Totals;
1228
+ rows: GetConversionsBoardResponse_Row[];
1229
+ /** Effective window */
1230
+ attributionWindowSeconds: number;
1231
+ /** Effective contact type */
1232
+ contactType: ContactType;
1233
+ /** Touches are counted from this moment: period start minus the window */
1234
+ touchesFrom: Date;
1235
+ };