@pushwoosh/rpc-gateway-messaging 0.6.215 → 0.6.217
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 +64 -0
- package/package.json +1 -1
- package/pushwoosh_channels_messagingApi_v2.d.ts +24 -1
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
|
},
|
|
@@ -1780,9 +1826,27 @@ export const data = {
|
|
|
1780
1826
|
"localizedBody": {
|
|
1781
1827
|
"type": "string",
|
|
1782
1828
|
"mapKeyType": "string"
|
|
1829
|
+
},
|
|
1830
|
+
"emailSunsetPolicy": {
|
|
1831
|
+
"type": "pushwoosh.channels.messagingApi.v2.EmailSunsetPolicy"
|
|
1783
1832
|
}
|
|
1784
1833
|
}
|
|
1785
1834
|
},
|
|
1835
|
+
"pushwoosh.channels.messagingApi.v2.EmailSunsetPolicy": {
|
|
1836
|
+
"type": "I",
|
|
1837
|
+
"fields": {
|
|
1838
|
+
"mode": {
|
|
1839
|
+
"type": "pushwoosh.channels.messagingApi.v2.EmailSunsetMode"
|
|
1840
|
+
}
|
|
1841
|
+
}
|
|
1842
|
+
},
|
|
1843
|
+
"pushwoosh.channels.messagingApi.v2.EmailSunsetMode": {
|
|
1844
|
+
"type": "E",
|
|
1845
|
+
"values": [
|
|
1846
|
+
"EMAIL_SUNSET_MODE_DEFAULT",
|
|
1847
|
+
"EMAIL_SUNSET_MODE_OFF"
|
|
1848
|
+
]
|
|
1849
|
+
},
|
|
1786
1850
|
"pushwoosh.channels.messagingApi.v2.AppInboxPayload": {
|
|
1787
1851
|
"type": "I",
|
|
1788
1852
|
"fields": {
|
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. */
|
|
@@ -1207,7 +1219,18 @@ export type EmailPayload = {
|
|
|
1207
1219
|
emailCategory: string;
|
|
1208
1220
|
/** Email body HTML per locale (locale -> HTML); mutually exclusive with body. */
|
|
1209
1221
|
localizedBody: Record<string, string>;
|
|
1210
|
-
|
|
1222
|
+
/** How the application's email sunset policy applies to this send; unset applies it. */
|
|
1223
|
+
emailSunsetPolicy: EmailSunsetPolicy;
|
|
1224
|
+
};
|
|
1225
|
+
/** EmailSunsetPolicy overrides the application's email sunset policy for one send. */
|
|
1226
|
+
export type EmailSunsetPolicy = {
|
|
1227
|
+
mode: EmailSunsetMode;
|
|
1228
|
+
};
|
|
1229
|
+
export type EmailSunsetMode =
|
|
1230
|
+
/** The application's policy applies: marketing emails skip recipients inactive within its period. */
|
|
1231
|
+
'EMAIL_SUNSET_MODE_DEFAULT'
|
|
1232
|
+
/** The policy does not apply: inactive recipients get the email too, for win-back sends. */
|
|
1233
|
+
| 'EMAIL_SUNSET_MODE_OFF';
|
|
1211
1234
|
export type AppInboxPayload_expiration_expirationDate = {
|
|
1212
1235
|
type: 'expirationDate';
|
|
1213
1236
|
data: Date;
|