@pushwoosh/rpc-gateway-messaging 0.6.106 → 0.6.108
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 +79 -2
- package/package.json +1 -1
- package/pushwoosh_channels_messagingApi_v2.d.ts +54 -2
package/data.js
CHANGED
|
@@ -265,6 +265,9 @@ export const data = {
|
|
|
265
265
|
"smsPayload": {
|
|
266
266
|
"type": "pushwoosh.channels.messagingApi.v2.SMSPayload"
|
|
267
267
|
},
|
|
268
|
+
"appInboxPayload": {
|
|
269
|
+
"type": "pushwoosh.channels.messagingApi.v2.AppInboxPayload"
|
|
270
|
+
},
|
|
268
271
|
"frequencyCapping": {
|
|
269
272
|
"type": "pushwoosh.channels.messagingApi.v2.FrequencyCapping"
|
|
270
273
|
},
|
|
@@ -303,7 +306,8 @@ export const data = {
|
|
|
303
306
|
"oneof": [
|
|
304
307
|
"payload",
|
|
305
308
|
"emailPayload",
|
|
306
|
-
"smsPayload"
|
|
309
|
+
"smsPayload",
|
|
310
|
+
"appInboxPayload"
|
|
307
311
|
]
|
|
308
312
|
}
|
|
309
313
|
}
|
|
@@ -369,6 +373,9 @@ export const data = {
|
|
|
369
373
|
"smsPayload": {
|
|
370
374
|
"type": "pushwoosh.channels.messagingApi.v2.SMSPayload"
|
|
371
375
|
},
|
|
376
|
+
"appInboxPayload": {
|
|
377
|
+
"type": "pushwoosh.channels.messagingApi.v2.AppInboxPayload"
|
|
378
|
+
},
|
|
372
379
|
"returnUnknownIdentifiers": {
|
|
373
380
|
"type": "boolean"
|
|
374
381
|
},
|
|
@@ -417,7 +424,8 @@ export const data = {
|
|
|
417
424
|
"oneof": [
|
|
418
425
|
"payload",
|
|
419
426
|
"emailPayload",
|
|
420
|
-
"smsPayload"
|
|
427
|
+
"smsPayload",
|
|
428
|
+
"appInboxPayload"
|
|
421
429
|
]
|
|
422
430
|
}
|
|
423
431
|
}
|
|
@@ -1178,6 +1186,47 @@ export const data = {
|
|
|
1178
1186
|
}
|
|
1179
1187
|
}
|
|
1180
1188
|
},
|
|
1189
|
+
"pushwoosh.channels.messagingApi.v2.Content.PlatformPropertiesAppInbox.CarouselSlide": {
|
|
1190
|
+
"type": "I",
|
|
1191
|
+
"fields": {
|
|
1192
|
+
"imageUrl": {
|
|
1193
|
+
"type": "string"
|
|
1194
|
+
},
|
|
1195
|
+
"caption": {
|
|
1196
|
+
"type": "string"
|
|
1197
|
+
}
|
|
1198
|
+
}
|
|
1199
|
+
},
|
|
1200
|
+
"pushwoosh.channels.messagingApi.v2.Content.PlatformPropertiesAppInbox": {
|
|
1201
|
+
"type": "I",
|
|
1202
|
+
"fields": {
|
|
1203
|
+
"title": {
|
|
1204
|
+
"type": "string"
|
|
1205
|
+
},
|
|
1206
|
+
"body": {
|
|
1207
|
+
"type": "string"
|
|
1208
|
+
},
|
|
1209
|
+
"iconUrl": {
|
|
1210
|
+
"type": "string"
|
|
1211
|
+
},
|
|
1212
|
+
"bannerUrl": {
|
|
1213
|
+
"type": "string"
|
|
1214
|
+
},
|
|
1215
|
+
"openAction": {
|
|
1216
|
+
"type": "pushwoosh.channels.messagingApi.v2.OpenAction"
|
|
1217
|
+
},
|
|
1218
|
+
"customData": {
|
|
1219
|
+
"type": "object"
|
|
1220
|
+
},
|
|
1221
|
+
"layoutType": {
|
|
1222
|
+
"type": "string"
|
|
1223
|
+
},
|
|
1224
|
+
"carousel": {
|
|
1225
|
+
"type": "pushwoosh.channels.messagingApi.v2.Content.PlatformPropertiesAppInbox.CarouselSlide",
|
|
1226
|
+
"array": true
|
|
1227
|
+
}
|
|
1228
|
+
}
|
|
1229
|
+
},
|
|
1181
1230
|
"pushwoosh.channels.messagingApi.v2.Content.PlatformPropertiesSMS": {
|
|
1182
1231
|
"type": "I",
|
|
1183
1232
|
"fields": {
|
|
@@ -1335,6 +1384,9 @@ export const data = {
|
|
|
1335
1384
|
},
|
|
1336
1385
|
"viber": {
|
|
1337
1386
|
"type": "pushwoosh.channels.messagingApi.v2.Content.PlatformPropertiesViber"
|
|
1387
|
+
},
|
|
1388
|
+
"appInbox": {
|
|
1389
|
+
"type": "pushwoosh.channels.messagingApi.v2.Content.PlatformPropertiesAppInbox"
|
|
1338
1390
|
}
|
|
1339
1391
|
}
|
|
1340
1392
|
},
|
|
@@ -1438,6 +1490,31 @@ export const data = {
|
|
|
1438
1490
|
}
|
|
1439
1491
|
}
|
|
1440
1492
|
},
|
|
1493
|
+
"pushwoosh.channels.messagingApi.v2.AppInboxPayload": {
|
|
1494
|
+
"type": "I",
|
|
1495
|
+
"fields": {
|
|
1496
|
+
"preset": {
|
|
1497
|
+
"type": "string"
|
|
1498
|
+
},
|
|
1499
|
+
"content": {
|
|
1500
|
+
"type": "pushwoosh.channels.messagingApi.v2.LocalizedContent"
|
|
1501
|
+
},
|
|
1502
|
+
"expirationDate": {
|
|
1503
|
+
"type": "Date"
|
|
1504
|
+
},
|
|
1505
|
+
"expiresIn": {
|
|
1506
|
+
"type": "Duration"
|
|
1507
|
+
}
|
|
1508
|
+
},
|
|
1509
|
+
"oneofs": {
|
|
1510
|
+
"expiration": {
|
|
1511
|
+
"oneof": [
|
|
1512
|
+
"expirationDate",
|
|
1513
|
+
"expiresIn"
|
|
1514
|
+
]
|
|
1515
|
+
}
|
|
1516
|
+
}
|
|
1517
|
+
},
|
|
1441
1518
|
"pushwoosh.channels.messagingApi.v2.SMSPayload": {
|
|
1442
1519
|
"type": "I",
|
|
1443
1520
|
"fields": {
|
package/package.json
CHANGED
|
@@ -191,7 +191,11 @@ export type NotifySegment_messagePayload_smsPayload = {
|
|
|
191
191
|
type: 'smsPayload';
|
|
192
192
|
data: SMSPayload;
|
|
193
193
|
};
|
|
194
|
-
export type
|
|
194
|
+
export type NotifySegment_messagePayload_appInboxPayload = {
|
|
195
|
+
type: 'appInboxPayload';
|
|
196
|
+
data: AppInboxPayload;
|
|
197
|
+
};
|
|
198
|
+
export type NotifySegment_messagePayload = NotifySegment_messagePayload_payload | NotifySegment_messagePayload_emailPayload | NotifySegment_messagePayload_smsPayload | NotifySegment_messagePayload_appInboxPayload;
|
|
195
199
|
/**
|
|
196
200
|
* NotifySegment defines a request to send a message to a segment of users.
|
|
197
201
|
* Segment can be defined either by a segment code or by a seglang expression.
|
|
@@ -266,7 +270,11 @@ export type NotifyTransactional_messagePayload_smsPayload = {
|
|
|
266
270
|
type: 'smsPayload';
|
|
267
271
|
data: SMSPayload;
|
|
268
272
|
};
|
|
269
|
-
export type
|
|
273
|
+
export type NotifyTransactional_messagePayload_appInboxPayload = {
|
|
274
|
+
type: 'appInboxPayload';
|
|
275
|
+
data: AppInboxPayload;
|
|
276
|
+
};
|
|
277
|
+
export type NotifyTransactional_messagePayload = NotifyTransactional_messagePayload_payload | NotifyTransactional_messagePayload_emailPayload | NotifyTransactional_messagePayload_smsPayload | NotifyTransactional_messagePayload_appInboxPayload;
|
|
270
278
|
export type NotifyTransactional = {
|
|
271
279
|
/** Message schedule. */
|
|
272
280
|
schedule: Schedule;
|
|
@@ -778,6 +786,28 @@ export type Content_PlatformPropertiesWindows = {
|
|
|
778
786
|
timeToLive: Duration;
|
|
779
787
|
content: Content_PlatformPropertiesWindows_content;
|
|
780
788
|
};
|
|
789
|
+
export type Content_PlatformPropertiesAppInbox_CarouselSlide = {
|
|
790
|
+
imageUrl: string;
|
|
791
|
+
caption: string;
|
|
792
|
+
};
|
|
793
|
+
export type Content_PlatformPropertiesAppInbox = {
|
|
794
|
+
/** Title of the inbox entry. */
|
|
795
|
+
title: string;
|
|
796
|
+
/** Body of the inbox entry. */
|
|
797
|
+
body: string;
|
|
798
|
+
/** Small image shown next to the entry. */
|
|
799
|
+
iconUrl: string;
|
|
800
|
+
/** Large image shown inside the entry. */
|
|
801
|
+
bannerUrl: string;
|
|
802
|
+
/** Action performed when the user taps the entry. */
|
|
803
|
+
openAction: OpenAction;
|
|
804
|
+
/** Free-form JSON delivered to the SDK with the entry. */
|
|
805
|
+
customData: object;
|
|
806
|
+
/** Inbox cell layout: classic (default when empty), captioned, banner or carousel. */
|
|
807
|
+
layoutType: string;
|
|
808
|
+
/** Slides of the carousel layout. */
|
|
809
|
+
carousel: Content_PlatformPropertiesAppInbox_CarouselSlide[];
|
|
810
|
+
};
|
|
781
811
|
export type Content_PlatformPropertiesSMS = {
|
|
782
812
|
/** Notification body text. */
|
|
783
813
|
body: string;
|
|
@@ -907,6 +937,8 @@ export type Content = {
|
|
|
907
937
|
sms: Content_PlatformPropertiesSMS;
|
|
908
938
|
/** Viber message content. */
|
|
909
939
|
viber: Content_PlatformPropertiesViber;
|
|
940
|
+
/** App Inbox message content. */
|
|
941
|
+
appInbox: Content_PlatformPropertiesAppInbox;
|
|
910
942
|
};
|
|
911
943
|
export type LocalizedContent = {
|
|
912
944
|
/** Locale code (ISO 639-1, "zh-Hant"/"zh-Hans", or "default") to the content sent to devices in that language. */
|
|
@@ -968,6 +1000,26 @@ export type EmailPayload = {
|
|
|
968
1000
|
*/
|
|
969
1001
|
emailPreset: string;
|
|
970
1002
|
};
|
|
1003
|
+
export type AppInboxPayload_expiration_expirationDate = {
|
|
1004
|
+
type: 'expirationDate';
|
|
1005
|
+
data: Date;
|
|
1006
|
+
};
|
|
1007
|
+
export type AppInboxPayload_expiration_expiresIn = {
|
|
1008
|
+
type: 'expiresIn';
|
|
1009
|
+
data: Duration;
|
|
1010
|
+
};
|
|
1011
|
+
export type AppInboxPayload_expiration = AppInboxPayload_expiration_expirationDate | AppInboxPayload_expiration_expiresIn;
|
|
1012
|
+
/** AppInboxPayload is a message of the App Inbox channel. */
|
|
1013
|
+
export type AppInboxPayload = {
|
|
1014
|
+
/**
|
|
1015
|
+
* preset references a saved App Inbox preset by code. When set, messaging-api resolves the
|
|
1016
|
+
* preset content into the per-language entry; inline content overrides the preset per language.
|
|
1017
|
+
*/
|
|
1018
|
+
preset: string;
|
|
1019
|
+
/** Per-locale content. The inbox entry is read from Content.app_inbox of each locale. */
|
|
1020
|
+
content: LocalizedContent;
|
|
1021
|
+
expiration: AppInboxPayload_expiration;
|
|
1022
|
+
};
|
|
971
1023
|
export type SMSPayload = {
|
|
972
1024
|
/**
|
|
973
1025
|
* preset references a saved SMS preset by code. When set, messaging-api resolves the
|