@pushwoosh/rpc-gateway-statistics-api 1.3.738 → 1.3.740

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": {
@@ -4137,6 +4195,9 @@ export const data = {
4137
4195
  },
4138
4196
  "confirmedDeliveries": {
4139
4197
  "type": "pushwoosh.statistics.statistics.v2.statistics.GetMessageDeliveryFunnelResponse.ConfirmedDeliveries"
4198
+ },
4199
+ "emailBounces": {
4200
+ "type": "pushwoosh.statistics.statistics.v2.statistics.GetMessageDeliveryFunnelResponse.EmailBounces"
4140
4201
  }
4141
4202
  }
4142
4203
  },
@@ -4219,6 +4280,20 @@ export const data = {
4219
4280
  }
4220
4281
  }
4221
4282
  },
4283
+ "pushwoosh.statistics.statistics.v2.statistics.GetMessageDeliveryFunnelResponse.EmailBounces": {
4284
+ "type": "I",
4285
+ "fields": {
4286
+ "hard": {
4287
+ "type": "number"
4288
+ },
4289
+ "soft": {
4290
+ "type": "number"
4291
+ },
4292
+ "alsoConfirmed": {
4293
+ "type": "number"
4294
+ }
4295
+ }
4296
+ },
4222
4297
  "pushwoosh.statistics.statistics.v2.statistics.GetMessageDeliveryFunnelResponse": {
4223
4298
  "type": "I",
4224
4299
  "fields": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-statistics-api",
3
- "version": "1.3.738",
3
+ "version": "1.3.740",
4
4
  "description": "Statistics API gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -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 */
@@ -615,6 +656,8 @@ export type GetMessageDeliveryFunnelResponse_ChannelFunnel = {
615
656
  deliveriesForm: GetMessageDeliveryFunnelResponse_DeliveriesForm;
616
657
  basicFormReason: GetMessageDeliveryFunnelResponse_BasicFormReason;
617
658
  confirmedDeliveries: GetMessageDeliveryFunnelResponse_ConfirmedDeliveries;
659
+ /** Email only, absent when not measured. Never a stage row — see EmailBounces. */
660
+ emailBounces: GetMessageDeliveryFunnelResponse_EmailBounces;
618
661
  };
619
662
  /**
620
663
  * PlatformCount is one platform's share of the number above it; the parent is always
@@ -663,6 +706,21 @@ export type GetMessageDeliveryFunnelResponse_ConfirmedDeliveries = {
663
706
  count: number;
664
707
  platforms: GetMessageDeliveryFunnelResponse_PlatformCount[];
665
708
  };
709
+ /**
710
+ * EmailBounces is what the mail provider refused, in recipient addresses. It sits beside
711
+ * the stages and belongs to none of them, on purpose and never clamped.
712
+ */
713
+ export type GetMessageDeliveryFunnelResponse_EmailBounces = {
714
+ /** at least one permanent refusal */
715
+ hard: number;
716
+ /** refused, never permanently */
717
+ soft: number;
718
+ /**
719
+ * Of hard+soft, how many also confirmed delivery, in any order, and so are counted
720
+ * inside CONFIRMED_BY_DEVICE too: the rest, hard + soft - also_confirmed, is not.
721
+ */
722
+ alsoConfirmed: number;
723
+ };
666
724
  export type GetMessageDeliveryFunnelResponse = {
667
725
  /**
668
726
  * Channels are not ordered; a client looks one up by its channel field, not by