UNPKG

@vectorize-io/vectorize-client

Version:
101 lines (90 loc) 2.5 kB
/* tslint:disable */ /* eslint-disable */ /** * Vectorize API (Beta) * API for Vectorize services * * The version of the OpenAPI document: 0.0.1 * * * 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 PipelineEvents */ export interface PipelineEvents { /** * * @type {string} * @memberof PipelineEvents */ id: string; /** * * @type {string} * @memberof PipelineEvents */ type: string; /** * * @type {string} * @memberof PipelineEvents */ timestamp: string | null; /** * * @type {{ [key: string]: any | null; }} * @memberof PipelineEvents */ details?: { [key: string]: any | null; }; /** * * @type {{ [key: string]: any | null; }} * @memberof PipelineEvents */ summary?: { [key: string]: any | null; }; } /** * Check if a given object implements the PipelineEvents interface. */ export function instanceOfPipelineEvents(value: object): value is PipelineEvents { if (!('id' in value) || value['id'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; if (!('timestamp' in value) || value['timestamp'] === undefined) return false; return true; } export function PipelineEventsFromJSON(json: any): PipelineEvents { return PipelineEventsFromJSONTyped(json, false); } export function PipelineEventsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PipelineEvents { if (json == null) { return json; } return { 'id': json['id'], 'type': json['type'], 'timestamp': json['timestamp'], 'details': json['details'] == null ? undefined : json['details'], 'summary': json['summary'] == null ? undefined : json['summary'], }; } export function PipelineEventsToJSON(json: any): PipelineEvents { return PipelineEventsToJSONTyped(json, false); } export function PipelineEventsToJSONTyped(value?: PipelineEvents | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'id': value['id'], 'type': value['type'], 'timestamp': value['timestamp'], 'details': value['details'], 'summary': value['summary'], }; }