@pushwoosh/rpc-v2-http-api-data 0.1.405 → 0.1.407

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/events.d.ts CHANGED
@@ -91,28 +91,28 @@ export type ListOfValues = {
91
91
  values: string[];
92
92
  };
93
93
  export type Value_kind_string = {
94
- $: 'string';
95
- string: string;
94
+ type: 'string';
95
+ data: string;
96
96
  };
97
97
  export type Value_kind_integer = {
98
- $: 'integer';
99
- integer: number;
98
+ type: 'integer';
99
+ data: number;
100
100
  };
101
101
  export type Value_kind_float = {
102
- $: 'float';
103
- float: number;
102
+ type: 'float';
103
+ data: number;
104
104
  };
105
105
  export type Value_kind_bool = {
106
- $: 'bool';
107
- bool: boolean;
106
+ type: 'bool';
107
+ data: boolean;
108
108
  };
109
109
  export type Value_kind_list = {
110
- $: 'list';
111
- list: ListOfValues;
110
+ type: 'list';
111
+ data: ListOfValues;
112
112
  };
113
113
  export type Value_kind_timestamp = {
114
- $: 'timestamp';
115
- timestamp: Date;
114
+ type: 'timestamp';
115
+ data: Date;
116
116
  };
117
117
  export type Value_kind = Value_kind_string | Value_kind_integer | Value_kind_float | Value_kind_bool | Value_kind_list | Value_kind_timestamp;
118
118
  export type Value = {
@@ -0,0 +1,14 @@
1
+ import { ExportRequest as pushwoosh_export_messages_v2_ExportRequest } from './pushwoosh_export_messages_v2';
2
+ import { ExportResponse as pushwoosh_export_messages_v2_ExportResponse } from './pushwoosh_export_messages_v2';
3
+ import { StatusRequest as pushwoosh_export_messages_v2_StatusRequest } from './pushwoosh_export_messages_v2';
4
+ import { StatusResponse as pushwoosh_export_messages_v2_StatusResponse } from './pushwoosh_export_messages_v2';
5
+ import { ResultRequest as pushwoosh_export_messages_v2_ResultRequest } from './pushwoosh_export_messages_v2';
6
+ import { ResultResponse as pushwoosh_export_messages_v2_ResultResponse } from './pushwoosh_export_messages_v2';
7
+ import { GetLastTasksRequest as pushwoosh_export_messages_v2_GetLastTasksRequest } from './pushwoosh_export_messages_v2';
8
+ import { GetLastTasksResponse as pushwoosh_export_messages_v2_GetLastTasksResponse } from './pushwoosh_export_messages_v2';
9
+ export interface ExportStatisticsService {
10
+ Export(request: pushwoosh_export_messages_v2_ExportRequest): Promise<pushwoosh_export_messages_v2_ExportResponse>;
11
+ Status(request: pushwoosh_export_messages_v2_StatusRequest): Promise<pushwoosh_export_messages_v2_StatusResponse>;
12
+ Result(request: pushwoosh_export_messages_v2_ResultRequest): Promise<pushwoosh_export_messages_v2_ResultResponse>;
13
+ GetLastTasks(request: pushwoosh_export_messages_v2_GetLastTasksRequest): Promise<pushwoosh_export_messages_v2_GetLastTasksResponse>;
14
+ }
@@ -0,0 +1,2 @@
1
+ /* eslint-disable */
2
+ export {};
package/filters.d.ts CHANGED
@@ -38,12 +38,12 @@ export type Filter_Compiling = {
38
38
  totalWhatsapp: number;
39
39
  };
40
40
  export type Filter_type_compiling = {
41
- $: 'compiling';
42
- compiling: Filter_Compiling;
41
+ type: 'compiling';
42
+ data: Filter_Compiling;
43
43
  };
44
44
  export type Filter_type_empty = {
45
- $: 'empty';
46
- empty: {};
45
+ type: 'empty';
46
+ data: {};
47
47
  };
48
48
  export type Filter_type = Filter_type_compiling | Filter_type_empty;
49
49
  export type Filter = {
package/google_api.d.ts CHANGED
@@ -3,28 +3,28 @@ export type Http = {
3
3
  fullyDecodeReservedExpansion: boolean;
4
4
  };
5
5
  export type HttpRule_pattern_get = {
6
- $: 'get';
7
- get: string;
6
+ type: 'get';
7
+ data: string;
8
8
  };
9
9
  export type HttpRule_pattern_put = {
10
- $: 'put';
11
- put: string;
10
+ type: 'put';
11
+ data: string;
12
12
  };
13
13
  export type HttpRule_pattern_post = {
14
- $: 'post';
15
- post: string;
14
+ type: 'post';
15
+ data: string;
16
16
  };
17
17
  export type HttpRule_pattern_delete = {
18
- $: 'delete';
19
- delete: string;
18
+ type: 'delete';
19
+ data: string;
20
20
  };
21
21
  export type HttpRule_pattern_patch = {
22
- $: 'patch';
23
- patch: string;
22
+ type: 'patch';
23
+ data: string;
24
24
  };
25
25
  export type HttpRule_pattern_custom = {
26
- $: 'custom';
27
- custom: CustomHttpPattern;
26
+ type: 'custom';
27
+ data: CustomHttpPattern;
28
28
  };
29
29
  export type HttpRule_pattern = HttpRule_pattern_get | HttpRule_pattern_put | HttpRule_pattern_post | HttpRule_pattern_delete | HttpRule_pattern_patch | HttpRule_pattern_custom;
30
30
  export type HttpRule = {
@@ -195,28 +195,28 @@ export type Struct = {
195
195
  fields: Record<string, Value>;
196
196
  };
197
197
  export type Value_kind_nullValue = {
198
- $: 'nullValue';
199
- nullValue: NullValue;
198
+ type: 'nullValue';
199
+ data: NullValue;
200
200
  };
201
201
  export type Value_kind_numberValue = {
202
- $: 'numberValue';
203
- numberValue: number;
202
+ type: 'numberValue';
203
+ data: number;
204
204
  };
205
205
  export type Value_kind_stringValue = {
206
- $: 'stringValue';
207
- stringValue: string;
206
+ type: 'stringValue';
207
+ data: string;
208
208
  };
209
209
  export type Value_kind_boolValue = {
210
- $: 'boolValue';
211
- boolValue: boolean;
210
+ type: 'boolValue';
211
+ data: boolean;
212
212
  };
213
213
  export type Value_kind_structValue = {
214
- $: 'structValue';
215
- structValue: Struct;
214
+ type: 'structValue';
215
+ data: Struct;
216
216
  };
217
217
  export type Value_kind_listValue = {
218
- $: 'listValue';
219
- listValue: ListValue;
218
+ type: 'listValue';
219
+ data: ListValue;
220
220
  };
221
221
  export type Value_kind = Value_kind_nullValue | Value_kind_numberValue | Value_kind_stringValue | Value_kind_boolValue | Value_kind_structValue | Value_kind_listValue;
222
222
  export type Value = {
package/index.d.ts CHANGED
@@ -16,6 +16,7 @@ import { DevicesService as pushwoosh_rpc_v2_devices_DevicesService } from './dev
16
16
  import { EmailTemplatesService as pushwoosh_rpc_v2_accounts_EmailTemplatesService } from './accounts';
17
17
  import { EmailsConfigurationsService as pushwoosh_rpc_v2_emails_configurations_EmailsConfigurationsService } from './emails_configurations';
18
18
  import { EventsService as pushwoosh_rpc_v2_events_EventsService } from './events';
19
+ import { ExportStatisticsService as pushwoosh_rpc_v2_export_messages_ExportStatisticsService } from './export_messages';
19
20
  import { FiltersService as pushwoosh_rpc_v2_filters_FiltersService } from './filters';
20
21
  import { FrequencyCappingService as pushwoosh_rpc_v2_frequency_capping_FrequencyCappingService } from './frequency_capping';
21
22
  import { GeozonesService as pushwoosh_rpc_v2_geozones_GeozonesService } from './geozones';
@@ -56,6 +57,7 @@ export type API = {
56
57
  emailTemplates: pushwoosh_rpc_v2_accounts_EmailTemplatesService;
57
58
  emailsConfigurations: pushwoosh_rpc_v2_emails_configurations_EmailsConfigurationsService;
58
59
  events: pushwoosh_rpc_v2_events_EventsService;
60
+ exportStatistics: pushwoosh_rpc_v2_export_messages_ExportStatisticsService;
59
61
  filters: pushwoosh_rpc_v2_filters_FiltersService;
60
62
  frequencyCapping: pushwoosh_rpc_v2_frequency_capping_FrequencyCappingService;
61
63
  geozones: pushwoosh_rpc_v2_geozones_GeozonesService;
package/messages.d.ts CHANGED
@@ -24,12 +24,12 @@ export type EmailInfo = {
24
24
  export type Message_SchedulingType = 'now' | 'device_tz' | 'custom_tz' | 'optimal_time';
25
25
  export type Message_Status = 'status_unknown' | 'creating' | 'waiting' | 'pending' | 'processing' | 'done' | 'canceled' | 'fail';
26
26
  export type Message_info_pushInfo = {
27
- $: 'pushInfo';
28
- pushInfo: PushInfo;
27
+ type: 'pushInfo';
28
+ data: PushInfo;
29
29
  };
30
30
  export type Message_info_emailInfo = {
31
- $: 'emailInfo';
32
- emailInfo: EmailInfo;
31
+ type: 'emailInfo';
32
+ data: EmailInfo;
33
33
  };
34
34
  export type Message_info = Message_info_pushInfo | Message_info_emailInfo;
35
35
  export type Message = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.1.405",
3
+ "version": "0.1.407",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -7,12 +7,12 @@ export interface MessagingService {
7
7
  NotifyStream(request: NotifyStreamRequest): Promise<NotifyStreamResponse>;
8
8
  }
9
9
  export type NotifyRequest_kind_segment = {
10
- $: 'segment';
11
- segment: NotifySegment;
10
+ type: 'segment';
11
+ data: NotifySegment;
12
12
  };
13
13
  export type NotifyRequest_kind_transactional = {
14
- $: 'transactional';
15
- transactional: NotifyTransactional;
14
+ type: 'transactional';
15
+ data: NotifyTransactional;
16
16
  };
17
17
  export type NotifyRequest_kind = NotifyRequest_kind_segment | NotifyRequest_kind_transactional;
18
18
  export type NotifyRequest = {
@@ -37,16 +37,16 @@ export type NotifyResult = {
37
37
  };
38
38
  export type Platform = 'UNKNOWN' | 'IOS' | 'ANDROID' | 'OSX' | 'WINDOWS' | 'AMAZON' | 'SAFARI' | 'CHROME' | 'FIREFOX' | 'IE' | 'EMAIL' | 'BAIDU_ANDROID' | 'HUAWEI_ANDROID' | 'SMS' | 'XIAOMI';
39
39
  export type NotifySegment_target_code = {
40
- $: 'code';
41
- code: string;
40
+ type: 'code';
41
+ data: string;
42
42
  };
43
43
  export type NotifySegment_target_expression = {
44
- $: 'expression';
45
- expression: string;
44
+ type: 'expression';
45
+ data: string;
46
46
  };
47
47
  export type NotifySegment_target_filterExpression = {
48
- $: 'filterExpression';
49
- filterExpression: pushwoosh_objects_filters_v1_FilterExpression;
48
+ type: 'filterExpression';
49
+ data: pushwoosh_objects_filters_v1_FilterExpression;
50
50
  };
51
51
  export type NotifySegment_target = NotifySegment_target_code | NotifySegment_target_expression | NotifySegment_target_filterExpression;
52
52
  export type NotifySegment = {
@@ -68,20 +68,20 @@ export type NotifyTransactional_PushTokensList = {
68
68
  list: string[];
69
69
  };
70
70
  export type NotifyTransactional_target_testDevices = {
71
- $: 'testDevices';
72
- testDevices: boolean;
71
+ type: 'testDevices';
72
+ data: boolean;
73
73
  };
74
74
  export type NotifyTransactional_target_hwids = {
75
- $: 'hwids';
76
- hwids: NotifyTransactional_HwidsList;
75
+ type: 'hwids';
76
+ data: NotifyTransactional_HwidsList;
77
77
  };
78
78
  export type NotifyTransactional_target_users = {
79
- $: 'users';
80
- users: NotifyTransactional_UsersList;
79
+ type: 'users';
80
+ data: NotifyTransactional_UsersList;
81
81
  };
82
82
  export type NotifyTransactional_target_pushTokens = {
83
- $: 'pushTokens';
84
- pushTokens: NotifyTransactional_PushTokensList;
83
+ type: 'pushTokens';
84
+ data: NotifyTransactional_PushTokensList;
85
85
  };
86
86
  export type NotifyTransactional_target = NotifyTransactional_target_testDevices | NotifyTransactional_target_hwids | NotifyTransactional_target_users | NotifyTransactional_target_pushTokens;
87
87
  export type NotifyTransactional = {
@@ -96,12 +96,12 @@ export type NotifyTransactional = {
96
96
  };
97
97
  export type Schedule_PastTimezonesBehaviour = 'PAST_TIMEZONES_BEHAVIOUR_DEFAULT' | 'PAST_TIMEZONES_BEHAVIOUR_SEND_IMMEDIATELY' | 'PAST_TIMEZONES_BEHAVIOUR_DO_NOT_SEND' | 'PAST_TIMEZONES_BEHAVIOUR_NEXT_DAY';
98
98
  export type Schedule_sendDate_at = {
99
- $: 'at';
100
- at: Date;
99
+ type: 'at';
100
+ data: Date;
101
101
  };
102
102
  export type Schedule_sendDate_after = {
103
- $: 'after';
104
- after: Duration;
103
+ type: 'after';
104
+ data: Duration;
105
105
  };
106
106
  export type Schedule_sendDate = Schedule_sendDate_at | Schedule_sendDate_after;
107
107
  export type Schedule = {
@@ -128,12 +128,12 @@ export type Link = {
128
128
  shortener: Link_Shortener;
129
129
  };
130
130
  export type RichMedia_kind_code = {
131
- $: 'code';
132
- code: string;
131
+ type: 'code';
132
+ data: string;
133
133
  };
134
134
  export type RichMedia_kind_url = {
135
- $: 'url';
136
- url: string;
135
+ type: 'url';
136
+ data: string;
137
137
  };
138
138
  export type RichMedia_kind = RichMedia_kind_code | RichMedia_kind_url;
139
139
  export type RichMedia = {
@@ -144,16 +144,16 @@ export type DeepLink = {
144
144
  params: Record<string, string>;
145
145
  };
146
146
  export type OpenAction_kind_richMedia = {
147
- $: 'richMedia';
148
- richMedia: RichMedia;
147
+ type: 'richMedia';
148
+ data: RichMedia;
149
149
  };
150
150
  export type OpenAction_kind_deepLink = {
151
- $: 'deepLink';
152
- deepLink: DeepLink;
151
+ type: 'deepLink';
152
+ data: DeepLink;
153
153
  };
154
154
  export type OpenAction_kind_link = {
155
- $: 'link';
156
- link: Link;
155
+ type: 'link';
156
+ data: Link;
157
157
  };
158
158
  export type OpenAction_kind = OpenAction_kind_richMedia | OpenAction_kind_deepLink | OpenAction_kind_link;
159
159
  export type OpenAction = {
@@ -343,12 +343,12 @@ export type Content_PlatformPropertiesWindows_Template = {
343
343
  };
344
344
  export type Content_PlatformPropertiesWindows_Type = 'TILE' | 'TOAST' | 'BADGE';
345
345
  export type Content_PlatformPropertiesWindows_content_raw = {
346
- $: 'raw';
347
- raw: Content_PlatformPropertiesWindows_Raw;
346
+ type: 'raw';
347
+ data: Content_PlatformPropertiesWindows_Raw;
348
348
  };
349
349
  export type Content_PlatformPropertiesWindows_content_template = {
350
- $: 'template';
351
- template: Content_PlatformPropertiesWindows_Template;
350
+ type: 'template';
351
+ data: Content_PlatformPropertiesWindows_Template;
352
352
  };
353
353
  export type Content_PlatformPropertiesWindows_content = Content_PlatformPropertiesWindows_content_raw | Content_PlatformPropertiesWindows_content_template;
354
354
  export type Content_PlatformPropertiesWindows = {
@@ -380,12 +380,12 @@ export type LocalizedContent = {
380
380
  localizedContent: Record<string, Content>;
381
381
  };
382
382
  export type Payload_kind_content = {
383
- $: 'content';
384
- content: LocalizedContent;
383
+ type: 'content';
384
+ data: LocalizedContent;
385
385
  };
386
386
  export type Payload_kind_silent = {
387
- $: 'silent';
388
- silent: boolean;
387
+ type: 'silent';
388
+ data: boolean;
389
389
  };
390
390
  export type Payload_kind = Payload_kind_content | Payload_kind_silent;
391
391
  export type Payload = {