UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
75 lines (64 loc) 1.9 kB
/* tslint:disable */ /* eslint-disable */ /** * AskNews API * AskNews API [![status](https://status.asknews.app/api/badge/2/status?style=for-the-badge)](https://status.asknews.app/status/prod) * * The version of the OpenAPI document: 0.24.22 * Contact: contact@emergentmethods.ai * * 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 IndexUrlsResponse */ export interface IndexUrlsResponse { /** * * @type {string} * @memberof IndexUrlsResponse */ status: string; /** * * @type {string} * @memberof IndexUrlsResponse */ jobId?: string | null; } /** * Check if a given object implements the IndexUrlsResponse interface. */ export function instanceOfIndexUrlsResponse(value: object): value is IndexUrlsResponse { if (!('status' in value) || value['status'] === undefined) return false; return true; } export function IndexUrlsResponseFromJSON(json: any): IndexUrlsResponse { return IndexUrlsResponseFromJSONTyped(json, false); } export function IndexUrlsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexUrlsResponse { if (json == null) { return json; } return { 'status': json['status'], 'jobId': json['job_id'] == null ? undefined : json['job_id'], }; } export function IndexUrlsResponseToJSON(json: any): IndexUrlsResponse { return IndexUrlsResponseToJSONTyped(json, false); } export function IndexUrlsResponseToJSONTyped(value?: IndexUrlsResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'status': value['status'], 'job_id': value['jobId'], }; }