@pushwoosh/rpc-gateway-messaging 0.6.216 → 0.6.218
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 +32 -0
- package/package.json +1 -1
- package/pushwoosh_channels_messagingApi_v2.d.ts +21 -1
package/data.js
CHANGED
|
@@ -345,6 +345,9 @@ export const data = {
|
|
|
345
345
|
},
|
|
346
346
|
"geoZone": {
|
|
347
347
|
"type": "pushwoosh.channels.messagingApi.v2.GeoZone"
|
|
348
|
+
},
|
|
349
|
+
"silentHours": {
|
|
350
|
+
"type": "pushwoosh.channels.messagingApi.v2.SilentHoursOptions"
|
|
348
351
|
}
|
|
349
352
|
},
|
|
350
353
|
"oneofs": {
|
|
@@ -492,6 +495,9 @@ export const data = {
|
|
|
492
495
|
},
|
|
493
496
|
"resend": {
|
|
494
497
|
"type": "pushwoosh.channels.messagingApi.v2.Resend"
|
|
498
|
+
},
|
|
499
|
+
"silentHours": {
|
|
500
|
+
"type": "pushwoosh.channels.messagingApi.v2.SilentHoursOptions"
|
|
495
501
|
}
|
|
496
502
|
},
|
|
497
503
|
"oneofs": {
|
|
@@ -584,6 +590,14 @@ export const data = {
|
|
|
584
590
|
}
|
|
585
591
|
}
|
|
586
592
|
},
|
|
593
|
+
"pushwoosh.channels.messagingApi.v2.SilentHoursOptions": {
|
|
594
|
+
"type": "I",
|
|
595
|
+
"fields": {
|
|
596
|
+
"avoid": {
|
|
597
|
+
"type": "boolean"
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
},
|
|
587
601
|
"pushwoosh.channels.messagingApi.v2.SendRate": {
|
|
588
602
|
"type": "I",
|
|
589
603
|
"fields": {
|
|
@@ -1826,9 +1840,27 @@ export const data = {
|
|
|
1826
1840
|
"localizedBody": {
|
|
1827
1841
|
"type": "string",
|
|
1828
1842
|
"mapKeyType": "string"
|
|
1843
|
+
},
|
|
1844
|
+
"emailSunsetPolicy": {
|
|
1845
|
+
"type": "pushwoosh.channels.messagingApi.v2.EmailSunsetPolicy"
|
|
1829
1846
|
}
|
|
1830
1847
|
}
|
|
1831
1848
|
},
|
|
1849
|
+
"pushwoosh.channels.messagingApi.v2.EmailSunsetPolicy": {
|
|
1850
|
+
"type": "I",
|
|
1851
|
+
"fields": {
|
|
1852
|
+
"mode": {
|
|
1853
|
+
"type": "pushwoosh.channels.messagingApi.v2.EmailSunsetMode"
|
|
1854
|
+
}
|
|
1855
|
+
}
|
|
1856
|
+
},
|
|
1857
|
+
"pushwoosh.channels.messagingApi.v2.EmailSunsetMode": {
|
|
1858
|
+
"type": "E",
|
|
1859
|
+
"values": [
|
|
1860
|
+
"EMAIL_SUNSET_MODE_DEFAULT",
|
|
1861
|
+
"EMAIL_SUNSET_MODE_OFF"
|
|
1862
|
+
]
|
|
1863
|
+
},
|
|
1832
1864
|
"pushwoosh.channels.messagingApi.v2.AppInboxPayload": {
|
|
1833
1865
|
"type": "I",
|
|
1834
1866
|
"fields": {
|
package/package.json
CHANGED
|
@@ -270,6 +270,8 @@ export type NotifySegment = {
|
|
|
270
270
|
contentPlaceholders: object;
|
|
271
271
|
resend: Resend;
|
|
272
272
|
geoZone: GeoZone;
|
|
273
|
+
/** Application silent hours for this message. */
|
|
274
|
+
silentHours: SilentHoursOptions;
|
|
273
275
|
target: NotifySegment_target;
|
|
274
276
|
messagePayload: NotifySegment_messagePayload;
|
|
275
277
|
};
|
|
@@ -381,6 +383,8 @@ export type NotifyTransactional = {
|
|
|
381
383
|
/** Placeholder name to the value substituted into the message content; wins over dynamic_content_placeholders on the same key. */
|
|
382
384
|
contentPlaceholders: object;
|
|
383
385
|
resend: Resend;
|
|
386
|
+
/** Application silent hours for this message. */
|
|
387
|
+
silentHours: SilentHoursOptions;
|
|
384
388
|
target: NotifyTransactional_target;
|
|
385
389
|
messagePayload: NotifyTransactional_messagePayload;
|
|
386
390
|
};
|
|
@@ -440,6 +444,11 @@ export type FrequencyCapping = {
|
|
|
440
444
|
/** IANA timezone name midnight is calculated in for the calendar day mode; empty means UTC. */
|
|
441
445
|
timezone: string;
|
|
442
446
|
};
|
|
447
|
+
/** Application silent hours for one message. Transactional messages are never held by them. */
|
|
448
|
+
export type SilentHoursOptions = {
|
|
449
|
+
/** Send even during the application silent hours. */
|
|
450
|
+
avoid: boolean;
|
|
451
|
+
};
|
|
443
452
|
export type SendRate = {
|
|
444
453
|
/** Messages per bucket; bounded by the account's send-rate restrictions. */
|
|
445
454
|
value: number;
|
|
@@ -1219,7 +1228,18 @@ export type EmailPayload = {
|
|
|
1219
1228
|
emailCategory: string;
|
|
1220
1229
|
/** Email body HTML per locale (locale -> HTML); mutually exclusive with body. */
|
|
1221
1230
|
localizedBody: Record<string, string>;
|
|
1222
|
-
|
|
1231
|
+
/** How the application's email sunset policy applies to this send; unset applies it. */
|
|
1232
|
+
emailSunsetPolicy: EmailSunsetPolicy;
|
|
1233
|
+
};
|
|
1234
|
+
/** EmailSunsetPolicy overrides the application's email sunset policy for one send. */
|
|
1235
|
+
export type EmailSunsetPolicy = {
|
|
1236
|
+
mode: EmailSunsetMode;
|
|
1237
|
+
};
|
|
1238
|
+
export type EmailSunsetMode =
|
|
1239
|
+
/** The application's policy applies: marketing emails skip recipients inactive within its period. */
|
|
1240
|
+
'EMAIL_SUNSET_MODE_DEFAULT'
|
|
1241
|
+
/** The policy does not apply: inactive recipients get the email too, for win-back sends. */
|
|
1242
|
+
| 'EMAIL_SUNSET_MODE_OFF';
|
|
1223
1243
|
export type AppInboxPayload_expiration_expirationDate = {
|
|
1224
1244
|
type: 'expirationDate';
|
|
1225
1245
|
data: Date;
|