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

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
@@ -3924,6 +3924,26 @@ export const data = {
3924
3924
  }
3925
3925
  }
3926
3926
  },
3927
+ "pushwoosh.statistics.statistics.v2.overviewkpi.GetUserMessageMetricsResponse.Unique": {
3928
+ "type": "I",
3929
+ "fields": {
3930
+ "sends": {
3931
+ "type": "number"
3932
+ },
3933
+ "deliveries": {
3934
+ "type": "number"
3935
+ },
3936
+ "errors": {
3937
+ "type": "number"
3938
+ },
3939
+ "opens": {
3940
+ "type": "number"
3941
+ },
3942
+ "deliveryRatePercent": {
3943
+ "type": "number"
3944
+ }
3945
+ }
3946
+ },
3927
3947
  "pushwoosh.statistics.statistics.v2.overviewkpi.GetUserMessageMetricsResponse.Platform": {
3928
3948
  "type": "I",
3929
3949
  "fields": {
@@ -3941,6 +3961,12 @@ export const data = {
3941
3961
  },
3942
3962
  "deliveryRatePercent": {
3943
3963
  "type": "number"
3964
+ },
3965
+ "opens": {
3966
+ "type": "number"
3967
+ },
3968
+ "unique": {
3969
+ "type": "pushwoosh.statistics.statistics.v2.overviewkpi.GetUserMessageMetricsResponse.Unique"
3944
3970
  }
3945
3971
  }
3946
3972
  },
@@ -3968,6 +3994,12 @@ export const data = {
3968
3994
  },
3969
3995
  "dataAvailable": {
3970
3996
  "type": "boolean"
3997
+ },
3998
+ "opens": {
3999
+ "type": "number"
4000
+ },
4001
+ "unique": {
4002
+ "type": "pushwoosh.statistics.statistics.v2.overviewkpi.GetUserMessageMetricsResponse.Unique"
3971
4003
  }
3972
4004
  }
3973
4005
  },
@@ -4082,6 +4114,12 @@ export const data = {
4082
4114
  "response": "pushwoosh.statistics.statistics.v2.statistics.GetEmailCategoryPerformanceResponse",
4083
4115
  "method": "post",
4084
4116
  "path": "/api/v2/statistics/messages/getEmailCategoryPerformance"
4117
+ },
4118
+ "GetConversionsBoard": {
4119
+ "request": "pushwoosh.statistics.statistics.v2.statistics.GetConversionsBoardRequest",
4120
+ "response": "pushwoosh.statistics.statistics.v2.statistics.GetConversionsBoardResponse",
4121
+ "method": "post",
4122
+ "path": "/api/v2/statistics/messages/getConversionsBoard"
4085
4123
  }
4086
4124
  }
4087
4125
  },
@@ -5719,5 +5757,122 @@ export const data = {
5719
5757
  "type": "Date"
5720
5758
  }
5721
5759
  }
5760
+ },
5761
+ "pushwoosh.statistics.statistics.v2.statistics.ContactType": {
5762
+ "type": "E",
5763
+ "values": [
5764
+ "CONTACT_TYPE_UNSPECIFIED",
5765
+ "CONTACT_TYPE_CLICK",
5766
+ "CONTACT_TYPE_SENT"
5767
+ ]
5768
+ },
5769
+ "pushwoosh.statistics.statistics.v2.statistics.GetConversionsBoardRequest": {
5770
+ "type": "I",
5771
+ "fields": {
5772
+ "application": {
5773
+ "type": "string"
5774
+ },
5775
+ "event": {
5776
+ "type": "string"
5777
+ },
5778
+ "timestampFrom": {
5779
+ "type": "Date"
5780
+ },
5781
+ "timestampTo": {
5782
+ "type": "Date"
5783
+ },
5784
+ "attributionWindowSeconds": {
5785
+ "type": "number"
5786
+ },
5787
+ "contactType": {
5788
+ "type": "pushwoosh.statistics.statistics.v2.statistics.ContactType"
5789
+ }
5790
+ }
5791
+ },
5792
+ "pushwoosh.statistics.statistics.v2.statistics.GetConversionsBoardResponse.Revenue": {
5793
+ "type": "I",
5794
+ "fields": {
5795
+ "currency": {
5796
+ "type": "string"
5797
+ },
5798
+ "amount": {
5799
+ "type": "number"
5800
+ }
5801
+ }
5802
+ },
5803
+ "pushwoosh.statistics.statistics.v2.statistics.GetConversionsBoardResponse.Row": {
5804
+ "type": "I",
5805
+ "fields": {
5806
+ "messageId": {
5807
+ "type": "number"
5808
+ },
5809
+ "campaignId": {
5810
+ "type": "number"
5811
+ },
5812
+ "messageCode": {
5813
+ "type": "string"
5814
+ },
5815
+ "name": {
5816
+ "type": "string"
5817
+ },
5818
+ "sent": {
5819
+ "type": "number"
5820
+ },
5821
+ "opened": {
5822
+ "type": "number"
5823
+ },
5824
+ "clicked": {
5825
+ "type": "number"
5826
+ },
5827
+ "conversions": {
5828
+ "type": "number"
5829
+ },
5830
+ "uniqueUsers": {
5831
+ "type": "number"
5832
+ },
5833
+ "revenue": {
5834
+ "type": "pushwoosh.statistics.statistics.v2.statistics.GetConversionsBoardResponse.Revenue",
5835
+ "array": true
5836
+ }
5837
+ }
5838
+ },
5839
+ "pushwoosh.statistics.statistics.v2.statistics.GetConversionsBoardResponse.Totals": {
5840
+ "type": "I",
5841
+ "fields": {
5842
+ "conversions": {
5843
+ "type": "number"
5844
+ },
5845
+ "attributedConversions": {
5846
+ "type": "number"
5847
+ },
5848
+ "uniqueUsers": {
5849
+ "type": "number"
5850
+ },
5851
+ "revenue": {
5852
+ "type": "pushwoosh.statistics.statistics.v2.statistics.GetConversionsBoardResponse.Revenue",
5853
+ "array": true
5854
+ }
5855
+ }
5856
+ },
5857
+ "pushwoosh.statistics.statistics.v2.statistics.GetConversionsBoardResponse": {
5858
+ "type": "I",
5859
+ "fields": {
5860
+ "totals": {
5861
+ "type": "pushwoosh.statistics.statistics.v2.statistics.GetConversionsBoardResponse.Totals"
5862
+ },
5863
+ "rows": {
5864
+ "type": "pushwoosh.statistics.statistics.v2.statistics.GetConversionsBoardResponse.Row",
5865
+ "array": true
5866
+ },
5867
+ "attributionWindowSeconds": {
5868
+ "type": "number"
5869
+ },
5870
+ "contactType": {
5871
+ "type": "pushwoosh.statistics.statistics.v2.statistics.ContactType"
5872
+ },
5873
+ "touchesFrom": {
5874
+ "type": "Date"
5875
+ }
5876
+ }
5722
5877
  }
5723
5878
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-statistics-api",
3
- "version": "1.3.815",
3
+ "version": "1.3.817",
4
4
  "description": "Statistics API gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -185,12 +185,25 @@ export type GetUserMessageMetricsRequest = {
185
185
  dayFrom: Date;
186
186
  dayTo: Date;
187
187
  };
188
+ /**
189
+ * the same tiles with every user counted once over the whole period instead
190
+ * of once a day; a sum of daily counts is not a headcount
191
+ */
192
+ export type GetUserMessageMetricsResponse_Unique = {
193
+ sends: number;
194
+ deliveries: number;
195
+ errors: number;
196
+ opens: number;
197
+ deliveryRatePercent: number;
198
+ };
188
199
  export type GetUserMessageMetricsResponse_Platform = {
189
200
  platformId: number;
190
201
  sends: number;
191
202
  deliveries: number;
192
203
  errors: number;
193
204
  deliveryRatePercent: number;
205
+ opens: number;
206
+ unique: GetUserMessageMetricsResponse_Unique;
194
207
  };
195
208
  export type GetUserMessageMetricsResponse = {
196
209
  /** users the gateway was asked for: the ones it took plus the ones it refused */
@@ -213,4 +226,10 @@ export type GetUserMessageMetricsResponse = {
213
226
  firstWrittenDay: Date;
214
227
  /** false when the mart has nothing for this application at all */
215
228
  dataAvailable: boolean;
229
+ /**
230
+ * opens of the period, counted on the day of the open rather than of the
231
+ * send, so opens and sends of one period do not reconcile
232
+ */
233
+ opens: number;
234
+ unique: GetUserMessageMetricsResponse_Unique;
216
235
  };
@@ -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
+ };