@pushwoosh/rpc-gateway-messaging 0.6.235 → 0.6.236
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 +40 -0
- package/package.json +1 -1
- package/pushwoosh_channels_messagingApi_v2.d.ts +29 -0
package/data.js
CHANGED
|
@@ -1445,6 +1445,42 @@ export const data = {
|
|
|
1445
1445
|
}
|
|
1446
1446
|
}
|
|
1447
1447
|
},
|
|
1448
|
+
"pushwoosh.channels.messagingApi.v2.Content.PlatformPropertiesAppInbox.Button": {
|
|
1449
|
+
"type": "I",
|
|
1450
|
+
"fields": {
|
|
1451
|
+
"text": {
|
|
1452
|
+
"type": "string"
|
|
1453
|
+
},
|
|
1454
|
+
"textColor": {
|
|
1455
|
+
"type": "string"
|
|
1456
|
+
},
|
|
1457
|
+
"bgColor": {
|
|
1458
|
+
"type": "string"
|
|
1459
|
+
},
|
|
1460
|
+
"link": {
|
|
1461
|
+
"type": "pushwoosh.channels.messagingApi.v2.Link"
|
|
1462
|
+
},
|
|
1463
|
+
"deepLink": {
|
|
1464
|
+
"type": "pushwoosh.channels.messagingApi.v2.DeepLink"
|
|
1465
|
+
},
|
|
1466
|
+
"copyText": {
|
|
1467
|
+
"type": "string"
|
|
1468
|
+
},
|
|
1469
|
+
"customData": {
|
|
1470
|
+
"type": "JsonObject"
|
|
1471
|
+
}
|
|
1472
|
+
},
|
|
1473
|
+
"oneofs": {
|
|
1474
|
+
"action": {
|
|
1475
|
+
"oneof": [
|
|
1476
|
+
"link",
|
|
1477
|
+
"deepLink",
|
|
1478
|
+
"copyText",
|
|
1479
|
+
"customData"
|
|
1480
|
+
]
|
|
1481
|
+
}
|
|
1482
|
+
}
|
|
1483
|
+
},
|
|
1448
1484
|
"pushwoosh.channels.messagingApi.v2.Content.PlatformPropertiesAppInbox": {
|
|
1449
1485
|
"type": "I",
|
|
1450
1486
|
"fields": {
|
|
@@ -1476,6 +1512,10 @@ export const data = {
|
|
|
1476
1512
|
"openActions": {
|
|
1477
1513
|
"type": "pushwoosh.channels.messagingApi.v2.OpenAction",
|
|
1478
1514
|
"mapKeyType": "number"
|
|
1515
|
+
},
|
|
1516
|
+
"buttons": {
|
|
1517
|
+
"type": "pushwoosh.channels.messagingApi.v2.Content.PlatformPropertiesAppInbox.Button",
|
|
1518
|
+
"array": true
|
|
1479
1519
|
}
|
|
1480
1520
|
}
|
|
1481
1521
|
},
|
package/package.json
CHANGED
|
@@ -941,6 +941,33 @@ export type Content_PlatformPropertiesAppInbox_CarouselSlide = {
|
|
|
941
941
|
/** URL or deep link opened on a tap on the slide; empty falls back to the entry's action. */
|
|
942
942
|
url: string;
|
|
943
943
|
};
|
|
944
|
+
export type Content_PlatformPropertiesAppInbox_Button_action_link = {
|
|
945
|
+
type: 'link';
|
|
946
|
+
data: Link;
|
|
947
|
+
};
|
|
948
|
+
export type Content_PlatformPropertiesAppInbox_Button_action_deepLink = {
|
|
949
|
+
type: 'deepLink';
|
|
950
|
+
data: DeepLink;
|
|
951
|
+
};
|
|
952
|
+
export type Content_PlatformPropertiesAppInbox_Button_action_copyText = {
|
|
953
|
+
type: 'copyText';
|
|
954
|
+
data: string;
|
|
955
|
+
};
|
|
956
|
+
export type Content_PlatformPropertiesAppInbox_Button_action_customData = {
|
|
957
|
+
type: 'customData';
|
|
958
|
+
data: JsonObject;
|
|
959
|
+
};
|
|
960
|
+
export type Content_PlatformPropertiesAppInbox_Button_action = Content_PlatformPropertiesAppInbox_Button_action_link | Content_PlatformPropertiesAppInbox_Button_action_deepLink | Content_PlatformPropertiesAppInbox_Button_action_copyText | Content_PlatformPropertiesAppInbox_Button_action_customData;
|
|
961
|
+
/** CTA button under the entry text; its index in buttons is the id the SDK reports on a click. */
|
|
962
|
+
export type Content_PlatformPropertiesAppInbox_Button = {
|
|
963
|
+
/** Button label; supports Liquid placeholders. */
|
|
964
|
+
text: string;
|
|
965
|
+
/** Label color as #RRGGBB or #RRGGBBAA; empty uses the SDK default. */
|
|
966
|
+
textColor: string;
|
|
967
|
+
/** Background color as #RRGGBB or #RRGGBBAA; empty renders the button as a link. */
|
|
968
|
+
bgColor: string;
|
|
969
|
+
action: Content_PlatformPropertiesAppInbox_Button_action;
|
|
970
|
+
};
|
|
944
971
|
export type Content_PlatformPropertiesAppInbox = {
|
|
945
972
|
/** Title of the inbox entry. */
|
|
946
973
|
title: string;
|
|
@@ -960,6 +987,8 @@ export type Content_PlatformPropertiesAppInbox = {
|
|
|
960
987
|
carousel: Content_PlatformPropertiesAppInbox_CarouselSlide[];
|
|
961
988
|
/** Per-platform override of open_action, keyed by the numeric platform code. */
|
|
962
989
|
openActions: Record<number, OpenAction>;
|
|
990
|
+
/** Up to 3 buttons shown in a row under the entry text. */
|
|
991
|
+
buttons: Content_PlatformPropertiesAppInbox_Button[];
|
|
963
992
|
};
|
|
964
993
|
export type Content_PlatformPropertiesSMS_RCS = {
|
|
965
994
|
/** Twilio Content template SID (HX followed by 32 hex characters). */
|