ravendb
Version:
RavenDB client for Node.js
33 lines • 1.81 kB
TypeScript
import { InMemoryDocumentSessionOperations } from "./InMemoryDocumentSessionOperations.js";
import { DocumentInfo } from "./DocumentInfo.js";
import { DocumentConventions } from "../Conventions/DocumentConventions.js";
import { DocumentType } from "../DocumentAbstractions.js";
import { ITypesAwareObjectMapper } from "../../Mapping/ObjectMapper.js";
export declare class EntityToJson {
private readonly _session;
/**
* All the listeners for this session
*/
constructor(session: InMemoryDocumentSessionOperations);
private _missingDictionary;
get missingDictionary(): Map<object, Map<string, object>>;
convertEntityToJson(entity: object, documentInfo: DocumentInfo): object;
private static _convertEntityToJsonInternal;
static convertEntityToJson(entity: object, conventions: DocumentConventions): object;
static convertEntityToJson(entity: object, conventions: DocumentConventions, documentInfo: DocumentInfo, removeIdentityProperty: boolean): object;
static nestedTypes: "@nested-object-types";
static ravenJsType: "Raven-Node-Type";
private static _writeMetadata;
/**
* Converts a json object to an entity.
*/
convertToEntity(targetEntityType: DocumentType, id: string, document: object, trackEntity: boolean): object;
private static _getEntityTypeInfoFromMetadata;
populateEntity(entity: object, id: string, document: object): void;
static populateEntity(entity: object, document: object, objectMapper: ITypesAwareObjectMapper): void;
private static _tryRemoveIdentityProperty;
static convertToEntity(entityClass: DocumentType, id: string, document: object, conventions: DocumentConventions): any;
removeFromMissing(entity: object): void;
clear(): void;
}
//# sourceMappingURL=EntityToJson.d.ts.map