@pushwoosh/rpc-gateway-messaging 0.6.169 → 0.6.170

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
@@ -514,6 +514,9 @@ export const data = {
514
514
  },
515
515
  "pastTimezonesBehaviour": {
516
516
  "type": "pushwoosh.channels.messagingApi.v2.Schedule.PastTimezonesBehaviour"
517
+ },
518
+ "bestTimeToSend": {
519
+ "type": "Date"
517
520
  }
518
521
  },
519
522
  "oneofs": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-messaging",
3
- "version": "0.6.169",
3
+ "version": "0.6.170",
4
4
  "description": "Channels Messaging API gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -398,6 +398,12 @@ export type Schedule = {
398
398
  followUserTimezone: boolean;
399
399
  /** What to do with past timezones. */
400
400
  pastTimezonesBehaviour: Schedule_PastTimezonesBehaviour;
401
+ /**
402
+ * Best time to send: each device gets the message at its own best hour within 24 hours from this time.
403
+ * Devices without a best hour get it at send_date. Segment messages only; send_date must be in the future and not
404
+ * later than it plus 24 hours; follow_user_timezone must be false; must be from the next full hour to 30 days ahead.
405
+ */
406
+ bestTimeToSend: Date;
401
407
  sendDate: Schedule_sendDate;
402
408
  };
403
409
  /** FrequencyCappingMode anchors the capping counting window. */