@pushwoosh/rpc-v2-http-api-data 0.2.125 → 0.2.127

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/accounts.d.ts CHANGED
@@ -529,8 +529,6 @@ export type RebakeEmailTemplatesResponse = {
529
529
  results: RebakeEmailTemplateResult[];
530
530
  /** Templates a dry run would have rewritten. */
531
531
  wouldChange: number;
532
- /** Templates whose dialect carried keys the typed document cannot hold. */
533
- withDroppedKeys: number;
534
532
  };
535
533
  export type RebakeEmailTemplateResult = {
536
534
  code: string;
@@ -539,9 +537,4 @@ export type RebakeEmailTemplateResult = {
539
537
  error: string;
540
538
  htmlBytesBefore: number;
541
539
  htmlBytesAfter: number;
542
- /**
543
- * Editor keys the typed document cannot hold, named by the renderer. Empty on
544
- * every template is the second half of the AIDEV-925 zero criterion.
545
- */
546
- droppedFeKeys: string[];
547
540
  };
package/data.js CHANGED
@@ -10158,9 +10158,6 @@ export const data = {
10158
10158
  },
10159
10159
  "wouldChange": {
10160
10160
  "type": "number"
10161
- },
10162
- "withDroppedKeys": {
10163
- "type": "number"
10164
10161
  }
10165
10162
  }
10166
10163
  },
@@ -10181,10 +10178,6 @@ export const data = {
10181
10178
  },
10182
10179
  "htmlBytesAfter": {
10183
10180
  "type": "number"
10184
- },
10185
- "droppedFeKeys": {
10186
- "type": "string",
10187
- "array": true
10188
10181
  }
10189
10182
  }
10190
10183
  },
@@ -17532,6 +17525,12 @@ export const data = {
17532
17525
  "method": "post",
17533
17526
  "path": "/api/messages/statistics"
17534
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
+ },
17535
17534
  "GetLinkClicksStatistics": {
17536
17535
  "request": "pushwoosh.rpc_v2.messages.GetLinkClicksStatisticsRequest",
17537
17536
  "response": "pushwoosh.rpc_v2.messages.GetLinkClicksStatisticsResponse",
@@ -17890,6 +17889,58 @@ export const data = {
17890
17889
  }
17891
17890
  }
17892
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
+ },
17893
17944
  "pushwoosh.rpc_v2.messages.GetLinkClicksStatisticsRequest": {
17894
17945
  "type": "I",
17895
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.125",
3
+ "version": "0.2.127",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",