@pushwoosh/rpc-gateway-statistics-api 1.3.738 → 1.3.739
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
|
@@ -3218,6 +3218,12 @@ export const data = {
|
|
|
3218
3218
|
"method": "post",
|
|
3219
3219
|
"path": "/api/v2/statistics/messages/getCampaignLinkClicks"
|
|
3220
3220
|
},
|
|
3221
|
+
"GetBlockRevenue": {
|
|
3222
|
+
"request": "pushwoosh.statistics.statistics.v2.statistics.GetBlockRevenueRequest",
|
|
3223
|
+
"response": "pushwoosh.statistics.statistics.v2.statistics.GetBlockRevenueResponse",
|
|
3224
|
+
"method": "post",
|
|
3225
|
+
"path": "/api/v2/statistics/messages/getBlockRevenue"
|
|
3226
|
+
},
|
|
3221
3227
|
"GetDeliveryReport": {
|
|
3222
3228
|
"request": "pushwoosh.statistics.statistics.v2.statistics.GetDeliveryReportRequest",
|
|
3223
3229
|
"response": "pushwoosh.statistics.statistics.v2.statistics.GetDeliveryReportResponse",
|
|
@@ -3613,6 +3619,58 @@ export const data = {
|
|
|
3613
3619
|
}
|
|
3614
3620
|
}
|
|
3615
3621
|
},
|
|
3622
|
+
"pushwoosh.statistics.statistics.v2.statistics.GetBlockRevenueRequest": {
|
|
3623
|
+
"type": "I",
|
|
3624
|
+
"fields": {
|
|
3625
|
+
"application": {
|
|
3626
|
+
"type": "string"
|
|
3627
|
+
},
|
|
3628
|
+
"messageCode": {
|
|
3629
|
+
"type": "string"
|
|
3630
|
+
},
|
|
3631
|
+
"timestampFrom": {
|
|
3632
|
+
"type": "Date"
|
|
3633
|
+
},
|
|
3634
|
+
"timestampTo": {
|
|
3635
|
+
"type": "Date"
|
|
3636
|
+
}
|
|
3637
|
+
}
|
|
3638
|
+
},
|
|
3639
|
+
"pushwoosh.statistics.statistics.v2.statistics.GetBlockRevenueResponse.BlockRevenue": {
|
|
3640
|
+
"type": "I",
|
|
3641
|
+
"fields": {
|
|
3642
|
+
"block": {
|
|
3643
|
+
"type": "string"
|
|
3644
|
+
},
|
|
3645
|
+
"strategy": {
|
|
3646
|
+
"type": "string"
|
|
3647
|
+
},
|
|
3648
|
+
"clicks": {
|
|
3649
|
+
"type": "number"
|
|
3650
|
+
},
|
|
3651
|
+
"uniqClicks": {
|
|
3652
|
+
"type": "number"
|
|
3653
|
+
},
|
|
3654
|
+
"revenue": {
|
|
3655
|
+
"type": "number"
|
|
3656
|
+
},
|
|
3657
|
+
"currency": {
|
|
3658
|
+
"type": "string"
|
|
3659
|
+
}
|
|
3660
|
+
}
|
|
3661
|
+
},
|
|
3662
|
+
"pushwoosh.statistics.statistics.v2.statistics.GetBlockRevenueResponse": {
|
|
3663
|
+
"type": "I",
|
|
3664
|
+
"fields": {
|
|
3665
|
+
"blocks": {
|
|
3666
|
+
"type": "pushwoosh.statistics.statistics.v2.statistics.GetBlockRevenueResponse.BlockRevenue",
|
|
3667
|
+
"array": true
|
|
3668
|
+
},
|
|
3669
|
+
"revenueTrackingConfigured": {
|
|
3670
|
+
"type": "boolean"
|
|
3671
|
+
}
|
|
3672
|
+
}
|
|
3673
|
+
},
|
|
3616
3674
|
"pushwoosh.statistics.statistics.v2.statistics.GetDeliveryReportRequest": {
|
|
3617
3675
|
"type": "I",
|
|
3618
3676
|
"fields": {
|
package/package.json
CHANGED
|
@@ -3,6 +3,7 @@ import { TimeInterval as pushwoosh_statistics_types_TimeInterval } from './pushw
|
|
|
3
3
|
export type StatisticsService_GetMessagesStatistics = RpcMethod<GetMessagesStatisticsRequest, GetMessagesStatisticsResponse>;
|
|
4
4
|
export type StatisticsService_GetCampaignStatistics = RpcMethod<GetCampaignStatisticsRequest, GetCampaignStatisticsResponse>;
|
|
5
5
|
export type StatisticsService_GetCampaignLinkClicks = RpcMethod<GetCampaignLinkClicksRequest, GetCampaignLinkClicksResponse>;
|
|
6
|
+
export type StatisticsService_GetBlockRevenue = RpcMethod<GetBlockRevenueRequest, GetBlockRevenueResponse>;
|
|
6
7
|
export type StatisticsService_GetDeliveryReport = RpcMethod<GetDeliveryReportRequest, GetDeliveryReportResponse>;
|
|
7
8
|
export type StatisticsService_GetErrorsStatistics = RpcMethod<GetErrorsStatisticsRequest, GetErrorsStatisticsResponse>;
|
|
8
9
|
export type StatisticsService_GetJourneyMetrics = RpcMethod<GetJourneyMetricsRequest, GetJourneyMetricsResponse>;
|
|
@@ -22,6 +23,8 @@ export interface StatisticsService {
|
|
|
22
23
|
GetCampaignStatistics: StatisticsService_GetCampaignStatistics;
|
|
23
24
|
/** GetCampaignLinkClicks returns link click statistics for campaigns */
|
|
24
25
|
GetCampaignLinkClicks: StatisticsService_GetCampaignLinkClicks;
|
|
26
|
+
/** GetBlockRevenue returns revenue attributed to the products blocks of a message */
|
|
27
|
+
GetBlockRevenue: StatisticsService_GetBlockRevenue;
|
|
25
28
|
/** GetDeliveryReport returns delivery report with error details for campaigns */
|
|
26
29
|
GetDeliveryReport: StatisticsService_GetDeliveryReport;
|
|
27
30
|
/** GetErrorsStatistics returns error statistics over time for campaigns */
|
|
@@ -265,6 +268,44 @@ export type GetCampaignLinkClicksResponse = {
|
|
|
265
268
|
/** Number of unique users who clicked */
|
|
266
269
|
uniqClick: number;
|
|
267
270
|
};
|
|
271
|
+
/** GetBlockRevenueRequest represents a request for per-block revenue of a message */
|
|
272
|
+
export type GetBlockRevenueRequest = {
|
|
273
|
+
/** Application Code */
|
|
274
|
+
application: string;
|
|
275
|
+
/** Specific message code */
|
|
276
|
+
messageCode: string;
|
|
277
|
+
/** Start of time range */
|
|
278
|
+
timestampFrom: Date;
|
|
279
|
+
/** End of time range */
|
|
280
|
+
timestampTo: Date;
|
|
281
|
+
};
|
|
282
|
+
/** BlockRevenue is one block's clicks and the revenue of the buyers who clicked it */
|
|
283
|
+
export type GetBlockRevenueResponse_BlockRevenue = {
|
|
284
|
+
/** Block id carried by the product links (pw_block) */
|
|
285
|
+
block: string;
|
|
286
|
+
/** Ranking that produced the items (pw_strategy), empty for manual */
|
|
287
|
+
strategy: string;
|
|
288
|
+
/** Clicks on the block's product links */
|
|
289
|
+
clicks: number;
|
|
290
|
+
/** Recipients who clicked them */
|
|
291
|
+
uniqClicks: number;
|
|
292
|
+
/**
|
|
293
|
+
* Multi-touch: a buyer who clicked several blocks credits each of them in
|
|
294
|
+
* full, so block revenues do NOT add up to the message's total revenue.
|
|
295
|
+
*/
|
|
296
|
+
revenue: number;
|
|
297
|
+
/** ISO 4217 code the revenue events carried */
|
|
298
|
+
currency: string;
|
|
299
|
+
};
|
|
300
|
+
/** GetBlockRevenueResponse contains revenue attributed to each products block */
|
|
301
|
+
export type GetBlockRevenueResponse = {
|
|
302
|
+
blocks: GetBlockRevenueResponse_BlockRevenue[];
|
|
303
|
+
/**
|
|
304
|
+
* False when the account tracks no revenue at all: the UI shows a "revenue
|
|
305
|
+
* tracking is not set up" hint instead of a zero, which would read as "earned nothing".
|
|
306
|
+
*/
|
|
307
|
+
revenueTrackingConfigured: boolean;
|
|
308
|
+
};
|
|
268
309
|
/** GetDeliveryReportRequest represents a request for delivery report with error details */
|
|
269
310
|
export type GetDeliveryReportRequest = {
|
|
270
311
|
/** Application Code */
|