UNPKG

@pinecone-database/pinecone

Version:

This is the official Node.js SDK for [Pinecone](https://www.pinecone.io), written in TypeScript.

51 lines 1.67 kB
"use strict"; /* tslint:disable */ /* eslint-disable */ /** * Pinecone Data Plane API * Pinecone is a vector database that makes it easy to search and retrieve billions of high-dimensional vectors. * * The version of the OpenAPI document: 2025-04 * Contact: support@pinecone.io * * 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.SearchVectorToJSON = exports.SearchVectorFromJSONTyped = exports.SearchVectorFromJSON = exports.instanceOfSearchVector = void 0; const runtime_1 = require("../runtime"); /** * Check if a given object implements the SearchVector interface. */ function instanceOfSearchVector(value) { let isInstance = true; return isInstance; } exports.instanceOfSearchVector = instanceOfSearchVector; function SearchVectorFromJSON(json) { return SearchVectorFromJSONTyped(json, false); } exports.SearchVectorFromJSON = SearchVectorFromJSON; function SearchVectorFromJSONTyped(json, ignoreDiscriminator) { if ((json === undefined) || (json === null)) { return json; } return { 'values': !(0, runtime_1.exists)(json, 'values') ? undefined : json['values'], }; } exports.SearchVectorFromJSONTyped = SearchVectorFromJSONTyped; function SearchVectorToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { 'values': value.values, }; } exports.SearchVectorToJSON = SearchVectorToJSON; //# sourceMappingURL=SearchVector.js.map