UNPKG

@firestore-emulator/server

Version:

This package is the implementation of the Firestore emulator. It is a Node.js

28 lines 3.21 kB
import type { Document } from "@firestore-emulator/proto/dist/google/firestore/v1/document"; import type { BatchGetDocumentsRequest, BatchWriteRequest, BatchWriteResponse, BeginTransactionRequest, CommitRequest, CreateDocumentRequest, DeleteDocumentRequest, GetDocumentRequest, ListCollectionIdsRequest, ListCollectionIdsResponse, ListDocumentsRequest, ListDocumentsResponse, ListenResponse, PartitionQueryRequest, PartitionQueryResponse, RollbackRequest, RunAggregationQueryRequest, RunQueryRequest, UpdateDocumentRequest, WriteRequest, WriteResponse } from "@firestore-emulator/proto/dist/google/firestore/v1/firestore"; import { BatchGetDocumentsResponse, BeginTransactionResponse, CommitResponse, ListenRequest, RunAggregationQueryResponse, RunQueryResponse, UnimplementedFirestoreService } from "@firestore-emulator/proto/dist/google/firestore/v1/firestore"; import { Empty } from "@firestore-emulator/proto/dist/google/protobuf/empty"; import type { ServerDuplexStream, ServerUnaryCall, ServerWritableStream, sendUnaryData, UntypedHandleCall } from "@grpc/grpc-js"; import type { FirestoreState } from "../../FirestoreState"; export declare class FirestoreServiceV1Impl extends UnimplementedFirestoreService { #private; constructor(state: FirestoreState); GetDocument(_call: ServerUnaryCall<GetDocumentRequest, Document>, _callback: sendUnaryData<Document>): void; ListDocuments(_call: ServerUnaryCall<ListDocumentsRequest, ListDocumentsResponse>, _callback: sendUnaryData<ListDocumentsResponse>): void; UpdateDocument(_call: ServerUnaryCall<UpdateDocumentRequest, Document>, _callback: sendUnaryData<Document>): void; DeleteDocument(_call: ServerUnaryCall<DeleteDocumentRequest, Empty>, _callback: sendUnaryData<Empty>): void; BatchGetDocuments(call: ServerWritableStream<BatchGetDocumentsRequest, BatchGetDocumentsResponse>): void; BeginTransaction(_call: ServerUnaryCall<BeginTransactionRequest, BeginTransactionResponse>, callback: sendUnaryData<BeginTransactionResponse>): void; Commit(call: ServerUnaryCall<CommitRequest, CommitResponse>, callback: sendUnaryData<CommitResponse>): void; Rollback(_call: ServerUnaryCall<RollbackRequest, Empty>, callback: sendUnaryData<Empty>): void; RunQuery(call: ServerWritableStream<RunQueryRequest, RunQueryResponse>): void; RunAggregationQuery(call: ServerWritableStream<RunAggregationQueryRequest, RunAggregationQueryResponse>): void; PartitionQuery(_call: ServerUnaryCall<PartitionQueryRequest, PartitionQueryResponse>, _callback: sendUnaryData<PartitionQueryResponse>): void; Write(_call: ServerDuplexStream<WriteRequest, WriteResponse>): void; Listen(call: ServerDuplexStream<ListenRequest, ListenResponse>): void; ListCollectionIds(_call: ServerUnaryCall<ListCollectionIdsRequest, ListCollectionIdsResponse>, _callback: sendUnaryData<ListCollectionIdsResponse>): void; BatchWrite(_call: ServerUnaryCall<BatchWriteRequest, BatchWriteResponse>, _callback: sendUnaryData<BatchWriteResponse>): void; CreateDocument(_call: ServerUnaryCall<CreateDocumentRequest, Document>, _callback: sendUnaryData<Document>): void; [name: string]: UntypedHandleCall; } //# sourceMappingURL=index.d.ts.map