UNPKG

cosmos-db-repositories

Version:
28 lines (27 loc) 1 kB
import { Container, FeedOptions, SqlQuerySpec, UpsertOperationInput } from '@azure/cosmos'; 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) => 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[]>; containerInstance: () => Promise<Container>; }; export default _default;