@pushwoosh/rpc-v2-http-api-data 0.2.17 → 0.2.19
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 +73 -33
- package/inapp_messages.d.ts +2 -14
- package/index.d.ts +2 -0
- package/package.json +1 -1
- package/viber_presets.d.ts +27 -0
- package/viber_presets.js +3 -0
package/data.js
CHANGED
|
@@ -12006,21 +12006,12 @@ export const data = {
|
|
|
12006
12006
|
"updated": {
|
|
12007
12007
|
"type": "Date"
|
|
12008
12008
|
},
|
|
12009
|
-
"eventId": {
|
|
12010
|
-
"type": "number"
|
|
12011
|
-
},
|
|
12012
|
-
"eventName": {
|
|
12013
|
-
"type": "string"
|
|
12014
|
-
},
|
|
12015
12009
|
"filterName": {
|
|
12016
12010
|
"type": "string"
|
|
12017
12011
|
},
|
|
12018
12012
|
"filterCode": {
|
|
12019
12013
|
"type": "string"
|
|
12020
12014
|
},
|
|
12021
|
-
"devicesFilter": {
|
|
12022
|
-
"type": "string"
|
|
12023
|
-
},
|
|
12024
12015
|
"segment": {
|
|
12025
12016
|
"type": "string"
|
|
12026
12017
|
},
|
|
@@ -12160,18 +12151,6 @@ export const data = {
|
|
|
12160
12151
|
"type": "string",
|
|
12161
12152
|
"optional": true
|
|
12162
12153
|
},
|
|
12163
|
-
"eventId": {
|
|
12164
|
-
"type": "number",
|
|
12165
|
-
"optional": true
|
|
12166
|
-
},
|
|
12167
|
-
"eventName": {
|
|
12168
|
-
"type": "string",
|
|
12169
|
-
"optional": true
|
|
12170
|
-
},
|
|
12171
|
-
"devicesFilter": {
|
|
12172
|
-
"type": "string",
|
|
12173
|
-
"optional": true
|
|
12174
|
-
},
|
|
12175
12154
|
"startDate": {
|
|
12176
12155
|
"type": "Date",
|
|
12177
12156
|
"optional": true
|
|
@@ -12255,18 +12234,6 @@ export const data = {
|
|
|
12255
12234
|
"type": "string",
|
|
12256
12235
|
"optional": true
|
|
12257
12236
|
},
|
|
12258
|
-
"eventId": {
|
|
12259
|
-
"type": "number",
|
|
12260
|
-
"optional": true
|
|
12261
|
-
},
|
|
12262
|
-
"eventName": {
|
|
12263
|
-
"type": "string",
|
|
12264
|
-
"optional": true
|
|
12265
|
-
},
|
|
12266
|
-
"devicesFilter": {
|
|
12267
|
-
"type": "string",
|
|
12268
|
-
"optional": true
|
|
12269
|
-
},
|
|
12270
12237
|
"startDate": {
|
|
12271
12238
|
"type": "Date",
|
|
12272
12239
|
"optional": true
|
|
@@ -25686,6 +25653,79 @@ export const data = {
|
|
|
25686
25653
|
}
|
|
25687
25654
|
}
|
|
25688
25655
|
},
|
|
25656
|
+
"pushwoosh.rpc_v2.viber_presets.ViberPresetsService": {
|
|
25657
|
+
"type": "S",
|
|
25658
|
+
"key": "viberPresets",
|
|
25659
|
+
"methods": {
|
|
25660
|
+
"List": {
|
|
25661
|
+
"request": "pushwoosh.rpc_v2.viber_presets.ListViberPresetsRequest",
|
|
25662
|
+
"response": "pushwoosh.rpc_v2.viber_presets.ListViberPresetsResponse",
|
|
25663
|
+
"method": "get",
|
|
25664
|
+
"path": "/api/viber_presets"
|
|
25665
|
+
}
|
|
25666
|
+
}
|
|
25667
|
+
},
|
|
25668
|
+
"pushwoosh.rpc_v2.viber_presets.ListViberPresetsRequest": {
|
|
25669
|
+
"type": "I",
|
|
25670
|
+
"fields": {
|
|
25671
|
+
"application": {
|
|
25672
|
+
"type": "string"
|
|
25673
|
+
}
|
|
25674
|
+
}
|
|
25675
|
+
},
|
|
25676
|
+
"pushwoosh.rpc_v2.viber_presets.ListViberPresetsResponse": {
|
|
25677
|
+
"type": "I",
|
|
25678
|
+
"fields": {
|
|
25679
|
+
"presets": {
|
|
25680
|
+
"type": "pushwoosh.rpc_v2.viber_presets.ViberPreset",
|
|
25681
|
+
"array": true
|
|
25682
|
+
}
|
|
25683
|
+
}
|
|
25684
|
+
},
|
|
25685
|
+
"pushwoosh.rpc_v2.viber_presets.ViberPreset": {
|
|
25686
|
+
"type": "I",
|
|
25687
|
+
"fields": {
|
|
25688
|
+
"code": {
|
|
25689
|
+
"type": "string"
|
|
25690
|
+
},
|
|
25691
|
+
"name": {
|
|
25692
|
+
"type": "string"
|
|
25693
|
+
},
|
|
25694
|
+
"category": {
|
|
25695
|
+
"type": "string"
|
|
25696
|
+
},
|
|
25697
|
+
"locales": {
|
|
25698
|
+
"type": "pushwoosh.rpc_v2.viber_presets.ViberPresetLocale",
|
|
25699
|
+
"array": true
|
|
25700
|
+
},
|
|
25701
|
+
"params": {
|
|
25702
|
+
"type": "pushwoosh.rpc_v2.viber_presets.ViberPresetParam",
|
|
25703
|
+
"array": true
|
|
25704
|
+
}
|
|
25705
|
+
}
|
|
25706
|
+
},
|
|
25707
|
+
"pushwoosh.rpc_v2.viber_presets.ViberPresetLocale": {
|
|
25708
|
+
"type": "I",
|
|
25709
|
+
"fields": {
|
|
25710
|
+
"lang": {
|
|
25711
|
+
"type": "string"
|
|
25712
|
+
},
|
|
25713
|
+
"content": {
|
|
25714
|
+
"type": "string"
|
|
25715
|
+
}
|
|
25716
|
+
}
|
|
25717
|
+
},
|
|
25718
|
+
"pushwoosh.rpc_v2.viber_presets.ViberPresetParam": {
|
|
25719
|
+
"type": "I",
|
|
25720
|
+
"fields": {
|
|
25721
|
+
"name": {
|
|
25722
|
+
"type": "string"
|
|
25723
|
+
},
|
|
25724
|
+
"type": {
|
|
25725
|
+
"type": "string"
|
|
25726
|
+
}
|
|
25727
|
+
}
|
|
25728
|
+
},
|
|
25689
25729
|
"pushwoosh.rpc_v2.vouchers.VouchersService": {
|
|
25690
25730
|
"type": "S",
|
|
25691
25731
|
"key": "vouchers",
|
package/inapp_messages.d.ts
CHANGED
|
@@ -40,11 +40,8 @@ export type Inapp = {
|
|
|
40
40
|
startDate: Date;
|
|
41
41
|
endDate: Date;
|
|
42
42
|
updated: Date;
|
|
43
|
-
eventId: number;
|
|
44
|
-
eventName: string;
|
|
45
43
|
filterName: string;
|
|
46
44
|
filterCode: string;
|
|
47
|
-
devicesFilter: string;
|
|
48
45
|
segment: string;
|
|
49
46
|
priority: number;
|
|
50
47
|
richMediaCode: string;
|
|
@@ -90,14 +87,8 @@ export type CreateInappRequest = {
|
|
|
90
87
|
richMediaCode?: string;
|
|
91
88
|
filterName?: string;
|
|
92
89
|
filterCode?: string;
|
|
93
|
-
/** JSON */
|
|
90
|
+
/** JSON (only capping is read/written server-side) */
|
|
94
91
|
segment?: string;
|
|
95
|
-
/** required for PUBLISH (either event_id or event_name) */
|
|
96
|
-
eventId?: number;
|
|
97
|
-
/** required for PUBLISH (either event_id or event_name) */
|
|
98
|
-
eventName?: string;
|
|
99
|
-
/** JSON */
|
|
100
|
-
devicesFilter?: string;
|
|
101
92
|
startDate?: Date;
|
|
102
93
|
endDate?: Date;
|
|
103
94
|
timezone?: string;
|
|
@@ -105,6 +96,7 @@ export type CreateInappRequest = {
|
|
|
105
96
|
messageType?: Inapp_MessageType;
|
|
106
97
|
tagFilterExpression?: pushwoosh_objects_filters_v1_FilterExpression;
|
|
107
98
|
eventFilterExpression?: pushwoosh_objects_filters_v1_FilterExpression;
|
|
99
|
+
/** required for PUBLISH */
|
|
108
100
|
triggerFilterExpression?: pushwoosh_objects_filters_v1_FilterExpression;
|
|
109
101
|
};
|
|
110
102
|
export type CreateInappResponse = {
|
|
@@ -122,10 +114,6 @@ export type UpdateInappRequest = {
|
|
|
122
114
|
filterCode?: string;
|
|
123
115
|
/** JSON */
|
|
124
116
|
segment?: string;
|
|
125
|
-
eventId?: number;
|
|
126
|
-
eventName?: string;
|
|
127
|
-
/** JSON */
|
|
128
|
-
devicesFilter?: string;
|
|
129
117
|
startDate?: Date;
|
|
130
118
|
endDate?: Date;
|
|
131
119
|
priority?: number;
|
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
|
@@ -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
|
+
};
|
package/viber_presets.js
ADDED