UNPKG

ravendb

Version:
62 lines 2.79 kB
import { AttachmentName, AttachmentData } from "../Attachments/index.js"; export interface IAttachmentsSessionOperationsBase { /** * Returns the attachments info of a document. */ getNames(entity: object): AttachmentName[]; /** * Stores attachment to be sent in the session. */ store(documentId: string, name: string, stream: AttachmentData): void; /** * Stores attachment to be sent in the session. */ store(documentId: string, name: string, stream: AttachmentData, contentType: string): void; /** * Stores attachment to be sent in the session. */ store(entity: object, name: string, stream: AttachmentData): void; /** * Stores attachment to be sent in the session. */ store(entity: object, name: string, stream: AttachmentData, contentType: string): void; /** * Marks the specified document's attachment for deletion. The attachment will be deleted when * saveChanges is called. */ delete(documentId: string, name: string): void; /** * Marks the specified document's attachment for deletion. The attachment will be deleted when * saveChanges is called. */ delete(entity: object, name: string): void; /** * Marks the specified document's attachment for rename. The attachment will be renamed when saveChanges is called. */ rename(documentId: string, name: string, newName: string): void; /** * Marks the specified document's attachment for rename. The attachment will be renamed when saveChanges is called. */ rename(entity: object, name: string, newName: string): void; /** * Moves specified source document attachment to destination document. * The operation will be executed when saveChanges is called. */ move(sourceEntity: object, sourceName: string, destinationEntity: object, destinationName: string): void; /** * Moves specified source document attachment to destination document. * The operation will be executed when saveChanges is called. */ move(sourceDocumentId: string, sourceName: string, destinationDocumentId: string, destinationName: string): void; /** * Copies specified source document attachment to destination document. * The operation will be executed when saveChanges is called. */ copy(sourceDocumentId: string, sourceName: string, destinationDocumentId: string, destinationName: string): void; /** * Copies specified source document attachment to destination document. * The operation will be executed when saveChanges is called. */ copy(sourceEntity: object, sourceName: string, destinationEntity: object, destinationName: string): void; } //# sourceMappingURL=IAttachmentsSessionOperationsBase.d.ts.map