UNPKG

mailslurp-client

Version:

Official client for MailSlurp Email and SMS API. Create email addresses and phone numbers in Javascript without a mail server. Send and receive real emails in applications or tests.

169 lines (164 loc) 4.44 kB
/* tslint:disable */ /* eslint-disable */ /** * MailSlurp API * MailSlurp is an API for sending and receiving emails and SMS from dynamically allocated email addresses and phone numbers. 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://docs.mailslurp.com/) - [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 { exists, mapValues } from '../runtime'; /** * * @export * @interface AuditLogSearchOptions */ export interface AuditLogSearchOptions { /** * * @type {Date} * @memberof AuditLogSearchOptions */ since?: Date; /** * * @type {Date} * @memberof AuditLogSearchOptions */ before?: Date; /** * * @type {string} * @memberof AuditLogSearchOptions */ action?: string; /** * * @type {string} * @memberof AuditLogSearchOptions */ userId?: string; /** * * @type {string} * @memberof AuditLogSearchOptions */ actorUserId?: string; /** * * @type {string} * @memberof AuditLogSearchOptions */ targetUserId?: string; /** * * @type {string} * @memberof AuditLogSearchOptions */ resourceType?: string; /** * * @type {string} * @memberof AuditLogSearchOptions */ resourceId?: string; /** * * @type {string} * @memberof AuditLogSearchOptions */ outcome?: string; /** * * @type {string} * @memberof AuditLogSearchOptions */ requestId?: string; /** * * @type {string} * @memberof AuditLogSearchOptions */ ipAddress?: string; /** * * @type {string} * @memberof AuditLogSearchOptions */ eventId?: string; /** * * @type {number} * @memberof AuditLogSearchOptions */ pageSize?: number; /** * * @type {string} * @memberof AuditLogSearchOptions */ cursor?: string; } export function AuditLogSearchOptionsFromJSON( json: any ): AuditLogSearchOptions { return AuditLogSearchOptionsFromJSONTyped(json, false); } export function AuditLogSearchOptionsFromJSONTyped( json: any, ignoreDiscriminator: boolean ): AuditLogSearchOptions { if (json === undefined || json === null) { return json; } return { since: !exists(json, 'since') ? undefined : new Date(json['since']), before: !exists(json, 'before') ? undefined : new Date(json['before']), action: !exists(json, 'action') ? undefined : json['action'], userId: !exists(json, 'userId') ? undefined : json['userId'], actorUserId: !exists(json, 'actorUserId') ? undefined : json['actorUserId'], targetUserId: !exists(json, 'targetUserId') ? undefined : json['targetUserId'], resourceType: !exists(json, 'resourceType') ? undefined : json['resourceType'], resourceId: !exists(json, 'resourceId') ? undefined : json['resourceId'], outcome: !exists(json, 'outcome') ? undefined : json['outcome'], requestId: !exists(json, 'requestId') ? undefined : json['requestId'], ipAddress: !exists(json, 'ipAddress') ? undefined : json['ipAddress'], eventId: !exists(json, 'eventId') ? undefined : json['eventId'], pageSize: !exists(json, 'pageSize') ? undefined : json['pageSize'], cursor: !exists(json, 'cursor') ? undefined : json['cursor'], }; } export function AuditLogSearchOptionsToJSON( value?: AuditLogSearchOptions | null ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { since: value.since === undefined ? undefined : value.since.toISOString(), before: value.before === undefined ? undefined : value.before.toISOString(), action: value.action, userId: value.userId, actorUserId: value.actorUserId, targetUserId: value.targetUserId, resourceType: value.resourceType, resourceId: value.resourceId, outcome: value.outcome, requestId: value.requestId, ipAddress: value.ipAddress, eventId: value.eventId, pageSize: value.pageSize, cursor: value.cursor, }; }