/** * Get Email Logs via Infobip Service * Retrieves email logs for monitoring and debugging * * @see https://www.infobip.com/docs/api/channels/email/get-email-logs */ import type { ServiceOptions } from '@plyaz/types/api'; import type { EndpointsList } from '@/api/endpoints'; import type { FetchResponse } from 'fetchff'; import type { InfobipGetEmailLogsParams } from '@plyaz/types/api'; /** * Get email logs from Infobip * Uses endpoint: GET /email/1/logs * * @param params - Query parameters for filtering logs * @param options - Optional service options (client override, config overrides) * @returns Promise * * @example * ```typescript * // Get recent logs (limited by default limit) * const logs = await fetchInfobipEmailLogs(); * * // Get logs for specific time range * const logs = await fetchInfobipEmailLogs({ * from: '2025-01-01T00:00:00.000Z', * to: '2025-01-31T23:59:59.999Z', * limit: 100, * }); * * // Get logs for specific bulk * const logs = await fetchInfobipEmailLogs({ * bulkId: 'bulk-123', * }); * * // Get logs for specific message * const logs = await fetchInfobipEmailLogs({ * messageId: 'msg-456', * }); * * // With longer cache time * const logs = await fetchInfobipEmailLogs(params, { * apiConfig: { cacheTime: 120 }, // Cache for 2 minutes * }); * ``` * * @throws {ApiPackageError} When the request fails */ export declare function fetchInfobipEmailLogs(params?: InfobipGetEmailLogsParams, options?: ServiceOptions): Promise; //# sourceMappingURL=fetchEmailLogs.d.ts.map