@pushwoosh/rpc-gateway-messaging 0.6.132 → 0.6.134
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 +41 -0
- package/package.json +1 -1
- package/pushwoosh_channels_messagingApi_v2.d.ts +34 -0
package/data.js
CHANGED
|
@@ -296,6 +296,9 @@ export const data = {
|
|
|
296
296
|
},
|
|
297
297
|
"holdoutPercentage": {
|
|
298
298
|
"type": "number"
|
|
299
|
+
},
|
|
300
|
+
"campaignName": {
|
|
301
|
+
"type": "string"
|
|
299
302
|
}
|
|
300
303
|
},
|
|
301
304
|
"oneofs": {
|
|
@@ -413,6 +416,9 @@ export const data = {
|
|
|
413
416
|
},
|
|
414
417
|
"controlGroup": {
|
|
415
418
|
"type": "string"
|
|
419
|
+
},
|
|
420
|
+
"campaignName": {
|
|
421
|
+
"type": "string"
|
|
416
422
|
}
|
|
417
423
|
},
|
|
418
424
|
"oneofs": {
|
|
@@ -559,6 +565,38 @@ export const data = {
|
|
|
559
565
|
}
|
|
560
566
|
}
|
|
561
567
|
},
|
|
568
|
+
"pushwoosh.channels.messagingApi.v2.Stories.Page": {
|
|
569
|
+
"type": "I",
|
|
570
|
+
"fields": {
|
|
571
|
+
"image": {
|
|
572
|
+
"type": "string"
|
|
573
|
+
},
|
|
574
|
+
"duration": {
|
|
575
|
+
"type": "number"
|
|
576
|
+
},
|
|
577
|
+
"title": {
|
|
578
|
+
"type": "string"
|
|
579
|
+
},
|
|
580
|
+
"subtitle": {
|
|
581
|
+
"type": "string"
|
|
582
|
+
},
|
|
583
|
+
"link": {
|
|
584
|
+
"type": "string"
|
|
585
|
+
},
|
|
586
|
+
"buttonTitle": {
|
|
587
|
+
"type": "string"
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
},
|
|
591
|
+
"pushwoosh.channels.messagingApi.v2.Stories": {
|
|
592
|
+
"type": "I",
|
|
593
|
+
"fields": {
|
|
594
|
+
"pages": {
|
|
595
|
+
"type": "pushwoosh.channels.messagingApi.v2.Stories.Page",
|
|
596
|
+
"array": true
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
},
|
|
562
600
|
"pushwoosh.channels.messagingApi.v2.LiveUpdate.Operation": {
|
|
563
601
|
"type": "E",
|
|
564
602
|
"values": [
|
|
@@ -780,6 +818,9 @@ export const data = {
|
|
|
780
818
|
},
|
|
781
819
|
"apnsPriority": {
|
|
782
820
|
"type": "number"
|
|
821
|
+
},
|
|
822
|
+
"stories": {
|
|
823
|
+
"type": "pushwoosh.channels.messagingApi.v2.Stories"
|
|
783
824
|
}
|
|
784
825
|
}
|
|
785
826
|
},
|
package/package.json
CHANGED
|
@@ -234,6 +234,11 @@ export type NotifySegment = {
|
|
|
234
234
|
* its own. Mutually exclusive with control_group.
|
|
235
235
|
*/
|
|
236
236
|
holdoutPercentage: number;
|
|
237
|
+
/**
|
|
238
|
+
* Internal name of the message shown in Message History and exports instead of the title.
|
|
239
|
+
* Trimmed and cut to 255 characters; empty keeps the title.
|
|
240
|
+
*/
|
|
241
|
+
campaignName: string;
|
|
237
242
|
target: NotifySegment_target;
|
|
238
243
|
messagePayload: NotifySegment_messagePayload;
|
|
239
244
|
};
|
|
@@ -326,6 +331,11 @@ export type NotifyTransactional = {
|
|
|
326
331
|
* effect on a marketing message: a transactional one is never held back.
|
|
327
332
|
*/
|
|
328
333
|
controlGroup: string;
|
|
334
|
+
/**
|
|
335
|
+
* Internal name of the message shown in Message History and exports instead of the title.
|
|
336
|
+
* Trimmed and cut to 255 characters; empty keeps the title.
|
|
337
|
+
*/
|
|
338
|
+
campaignName: string;
|
|
329
339
|
target: NotifyTransactional_target;
|
|
330
340
|
messagePayload: NotifyTransactional_messagePayload;
|
|
331
341
|
};
|
|
@@ -402,6 +412,28 @@ export type LiveActivity = {
|
|
|
402
412
|
/** Unix time the activity starts. */
|
|
403
413
|
start: number;
|
|
404
414
|
};
|
|
415
|
+
export type Stories_Page = {
|
|
416
|
+
/** URL of the full-screen image; required. */
|
|
417
|
+
image: string;
|
|
418
|
+
/** Seconds the page stays on screen; the SDK defaults to about 5. */
|
|
419
|
+
duration: number;
|
|
420
|
+
/** Text overlaid on the page. */
|
|
421
|
+
title: string;
|
|
422
|
+
/** Secondary text overlaid on the page. */
|
|
423
|
+
subtitle: string;
|
|
424
|
+
/** Deep link or URL the page button opens; the button needs it. */
|
|
425
|
+
link: string;
|
|
426
|
+
/** Title of the page button. */
|
|
427
|
+
buttonTitle: string;
|
|
428
|
+
};
|
|
429
|
+
/**
|
|
430
|
+
* Stories is the iOS push stories block the SDK Content Extension plays when the push is
|
|
431
|
+
* expanded. It reaches the device as `pw_stories` with the proto field names as keys.
|
|
432
|
+
*/
|
|
433
|
+
export type Stories = {
|
|
434
|
+
/** Pages in playback order, from 1 to 10. */
|
|
435
|
+
pages: Stories_Page[];
|
|
436
|
+
};
|
|
405
437
|
export type LiveUpdate_Operation = 'OPERATION_UNSPECIFIED' | 'OPERATION_START' | 'OPERATION_UPDATE' | 'OPERATION_END';
|
|
406
438
|
export type LiveUpdate_Segment = {
|
|
407
439
|
/** Segment color, hex. */
|
|
@@ -542,6 +574,8 @@ export type Content_PlatformPropertiesIos = {
|
|
|
542
574
|
* Live Activity updates default to 5 and stay silent until 10 is set here.
|
|
543
575
|
*/
|
|
544
576
|
apnsPriority: number;
|
|
577
|
+
/** Push stories shown when the notification is expanded; needs the SDK stories Content Extension. */
|
|
578
|
+
stories: Stories;
|
|
545
579
|
};
|
|
546
580
|
export type Content_PlatformPropertiesAndroid = {
|
|
547
581
|
/** Notification title. */
|