/** * MailSlurp API * MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It\'s designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository * * The version of the OpenAPI document: 6.5.2 * Contact: contact@mailslurp.dev * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import * as runtime from '../runtime'; import { MissedEmail, PageMissedEmailProjection, PageUnknownMissedEmailProjection } from '../models'; export interface GetAllMissedEmailsRequest { page?: number; size?: number; sort?: GetAllMissedEmailsSortEnum; searchFilter?: string; since?: Date; before?: Date; inboxId?: string; } export interface GetAllUnknownMissedEmailsRequest { page?: number; size?: number; sort?: GetAllUnknownMissedEmailsSortEnum; searchFilter?: string; since?: Date; before?: Date; inboxId?: string; } export interface GetMissedEmailRequest { missedEmailId: string; } export interface WaitForNthMissedEmailRequest { index: number; inboxId?: string; timeout?: number; since?: Date; before?: Date; } /** * MissedEmailControllerApi - interface * * @export * @interface MissedEmailControllerApiInterface */ export interface MissedEmailControllerApiInterface { /** * * @summary Get all MissedEmails in paginated format * @param {number} [page] Optional page index in list pagination * @param {number} [size] Optional page size in list pagination * @param {'ASC' | 'DESC'} [sort] Optional createdAt sort direction ASC or DESC * @param {string} [searchFilter] Optional search filter * @param {Date} [since] Filter by created at after the given timestamp * @param {Date} [before] Filter by created at before the given timestamp * @param {string} [inboxId] Optional inbox ID filter * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof MissedEmailControllerApiInterface */ getAllMissedEmailsRaw(requestParameters: GetAllMissedEmailsRequest): Promise>; /** * Get all MissedEmails in paginated format */ getAllMissedEmails(requestParameters: GetAllMissedEmailsRequest): Promise; /** * Unknown missed emails are emails that were sent to MailSlurp but could not be assigned to an existing inbox. * @summary Get all unknown missed emails in paginated format * @param {number} [page] Optional page index in list pagination * @param {number} [size] Optional page size in list pagination * @param {'ASC' | 'DESC'} [sort] Optional createdAt sort direction ASC or DESC * @param {string} [searchFilter] Optional search filter * @param {Date} [since] Filter by created at after the given timestamp * @param {Date} [before] Filter by created at before the given timestamp * @param {string} [inboxId] Optional inbox ID filter * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof MissedEmailControllerApiInterface */ getAllUnknownMissedEmailsRaw(requestParameters: GetAllUnknownMissedEmailsRequest): Promise>; /** * Unknown missed emails are emails that were sent to MailSlurp but could not be assigned to an existing inbox. * Get all unknown missed emails in paginated format */ getAllUnknownMissedEmails(requestParameters: GetAllUnknownMissedEmailsRequest): Promise; /** * * @summary Get MissedEmail * @param {string} missedEmailId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof MissedEmailControllerApiInterface */ getMissedEmailRaw(requestParameters: GetMissedEmailRequest): Promise>; /** * Get MissedEmail */ getMissedEmail(requestParameters: GetMissedEmailRequest): Promise; /** * Wait for 0 based index missed email * @summary Wait for Nth missed email * @param {number} index Zero based index of the email to wait for. If 1 missed email already and you want to wait for the 2nd email pass index=1 * @param {string} [inboxId] Optional inbox ID filter * @param {number} [timeout] Optional timeout milliseconds * @param {Date} [since] Filter by created at after the given timestamp * @param {Date} [before] Filter by created at before the given timestamp * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof MissedEmailControllerApiInterface */ waitForNthMissedEmailRaw(requestParameters: WaitForNthMissedEmailRequest): Promise>; /** * Wait for 0 based index missed email * Wait for Nth missed email */ waitForNthMissedEmail(requestParameters: WaitForNthMissedEmailRequest): Promise; } /** * */ export declare class MissedEmailControllerApi extends runtime.BaseAPI implements MissedEmailControllerApiInterface { /** * Get all MissedEmails in paginated format */ getAllMissedEmailsRaw(requestParameters: GetAllMissedEmailsRequest): Promise>; /** * Get all MissedEmails in paginated format */ getAllMissedEmails(requestParameters: GetAllMissedEmailsRequest): Promise; /** * Unknown missed emails are emails that were sent to MailSlurp but could not be assigned to an existing inbox. * Get all unknown missed emails in paginated format */ getAllUnknownMissedEmailsRaw(requestParameters: GetAllUnknownMissedEmailsRequest): Promise>; /** * Unknown missed emails are emails that were sent to MailSlurp but could not be assigned to an existing inbox. * Get all unknown missed emails in paginated format */ getAllUnknownMissedEmails(requestParameters: GetAllUnknownMissedEmailsRequest): Promise; /** * Get MissedEmail */ getMissedEmailRaw(requestParameters: GetMissedEmailRequest): Promise>; /** * Get MissedEmail */ getMissedEmail(requestParameters: GetMissedEmailRequest): Promise; /** * Wait for 0 based index missed email * Wait for Nth missed email */ waitForNthMissedEmailRaw(requestParameters: WaitForNthMissedEmailRequest): Promise>; /** * Wait for 0 based index missed email * Wait for Nth missed email */ waitForNthMissedEmail(requestParameters: WaitForNthMissedEmailRequest): Promise; } /** * @export * @enum {string} */ export declare enum GetAllMissedEmailsSortEnum { ASC = "ASC", DESC = "DESC" } /** * @export * @enum {string} */ export declare enum GetAllUnknownMissedEmailsSortEnum { ASC = "ASC", DESC = "DESC" }