@pushwoosh/rpc-gateway-messaging 0.6.216 → 0.6.217

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
@@ -1826,9 +1826,27 @@ export const data = {
1826
1826
  "localizedBody": {
1827
1827
  "type": "string",
1828
1828
  "mapKeyType": "string"
1829
+ },
1830
+ "emailSunsetPolicy": {
1831
+ "type": "pushwoosh.channels.messagingApi.v2.EmailSunsetPolicy"
1829
1832
  }
1830
1833
  }
1831
1834
  },
1835
+ "pushwoosh.channels.messagingApi.v2.EmailSunsetPolicy": {
1836
+ "type": "I",
1837
+ "fields": {
1838
+ "mode": {
1839
+ "type": "pushwoosh.channels.messagingApi.v2.EmailSunsetMode"
1840
+ }
1841
+ }
1842
+ },
1843
+ "pushwoosh.channels.messagingApi.v2.EmailSunsetMode": {
1844
+ "type": "E",
1845
+ "values": [
1846
+ "EMAIL_SUNSET_MODE_DEFAULT",
1847
+ "EMAIL_SUNSET_MODE_OFF"
1848
+ ]
1849
+ },
1832
1850
  "pushwoosh.channels.messagingApi.v2.AppInboxPayload": {
1833
1851
  "type": "I",
1834
1852
  "fields": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-messaging",
3
- "version": "0.6.216",
3
+ "version": "0.6.217",
4
4
  "description": "Channels Messaging API gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -1219,7 +1219,18 @@ export type EmailPayload = {
1219
1219
  emailCategory: string;
1220
1220
  /** Email body HTML per locale (locale -> HTML); mutually exclusive with body. */
1221
1221
  localizedBody: Record<string, string>;
1222
- };
1222
+ /** How the application's email sunset policy applies to this send; unset applies it. */
1223
+ emailSunsetPolicy: EmailSunsetPolicy;
1224
+ };
1225
+ /** EmailSunsetPolicy overrides the application's email sunset policy for one send. */
1226
+ export type EmailSunsetPolicy = {
1227
+ mode: EmailSunsetMode;
1228
+ };
1229
+ export type EmailSunsetMode =
1230
+ /** The application's policy applies: marketing emails skip recipients inactive within its period. */
1231
+ 'EMAIL_SUNSET_MODE_DEFAULT'
1232
+ /** The policy does not apply: inactive recipients get the email too, for win-back sends. */
1233
+ | 'EMAIL_SUNSET_MODE_OFF';
1223
1234
  export type AppInboxPayload_expiration_expirationDate = {
1224
1235
  type: 'expirationDate';
1225
1236
  data: Date;