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

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/index.d.ts CHANGED
@@ -4,6 +4,7 @@ import { AccountsService as pushwoosh_rpc_v2_accounts_AccountsService } from './
4
4
  import { GetAuthInfoService as pushwoosh_rpc_v2_accounts_get_auth_info_GetAuthInfoService } from './accounts_get_auth_info';
5
5
  import { ApiTokensService as pushwoosh_rpc_v2_api_tokens_ApiTokensService } from './api_tokens';
6
6
  import { ApplicationsService as pushwoosh_rpc_v2_applications_ApplicationsService } from './applications';
7
+ import { EmailFromService as pushwoosh_rpc_v2_applications_EmailFromService } from './applications';
7
8
  import { ApplicationsConfigurationsService as pushwoosh_rpc_v2_applications_configurations_ApplicationsConfigurationsService } from './applications_configurations';
8
9
  import { ApplicationsGroupsService as pushwoosh_rpc_v2_applications_groups_ApplicationsGroupsService } from './applications_groups';
9
10
  import { ApplicationsInfoService as pushwoosh_rpc_v2_applications_info_ApplicationsInfoService } from './applications_info';
@@ -45,6 +46,7 @@ export type API = {
45
46
  getAuthInfo: pushwoosh_rpc_v2_accounts_get_auth_info_GetAuthInfoService;
46
47
  apiTokens: pushwoosh_rpc_v2_api_tokens_ApiTokensService;
47
48
  applications: pushwoosh_rpc_v2_applications_ApplicationsService;
49
+ emailFrom: pushwoosh_rpc_v2_applications_EmailFromService;
48
50
  applicationsConfigurations: pushwoosh_rpc_v2_applications_configurations_ApplicationsConfigurationsService;
49
51
  applicationsGroups: pushwoosh_rpc_v2_applications_groups_ApplicationsGroupsService;
50
52
  applicationsInfo: pushwoosh_rpc_v2_applications_info_ApplicationsInfoService;
package/messages.d.ts CHANGED
@@ -6,7 +6,7 @@ export interface MessagesService {
6
6
  GetStatistics(request: GetStatisticsRequest): Promise<GetStatisticsResponse>;
7
7
  GetLinkClicksStatistics(request: GetLinkClicksStatisticsRequest): Promise<GetLinkClicksStatisticsResponse>;
8
8
  GetDeliveryReport(request: GetDeliveryReportRequest): Promise<GetDeliveryReportResponse>;
9
- GetMessageLog(request: GetMessageLogRequest): Promise<GetMessageLogResponse>;
9
+ FindRecipients(request: FindRecipientsRequest): Promise<FindRecipientsResponse>;
10
10
  }
11
11
  export type Type = 'All' | 'Push' | 'Email';
12
12
  export type PushInfo = {
@@ -143,35 +143,21 @@ export type GetDeliveryReportResponse = {
143
143
  senderErrors: GetDeliveryReportResponse_DeliveryReport[];
144
144
  mailErrors: GetDeliveryReportResponse_DeliveryReport;
145
145
  };
146
- export type GetMessageLogRequest = {
147
- paginationToken?: string;
148
- messageId?: number;
146
+ export type FindRecipientsRequest = {
147
+ application?: string;
149
148
  messageCode?: string;
150
- campaignCode?: string;
151
- hwid?: string;
152
- dateFrom?: string;
153
- dateTo?: string;
154
- limit?: number;
155
- userId?: string;
156
- applicationCode?: string;
157
- actions?: string[];
158
- platforms?: string[];
159
- };
160
- export type GetMessageLogResponse_TrackingLogStatistic = {
161
- timestamp: string;
162
- messageId: string;
163
- messageCode: string;
164
- campaignCode: string;
149
+ campaign?: string;
150
+ search?: string;
151
+ };
152
+ export type FindRecipientsResponse_SearchBy = 'hwid' | 'user_id';
153
+ export type FindRecipientsResponse_Recipient = {
165
154
  hwid: string;
166
- platform: string;
167
- action: string;
168
- pushAlertsEnabled: string;
169
- status: string;
170
- errorReason: string;
171
155
  userId: string;
172
- applicationCode: string;
156
+ pushAlertsEnabled: boolean;
157
+ sendTime: Date;
158
+ openedTime: Date;
173
159
  };
174
- export type GetMessageLogResponse = {
175
- paginationToken: string;
176
- data: GetMessageLogResponse_TrackingLogStatistic[];
160
+ export type FindRecipientsResponse = {
161
+ recipients: FindRecipientsResponse_Recipient[];
162
+ searchBy: FindRecipientsResponse_SearchBy;
177
163
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.1.407",
3
+ "version": "0.1.409",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -181,7 +181,6 @@ export type Content_PlatformPropertiesIos = {
181
181
  liveActivity: LiveActivity;
182
182
  openAction: OpenAction;
183
183
  inbox: Inbox;
184
- customData: object;
185
184
  };
186
185
  export type Content_PlatformPropertiesAndroid = {
187
186
  title: string;
@@ -203,7 +202,6 @@ export type Content_PlatformPropertiesAndroid = {
203
202
  groupId: string;
204
203
  openAction: OpenAction;
205
204
  inbox: Inbox;
206
- customData: object;
207
205
  };
208
206
  export type Content_PlatformPropertiesChrome = {
209
207
  title: string;
@@ -219,7 +217,6 @@ export type Content_PlatformPropertiesChrome = {
219
217
  buttonUrl2: string;
220
218
  openAction: OpenAction;
221
219
  inbox: Inbox;
222
- customData: object;
223
220
  };
224
221
  export type Content_PlatformPropertiesFirefox = {
225
222
  title: string;
@@ -228,7 +225,6 @@ export type Content_PlatformPropertiesFirefox = {
228
225
  rootParams: object;
229
226
  openAction: OpenAction;
230
227
  inbox: Inbox;
231
- customData: object;
232
228
  };
233
229
  export type Content_PlatformPropertiesSafari = {
234
230
  title: string;
@@ -238,7 +234,6 @@ export type Content_PlatformPropertiesSafari = {
238
234
  urlArguments: string[];
239
235
  openAction: OpenAction;
240
236
  inbox: Inbox;
241
- customData: object;
242
237
  };
243
238
  export type Content_PlatformPropertiesMacOS = {
244
239
  title: string;
@@ -251,7 +246,6 @@ export type Content_PlatformPropertiesMacOS = {
251
246
  rootParams: object;
252
247
  openAction: OpenAction;
253
248
  inbox: Inbox;
254
- customData: object;
255
249
  };
256
250
  export type Content_PlatformPropertiesAmazon = {
257
251
  title: string;
@@ -266,7 +260,6 @@ export type Content_PlatformPropertiesAmazon = {
266
260
  priority: NotificationPriority;
267
261
  openAction: OpenAction;
268
262
  inbox: Inbox;
269
- customData: object;
270
263
  };
271
264
  export type Content_PlatformPropertiesBaiduAndroid = {
272
265
  title: string;
@@ -288,7 +281,6 @@ export type Content_PlatformPropertiesBaiduAndroid = {
288
281
  groupId: string;
289
282
  openAction: OpenAction;
290
283
  inbox: Inbox;
291
- customData: object;
292
284
  };
293
285
  export type Content_PlatformPropertiesHuaweiAndroid = {
294
286
  title: string;
@@ -310,7 +302,6 @@ export type Content_PlatformPropertiesHuaweiAndroid = {
310
302
  groupId: string;
311
303
  openAction: OpenAction;
312
304
  inbox: Inbox;
313
- customData: object;
314
305
  };
315
306
  export type Content_PlatformPropertiesXiaomi = {
316
307
  title: string;
@@ -323,14 +314,12 @@ export type Content_PlatformPropertiesXiaomi = {
323
314
  groupId: string;
324
315
  openAction: OpenAction;
325
316
  inbox: Inbox;
326
- customData: object;
327
317
  };
328
318
  export type Content_PlatformPropertiesIE = {
329
319
  title: string;
330
320
  iconBadge: string;
331
321
  openAction: OpenAction;
332
322
  inbox: Inbox;
333
- customData: object;
334
323
  };
335
324
  export type Content_PlatformPropertiesWindows_Raw = {
336
325
  content: string;
@@ -357,7 +346,6 @@ export type Content_PlatformPropertiesWindows = {
357
346
  cache: boolean;
358
347
  timeToLive: Duration;
359
348
  openAction: OpenAction;
360
- customData: object;
361
349
  content: Content_PlatformPropertiesWindows_content;
362
350
  };
363
351
  export type Content_PlatformPropertiesEmail = {};
@@ -392,5 +380,6 @@ export type Payload = {
392
380
  preset: string;
393
381
  metaData: object;
394
382
  dynamicContentPlaceholders: Record<string, string>;
383
+ customData: object;
395
384
  kind: Payload_kind;
396
385
  };