@pushwoosh/rpc-v2-http-api-data 0.2.17 → 0.2.18

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
@@ -25686,6 +25686,79 @@ export const data = {
25686
25686
  }
25687
25687
  }
25688
25688
  },
25689
+ "pushwoosh.rpc_v2.viber_presets.ViberPresetsService": {
25690
+ "type": "S",
25691
+ "key": "viberPresets",
25692
+ "methods": {
25693
+ "List": {
25694
+ "request": "pushwoosh.rpc_v2.viber_presets.ListViberPresetsRequest",
25695
+ "response": "pushwoosh.rpc_v2.viber_presets.ListViberPresetsResponse",
25696
+ "method": "get",
25697
+ "path": "/api/viber_presets"
25698
+ }
25699
+ }
25700
+ },
25701
+ "pushwoosh.rpc_v2.viber_presets.ListViberPresetsRequest": {
25702
+ "type": "I",
25703
+ "fields": {
25704
+ "application": {
25705
+ "type": "string"
25706
+ }
25707
+ }
25708
+ },
25709
+ "pushwoosh.rpc_v2.viber_presets.ListViberPresetsResponse": {
25710
+ "type": "I",
25711
+ "fields": {
25712
+ "presets": {
25713
+ "type": "pushwoosh.rpc_v2.viber_presets.ViberPreset",
25714
+ "array": true
25715
+ }
25716
+ }
25717
+ },
25718
+ "pushwoosh.rpc_v2.viber_presets.ViberPreset": {
25719
+ "type": "I",
25720
+ "fields": {
25721
+ "code": {
25722
+ "type": "string"
25723
+ },
25724
+ "name": {
25725
+ "type": "string"
25726
+ },
25727
+ "category": {
25728
+ "type": "string"
25729
+ },
25730
+ "locales": {
25731
+ "type": "pushwoosh.rpc_v2.viber_presets.ViberPresetLocale",
25732
+ "array": true
25733
+ },
25734
+ "params": {
25735
+ "type": "pushwoosh.rpc_v2.viber_presets.ViberPresetParam",
25736
+ "array": true
25737
+ }
25738
+ }
25739
+ },
25740
+ "pushwoosh.rpc_v2.viber_presets.ViberPresetLocale": {
25741
+ "type": "I",
25742
+ "fields": {
25743
+ "lang": {
25744
+ "type": "string"
25745
+ },
25746
+ "content": {
25747
+ "type": "string"
25748
+ }
25749
+ }
25750
+ },
25751
+ "pushwoosh.rpc_v2.viber_presets.ViberPresetParam": {
25752
+ "type": "I",
25753
+ "fields": {
25754
+ "name": {
25755
+ "type": "string"
25756
+ },
25757
+ "type": {
25758
+ "type": "string"
25759
+ }
25760
+ }
25761
+ },
25689
25762
  "pushwoosh.rpc_v2.vouchers.VouchersService": {
25690
25763
  "type": "S",
25691
25764
  "key": "vouchers",
package/index.d.ts CHANGED
@@ -59,6 +59,7 @@ import { SubscriptionPromptService as pushwoosh_rpc_v2_subscription_prompt_Subsc
59
59
  import { TagsService as pushwoosh_rpc_v2_tags_TagsService } from './tags';
60
60
  import { TestDevicesService as pushwoosh_rpc_v2_test_devices_TestDevicesService } from './test_devices';
61
61
  import { UsersService as pushwoosh_rpc_v2_users_UsersService } from './users';
62
+ import { ViberPresetsService as pushwoosh_rpc_v2_viber_presets_ViberPresetsService } from './viber_presets';
62
63
  import { VouchersService as pushwoosh_rpc_v2_vouchers_VouchersService } from './vouchers';
63
64
  import { WhatsAppService as pushwoosh_rpc_v2_whatsapp_WhatsAppService } from './whatsapp';
64
65
  import { WhatsAppPresetsService as pushwoosh_rpc_v2_whatsapp_presets_WhatsAppPresetsService } from './whatsapp_presets';
@@ -124,6 +125,7 @@ export type API = {
124
125
  tags: pushwoosh_rpc_v2_tags_TagsService;
125
126
  testDevices: pushwoosh_rpc_v2_test_devices_TestDevicesService;
126
127
  users: pushwoosh_rpc_v2_users_UsersService;
128
+ viberPresets: pushwoosh_rpc_v2_viber_presets_ViberPresetsService;
127
129
  vouchers: pushwoosh_rpc_v2_vouchers_VouchersService;
128
130
  whatsApp: pushwoosh_rpc_v2_whatsapp_WhatsAppService;
129
131
  whatsAppPresets: pushwoosh_rpc_v2_whatsapp_presets_WhatsAppPresetsService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.2.17",
3
+ "version": "0.2.18",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -0,0 +1,27 @@
1
+ import { RpcMethod } from './commonTypes';
2
+ export type ViberPresetsService_List = RpcMethod<ListViberPresetsRequest, ListViberPresetsResponse>;
3
+ export interface ViberPresetsService {
4
+ List: ViberPresetsService_List;
5
+ }
6
+ export type ListViberPresetsRequest = {
7
+ application?: string;
8
+ };
9
+ export type ListViberPresetsResponse = {
10
+ presets: ViberPreset[];
11
+ };
12
+ export type ViberPreset = {
13
+ /** MStat viber_template_id */
14
+ code: string;
15
+ name: string;
16
+ category: string;
17
+ locales: ViberPresetLocale[];
18
+ params: ViberPresetParam[];
19
+ };
20
+ export type ViberPresetLocale = {
21
+ lang: string;
22
+ content: string;
23
+ };
24
+ export type ViberPresetParam = {
25
+ name: string;
26
+ type: string;
27
+ };
@@ -0,0 +1,3 @@
1
+ /* eslint-disable */
2
+ /* Autogenerated code */
3
+ export {};