@pushwoosh/rpc-gateway-statistics-api 1.3.876 → 1.3.877

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
@@ -2487,6 +2487,264 @@ export const data = {
2487
2487
  }
2488
2488
  }
2489
2489
  },
2490
+ "pushwoosh.statistics.statistics.v2.conversions.ConversionsService": {
2491
+ "type": "S",
2492
+ "key": "conversions",
2493
+ "methods": {
2494
+ "GetBoard": {
2495
+ "request": "pushwoosh.statistics.statistics.v2.conversions.GetBoardRequest",
2496
+ "response": "pushwoosh.statistics.statistics.v2.conversions.GetBoardResponse",
2497
+ "method": "post",
2498
+ "path": "/api/v2/statistics/conversions/getBoard"
2499
+ },
2500
+ "GetJourney": {
2501
+ "request": "pushwoosh.statistics.statistics.v2.conversions.GetJourneyRequest",
2502
+ "response": "pushwoosh.statistics.statistics.v2.conversions.GetJourneyResponse",
2503
+ "method": "post",
2504
+ "path": "/api/v2/statistics/conversions/getJourney"
2505
+ }
2506
+ }
2507
+ },
2508
+ "pushwoosh.statistics.statistics.v2.conversions.ContactType": {
2509
+ "type": "E",
2510
+ "values": [
2511
+ "CONTACT_TYPE_UNSPECIFIED",
2512
+ "CONTACT_TYPE_CLICK",
2513
+ "CONTACT_TYPE_SENT"
2514
+ ]
2515
+ },
2516
+ "pushwoosh.statistics.statistics.v2.conversions.CampaignType": {
2517
+ "type": "E",
2518
+ "values": [
2519
+ "CAMPAIGN_TYPE_UNSPECIFIED",
2520
+ "CAMPAIGN_TYPE_ONE_TIME",
2521
+ "CAMPAIGN_TYPE_JOURNEY"
2522
+ ]
2523
+ },
2524
+ "pushwoosh.statistics.statistics.v2.conversions.GetBoardRequest": {
2525
+ "type": "I",
2526
+ "fields": {
2527
+ "application": {
2528
+ "type": "string"
2529
+ },
2530
+ "event": {
2531
+ "type": "string"
2532
+ },
2533
+ "timestampFrom": {
2534
+ "type": "Date"
2535
+ },
2536
+ "timestampTo": {
2537
+ "type": "Date"
2538
+ },
2539
+ "attributionWindowSeconds": {
2540
+ "type": "number"
2541
+ },
2542
+ "contactType": {
2543
+ "type": "pushwoosh.statistics.statistics.v2.conversions.ContactType"
2544
+ },
2545
+ "campaignType": {
2546
+ "type": "pushwoosh.statistics.statistics.v2.conversions.CampaignType"
2547
+ },
2548
+ "channel": {
2549
+ "type": "string"
2550
+ },
2551
+ "currency": {
2552
+ "type": "string"
2553
+ },
2554
+ "page": {
2555
+ "type": "number"
2556
+ },
2557
+ "perPage": {
2558
+ "type": "number"
2559
+ }
2560
+ }
2561
+ },
2562
+ "pushwoosh.statistics.statistics.v2.conversions.Row": {
2563
+ "type": "I",
2564
+ "fields": {
2565
+ "messageId": {
2566
+ "type": "number"
2567
+ },
2568
+ "campaignId": {
2569
+ "type": "number"
2570
+ },
2571
+ "messageCode": {
2572
+ "type": "string"
2573
+ },
2574
+ "name": {
2575
+ "type": "string"
2576
+ },
2577
+ "sent": {
2578
+ "type": "number"
2579
+ },
2580
+ "opened": {
2581
+ "type": "number"
2582
+ },
2583
+ "clicked": {
2584
+ "type": "number"
2585
+ },
2586
+ "conversions": {
2587
+ "type": "number"
2588
+ },
2589
+ "uniqueUsers": {
2590
+ "type": "number"
2591
+ },
2592
+ "revenue": {
2593
+ "type": "pushwoosh.statistics.statistics.v2.conversions.Revenue",
2594
+ "array": true
2595
+ },
2596
+ "campaignType": {
2597
+ "type": "pushwoosh.statistics.statistics.v2.conversions.CampaignType"
2598
+ },
2599
+ "status": {
2600
+ "type": "string"
2601
+ },
2602
+ "channels": {
2603
+ "type": "string",
2604
+ "array": true
2605
+ },
2606
+ "journeyUuid": {
2607
+ "type": "string"
2608
+ },
2609
+ "conversionsWithoutCurrency": {
2610
+ "type": "number"
2611
+ },
2612
+ "filtered": {
2613
+ "type": "boolean"
2614
+ },
2615
+ "deleted": {
2616
+ "type": "boolean"
2617
+ }
2618
+ }
2619
+ },
2620
+ "pushwoosh.statistics.statistics.v2.conversions.Revenue": {
2621
+ "type": "I",
2622
+ "fields": {
2623
+ "currency": {
2624
+ "type": "string"
2625
+ },
2626
+ "amount": {
2627
+ "type": "number"
2628
+ }
2629
+ }
2630
+ },
2631
+ "pushwoosh.statistics.statistics.v2.conversions.GetBoardResponse.Totals": {
2632
+ "type": "I",
2633
+ "fields": {
2634
+ "conversions": {
2635
+ "type": "number"
2636
+ },
2637
+ "attributedConversions": {
2638
+ "type": "number"
2639
+ },
2640
+ "uniqueUsers": {
2641
+ "type": "number"
2642
+ },
2643
+ "revenue": {
2644
+ "type": "pushwoosh.statistics.statistics.v2.conversions.Revenue",
2645
+ "array": true
2646
+ },
2647
+ "conversionsWithoutCurrency": {
2648
+ "type": "number"
2649
+ },
2650
+ "totalRevenue": {
2651
+ "type": "pushwoosh.statistics.statistics.v2.conversions.Revenue",
2652
+ "array": true
2653
+ }
2654
+ }
2655
+ },
2656
+ "pushwoosh.statistics.statistics.v2.conversions.GetBoardResponse": {
2657
+ "type": "I",
2658
+ "fields": {
2659
+ "totals": {
2660
+ "type": "pushwoosh.statistics.statistics.v2.conversions.GetBoardResponse.Totals"
2661
+ },
2662
+ "rows": {
2663
+ "type": "pushwoosh.statistics.statistics.v2.conversions.Row",
2664
+ "array": true
2665
+ },
2666
+ "attributionWindowSeconds": {
2667
+ "type": "number"
2668
+ },
2669
+ "contactType": {
2670
+ "type": "pushwoosh.statistics.statistics.v2.conversions.ContactType"
2671
+ },
2672
+ "touchesFrom": {
2673
+ "type": "Date"
2674
+ },
2675
+ "total": {
2676
+ "type": "number"
2677
+ }
2678
+ }
2679
+ },
2680
+ "pushwoosh.statistics.statistics.v2.conversions.GetJourneyRequest": {
2681
+ "type": "I",
2682
+ "fields": {
2683
+ "application": {
2684
+ "type": "string"
2685
+ },
2686
+ "event": {
2687
+ "type": "string"
2688
+ },
2689
+ "journeyUuid": {
2690
+ "type": "string"
2691
+ },
2692
+ "version": {
2693
+ "type": "number"
2694
+ },
2695
+ "timestampFrom": {
2696
+ "type": "Date"
2697
+ },
2698
+ "timestampTo": {
2699
+ "type": "Date"
2700
+ },
2701
+ "attributionWindowSeconds": {
2702
+ "type": "number"
2703
+ },
2704
+ "contactType": {
2705
+ "type": "pushwoosh.statistics.statistics.v2.conversions.ContactType"
2706
+ },
2707
+ "currency": {
2708
+ "type": "string"
2709
+ }
2710
+ }
2711
+ },
2712
+ "pushwoosh.statistics.statistics.v2.conversions.GetJourneyResponse.Version": {
2713
+ "type": "I",
2714
+ "fields": {
2715
+ "number": {
2716
+ "type": "number"
2717
+ },
2718
+ "uuid": {
2719
+ "type": "string"
2720
+ },
2721
+ "activeFrom": {
2722
+ "type": "Date"
2723
+ },
2724
+ "activeTo": {
2725
+ "type": "Date"
2726
+ }
2727
+ }
2728
+ },
2729
+ "pushwoosh.statistics.statistics.v2.conversions.GetJourneyResponse": {
2730
+ "type": "I",
2731
+ "fields": {
2732
+ "title": {
2733
+ "type": "string"
2734
+ },
2735
+ "versions": {
2736
+ "type": "pushwoosh.statistics.statistics.v2.conversions.GetJourneyResponse.Version",
2737
+ "array": true
2738
+ },
2739
+ "version": {
2740
+ "type": "number"
2741
+ },
2742
+ "points": {
2743
+ "type": "pushwoosh.statistics.statistics.v2.conversions.Row",
2744
+ "array": true
2745
+ }
2746
+ }
2747
+ },
2490
2748
  "pushwoosh.statistics.statistics.v2.dashboards.DashboardsService": {
2491
2749
  "type": "S",
2492
2750
  "key": "dashboards",
@@ -4887,12 +5145,6 @@ export const data = {
4887
5145
  "response": "pushwoosh.statistics.statistics.v2.statistics.GetEmailCategoryPerformanceResponse",
4888
5146
  "method": "post",
4889
5147
  "path": "/api/v2/statistics/messages/getEmailCategoryPerformance"
4890
- },
4891
- "GetConversionsBoard": {
4892
- "request": "pushwoosh.statistics.statistics.v2.statistics.GetConversionsBoardRequest",
4893
- "response": "pushwoosh.statistics.statistics.v2.statistics.GetConversionsBoardResponse",
4894
- "method": "post",
4895
- "path": "/api/v2/statistics/messages/getConversionsBoard"
4896
5148
  }
4897
5149
  }
4898
5150
  },
@@ -6612,122 +6864,5 @@ export const data = {
6612
6864
  "type": "Date"
6613
6865
  }
6614
6866
  }
6615
- },
6616
- "pushwoosh.statistics.statistics.v2.statistics.ContactType": {
6617
- "type": "E",
6618
- "values": [
6619
- "CONTACT_TYPE_UNSPECIFIED",
6620
- "CONTACT_TYPE_CLICK",
6621
- "CONTACT_TYPE_SENT"
6622
- ]
6623
- },
6624
- "pushwoosh.statistics.statistics.v2.statistics.GetConversionsBoardRequest": {
6625
- "type": "I",
6626
- "fields": {
6627
- "application": {
6628
- "type": "string"
6629
- },
6630
- "event": {
6631
- "type": "string"
6632
- },
6633
- "timestampFrom": {
6634
- "type": "Date"
6635
- },
6636
- "timestampTo": {
6637
- "type": "Date"
6638
- },
6639
- "attributionWindowSeconds": {
6640
- "type": "number"
6641
- },
6642
- "contactType": {
6643
- "type": "pushwoosh.statistics.statistics.v2.statistics.ContactType"
6644
- }
6645
- }
6646
- },
6647
- "pushwoosh.statistics.statistics.v2.statistics.GetConversionsBoardResponse.Revenue": {
6648
- "type": "I",
6649
- "fields": {
6650
- "currency": {
6651
- "type": "string"
6652
- },
6653
- "amount": {
6654
- "type": "number"
6655
- }
6656
- }
6657
- },
6658
- "pushwoosh.statistics.statistics.v2.statistics.GetConversionsBoardResponse.Row": {
6659
- "type": "I",
6660
- "fields": {
6661
- "messageId": {
6662
- "type": "number"
6663
- },
6664
- "campaignId": {
6665
- "type": "number"
6666
- },
6667
- "messageCode": {
6668
- "type": "string"
6669
- },
6670
- "name": {
6671
- "type": "string"
6672
- },
6673
- "sent": {
6674
- "type": "number"
6675
- },
6676
- "opened": {
6677
- "type": "number"
6678
- },
6679
- "clicked": {
6680
- "type": "number"
6681
- },
6682
- "conversions": {
6683
- "type": "number"
6684
- },
6685
- "uniqueUsers": {
6686
- "type": "number"
6687
- },
6688
- "revenue": {
6689
- "type": "pushwoosh.statistics.statistics.v2.statistics.GetConversionsBoardResponse.Revenue",
6690
- "array": true
6691
- }
6692
- }
6693
- },
6694
- "pushwoosh.statistics.statistics.v2.statistics.GetConversionsBoardResponse.Totals": {
6695
- "type": "I",
6696
- "fields": {
6697
- "conversions": {
6698
- "type": "number"
6699
- },
6700
- "attributedConversions": {
6701
- "type": "number"
6702
- },
6703
- "uniqueUsers": {
6704
- "type": "number"
6705
- },
6706
- "revenue": {
6707
- "type": "pushwoosh.statistics.statistics.v2.statistics.GetConversionsBoardResponse.Revenue",
6708
- "array": true
6709
- }
6710
- }
6711
- },
6712
- "pushwoosh.statistics.statistics.v2.statistics.GetConversionsBoardResponse": {
6713
- "type": "I",
6714
- "fields": {
6715
- "totals": {
6716
- "type": "pushwoosh.statistics.statistics.v2.statistics.GetConversionsBoardResponse.Totals"
6717
- },
6718
- "rows": {
6719
- "type": "pushwoosh.statistics.statistics.v2.statistics.GetConversionsBoardResponse.Row",
6720
- "array": true
6721
- },
6722
- "attributionWindowSeconds": {
6723
- "type": "number"
6724
- },
6725
- "contactType": {
6726
- "type": "pushwoosh.statistics.statistics.v2.statistics.ContactType"
6727
- },
6728
- "touchesFrom": {
6729
- "type": "Date"
6730
- }
6731
- }
6732
6867
  }
6733
6868
  };
package/index.d.ts CHANGED
@@ -1,9 +1,11 @@
1
1
  import { StatisticsService as pushwoosh_statistics_statistics_v1_StatisticsService } from './pushwoosh_statistics_statistics_v1';
2
+ import { ConversionsService as pushwoosh_statistics_statistics_v2_conversions_ConversionsService } from './pushwoosh_statistics_statistics_v2_conversions';
2
3
  import { DashboardsService as pushwoosh_statistics_statistics_v2_dashboards_DashboardsService } from './pushwoosh_statistics_statistics_v2_dashboards';
3
4
  import { OverviewKPIService as pushwoosh_statistics_statistics_v2_overviewkpi_OverviewKPIService } from './pushwoosh_statistics_statistics_v2_overviewkpi';
4
5
  import { StatisticsService as pushwoosh_statistics_statistics_v2_statistics_StatisticsService } from './pushwoosh_statistics_statistics_v2_statistics';
5
6
  export type API = {
6
7
  statisticsV1: pushwoosh_statistics_statistics_v1_StatisticsService;
8
+ conversions: pushwoosh_statistics_statistics_v2_conversions_ConversionsService;
7
9
  dashboards: pushwoosh_statistics_statistics_v2_dashboards_DashboardsService;
8
10
  overviewKPI: pushwoosh_statistics_statistics_v2_overviewkpi_OverviewKPIService;
9
11
  statisticsV2: pushwoosh_statistics_statistics_v2_statistics_StatisticsService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-statistics-api",
3
- "version": "1.3.876",
3
+ "version": "1.3.877",
4
4
  "description": "Statistics API gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -0,0 +1,149 @@
1
+ import { RpcMethod } from './commonTypes';
2
+ export type ConversionsService_GetBoard = RpcMethod<GetBoardRequest, GetBoardResponse>;
3
+ export type ConversionsService_GetJourney = RpcMethod<GetJourneyRequest, GetJourneyResponse>;
4
+ /**
5
+ * ConversionsService serves the Conversions board: conversions and revenue of an application's
6
+ * messages and journeys, each conversion credited to the user's last touch inside the attribution window
7
+ */
8
+ export interface ConversionsService {
9
+ /** GetBoard returns the period totals and one page of rows, a row per message or journey. */
10
+ GetBoard: ConversionsService_GetBoard;
11
+ /** GetJourney returns one journey of the board broken down by the points of a chosen version. */
12
+ GetJourney: ConversionsService_GetJourney;
13
+ }
14
+ /** ContactType is the touch a conversion is credited to: the last send or the last click */
15
+ export type ContactType = 'CONTACT_TYPE_UNSPECIFIED' | 'CONTACT_TYPE_CLICK' | 'CONTACT_TYPE_SENT';
16
+ /** CampaignType tells what a board row is: a one-time message or a journey. */
17
+ export type CampaignType = 'CAMPAIGN_TYPE_UNSPECIFIED' | 'CAMPAIGN_TYPE_ONE_TIME' | 'CAMPAIGN_TYPE_JOURNEY';
18
+ /** GetBoardRequest asks for one page of the board of one conversion event */
19
+ export type GetBoardRequest = {
20
+ /** Application Code */
21
+ application: string;
22
+ /** Name of one of the application's conversion events */
23
+ event: string;
24
+ /** Conversion time range start */
25
+ timestampFrom: Date;
26
+ /** Conversion time range end */
27
+ timestampTo: Date;
28
+ /** 86400, 259200, 604800 or 2592000; 0 reads as 259200 */
29
+ attributionWindowSeconds: number;
30
+ /** UNSPECIFIED reads as CLICK */
31
+ contactType: ContactType;
32
+ /** Keep only one-time messages or only journeys; UNSPECIFIED keeps both */
33
+ campaignType: CampaignType;
34
+ /** Keep messages of the channel and journeys' points of it, named as in Row.channels; empty keeps all */
35
+ channel: string;
36
+ /** Count only conversions carrying this currency (upper-case ISO code); empty keeps all */
37
+ currency: string;
38
+ /** 1-based page of rows; 0 reads as 1 */
39
+ page: number;
40
+ /** Rows per page; 0 reads as 20, 200 at most */
41
+ perPage: number;
42
+ };
43
+ /** Row is one message, journey or journey point on the board */
44
+ export type Row = {
45
+ /** One-time message; 0 for a journey or a point */
46
+ messageId: number;
47
+ /** Journey point campaign; 0 for a one-time message or a whole journey */
48
+ campaignId: number;
49
+ messageCode: string;
50
+ /** Message title, journey title or point title */
51
+ name: string;
52
+ sent: number;
53
+ opened: number;
54
+ /** Email link clicks; 0 for channels without clicks */
55
+ clicked: number;
56
+ conversions: number;
57
+ uniqueUsers: number;
58
+ revenue: Revenue[];
59
+ campaignType: CampaignType;
60
+ /** active, paused or inactive; empty for a journey point */
61
+ status: string;
62
+ /** push, inbox, email, sms, whatsapp, fb_messenger, inapp, line, kakao, telegram, viber */
63
+ channels: string[];
64
+ /** Root version uuid of the journey; the key for GetJourney */
65
+ journeyUuid: string;
66
+ /** Conversions counted without revenue because the event carried no usable currency */
67
+ conversionsWithoutCurrency: number;
68
+ /** Journey row under a channel filter: only its points of that channel are counted */
69
+ filtered: boolean;
70
+ /** Journey point deleted from its version; what it earned still counts */
71
+ deleted: boolean;
72
+ };
73
+ /** Revenue is revenue in one currency, not converted */
74
+ export type Revenue = {
75
+ /** Upper-case currency code as the events carried it */
76
+ currency: string;
77
+ /** Sum of the attributed conversions' amounts */
78
+ amount: number;
79
+ };
80
+ /**
81
+ * Totals of the period: conversions and total_revenue count every conversion of the event,
82
+ * attributed or not, whatever the filters; the rest sums the rows that passed campaign_type and channel
83
+ */
84
+ export type GetBoardResponse_Totals = {
85
+ /** All conversions of the event in the period */
86
+ conversions: number;
87
+ /** Conversions credited to the rows that passed the filters */
88
+ attributedConversions: number;
89
+ /** Distinct users behind attributed_conversions */
90
+ uniqueUsers: number;
91
+ /** Revenue of attributed_conversions, per currency */
92
+ revenue: Revenue[];
93
+ /** Attributed conversions whose amount could not be counted */
94
+ conversionsWithoutCurrency: number;
95
+ /** Revenue of every conversion of the period, per currency */
96
+ totalRevenue: Revenue[];
97
+ };
98
+ /** GetBoardResponse contains the board totals and one page of rows */
99
+ export type GetBoardResponse = {
100
+ totals: GetBoardResponse_Totals;
101
+ rows: Row[];
102
+ /** Effective window */
103
+ attributionWindowSeconds: number;
104
+ /** Effective contact type */
105
+ contactType: ContactType;
106
+ /** Touches are looked up from this moment: period start minus the window */
107
+ touchesFrom: Date;
108
+ /** Rows matching the filters, before paging */
109
+ total: number;
110
+ };
111
+ /** GetJourneyRequest asks for one journey of the board */
112
+ export type GetJourneyRequest = {
113
+ /** Application Code */
114
+ application: string;
115
+ /** Conversion event name, as on the board */
116
+ event: string;
117
+ /** Root version uuid from a board row */
118
+ journeyUuid: string;
119
+ /** Journey version number; 0 reads as the latest */
120
+ version: number;
121
+ /** Conversion time range start */
122
+ timestampFrom: Date;
123
+ /** Conversion time range end */
124
+ timestampTo: Date;
125
+ /** Same values as on the board */
126
+ attributionWindowSeconds: number;
127
+ /** UNSPECIFIED reads as CLICK */
128
+ contactType: ContactType;
129
+ /** Keep revenue of one currency; empty keeps all */
130
+ currency: string;
131
+ };
132
+ export type GetJourneyResponse_Version = {
133
+ number: number;
134
+ uuid: string;
135
+ /** When the version was activated */
136
+ activeFrom: Date;
137
+ /** When the next version took over; unset for the current one */
138
+ activeTo: Date;
139
+ };
140
+ /** GetJourneyResponse contains the versions of the journey and the points of the chosen one */
141
+ export type GetJourneyResponse = {
142
+ title: string;
143
+ /** Newest first */
144
+ versions: GetJourneyResponse_Version[];
145
+ /** Effective version */
146
+ version: number;
147
+ /** Points of the version, in journey order */
148
+ points: Row[];
149
+ };
@@ -0,0 +1,3 @@
1
+ /* eslint-disable */
2
+ /* Autogenerated code */
3
+ export {};
@@ -17,7 +17,6 @@ export type StatisticsService_GetCampaignDeliveryFunnel = RpcMethod<GetCampaignD
17
17
  export type StatisticsService_GetMessageDeliveryTimeline = RpcMethod<GetMessageDeliveryTimelineRequest, GetDeliveryTimelineResponse>;
18
18
  export type StatisticsService_GetCampaignDeliveryTimeline = RpcMethod<GetCampaignDeliveryTimelineRequest, GetDeliveryTimelineResponse>;
19
19
  export type StatisticsService_GetEmailCategoryPerformance = RpcMethod<GetEmailCategoryPerformanceRequest, GetEmailCategoryPerformanceResponse>;
20
- export type StatisticsService_GetConversionsBoard = RpcMethod<GetConversionsBoardRequest, GetConversionsBoardResponse>;
21
20
  /** StatisticsService provides various statistics operations */
22
21
  export interface StatisticsService {
23
22
  /** GetMessagesStatistics returns message statistics grouped by platform and time intervals */
@@ -69,11 +68,6 @@ export interface StatisticsService {
69
68
  * The caller names the categories; statistics only groups by the names it is given.
70
69
  */
71
70
  GetEmailCategoryPerformance: StatisticsService_GetEmailCategoryPerformance;
72
- /**
73
- * Campaign attribution board: conversions and revenue of an application's messages, each
74
- * conversion credited to the last touch inside the attribution window (last touch).
75
- */
76
- GetConversionsBoard: StatisticsService_GetConversionsBoard;
77
71
  }
78
72
  /** EmailEventType represents different types of email delivery events */
79
73
  export type EmailEventType =
@@ -1240,53 +1234,3 @@ export type GetEmailCategoryPerformanceResponse = {
1240
1234
  /** Window actually read */
1241
1235
  windowTo: Date;
1242
1236
  };
1243
- export type ContactType = 'CONTACT_TYPE_UNSPECIFIED' | 'CONTACT_TYPE_CLICK' | 'CONTACT_TYPE_SENT';
1244
- export type GetConversionsBoardRequest = {
1245
- /** Application Code */
1246
- application: string;
1247
- /** Conversion event name from the application's conversion settings */
1248
- event: string;
1249
- /** Conversion time range start */
1250
- timestampFrom: Date;
1251
- /** Conversion time range end */
1252
- timestampTo: Date;
1253
- /** Overrides the configured window; 0 keeps the setting */
1254
- attributionWindowSeconds: number;
1255
- /** Overrides the configured contact type; UNSPECIFIED keeps the setting */
1256
- contactType: ContactType;
1257
- };
1258
- export type GetConversionsBoardResponse_Revenue = {
1259
- currency: string;
1260
- amount: number;
1261
- };
1262
- export type GetConversionsBoardResponse_Row = {
1263
- messageId: number;
1264
- campaignId: number;
1265
- messageCode: string;
1266
- name: string;
1267
- sent: number;
1268
- opened: number;
1269
- clicked: number;
1270
- conversions: number;
1271
- uniqueUsers: number;
1272
- revenue: GetConversionsBoardResponse_Revenue[];
1273
- };
1274
- export type GetConversionsBoardResponse_Totals = {
1275
- /** All conversions of the event in the period */
1276
- conversions: number;
1277
- /** Conversions credited to a message */
1278
- attributedConversions: number;
1279
- uniqueUsers: number;
1280
- /** Revenue of attributed conversions */
1281
- revenue: GetConversionsBoardResponse_Revenue[];
1282
- };
1283
- export type GetConversionsBoardResponse = {
1284
- totals: GetConversionsBoardResponse_Totals;
1285
- rows: GetConversionsBoardResponse_Row[];
1286
- /** Effective window */
1287
- attributionWindowSeconds: number;
1288
- /** Effective contact type */
1289
- contactType: ContactType;
1290
- /** Touches are counted from this moment: period start minus the window */
1291
- touchesFrom: Date;
1292
- };