import { KDocumentContentGeneric } from "./KDocument"; export type mCreateRequest = Array<{ /** * Document unique identifier */ _id?: string; /** * Document content */ body: Partial; }>; export type mCreateOrReplaceRequest = Array<{ /** * Document unique identifier */ _id: string; /** * Document content */ body: Partial; }>; export type mReplaceRequest = mCreateOrReplaceRequest; export type mUpdateRequest = mCreateOrReplaceRequest; export type mUpsertRequest = Array<{ /** * Document unique identifier */ _id: string; /** * Document partial changes */ changes: Partial; /** * Document fields to add to the "update" part if the document is created */ default?: Partial; }>; export type mDeleteRequest = string[];