@pushwoosh/rpc-v2-http-api-data 0.1.446 → 0.1.448

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.
@@ -1,5 +1,6 @@
1
1
  export interface CustomerJourneyService {
2
2
  GetDeviceEntries(request: GetDeviceEntriesRequest): Promise<GetDeviceEntriesResponse>;
3
+ GetCampaignPreset(request: GetCampaignPresetRequest): Promise<GetCampaignPresetResponse>;
3
4
  }
4
5
  export type GetDeviceEntriesRequest = {
5
6
  hwid?: string;
@@ -26,3 +27,11 @@ export type GetDeviceEntriesResponse = {
26
27
  totalPages: number;
27
28
  totalJourneys: number;
28
29
  };
30
+ export type GetCampaignPresetRequest = {
31
+ campaign?: string;
32
+ };
33
+ export type PointType = 'MessageBus' | 'Delay' | 'Terminator' | 'SendPush' | 'GoalEvent' | 'SendEmail' | 'BooleanSplitter' | 'WaitEvent' | 'InApp' | 'StartBySegment' | 'ABSplitter' | 'SetTags' | 'WebHook' | 'Filter' | 'SendSms' | 'APIStart' | 'SendWhatsApp' | 'SendData';
34
+ export type GetCampaignPresetResponse = {
35
+ preset: string;
36
+ type: PointType;
37
+ };
package/data.js CHANGED
@@ -3608,6 +3608,12 @@ export const data = {
3608
3608
  "response": "pushwoosh.rpc_v2.customer_journey.GetDeviceEntriesResponse",
3609
3609
  "method": "post",
3610
3610
  "path": "/api/filters:get-device-entries"
3611
+ },
3612
+ "GetCampaignPreset": {
3613
+ "request": "pushwoosh.rpc_v2.customer_journey.GetCampaignPresetRequest",
3614
+ "response": "pushwoosh.rpc_v2.customer_journey.GetCampaignPresetResponse",
3615
+ "method": "get",
3616
+ "path": "/api/journeys:get-campaign-preset"
3611
3617
  }
3612
3618
  }
3613
3619
  },
@@ -3696,6 +3702,48 @@ export const data = {
3696
3702
  }
3697
3703
  }
3698
3704
  },
3705
+ "pushwoosh.rpc_v2.customer_journey.GetCampaignPresetRequest": {
3706
+ "type": "I",
3707
+ "fields": {
3708
+ "campaign": {
3709
+ "type": "string"
3710
+ }
3711
+ }
3712
+ },
3713
+ "pushwoosh.rpc_v2.customer_journey.PointType": {
3714
+ "type": "E",
3715
+ "values": [
3716
+ "MessageBus",
3717
+ "Delay",
3718
+ "Terminator",
3719
+ "SendPush",
3720
+ "GoalEvent",
3721
+ "SendEmail",
3722
+ "BooleanSplitter",
3723
+ "WaitEvent",
3724
+ "InApp",
3725
+ "StartBySegment",
3726
+ "ABSplitter",
3727
+ "SetTags",
3728
+ "WebHook",
3729
+ "Filter",
3730
+ "SendSms",
3731
+ "APIStart",
3732
+ "SendWhatsApp",
3733
+ "SendData"
3734
+ ]
3735
+ },
3736
+ "pushwoosh.rpc_v2.customer_journey.GetCampaignPresetResponse": {
3737
+ "type": "I",
3738
+ "fields": {
3739
+ "preset": {
3740
+ "type": "string"
3741
+ },
3742
+ "type": {
3743
+ "type": "pushwoosh.rpc_v2.customer_journey.PointType"
3744
+ }
3745
+ }
3746
+ },
3699
3747
  "pushwoosh.rpc_v2.deeplinks.DeeplinksService": {
3700
3748
  "type": "S",
3701
3749
  "key": "deeplinks",
@@ -4962,6 +5010,9 @@ export const data = {
4962
5010
  },
4963
5011
  "createSegmentFromMessage": {
4964
5012
  "type": "pushwoosh.export_messages.v2.CreateSegmentFromMessageArgs"
5013
+ },
5014
+ "updateSegmentInsightsList": {
5015
+ "type": "pushwoosh.export_messages.v2.UpdateSegmentInsightsListArgs"
4965
5016
  }
4966
5017
  },
4967
5018
  "oneofs": {
@@ -4983,7 +5034,8 @@ export const data = {
4983
5034
  "exportMessageClicksDevices",
4984
5035
  "exportMessageEventTriggeredDevices",
4985
5036
  "exportMessageErrorDevices",
4986
- "createSegmentFromMessage"
5037
+ "createSegmentFromMessage",
5038
+ "updateSegmentInsightsList"
4987
5039
  ]
4988
5040
  }
4989
5041
  }
@@ -5103,6 +5155,9 @@ export const data = {
5103
5155
  },
5104
5156
  "createSegmentFromMessageResult": {
5105
5157
  "type": "pushwoosh.export_messages.v2.CreateSegmentFromMessageResult"
5158
+ },
5159
+ "updateSegmentInsightsListResult": {
5160
+ "type": "pushwoosh.export_messages.v2.UpdateSegmentInsightsListResult"
5106
5161
  }
5107
5162
  },
5108
5163
  "oneofs": {
@@ -5125,7 +5180,8 @@ export const data = {
5125
5180
  "exportMessageClicksDevicesResult",
5126
5181
  "exportMessageEventTriggeredDevicesResult",
5127
5182
  "exportMessageErrorDevicesResult",
5128
- "createSegmentFromMessageResult"
5183
+ "createSegmentFromMessageResult",
5184
+ "updateSegmentInsightsListResult"
5129
5185
  ]
5130
5186
  }
5131
5187
  }
@@ -5151,6 +5207,9 @@ export const data = {
5151
5207
  },
5152
5208
  "campaign": {
5153
5209
  "type": "string"
5210
+ },
5211
+ "messageCode": {
5212
+ "type": "string"
5154
5213
  }
5155
5214
  }
5156
5215
  },
@@ -5206,6 +5265,9 @@ export const data = {
5206
5265
  "createSegmentFromMessage": {
5207
5266
  "type": "pushwoosh.export_messages.v2.CreateSegmentFromMessageArgs"
5208
5267
  },
5268
+ "updateSegmentInsightsList": {
5269
+ "type": "pushwoosh.export_messages.v2.UpdateSegmentInsightsListArgs"
5270
+ },
5209
5271
  "failedTask": {
5210
5272
  "type": "pushwoosh.export_messages.v2.TaskFailed"
5211
5273
  },
@@ -5244,6 +5306,9 @@ export const data = {
5244
5306
  },
5245
5307
  "createSegmentFromMessageResult": {
5246
5308
  "type": "pushwoosh.export_messages.v2.CreateSegmentFromMessageResult"
5309
+ },
5310
+ "updateSegmentInsightsListResult": {
5311
+ "type": "pushwoosh.export_messages.v2.UpdateSegmentInsightsListResult"
5247
5312
  }
5248
5313
  },
5249
5314
  "oneofs": {
@@ -5260,7 +5325,8 @@ export const data = {
5260
5325
  "exportMessageClicksDevices",
5261
5326
  "exportMessageEventTriggeredDevices",
5262
5327
  "exportMessageErrorsDevices",
5263
- "createSegmentFromMessage"
5328
+ "createSegmentFromMessage",
5329
+ "updateSegmentInsightsList"
5264
5330
  ]
5265
5331
  },
5266
5332
  "result": {
@@ -5277,7 +5343,8 @@ export const data = {
5277
5343
  "exportMessageClicksDevicesResult",
5278
5344
  "exportMessageEventTriggeredDevicesResult",
5279
5345
  "exportMessageErrorsDevicesResult",
5280
- "createSegmentFromMessageResult"
5346
+ "createSegmentFromMessageResult",
5347
+ "updateSegmentInsightsListResult"
5281
5348
  ]
5282
5349
  }
5283
5350
  }
@@ -5313,7 +5380,8 @@ export const data = {
5313
5380
  "TASK_TYPE_EXPORT_MESSAGE_CLICKS_DEVICES",
5314
5381
  "TASK_TYPE_EXPORT_MESSAGE_EVENT_TRIGGERED_DEVICES",
5315
5382
  "TASK_TYPE_EXPORT_MESSAGE_ERROR_DEVICES",
5316
- "TASK_TYPE_CREATE_SEGMENT_FROM_MESSAGE"
5383
+ "TASK_TYPE_CREATE_SEGMENT_FROM_MESSAGE",
5384
+ "TASK_TYPE_UPDATE_SEGMENT_INSIGHTS_LIST"
5317
5385
  ]
5318
5386
  },
5319
5387
  "pushwoosh.export_messages.v2.TaskFailed": {
@@ -6103,6 +6171,25 @@ export const data = {
6103
6171
  }
6104
6172
  }
6105
6173
  },
6174
+ "pushwoosh.export_messages.v2.UpdateSegmentInsightsListArgs": {
6175
+ "type": "I",
6176
+ "fields": {
6177
+ "campaign": {
6178
+ "type": "string"
6179
+ },
6180
+ "messageCode": {
6181
+ "type": "string"
6182
+ },
6183
+ "segments": {
6184
+ "type": "string",
6185
+ "array": true
6186
+ }
6187
+ }
6188
+ },
6189
+ "pushwoosh.export_messages.v2.UpdateSegmentInsightsListResult": {
6190
+ "type": "I",
6191
+ "fields": {}
6192
+ },
6106
6193
  "pushwoosh.rpc_v2.filters.FiltersService": {
6107
6194
  "type": "S",
6108
6195
  "key": "filters",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-v2-http-api-data",
3
- "version": "0.1.446",
3
+ "version": "0.1.448",
4
4
  "description": "RPC V2 HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -66,7 +66,11 @@ export type ExportRequest_args_createSegmentFromMessage = {
66
66
  type: 'createSegmentFromMessage';
67
67
  data: CreateSegmentFromMessageArgs;
68
68
  };
69
- export type ExportRequest_args = ExportRequest_args_trackingLogCsv | ExportRequest_args_exportMessagesV2 | ExportRequest_args_exportUnregisteredDevices | ExportRequest_args_exportRichMediaFormValues | ExportRequest_args_applySegmentToMessage | ExportRequest_args_exportApplySegmentToMessage | ExportRequest_args_calculateRetention | ExportRequest_args_applySegmentToMetric | ExportRequest_args_exportRichMediaRecipients | ExportRequest_args_exportBouncedEmails | ExportRequest_args_exportJourneysHistory | ExportRequest_args_exportJourneyPointUsers | ExportRequest_args_exportMessageRecipients | ExportRequest_args_exportMessageClicksDevices | ExportRequest_args_exportMessageEventTriggeredDevices | ExportRequest_args_exportMessageErrorDevices | ExportRequest_args_createSegmentFromMessage;
69
+ export type ExportRequest_args_updateSegmentInsightsList = {
70
+ type: 'updateSegmentInsightsList';
71
+ data: UpdateSegmentInsightsListArgs;
72
+ };
73
+ export type ExportRequest_args = ExportRequest_args_trackingLogCsv | ExportRequest_args_exportMessagesV2 | ExportRequest_args_exportUnregisteredDevices | ExportRequest_args_exportRichMediaFormValues | ExportRequest_args_applySegmentToMessage | ExportRequest_args_exportApplySegmentToMessage | ExportRequest_args_calculateRetention | ExportRequest_args_applySegmentToMetric | ExportRequest_args_exportRichMediaRecipients | ExportRequest_args_exportBouncedEmails | ExportRequest_args_exportJourneysHistory | ExportRequest_args_exportJourneyPointUsers | ExportRequest_args_exportMessageRecipients | ExportRequest_args_exportMessageClicksDevices | ExportRequest_args_exportMessageEventTriggeredDevices | ExportRequest_args_exportMessageErrorDevices | ExportRequest_args_createSegmentFromMessage | ExportRequest_args_updateSegmentInsightsList;
70
74
  export type ExportRequest = {
71
75
  type?: TaskType;
72
76
  args: ExportRequest_args;
@@ -161,7 +165,11 @@ export type ResultResponse_result_createSegmentFromMessageResult = {
161
165
  type: 'createSegmentFromMessageResult';
162
166
  data: CreateSegmentFromMessageResult;
163
167
  };
164
- export type ResultResponse_result = ResultResponse_result_failedTask | ResultResponse_result_trackingLogResult | ResultResponse_result_exportMessagesV2Result | ResultResponse_result_exportUnregisteredDevicesResult | ResultResponse_result_exportRichMediaFormValuesResult | ResultResponse_result_applySegmentToMessageResult | ResultResponse_result_exportApplySegmentToMessageResult | ResultResponse_result_calculateRetentionResult | ResultResponse_result_applySegmentToMetricResult | ResultResponse_result_exportRichMediaRecipientsResult | ResultResponse_result_exportBouncedEmailsResult | ResultResponse_result_exportJourneysHistoryResult | ResultResponse_result_exportJourneyPointUsersResult | ResultResponse_result_exportMessageRecipientsResult | ResultResponse_result_exportMessageClicksDevicesResult | ResultResponse_result_exportMessageEventTriggeredDevicesResult | ResultResponse_result_exportMessageErrorDevicesResult | ResultResponse_result_createSegmentFromMessageResult;
168
+ export type ResultResponse_result_updateSegmentInsightsListResult = {
169
+ type: 'updateSegmentInsightsListResult';
170
+ data: UpdateSegmentInsightsListResult;
171
+ };
172
+ export type ResultResponse_result = ResultResponse_result_failedTask | ResultResponse_result_trackingLogResult | ResultResponse_result_exportMessagesV2Result | ResultResponse_result_exportUnregisteredDevicesResult | ResultResponse_result_exportRichMediaFormValuesResult | ResultResponse_result_applySegmentToMessageResult | ResultResponse_result_exportApplySegmentToMessageResult | ResultResponse_result_calculateRetentionResult | ResultResponse_result_applySegmentToMetricResult | ResultResponse_result_exportRichMediaRecipientsResult | ResultResponse_result_exportBouncedEmailsResult | ResultResponse_result_exportJourneysHistoryResult | ResultResponse_result_exportJourneyPointUsersResult | ResultResponse_result_exportMessageRecipientsResult | ResultResponse_result_exportMessageClicksDevicesResult | ResultResponse_result_exportMessageEventTriggeredDevicesResult | ResultResponse_result_exportMessageErrorDevicesResult | ResultResponse_result_createSegmentFromMessageResult | ResultResponse_result_updateSegmentInsightsListResult;
165
173
  export type ResultResponse = {
166
174
  type: TaskType;
167
175
  result: ResultResponse_result;
@@ -173,6 +181,7 @@ export type GetLastTasksRequest = {
173
181
  limit?: number;
174
182
  messageId?: number;
175
183
  campaign?: string;
184
+ messageCode?: string;
176
185
  };
177
186
  export type TaskInfo_args_trackingLogCsv = {
178
187
  type: 'trackingLogCsv';
@@ -222,7 +231,11 @@ export type TaskInfo_args_createSegmentFromMessage = {
222
231
  type: 'createSegmentFromMessage';
223
232
  data: CreateSegmentFromMessageArgs;
224
233
  };
225
- export type TaskInfo_args = TaskInfo_args_trackingLogCsv | TaskInfo_args_exportMessagesV2 | TaskInfo_args_exportUnregisteredDevices | TaskInfo_args_exportRichMediaFormValues | TaskInfo_args_applySegmentToMessage | TaskInfo_args_exportRichMediaRecipients | TaskInfo_args_exportJourneysHistory | TaskInfo_args_exportMessageRecipients | TaskInfo_args_exportMessageClicksDevices | TaskInfo_args_exportMessageEventTriggeredDevices | TaskInfo_args_exportMessageErrorsDevices | TaskInfo_args_createSegmentFromMessage;
234
+ export type TaskInfo_args_updateSegmentInsightsList = {
235
+ type: 'updateSegmentInsightsList';
236
+ data: UpdateSegmentInsightsListArgs;
237
+ };
238
+ export type TaskInfo_args = TaskInfo_args_trackingLogCsv | TaskInfo_args_exportMessagesV2 | TaskInfo_args_exportUnregisteredDevices | TaskInfo_args_exportRichMediaFormValues | TaskInfo_args_applySegmentToMessage | TaskInfo_args_exportRichMediaRecipients | TaskInfo_args_exportJourneysHistory | TaskInfo_args_exportMessageRecipients | TaskInfo_args_exportMessageClicksDevices | TaskInfo_args_exportMessageEventTriggeredDevices | TaskInfo_args_exportMessageErrorsDevices | TaskInfo_args_createSegmentFromMessage | TaskInfo_args_updateSegmentInsightsList;
226
239
  export type TaskInfo_result_failedTask = {
227
240
  type: 'failedTask';
228
241
  data: TaskFailed;
@@ -275,7 +288,11 @@ export type TaskInfo_result_createSegmentFromMessageResult = {
275
288
  type: 'createSegmentFromMessageResult';
276
289
  data: CreateSegmentFromMessageResult;
277
290
  };
278
- export type TaskInfo_result = TaskInfo_result_failedTask | TaskInfo_result_trackingLogResult | TaskInfo_result_exportMessagesV2Result | TaskInfo_result_exportUnregisteredDevicesResult | TaskInfo_result_exportRichMediaFormValuesResult | TaskInfo_result_applySegmentToMessageResult | TaskInfo_result_exportRichMediaRecipientsResult | TaskInfo_result_exportJourneysHistoryResult | TaskInfo_result_exportMessageRecipientsResult | TaskInfo_result_exportMessageClicksDevicesResult | TaskInfo_result_exportMessageEventTriggeredDevicesResult | TaskInfo_result_exportMessageErrorsDevicesResult | TaskInfo_result_createSegmentFromMessageResult;
291
+ export type TaskInfo_result_updateSegmentInsightsListResult = {
292
+ type: 'updateSegmentInsightsListResult';
293
+ data: UpdateSegmentInsightsListResult;
294
+ };
295
+ export type TaskInfo_result = TaskInfo_result_failedTask | TaskInfo_result_trackingLogResult | TaskInfo_result_exportMessagesV2Result | TaskInfo_result_exportUnregisteredDevicesResult | TaskInfo_result_exportRichMediaFormValuesResult | TaskInfo_result_applySegmentToMessageResult | TaskInfo_result_exportRichMediaRecipientsResult | TaskInfo_result_exportJourneysHistoryResult | TaskInfo_result_exportMessageRecipientsResult | TaskInfo_result_exportMessageClicksDevicesResult | TaskInfo_result_exportMessageEventTriggeredDevicesResult | TaskInfo_result_exportMessageErrorsDevicesResult | TaskInfo_result_createSegmentFromMessageResult | TaskInfo_result_updateSegmentInsightsListResult;
279
296
  export type TaskInfo = {
280
297
  id: number;
281
298
  timestamp: string;
@@ -287,7 +304,7 @@ export type TaskInfo = {
287
304
  export type GetLastTasksResponse = {
288
305
  tasks: TaskInfo[];
289
306
  };
290
- export type TaskType = 'TASK_TYPE_UNSPECIFIED' | 'TASK_TYPE_FAILED' | 'TASK_TYPE_TRACKING_LOG_CSV' | 'TASK_TYPE_EXPORT_MESSAGES' | 'TASK_TYPE_EXPORT_MESSAGES_V2' | 'TASK_TYPE_EXPORT_UNREGISTERED_DEVICES' | 'TASK_TYPE_EXPORT_RICH_MEDIA_FORM_VALUES' | 'TASK_TYPE_APPLY_SEGMENT_TO_MESSAGE' | 'TASK_TYPE_EXPORT_APPLY_SEGMENT_TO_MESSAGE' | 'TASK_TYPE_CALCULATE_RETENTION' | 'TASK_TYPE_APPLY_SEGMENT_TO_METRIC' | 'TASK_TYPE_EXPORT_RICH_MEDIA_RECIPIENTS' | 'TASK_TYPE_EXPORT_BOUNCED_EMAILS' | 'TASK_TYPE_EXPORT_JOURNEYS_HISTORY' | 'TASK_TYPE_EXPORT_JOURNEY_POINT_USERS' | 'TASK_TYPE_EXPORT_MESSAGE_RECIPIENTS' | 'TASK_TYPE_EXPORT_MESSAGE_CLICKS_DEVICES' | 'TASK_TYPE_EXPORT_MESSAGE_EVENT_TRIGGERED_DEVICES' | 'TASK_TYPE_EXPORT_MESSAGE_ERROR_DEVICES' | 'TASK_TYPE_CREATE_SEGMENT_FROM_MESSAGE';
307
+ export type TaskType = 'TASK_TYPE_UNSPECIFIED' | 'TASK_TYPE_FAILED' | 'TASK_TYPE_TRACKING_LOG_CSV' | 'TASK_TYPE_EXPORT_MESSAGES' | 'TASK_TYPE_EXPORT_MESSAGES_V2' | 'TASK_TYPE_EXPORT_UNREGISTERED_DEVICES' | 'TASK_TYPE_EXPORT_RICH_MEDIA_FORM_VALUES' | 'TASK_TYPE_APPLY_SEGMENT_TO_MESSAGE' | 'TASK_TYPE_EXPORT_APPLY_SEGMENT_TO_MESSAGE' | 'TASK_TYPE_CALCULATE_RETENTION' | 'TASK_TYPE_APPLY_SEGMENT_TO_METRIC' | 'TASK_TYPE_EXPORT_RICH_MEDIA_RECIPIENTS' | 'TASK_TYPE_EXPORT_BOUNCED_EMAILS' | 'TASK_TYPE_EXPORT_JOURNEYS_HISTORY' | 'TASK_TYPE_EXPORT_JOURNEY_POINT_USERS' | 'TASK_TYPE_EXPORT_MESSAGE_RECIPIENTS' | 'TASK_TYPE_EXPORT_MESSAGE_CLICKS_DEVICES' | 'TASK_TYPE_EXPORT_MESSAGE_EVENT_TRIGGERED_DEVICES' | 'TASK_TYPE_EXPORT_MESSAGE_ERROR_DEVICES' | 'TASK_TYPE_CREATE_SEGMENT_FROM_MESSAGE' | 'TASK_TYPE_UPDATE_SEGMENT_INSIGHTS_LIST';
291
308
  export type TaskFailed = {};
292
309
  export type TrackingLogCSVArgs = {
293
310
  messageId: number;
@@ -532,3 +549,9 @@ export type CreateSegmentFromMessageResult = {
532
549
  segmentCode: string;
533
550
  segmentName: string;
534
551
  };
552
+ export type UpdateSegmentInsightsListArgs = {
553
+ campaign: string;
554
+ messageCode: string;
555
+ segments: string[];
556
+ };
557
+ export type UpdateSegmentInsightsListResult = {};