@pushwoosh/rpc-v2-http-api-data 0.2.500 → 0.2.502

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/chat_presets.d.ts CHANGED
@@ -68,6 +68,11 @@ export type ListChatPresetsRequest = {
68
68
  perPage?: number;
69
69
  /** Free-text substring matched against preset name OR preset code (case-insensitive). */
70
70
  searchByName?: string;
71
+ /**
72
+ * Keep only presets whose content the channel can send: "rcs", "whatsapp", "fbmessenger" or "line".
73
+ * Whether the channel is set up in the application does not matter here.
74
+ */
75
+ channel?: string;
71
76
  };
72
77
  export type ListChatPresetsResponse = {
73
78
  presets: ChatPreset[];
package/data.js CHANGED
@@ -11632,6 +11632,9 @@ export const data = {
11632
11632
  },
11633
11633
  "searchByName": {
11634
11634
  "type": "string"
11635
+ },
11636
+ "channel": {
11637
+ "type": "string"
11635
11638
  }
11636
11639
  }
11637
11640
  },
package/events.d.ts CHANGED
@@ -258,7 +258,9 @@ export type GetDetailedStatisticsRequest = {
258
258
  application?: string;
259
259
  /** Name of the custom event to build the time series for. */
260
260
  name?: string;
261
+ /** Calendar date of the first day counted, passed at 00:00:00Z. */
261
262
  dateFrom?: Date;
263
+ /** Calendar date of the last day counted, inclusive: one day is date_to = date_from, not the next day's start. */
262
264
  dateTo?: Date;
263
265
  /** Bucket size for the time series (hour, day, week or month). */
264
266
  interval?: TimeInterval;
@@ -272,6 +274,7 @@ export type GetDetailedStatisticsRequest = {
272
274
  attribution?: Attribution;
273
275
  };
274
276
  export type GetDetailedStatisticsResponse_TriggeredCount = {
277
+ /** Start of the bucket in the caller's timezone (UTC+3 midnight is 21:00Z); a label, not a date to pass back. */
275
278
  timestamp: Date;
276
279
  triggeredCount: number;
277
280
  };
@@ -283,7 +286,9 @@ export type GetTotalStatisticsRequest = {
283
286
  application?: string;
284
287
  /** Names of the custom events to count. */
285
288
  events?: string[];
289
+ /** Calendar date of the first day counted, passed at 00:00:00Z. */
286
290
  dateFrom?: Date;
291
+ /** Calendar date of the last day counted, inclusive: one day is date_to = date_from, not the next day's start. */
287
292
  dateTo?: Date;
288
293
  /** Message code to attribute event triggers to a single send (transactional sends have no numeric id, so this returns empty). */
289
294
  messageCode?: string;
@@ -297,6 +302,7 @@ export type GetTotalStatisticsRequest = {
297
302
  export type GetTotalStatisticsResponse_EventTriggeredCount = {
298
303
  event: string;
299
304
  triggeredCount: number;
305
+ /** Left 0 when events is set; read total_uniq_triggered_count instead. */
300
306
  uniqTriggeredCount: number;
301
307
  };
302
308
  export type GetTotalStatisticsResponse = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.500",
3
+ "version": "0.2.502",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",