@pushwoosh/rpc-gateway-messaging 0.6.214 → 0.6.216
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 +46 -0
- package/package.json +1 -1
- package/pushwoosh_channels_messagingApi_v2.d.ts +12 -0
package/data.js
CHANGED
|
@@ -851,6 +851,48 @@ export const data = {
|
|
|
851
851
|
}
|
|
852
852
|
}
|
|
853
853
|
},
|
|
854
|
+
"pushwoosh.channels.messagingApi.v2.PushButton.Action": {
|
|
855
|
+
"type": "E",
|
|
856
|
+
"values": [
|
|
857
|
+
"ACTION_UNSPECIFIED",
|
|
858
|
+
"ACTION_OPEN",
|
|
859
|
+
"ACTION_URL",
|
|
860
|
+
"ACTION_DEEPLINK",
|
|
861
|
+
"ACTION_CUSTOM"
|
|
862
|
+
]
|
|
863
|
+
},
|
|
864
|
+
"pushwoosh.channels.messagingApi.v2.PushButton.Style": {
|
|
865
|
+
"type": "E",
|
|
866
|
+
"values": [
|
|
867
|
+
"STYLE_UNSPECIFIED",
|
|
868
|
+
"STYLE_DEFAULT",
|
|
869
|
+
"STYLE_DESTRUCTIVE"
|
|
870
|
+
]
|
|
871
|
+
},
|
|
872
|
+
"pushwoosh.channels.messagingApi.v2.PushButton": {
|
|
873
|
+
"type": "I",
|
|
874
|
+
"fields": {
|
|
875
|
+
"id": {
|
|
876
|
+
"type": "string"
|
|
877
|
+
},
|
|
878
|
+
"label": {
|
|
879
|
+
"type": "string"
|
|
880
|
+
},
|
|
881
|
+
"action": {
|
|
882
|
+
"type": "pushwoosh.channels.messagingApi.v2.PushButton.Action"
|
|
883
|
+
},
|
|
884
|
+
"url": {
|
|
885
|
+
"type": "string"
|
|
886
|
+
},
|
|
887
|
+
"platformUrls": {
|
|
888
|
+
"type": "string",
|
|
889
|
+
"mapKeyType": "number"
|
|
890
|
+
},
|
|
891
|
+
"style": {
|
|
892
|
+
"type": "pushwoosh.channels.messagingApi.v2.PushButton.Style"
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
},
|
|
854
896
|
"pushwoosh.channels.messagingApi.v2.Inbox": {
|
|
855
897
|
"type": "I",
|
|
856
898
|
"fields": {
|
|
@@ -1663,6 +1705,10 @@ export const data = {
|
|
|
1663
1705
|
},
|
|
1664
1706
|
"fbMessenger": {
|
|
1665
1707
|
"type": "pushwoosh.channels.messagingApi.v2.Content.PlatformPropertiesFBMessenger"
|
|
1708
|
+
},
|
|
1709
|
+
"buttons": {
|
|
1710
|
+
"type": "pushwoosh.channels.messagingApi.v2.PushButton",
|
|
1711
|
+
"array": true
|
|
1666
1712
|
}
|
|
1667
1713
|
}
|
|
1668
1714
|
},
|
package/package.json
CHANGED
|
@@ -592,6 +592,16 @@ export type OpenAction_kind = OpenAction_kind_richMedia | OpenAction_kind_deepLi
|
|
|
592
592
|
export type OpenAction = {
|
|
593
593
|
kind: OpenAction_kind;
|
|
594
594
|
};
|
|
595
|
+
export type PushButton_Action = 'ACTION_UNSPECIFIED' | 'ACTION_OPEN' | 'ACTION_URL' | 'ACTION_DEEPLINK' | 'ACTION_CUSTOM';
|
|
596
|
+
export type PushButton_Style = 'STYLE_UNSPECIFIED' | 'STYLE_DEFAULT' | 'STYLE_DESTRUCTIVE';
|
|
597
|
+
export type PushButton = {
|
|
598
|
+
id: string;
|
|
599
|
+
label: string;
|
|
600
|
+
action: PushButton_Action;
|
|
601
|
+
url: string;
|
|
602
|
+
platformUrls: Record<number, string>;
|
|
603
|
+
style: PushButton_Style;
|
|
604
|
+
};
|
|
595
605
|
export type Inbox = {
|
|
596
606
|
/** Image shown in the Message Inbox entry. */
|
|
597
607
|
imageUrl: string;
|
|
@@ -1131,6 +1141,8 @@ export type Content = {
|
|
|
1131
1141
|
appInbox: Content_PlatformPropertiesAppInbox;
|
|
1132
1142
|
/** Facebook Messenger message content. */
|
|
1133
1143
|
fbMessenger: Content_PlatformPropertiesFBMessenger;
|
|
1144
|
+
/** Up to 3 action buttons shown under the push on iOS, Android and Huawei; needs an up-to-date SDK. */
|
|
1145
|
+
buttons: PushButton[];
|
|
1134
1146
|
};
|
|
1135
1147
|
export type LocalizedContent = {
|
|
1136
1148
|
/** Locale code (ISO 639-1, "zh-Hant"/"zh-Hans", or "default") to the content sent to devices in that language. */
|