@pushwoosh/rpc-v2-http-api-data 0.2.126 → 0.2.128
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 +58 -0
- package/messages.d.ts +38 -0
- package/package.json +1 -1
package/data.js
CHANGED
|
@@ -17525,6 +17525,12 @@ export const data = {
|
|
|
17525
17525
|
"method": "post",
|
|
17526
17526
|
"path": "/api/messages/statistics"
|
|
17527
17527
|
},
|
|
17528
|
+
"GetBlockRevenue": {
|
|
17529
|
+
"request": "pushwoosh.rpc_v2.messages.GetBlockRevenueRequest",
|
|
17530
|
+
"response": "pushwoosh.rpc_v2.messages.GetBlockRevenueResponse",
|
|
17531
|
+
"method": "post",
|
|
17532
|
+
"path": "/api/messages/blockRevenue"
|
|
17533
|
+
},
|
|
17528
17534
|
"GetLinkClicksStatistics": {
|
|
17529
17535
|
"request": "pushwoosh.rpc_v2.messages.GetLinkClicksStatisticsRequest",
|
|
17530
17536
|
"response": "pushwoosh.rpc_v2.messages.GetLinkClicksStatisticsResponse",
|
|
@@ -17883,6 +17889,58 @@ export const data = {
|
|
|
17883
17889
|
}
|
|
17884
17890
|
}
|
|
17885
17891
|
},
|
|
17892
|
+
"pushwoosh.rpc_v2.messages.GetBlockRevenueRequest": {
|
|
17893
|
+
"type": "I",
|
|
17894
|
+
"fields": {
|
|
17895
|
+
"application": {
|
|
17896
|
+
"type": "string"
|
|
17897
|
+
},
|
|
17898
|
+
"messageCode": {
|
|
17899
|
+
"type": "string"
|
|
17900
|
+
},
|
|
17901
|
+
"timestampFrom": {
|
|
17902
|
+
"type": "Date"
|
|
17903
|
+
},
|
|
17904
|
+
"timestampTo": {
|
|
17905
|
+
"type": "Date"
|
|
17906
|
+
}
|
|
17907
|
+
}
|
|
17908
|
+
},
|
|
17909
|
+
"pushwoosh.rpc_v2.messages.GetBlockRevenueResponse.BlockRevenue": {
|
|
17910
|
+
"type": "I",
|
|
17911
|
+
"fields": {
|
|
17912
|
+
"block": {
|
|
17913
|
+
"type": "string"
|
|
17914
|
+
},
|
|
17915
|
+
"strategy": {
|
|
17916
|
+
"type": "string"
|
|
17917
|
+
},
|
|
17918
|
+
"clicks": {
|
|
17919
|
+
"type": "number"
|
|
17920
|
+
},
|
|
17921
|
+
"uniqClicks": {
|
|
17922
|
+
"type": "number"
|
|
17923
|
+
},
|
|
17924
|
+
"revenue": {
|
|
17925
|
+
"type": "number"
|
|
17926
|
+
},
|
|
17927
|
+
"currency": {
|
|
17928
|
+
"type": "string"
|
|
17929
|
+
}
|
|
17930
|
+
}
|
|
17931
|
+
},
|
|
17932
|
+
"pushwoosh.rpc_v2.messages.GetBlockRevenueResponse": {
|
|
17933
|
+
"type": "I",
|
|
17934
|
+
"fields": {
|
|
17935
|
+
"blocks": {
|
|
17936
|
+
"type": "pushwoosh.rpc_v2.messages.GetBlockRevenueResponse.BlockRevenue",
|
|
17937
|
+
"array": true
|
|
17938
|
+
},
|
|
17939
|
+
"revenueTrackingConfigured": {
|
|
17940
|
+
"type": "boolean"
|
|
17941
|
+
}
|
|
17942
|
+
}
|
|
17943
|
+
},
|
|
17886
17944
|
"pushwoosh.rpc_v2.messages.GetLinkClicksStatisticsRequest": {
|
|
17887
17945
|
"type": "I",
|
|
17888
17946
|
"fields": {
|
package/messages.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export type MessagesService_Get = RpcMethod<GetMessageRequest, GetMessageRespons
|
|
|
4
4
|
export type MessagesService_Cancel = RpcMethod<CancelMessageRequest, CancelMessageResponse>;
|
|
5
5
|
export type MessagesService_Delete = RpcMethod<DeleteMessageRequest, DeleteMessageResponse>;
|
|
6
6
|
export type MessagesService_GetStatistics = RpcMethod<GetStatisticsRequest, GetStatisticsResponse>;
|
|
7
|
+
export type MessagesService_GetBlockRevenue = RpcMethod<GetBlockRevenueRequest, GetBlockRevenueResponse>;
|
|
7
8
|
export type MessagesService_GetLinkClicksStatistics = RpcMethod<GetLinkClicksStatisticsRequest, GetLinkClicksStatisticsResponse>;
|
|
8
9
|
export type MessagesService_GetDeliveryReport = RpcMethod<GetDeliveryReportRequest, GetDeliveryReportResponse>;
|
|
9
10
|
export type MessagesService_FindRecipients = RpcMethod<FindRecipientsRequest, FindRecipientsResponse>;
|
|
@@ -21,6 +22,8 @@ export interface MessagesService {
|
|
|
21
22
|
Delete: MessagesService_Delete;
|
|
22
23
|
/** Returns aggregate delivery and open time-series plus recipient counts for a single message (by message_code) or a whole campaign, over an optional time range. For one send's delivered/opened numbers pass message_code. */
|
|
23
24
|
GetStatistics: MessagesService_GetStatistics;
|
|
25
|
+
/** Returns per-block clicks and the revenue of the recipients who clicked them, for one message's products blocks. Revenues are multi-touch and do not add up to the message total. */
|
|
26
|
+
GetBlockRevenue: MessagesService_GetBlockRevenue;
|
|
24
27
|
/** Returns per-link click counts (total and unique) for a message or campaign. Use to see which links in the content were clicked and how often. */
|
|
25
28
|
GetLinkClicksStatistics: MessagesService_GetLinkClicksStatistics;
|
|
26
29
|
/** Returns per-platform delivery error breakdowns (sender and mailbox errors) for a message or campaign over a time range. Use to diagnose why a send under-delivered. */
|
|
@@ -146,6 +149,41 @@ export type GetStatisticsResponse_Metrics = {
|
|
|
146
149
|
export type GetStatisticsResponse = {
|
|
147
150
|
metrics: GetStatisticsResponse_Metrics;
|
|
148
151
|
};
|
|
152
|
+
export type GetBlockRevenueRequest = {
|
|
153
|
+
/** Application code (format XXXXX-XXXXX). */
|
|
154
|
+
application?: string;
|
|
155
|
+
/** Message code to scope the report to a single send. */
|
|
156
|
+
messageCode?: string;
|
|
157
|
+
timestampFrom?: Date;
|
|
158
|
+
timestampTo?: Date;
|
|
159
|
+
};
|
|
160
|
+
/**
|
|
161
|
+
* One products block of the message and the revenue of the recipients who
|
|
162
|
+
* clicked it.
|
|
163
|
+
*/
|
|
164
|
+
export type GetBlockRevenueResponse_BlockRevenue = {
|
|
165
|
+
/** Block id carried by the product links (pw_block). */
|
|
166
|
+
block: string;
|
|
167
|
+
/** Ranking that produced the items (pw_strategy); empty for manual products. */
|
|
168
|
+
strategy: string;
|
|
169
|
+
clicks: number;
|
|
170
|
+
uniqClicks: number;
|
|
171
|
+
/**
|
|
172
|
+
* Multi-touch: a buyer who clicked several blocks credits each of them in
|
|
173
|
+
* full, so block revenues do NOT add up to the message's total revenue.
|
|
174
|
+
*/
|
|
175
|
+
revenue: number;
|
|
176
|
+
/** ISO 4217 code the revenue events carried. */
|
|
177
|
+
currency: string;
|
|
178
|
+
};
|
|
179
|
+
export type GetBlockRevenueResponse = {
|
|
180
|
+
blocks: GetBlockRevenueResponse_BlockRevenue[];
|
|
181
|
+
/**
|
|
182
|
+
* False when the account tracks no revenue: the UI says so instead of showing
|
|
183
|
+
* a zero, which would read as "the block earned nothing".
|
|
184
|
+
*/
|
|
185
|
+
revenueTrackingConfigured: boolean;
|
|
186
|
+
};
|
|
149
187
|
export type GetLinkClicksStatisticsRequest = {
|
|
150
188
|
/** Application code (format XXXXX-XXXXX). Optional if application_group is set. */
|
|
151
189
|
application?: string;
|