@pushwoosh/rpc-v2-http-api-data 0.2.409 → 0.2.410

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 CHANGED
@@ -36872,6 +36872,46 @@ export const data = {
36872
36872
  },
36873
36873
  "buttonAction": {
36874
36874
  "type": "string"
36875
+ },
36876
+ "carousel": {
36877
+ "type": "pushwoosh.rpc_v2.viber_presets.ViberPromoCarousel"
36878
+ }
36879
+ }
36880
+ },
36881
+ "pushwoosh.rpc_v2.viber_presets.ViberPromoCarousel": {
36882
+ "type": "I",
36883
+ "fields": {
36884
+ "items": {
36885
+ "type": "pushwoosh.rpc_v2.viber_presets.ViberPromoCarouselItem",
36886
+ "array": true
36887
+ }
36888
+ }
36889
+ },
36890
+ "pushwoosh.rpc_v2.viber_presets.ViberPromoCarouselItem": {
36891
+ "type": "I",
36892
+ "fields": {
36893
+ "title": {
36894
+ "type": "string"
36895
+ },
36896
+ "image": {
36897
+ "type": "string"
36898
+ },
36899
+ "primaryButton": {
36900
+ "type": "pushwoosh.rpc_v2.viber_presets.ViberPromoCarouselButton"
36901
+ },
36902
+ "secondaryButton": {
36903
+ "type": "pushwoosh.rpc_v2.viber_presets.ViberPromoCarouselButton"
36904
+ }
36905
+ }
36906
+ },
36907
+ "pushwoosh.rpc_v2.viber_presets.ViberPromoCarouselButton": {
36908
+ "type": "I",
36909
+ "fields": {
36910
+ "caption": {
36911
+ "type": "string"
36912
+ },
36913
+ "action": {
36914
+ "type": "string"
36875
36915
  }
36876
36916
  }
36877
36917
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.409",
3
+ "version": "0.2.410",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -1,7 +1,7 @@
1
1
  import { RpcMethod } from './commonTypes';
2
2
  export type ViberPresetsService_List = RpcMethod<ListViberPresetsRequest, ListViberPresetsResponse>;
3
3
  export interface ViberPresetsService {
4
- /** Lists Viber message templates for an application, fetched live from the external MStat Omni Messaging provider: approved transactional templates (sent by code) and saved promo templates (text, image and button copied into the message). Use to pick a Viber template before composing a Viber send. */
4
+ /** Lists Viber message templates for an application, fetched live from the external MStat Omni Messaging provider: approved transactional templates (sent by code) and saved promo templates (text, image and button, or text and carousel cards, copied into the message). Use to pick a Viber template before composing a Viber send. */
5
5
  List: ViberPresetsService_List;
6
6
  }
7
7
  export type ListViberPresetsRequest = {
@@ -24,12 +24,28 @@ export type ViberPreset = {
24
24
  };
25
25
  export type ViberPresetKind = 'VIBER_PRESET_KIND_UNSPECIFIED' | 'VIBER_PRESET_KIND_TRANSACTIONAL' | 'VIBER_PRESET_KIND_PROMO';
26
26
  export type ViberPromoContent = {
27
- /** MStat message type: 106 text, 107 image, 108 text+image(+button), 109 text+button */
27
+ /** MStat message type: 106 text, 107 image, 108 text+image(+button), 109 text+button, 901 carousel; 6-9 are smartphone-only twins of 106-109 */
28
28
  type: number;
29
29
  text: string;
30
30
  image: string;
31
31
  buttonCaption: string;
32
32
  buttonAction: string;
33
+ /** Set for type 901 only: 2-5 cards shown under text. */
34
+ carousel: ViberPromoCarousel;
35
+ };
36
+ export type ViberPromoCarousel = {
37
+ items: ViberPromoCarouselItem[];
38
+ };
39
+ export type ViberPromoCarouselItem = {
40
+ title: string;
41
+ image: string;
42
+ primaryButton: ViberPromoCarouselButton;
43
+ /** optional */
44
+ secondaryButton: ViberPromoCarouselButton;
45
+ };
46
+ export type ViberPromoCarouselButton = {
47
+ caption: string;
48
+ action: string;
33
49
  };
34
50
  export type ViberPresetLocale = {
35
51
  lang: string;