@pushwoosh/rpc-gateway-messaging 0.6.84 → 0.6.86
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 +13 -0
- package/package.json +1 -1
- package/pushwoosh_channels_messagingApi_v2.d.ts +10 -0
package/data.js
CHANGED
|
@@ -471,6 +471,13 @@ export const data = {
|
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
473
|
},
|
|
474
|
+
"pushwoosh.channels.messagingApi.v2.FrequencyCappingMode": {
|
|
475
|
+
"type": "E",
|
|
476
|
+
"values": [
|
|
477
|
+
"FREQUENCY_CAPPING_MODE_DEFAULT",
|
|
478
|
+
"FREQUENCY_CAPPING_MODE_CALENDAR_DAY"
|
|
479
|
+
]
|
|
480
|
+
},
|
|
474
481
|
"pushwoosh.channels.messagingApi.v2.FrequencyCapping": {
|
|
475
482
|
"type": "I",
|
|
476
483
|
"fields": {
|
|
@@ -485,6 +492,12 @@ export const data = {
|
|
|
485
492
|
},
|
|
486
493
|
"avoid": {
|
|
487
494
|
"type": "boolean"
|
|
495
|
+
},
|
|
496
|
+
"mode": {
|
|
497
|
+
"type": "pushwoosh.channels.messagingApi.v2.FrequencyCappingMode"
|
|
498
|
+
},
|
|
499
|
+
"timezone": {
|
|
500
|
+
"type": "string"
|
|
488
501
|
}
|
|
489
502
|
}
|
|
490
503
|
},
|
package/package.json
CHANGED
|
@@ -288,12 +288,22 @@ export type Schedule = {
|
|
|
288
288
|
pastTimezonesBehaviour: Schedule_PastTimezonesBehaviour;
|
|
289
289
|
sendDate: Schedule_sendDate;
|
|
290
290
|
};
|
|
291
|
+
/** FrequencyCappingMode anchors the capping counting window. */
|
|
292
|
+
export type FrequencyCappingMode =
|
|
293
|
+
/** Rolling window: the last days*24 hours from the moment of sending. */
|
|
294
|
+
'FREQUENCY_CAPPING_MODE_DEFAULT'
|
|
295
|
+
/** Calendar days: the window starts at local midnight in the configured timezone. */
|
|
296
|
+
| 'FREQUENCY_CAPPING_MODE_CALENDAR_DAY';
|
|
291
297
|
/** Message frequency capping. */
|
|
292
298
|
export type FrequencyCapping = {
|
|
293
299
|
days: number;
|
|
294
300
|
count: number;
|
|
295
301
|
exclude: boolean;
|
|
296
302
|
avoid: boolean;
|
|
303
|
+
/** How the counting window is anchored. Applies only together with explicit days and count. */
|
|
304
|
+
mode: FrequencyCappingMode;
|
|
305
|
+
/** IANA timezone name midnight is calculated in for the calendar day mode; empty means UTC. */
|
|
306
|
+
timezone: string;
|
|
297
307
|
};
|
|
298
308
|
export type SendRate = {
|
|
299
309
|
value: number;
|