@pushwoosh/rpc-gateway-statistics-api 1.3.816 → 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
|
@@ -4114,6 +4114,12 @@ export const data = {
|
|
|
4114
4114
|
"response": "pushwoosh.statistics.statistics.v2.statistics.GetEmailCategoryPerformanceResponse",
|
|
4115
4115
|
"method": "post",
|
|
4116
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"
|
|
4117
4123
|
}
|
|
4118
4124
|
}
|
|
4119
4125
|
},
|
|
@@ -5751,5 +5757,122 @@ export const data = {
|
|
|
5751
5757
|
"type": "Date"
|
|
5752
5758
|
}
|
|
5753
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
|
+
}
|
|
5754
5877
|
}
|
|
5755
5878
|
};
|
package/package.json
CHANGED
|
@@ -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
|
+
};
|