/* tslint:disable */ /* eslint-disable */ /** * My API * API documentation for my Laravel app * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; /** * * @export * @interface SearchExternalApiLogsRequest */ export interface SearchExternalApiLogsRequest { /** * * @type {string} * @memberof SearchExternalApiLogsRequest */ search?: string | null; /** * * @type {string} * @memberof SearchExternalApiLogsRequest */ sortBy?: SearchExternalApiLogsRequestSortByEnum; /** * * @type {string} * @memberof SearchExternalApiLogsRequest */ sortDirection?: SearchExternalApiLogsRequestSortDirectionEnum; /** * * @type {number} * @memberof SearchExternalApiLogsRequest */ perPage?: number; /** * * @type {number} * @memberof SearchExternalApiLogsRequest */ page?: number; /** * * @type {Array} * @memberof SearchExternalApiLogsRequest */ provider?: Array; /** * * @type {Array} * @memberof SearchExternalApiLogsRequest */ responseCode?: Array; /** * * @type {Array} * @memberof SearchExternalApiLogsRequest */ httpMethod?: Array; /** * * @type {Array} * @memberof SearchExternalApiLogsRequest */ externalApiLoggableType?: Array; /** * * @type {Array} * @memberof SearchExternalApiLogsRequest */ externalApiLoggableId?: Array; /** * * @type {Array} * @memberof SearchExternalApiLogsRequest */ siteId?: Array; /** * * @type {Array} * @memberof SearchExternalApiLogsRequest */ productChildId?: Array; /** * * @type {Array} * @memberof SearchExternalApiLogsRequest */ productRegistrationId?: Array; /** * * @type {Array} * @memberof SearchExternalApiLogsRequest */ endpoint?: Array; /** * * @type {Date} * @memberof SearchExternalApiLogsRequest */ beforeCreatedAt?: Date; /** * * @type {Date} * @memberof SearchExternalApiLogsRequest */ afterCreatedAt?: Date; /** * * @type {number} * @memberof SearchExternalApiLogsRequest */ relatedId?: number; /** * * @type {string} * @memberof SearchExternalApiLogsRequest */ relatedType?: string; /** * * @type {boolean} * @memberof SearchExternalApiLogsRequest */ includesRelations?: boolean; } /** * @export */ export const SearchExternalApiLogsRequestSortByEnum = { Id: 'id', Provider: 'provider', HttpMethod: 'http_method', Endpoint: 'endpoint', ResponseCode: 'response_code', IsSuccess: 'is_success', CreatedAt: 'created_at', UpdatedAt: 'updated_at' } as const; export type SearchExternalApiLogsRequestSortByEnum = typeof SearchExternalApiLogsRequestSortByEnum[keyof typeof SearchExternalApiLogsRequestSortByEnum]; /** * @export */ export const SearchExternalApiLogsRequestSortDirectionEnum = { Asc: 'asc', Desc: 'desc' } as const; export type SearchExternalApiLogsRequestSortDirectionEnum = typeof SearchExternalApiLogsRequestSortDirectionEnum[keyof typeof SearchExternalApiLogsRequestSortDirectionEnum]; /** * Check if a given object implements the SearchExternalApiLogsRequest interface. */ export function instanceOfSearchExternalApiLogsRequest(value: object): value is SearchExternalApiLogsRequest { return true; } export function SearchExternalApiLogsRequestFromJSON(json: any): SearchExternalApiLogsRequest { return SearchExternalApiLogsRequestFromJSONTyped(json, false); } export function SearchExternalApiLogsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchExternalApiLogsRequest { if (json == null) { return json; } return { 'search': json['search'] == null ? undefined : json['search'], 'sortBy': json['sortBy'] == null ? undefined : json['sortBy'], 'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'], 'perPage': json['per_page'] == null ? undefined : json['per_page'], 'page': json['page'] == null ? undefined : json['page'], 'provider': json['provider'] == null ? undefined : json['provider'], 'responseCode': json['response_code'] == null ? undefined : json['response_code'], 'httpMethod': json['http_method'] == null ? undefined : json['http_method'], 'externalApiLoggableType': json['external_api_loggable_type'] == null ? undefined : json['external_api_loggable_type'], 'externalApiLoggableId': json['external_api_loggable_id'] == null ? undefined : json['external_api_loggable_id'], 'siteId': json['site_id'] == null ? undefined : json['site_id'], 'productChildId': json['product_child_id'] == null ? undefined : json['product_child_id'], 'productRegistrationId': json['product_registration_id'] == null ? undefined : json['product_registration_id'], 'endpoint': json['endpoint'] == null ? undefined : json['endpoint'], 'beforeCreatedAt': json['before_created_at'] == null ? undefined : (new Date(json['before_created_at'])), 'afterCreatedAt': json['after_created_at'] == null ? undefined : (new Date(json['after_created_at'])), 'relatedId': json['related_id'] == null ? undefined : json['related_id'], 'relatedType': json['related_type'] == null ? undefined : json['related_type'], 'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'], }; } export function SearchExternalApiLogsRequestToJSON(json: any): SearchExternalApiLogsRequest { return SearchExternalApiLogsRequestToJSONTyped(json, false); } export function SearchExternalApiLogsRequestToJSONTyped(value?: SearchExternalApiLogsRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'search': value['search'], 'sortBy': value['sortBy'], 'sortDirection': value['sortDirection'], 'per_page': value['perPage'], 'page': value['page'], 'provider': value['provider'], 'response_code': value['responseCode'], 'http_method': value['httpMethod'], 'external_api_loggable_type': value['externalApiLoggableType'], 'external_api_loggable_id': value['externalApiLoggableId'], 'site_id': value['siteId'], 'product_child_id': value['productChildId'], 'product_registration_id': value['productRegistrationId'], 'endpoint': value['endpoint'], 'before_created_at': value['beforeCreatedAt'] == null ? undefined : ((value['beforeCreatedAt']).toISOString()), 'after_created_at': value['afterCreatedAt'] == null ? undefined : ((value['afterCreatedAt']).toISOString()), 'related_id': value['relatedId'], 'related_type': value['relatedType'], 'includes_relations': value['includesRelations'], }; }