weaviate-client
Version:
JS/TS client for Weaviate
34 lines (33 loc) • 1.35 kB
TypeScript
import Connection from '../connection/index.js';
import { Reference } from '../openapi/types.js';
import { BeaconPath } from '../utils/beaconPath.js';
import { CommandBase } from '../validation/commandBase.js';
import { ReferencesPath } from './path.js';
import { ConsistencyLevel } from './replication.js';
export default class ReferenceDeleter extends CommandBase {
private beaconPath;
private className;
private consistencyLevel?;
private id;
private reference;
private referencesPath;
private refProp;
private tenant?;
constructor(client: Connection, referencesPath: ReferencesPath, beaconPath: BeaconPath);
withId: (id: string) => this;
withClassName(className: string): this;
withReference: (ref: Reference) => this;
withReferenceProperty: (refProp: string) => this;
withConsistencyLevel: (cl: ConsistencyLevel) => this;
withTenant: (tenant: string) => this;
validateIsSet: (prop: string | undefined | null, name: string, setter: string) => void;
validate: () => void;
payload: () => {
class?: string;
schema?: import("../openapi/schema.js").definitions["PropertySchema"];
beacon?: string;
href?: string;
classification?: import("../openapi/schema.js").definitions["ReferenceMetaClassification"];
};
do: () => Promise<any>;
}