@pinecone-database/pinecone
Version:
This is the official Node.js SDK for [Pinecone](https://www.pinecone.io), written in TypeScript.
51 lines • 1.61 kB
JavaScript
/* 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.UpsertRecordToJSON = exports.UpsertRecordFromJSONTyped = exports.UpsertRecordFromJSON = exports.instanceOfUpsertRecord = void 0;
/**
* Check if a given object implements the UpsertRecord interface.
*/
function instanceOfUpsertRecord(value) {
let isInstance = true;
isInstance = isInstance && "id" in value;
return isInstance;
}
exports.instanceOfUpsertRecord = instanceOfUpsertRecord;
function UpsertRecordFromJSON(json) {
return UpsertRecordFromJSONTyped(json, false);
}
exports.UpsertRecordFromJSON = UpsertRecordFromJSON;
function UpsertRecordFromJSONTyped(json, ignoreDiscriminator) {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'id': json['_id'],
};
}
exports.UpsertRecordFromJSONTyped = UpsertRecordFromJSONTyped;
function UpsertRecordToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'_id': value.id,
};
}
exports.UpsertRecordToJSON = UpsertRecordToJSON;
//# sourceMappingURL=UpsertRecord.js.map
;