import { RpcMethod } from './commonTypes'; import { ExportRequest as pushwoosh_export_messages_v2_ExportRequest } from './pushwoosh_export_messages_v2'; import { ExportResponse as pushwoosh_export_messages_v2_ExportResponse } from './pushwoosh_export_messages_v2'; import { StatusRequest as pushwoosh_export_messages_v2_StatusRequest } from './pushwoosh_export_messages_v2'; import { StatusResponse as pushwoosh_export_messages_v2_StatusResponse } from './pushwoosh_export_messages_v2'; import { ResultRequest as pushwoosh_export_messages_v2_ResultRequest } from './pushwoosh_export_messages_v2'; import { ResultResponse as pushwoosh_export_messages_v2_ResultResponse } from './pushwoosh_export_messages_v2'; import { GetLastTasksRequest as pushwoosh_export_messages_v2_GetLastTasksRequest } from './pushwoosh_export_messages_v2'; import { GetLastTasksResponse as pushwoosh_export_messages_v2_GetLastTasksResponse } from './pushwoosh_export_messages_v2'; export type ExportStatisticsService_Export = RpcMethod; export type ExportStatisticsService_Status = RpcMethod; export type ExportStatisticsService_Result = RpcMethod; export type ExportStatisticsService_GetLastTasks = RpcMethod; export interface ExportStatisticsService { /** Starts an asynchronous export or computation task (CSV of message history, recipients, bounced emails, journey users, retention, or create-segment-from-message) and returns its numeric task uid. The task type and its args select what is produced; poll get_export_task_status, then fetch get_export_task_result. */ Export: ExportStatisticsService_Export; /** Returns the status (pending, success or failed) and progress of an export task by its numeric uid. Poll after create_export_task until success, then call get_export_task_result. */ Status: ExportStatisticsService_Status; /** Returns the finished output of an export task by its numeric uid — a downloadable file link, created segment code, or computed metrics depending on task type. Call only after get_export_task_status reports success. */ Result: ExportStatisticsService_Result; /** Lists recent export tasks for an application, optionally scoped by task type, message code/id, campaign, journey or event. Use to find a prior export's uid or check what was already run before starting a new one. */ GetLastTasks: ExportStatisticsService_GetLastTasks; }