UNPKG

@vectorize-io/vectorize-client

Version:
96 lines (95 loc) 3.97 kB
"use strict"; /* 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. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfPipelineListSummary = instanceOfPipelineListSummary; exports.PipelineListSummaryFromJSON = PipelineListSummaryFromJSON; exports.PipelineListSummaryFromJSONTyped = PipelineListSummaryFromJSONTyped; exports.PipelineListSummaryToJSON = PipelineListSummaryToJSON; exports.PipelineListSummaryToJSONTyped = PipelineListSummaryToJSONTyped; /** * Check if a given object implements the PipelineListSummary interface. */ function instanceOfPipelineListSummary(value) { if (!('id' in value) || value['id'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; if (!('documentCount' in value) || value['documentCount'] === undefined) return false; if (!('sourceConnectorAuthIds' in value) || value['sourceConnectorAuthIds'] === undefined) return false; if (!('destinationConnectorAuthIds' in value) || value['destinationConnectorAuthIds'] === undefined) return false; if (!('aiPlatformAuthIds' in value) || value['aiPlatformAuthIds'] === undefined) return false; if (!('sourceConnectorTypes' in value) || value['sourceConnectorTypes'] === undefined) return false; if (!('destinationConnectorTypes' in value) || value['destinationConnectorTypes'] === undefined) return false; if (!('aiPlatformTypes' in value) || value['aiPlatformTypes'] === undefined) return false; if (!('createdAt' in value) || value['createdAt'] === undefined) return false; if (!('createdBy' in value) || value['createdBy'] === undefined) return false; return true; } function PipelineListSummaryFromJSON(json) { return PipelineListSummaryFromJSONTyped(json, false); } function PipelineListSummaryFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'id': json['id'], 'name': json['name'], 'documentCount': json['documentCount'], 'sourceConnectorAuthIds': json['sourceConnectorAuthIds'], 'destinationConnectorAuthIds': json['destinationConnectorAuthIds'], 'aiPlatformAuthIds': json['aiPlatformAuthIds'], 'sourceConnectorTypes': json['sourceConnectorTypes'], 'destinationConnectorTypes': json['destinationConnectorTypes'], 'aiPlatformTypes': json['aiPlatformTypes'], 'createdAt': json['createdAt'], 'createdBy': json['createdBy'], 'status': json['status'] == null ? undefined : json['status'], 'configDoc': json['configDoc'] == null ? undefined : json['configDoc'], }; } function PipelineListSummaryToJSON(json) { return PipelineListSummaryToJSONTyped(json, false); } function PipelineListSummaryToJSONTyped(value, ignoreDiscriminator) { if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; } if (value == null) { return value; } return { 'id': value['id'], 'name': value['name'], 'documentCount': value['documentCount'], 'sourceConnectorAuthIds': value['sourceConnectorAuthIds'], 'destinationConnectorAuthIds': value['destinationConnectorAuthIds'], 'aiPlatformAuthIds': value['aiPlatformAuthIds'], 'sourceConnectorTypes': value['sourceConnectorTypes'], 'destinationConnectorTypes': value['destinationConnectorTypes'], 'aiPlatformTypes': value['aiPlatformTypes'], 'createdAt': value['createdAt'], 'createdBy': value['createdBy'], 'status': value['status'], 'configDoc': value['configDoc'], }; }