@pushwoosh/rpc-gateway-messaging 0.6.169 → 0.6.171
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 +43 -0
- package/package.json +1 -1
- package/pushwoosh_channels_messagingApi_v2.d.ts +27 -0
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": {
|
|
@@ -1412,6 +1415,46 @@ export const data = {
|
|
|
1412
1415
|
},
|
|
1413
1416
|
"buttonAction": {
|
|
1414
1417
|
"type": "string"
|
|
1418
|
+
},
|
|
1419
|
+
"carousel": {
|
|
1420
|
+
"type": "pushwoosh.channels.messagingApi.v2.Content.ViberCarousel"
|
|
1421
|
+
}
|
|
1422
|
+
}
|
|
1423
|
+
},
|
|
1424
|
+
"pushwoosh.channels.messagingApi.v2.Content.ViberCarousel": {
|
|
1425
|
+
"type": "I",
|
|
1426
|
+
"fields": {
|
|
1427
|
+
"items": {
|
|
1428
|
+
"type": "pushwoosh.channels.messagingApi.v2.Content.ViberCarouselItem",
|
|
1429
|
+
"array": true
|
|
1430
|
+
}
|
|
1431
|
+
}
|
|
1432
|
+
},
|
|
1433
|
+
"pushwoosh.channels.messagingApi.v2.Content.ViberCarouselItem": {
|
|
1434
|
+
"type": "I",
|
|
1435
|
+
"fields": {
|
|
1436
|
+
"title": {
|
|
1437
|
+
"type": "string"
|
|
1438
|
+
},
|
|
1439
|
+
"image": {
|
|
1440
|
+
"type": "string"
|
|
1441
|
+
},
|
|
1442
|
+
"primaryButton": {
|
|
1443
|
+
"type": "pushwoosh.channels.messagingApi.v2.Content.ViberCarouselButton"
|
|
1444
|
+
},
|
|
1445
|
+
"secondaryButton": {
|
|
1446
|
+
"type": "pushwoosh.channels.messagingApi.v2.Content.ViberCarouselButton"
|
|
1447
|
+
}
|
|
1448
|
+
}
|
|
1449
|
+
},
|
|
1450
|
+
"pushwoosh.channels.messagingApi.v2.Content.ViberCarouselButton": {
|
|
1451
|
+
"type": "I",
|
|
1452
|
+
"fields": {
|
|
1453
|
+
"caption": {
|
|
1454
|
+
"type": "string"
|
|
1455
|
+
},
|
|
1456
|
+
"action": {
|
|
1457
|
+
"type": "string"
|
|
1415
1458
|
}
|
|
1416
1459
|
}
|
|
1417
1460
|
},
|
package/package.json
CHANGED
|
@@ -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. */
|
|
@@ -951,6 +957,27 @@ export type Content_PlatformPropertiesViber = {
|
|
|
951
957
|
image: string;
|
|
952
958
|
buttonCaption: string;
|
|
953
959
|
buttonAction: string;
|
|
960
|
+
/** Carousel (MStat type 901): body plus 2-5 cards; excludes image, button and template_id. */
|
|
961
|
+
carousel: Content_ViberCarousel;
|
|
962
|
+
};
|
|
963
|
+
export type Content_ViberCarousel = {
|
|
964
|
+
/** 2-5 cards. */
|
|
965
|
+
items: Content_ViberCarouselItem[];
|
|
966
|
+
};
|
|
967
|
+
export type Content_ViberCarouselItem = {
|
|
968
|
+
/** 2-38 characters. */
|
|
969
|
+
title: string;
|
|
970
|
+
/** Public image URL. */
|
|
971
|
+
image: string;
|
|
972
|
+
/** Required; caption up to 10 characters. */
|
|
973
|
+
primaryButton: Content_ViberCarouselButton;
|
|
974
|
+
/** Optional; caption up to 12 characters. */
|
|
975
|
+
secondaryButton: Content_ViberCarouselButton;
|
|
976
|
+
};
|
|
977
|
+
export type Content_ViberCarouselButton = {
|
|
978
|
+
caption: string;
|
|
979
|
+
/** URL, {lp-XXX}/{https://...} tracking token or viber:// deep link. */
|
|
980
|
+
action: string;
|
|
954
981
|
};
|
|
955
982
|
export type Content_PlatformPropertiesKakao = {
|
|
956
983
|
/** Message text. */
|