@pushwoosh/rpc-gateway-messaging 0.6.106 → 0.6.107
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 +61 -2
- package/package.json +1 -1
- package/pushwoosh_channels_messagingApi_v2.d.ts +46 -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,29 @@ export const data = {
|
|
|
1178
1186
|
}
|
|
1179
1187
|
}
|
|
1180
1188
|
},
|
|
1189
|
+
"pushwoosh.channels.messagingApi.v2.Content.PlatformPropertiesAppInbox": {
|
|
1190
|
+
"type": "I",
|
|
1191
|
+
"fields": {
|
|
1192
|
+
"title": {
|
|
1193
|
+
"type": "string"
|
|
1194
|
+
},
|
|
1195
|
+
"body": {
|
|
1196
|
+
"type": "string"
|
|
1197
|
+
},
|
|
1198
|
+
"iconUrl": {
|
|
1199
|
+
"type": "string"
|
|
1200
|
+
},
|
|
1201
|
+
"bannerUrl": {
|
|
1202
|
+
"type": "string"
|
|
1203
|
+
},
|
|
1204
|
+
"openAction": {
|
|
1205
|
+
"type": "pushwoosh.channels.messagingApi.v2.OpenAction"
|
|
1206
|
+
},
|
|
1207
|
+
"customData": {
|
|
1208
|
+
"type": "object"
|
|
1209
|
+
}
|
|
1210
|
+
}
|
|
1211
|
+
},
|
|
1181
1212
|
"pushwoosh.channels.messagingApi.v2.Content.PlatformPropertiesSMS": {
|
|
1182
1213
|
"type": "I",
|
|
1183
1214
|
"fields": {
|
|
@@ -1335,6 +1366,9 @@ export const data = {
|
|
|
1335
1366
|
},
|
|
1336
1367
|
"viber": {
|
|
1337
1368
|
"type": "pushwoosh.channels.messagingApi.v2.Content.PlatformPropertiesViber"
|
|
1369
|
+
},
|
|
1370
|
+
"appInbox": {
|
|
1371
|
+
"type": "pushwoosh.channels.messagingApi.v2.Content.PlatformPropertiesAppInbox"
|
|
1338
1372
|
}
|
|
1339
1373
|
}
|
|
1340
1374
|
},
|
|
@@ -1438,6 +1472,31 @@ export const data = {
|
|
|
1438
1472
|
}
|
|
1439
1473
|
}
|
|
1440
1474
|
},
|
|
1475
|
+
"pushwoosh.channels.messagingApi.v2.AppInboxPayload": {
|
|
1476
|
+
"type": "I",
|
|
1477
|
+
"fields": {
|
|
1478
|
+
"preset": {
|
|
1479
|
+
"type": "string"
|
|
1480
|
+
},
|
|
1481
|
+
"content": {
|
|
1482
|
+
"type": "pushwoosh.channels.messagingApi.v2.LocalizedContent"
|
|
1483
|
+
},
|
|
1484
|
+
"expirationDate": {
|
|
1485
|
+
"type": "Date"
|
|
1486
|
+
},
|
|
1487
|
+
"expiresIn": {
|
|
1488
|
+
"type": "Duration"
|
|
1489
|
+
}
|
|
1490
|
+
},
|
|
1491
|
+
"oneofs": {
|
|
1492
|
+
"expiration": {
|
|
1493
|
+
"oneof": [
|
|
1494
|
+
"expirationDate",
|
|
1495
|
+
"expiresIn"
|
|
1496
|
+
]
|
|
1497
|
+
}
|
|
1498
|
+
}
|
|
1499
|
+
},
|
|
1441
1500
|
"pushwoosh.channels.messagingApi.v2.SMSPayload": {
|
|
1442
1501
|
"type": "I",
|
|
1443
1502
|
"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,20 @@ export type Content_PlatformPropertiesWindows = {
|
|
|
778
786
|
timeToLive: Duration;
|
|
779
787
|
content: Content_PlatformPropertiesWindows_content;
|
|
780
788
|
};
|
|
789
|
+
export type Content_PlatformPropertiesAppInbox = {
|
|
790
|
+
/** Title of the inbox entry. */
|
|
791
|
+
title: string;
|
|
792
|
+
/** Body of the inbox entry. */
|
|
793
|
+
body: string;
|
|
794
|
+
/** Small image shown next to the entry. */
|
|
795
|
+
iconUrl: string;
|
|
796
|
+
/** Large image shown inside the entry. */
|
|
797
|
+
bannerUrl: string;
|
|
798
|
+
/** Action performed when the user taps the entry. */
|
|
799
|
+
openAction: OpenAction;
|
|
800
|
+
/** Free-form JSON delivered to the SDK with the entry. */
|
|
801
|
+
customData: object;
|
|
802
|
+
};
|
|
781
803
|
export type Content_PlatformPropertiesSMS = {
|
|
782
804
|
/** Notification body text. */
|
|
783
805
|
body: string;
|
|
@@ -907,6 +929,8 @@ export type Content = {
|
|
|
907
929
|
sms: Content_PlatformPropertiesSMS;
|
|
908
930
|
/** Viber message content. */
|
|
909
931
|
viber: Content_PlatformPropertiesViber;
|
|
932
|
+
/** App Inbox message content. */
|
|
933
|
+
appInbox: Content_PlatformPropertiesAppInbox;
|
|
910
934
|
};
|
|
911
935
|
export type LocalizedContent = {
|
|
912
936
|
/** Locale code (ISO 639-1, "zh-Hant"/"zh-Hans", or "default") to the content sent to devices in that language. */
|
|
@@ -968,6 +992,26 @@ export type EmailPayload = {
|
|
|
968
992
|
*/
|
|
969
993
|
emailPreset: string;
|
|
970
994
|
};
|
|
995
|
+
export type AppInboxPayload_expiration_expirationDate = {
|
|
996
|
+
type: 'expirationDate';
|
|
997
|
+
data: Date;
|
|
998
|
+
};
|
|
999
|
+
export type AppInboxPayload_expiration_expiresIn = {
|
|
1000
|
+
type: 'expiresIn';
|
|
1001
|
+
data: Duration;
|
|
1002
|
+
};
|
|
1003
|
+
export type AppInboxPayload_expiration = AppInboxPayload_expiration_expirationDate | AppInboxPayload_expiration_expiresIn;
|
|
1004
|
+
/** AppInboxPayload is a message of the App Inbox channel. */
|
|
1005
|
+
export type AppInboxPayload = {
|
|
1006
|
+
/**
|
|
1007
|
+
* preset references a saved App Inbox preset by code. When set, messaging-api resolves the
|
|
1008
|
+
* preset content into the per-language entry; inline content overrides the preset per language.
|
|
1009
|
+
*/
|
|
1010
|
+
preset: string;
|
|
1011
|
+
/** Per-locale content. The inbox entry is read from Content.app_inbox of each locale. */
|
|
1012
|
+
content: LocalizedContent;
|
|
1013
|
+
expiration: AppInboxPayload_expiration;
|
|
1014
|
+
};
|
|
971
1015
|
export type SMSPayload = {
|
|
972
1016
|
/**
|
|
973
1017
|
* preset references a saved SMS preset by code. When set, messaging-api resolves the
|