@pushwoosh/rpc-v2-http-api-data 0.2.326 → 0.2.327

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
@@ -34100,6 +34100,40 @@ export const data = {
34100
34100
  "params": {
34101
34101
  "type": "pushwoosh.rpc_v2.viber_presets.ViberPresetParam",
34102
34102
  "array": true
34103
+ },
34104
+ "kind": {
34105
+ "type": "pushwoosh.rpc_v2.viber_presets.ViberPresetKind"
34106
+ },
34107
+ "promo": {
34108
+ "type": "pushwoosh.rpc_v2.viber_presets.ViberPromoContent"
34109
+ }
34110
+ }
34111
+ },
34112
+ "pushwoosh.rpc_v2.viber_presets.ViberPresetKind": {
34113
+ "type": "E",
34114
+ "values": [
34115
+ "VIBER_PRESET_KIND_UNSPECIFIED",
34116
+ "VIBER_PRESET_KIND_TRANSACTIONAL",
34117
+ "VIBER_PRESET_KIND_PROMO"
34118
+ ]
34119
+ },
34120
+ "pushwoosh.rpc_v2.viber_presets.ViberPromoContent": {
34121
+ "type": "I",
34122
+ "fields": {
34123
+ "type": {
34124
+ "type": "number"
34125
+ },
34126
+ "text": {
34127
+ "type": "string"
34128
+ },
34129
+ "image": {
34130
+ "type": "string"
34131
+ },
34132
+ "buttonCaption": {
34133
+ "type": "string"
34134
+ },
34135
+ "buttonAction": {
34136
+ "type": "string"
34103
34137
  }
34104
34138
  }
34105
34139
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.326",
3
+ "version": "0.2.327",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -1,11 +1,11 @@
1
1
  import { RpcMethod } from './commonTypes';
2
2
  export type ViberPresetsService_List = RpcMethod<ListViberPresetsRequest, ListViberPresetsResponse>;
3
3
  export interface ViberPresetsService {
4
- /** Lists approved Viber transactional message templates for an application, fetched live from the external MStat Omni Messaging provider. Use to pick a Viber template code before composing a Viber send; only templates in the approved status are returned. */
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. */
5
5
  List: ViberPresetsService_List;
6
6
  }
7
7
  export type ListViberPresetsRequest = {
8
- /** Application code (format XXXXX-XXXXX) whose Viber transactional templates are listed. */
8
+ /** Application code (format XXXXX-XXXXX) whose Viber templates are listed. */
9
9
  application?: string;
10
10
  };
11
11
  export type ListViberPresetsResponse = {
@@ -18,6 +18,18 @@ export type ViberPreset = {
18
18
  category: string;
19
19
  locales: ViberPresetLocale[];
20
20
  params: ViberPresetParam[];
21
+ kind: ViberPresetKind;
22
+ /** Set for promo presets only: content the send copies as-is instead of referencing a code. */
23
+ promo: ViberPromoContent;
24
+ };
25
+ export type ViberPresetKind = 'VIBER_PRESET_KIND_UNSPECIFIED' | 'VIBER_PRESET_KIND_TRANSACTIONAL' | 'VIBER_PRESET_KIND_PROMO';
26
+ export type ViberPromoContent = {
27
+ /** MStat message type: 106 text, 107 image, 108 text+image(+button), 109 text+button */
28
+ type: number;
29
+ text: string;
30
+ image: string;
31
+ buttonCaption: string;
32
+ buttonAction: string;
21
33
  };
22
34
  export type ViberPresetLocale = {
23
35
  lang: string;