UNPKG

cosmos-db-repositories

Version:
33 lines (32 loc) 1.29 kB
import { Container, FeedOptions, SqlQuerySpec, UpsertOperationInput } from '@azure/cosmos'; export declare const mergeEntities: (entities: any, entity: any) => [{ id: string; }]; declare const _default: { get: (id: string, partitionKey: string) => Promise<any>; query: (querySpec: any, pageRequest: any) => Promise<{ pageIndex: any; rowsPerPage: any; totalItems: any; continuationToken: any; totalPages: number; content: any; map: (converter: any) => any; }>; save: (item: any) => Promise<any>; update: (updatedData: any) => Promise<any>; remove: (id: string, partitionKey: string, userId: string) => Promise<any>; markAsDeleted: (id: string, partitionKey: string, updatedBy: string) => Promise<any>; bulk: (operations: UpsertOperationInput[], chunkSize?: number) => Promise<{ total: number; imported: number; failed: any[]; duration: string; token: string; message: string; }>; nativeQuery: (query: string | SqlQuerySpec, options?: FeedOptions | undefined) => Promise<any[]>; updateEntityField: (fieldName: string, entity: any, settings: any) => Promise<string>; containerInstance: () => Promise<Container>; }; export default _default;