@event-driven-io/pongo 0.17.0-beta.34 → 0.17.0-beta.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/dist/cli.cjs +311 -494
  2. package/dist/cli.cjs.map +1 -1
  3. package/dist/cli.d.cts +4 -4
  4. package/dist/cli.d.ts +4 -3
  5. package/dist/cli.js +279 -494
  6. package/dist/cli.js.map +1 -1
  7. package/dist/cloudflare.cjs +36 -48
  8. package/dist/cloudflare.cjs.map +1 -1
  9. package/dist/cloudflare.d.cts +7 -7
  10. package/dist/cloudflare.d.ts +7 -7
  11. package/dist/cloudflare.js +29 -47
  12. package/dist/cloudflare.js.map +1 -1
  13. package/dist/core-CwxxuUAn.cjs +1590 -0
  14. package/dist/core-CwxxuUAn.cjs.map +1 -0
  15. package/dist/core-D_iZiiYe.js +1308 -0
  16. package/dist/core-D_iZiiYe.js.map +1 -0
  17. package/dist/core-DwoTLYbR.cjs +319 -0
  18. package/dist/core-DwoTLYbR.cjs.map +1 -0
  19. package/dist/core-fsJmsQDa.js +307 -0
  20. package/dist/core-fsJmsQDa.js.map +1 -0
  21. package/dist/index-DMq6F3x9.d.ts +705 -0
  22. package/dist/index-Du_IHXAj.d.ts +10 -0
  23. package/dist/index-ZKOB86ub.d.cts +10 -0
  24. package/dist/index-qeC-p0Tq.d.cts +705 -0
  25. package/dist/index.cjs +61 -118
  26. package/dist/index.cjs.map +1 -1
  27. package/dist/index.d.cts +11 -130
  28. package/dist/index.d.ts +11 -130
  29. package/dist/index.js +14 -119
  30. package/dist/index.js.map +1 -1
  31. package/dist/pg.cjs +214 -320
  32. package/dist/pg.cjs.map +1 -1
  33. package/dist/pg.d.cts +24 -22
  34. package/dist/pg.d.ts +24 -22
  35. package/dist/pg.js +209 -321
  36. package/dist/pg.js.map +1 -1
  37. package/dist/shim.cjs +281 -367
  38. package/dist/shim.cjs.map +1 -1
  39. package/dist/shim.d.cts +140 -137
  40. package/dist/shim.d.ts +140 -137
  41. package/dist/shim.js +275 -366
  42. package/dist/shim.js.map +1 -1
  43. package/dist/sqlite3.cjs +41 -56
  44. package/dist/sqlite3.cjs.map +1 -1
  45. package/dist/sqlite3.d.cts +9 -9
  46. package/dist/sqlite3.d.ts +9 -9
  47. package/dist/sqlite3.js +35 -56
  48. package/dist/sqlite3.js.map +1 -1
  49. package/package.json +15 -15
  50. package/dist/chunk-OJVG4KXA.js +0 -399
  51. package/dist/chunk-OJVG4KXA.js.map +0 -1
  52. package/dist/chunk-TYTEQJBC.cjs +0 -1583
  53. package/dist/chunk-TYTEQJBC.cjs.map +0 -1
  54. package/dist/chunk-U4NNEXNH.js +0 -1583
  55. package/dist/chunk-U4NNEXNH.js.map +0 -1
  56. package/dist/chunk-UP6HTRMM.cjs +0 -399
  57. package/dist/chunk-UP6HTRMM.cjs.map +0 -1
  58. package/dist/index-DHszkVjP.d.ts +0 -8
  59. package/dist/index-DLDCIBgH.d.cts +0 -8
  60. package/dist/pongoTransactionCache-BsigBOq1.d.cts +0 -556
  61. package/dist/pongoTransactionCache-BsigBOq1.d.ts +0 -556
package/dist/shim.d.ts CHANGED
@@ -1,147 +1,150 @@
1
- import { ClientSessionOptions } from 'http2';
2
- import { Document, Collection as Collection$1, ObjectId, ClientSession, WithSessionCallback, Db as Db$1, ReadConcern, ReadPreference, BSONSerializeOptions, WriteConcern, Hint, OptionalUnlessRequiredId, InsertOneOptions, InsertOneResult, BulkWriteOptions, InsertManyResult, AnyBulkWriteOperation, BulkWriteResult, Filter, UpdateFilter, UpdateOptions, UpdateResult, WithoutId, ReplaceOptions, DeleteOptions, DeleteResult, RenameOptions, DropCollectionOptions, WithId, FindOptions, FindCursor as FindCursor$1, OperationOptions, IndexSpecification, CreateIndexesOptions, IndexDescription, CommandOperationOptions, AbstractCursorOptions, ListIndexesCursor, IndexInformationOptions, IndexDescriptionInfo, IndexDescriptionCompact, EstimatedDocumentCountOptions, CountDocumentsOptions, EnhancedOmit, Flatten, FindOneAndDeleteOptions, ModifyResult, FindOneAndReplaceOptions, FindOneAndUpdateOptions, AggregateOptions, AggregationCursor, ChangeStreamDocument, ChangeStreamOptions, ChangeStream, UnorderedBulkOperation, OrderedBulkOperation, CountOptions, ListSearchIndexesOptions, ListSearchIndexesCursor, SearchIndexDescription } from 'mongodb';
3
- import { a as PongoDb, ao as PongoDBCollectionOptions, T as DocumentHandler, _ as HandleOptions, aB as PongoHandleResult, o as AnyPongoDriver, j as PongoClientSchema, p as PongoClientOptions, g as PongoCollection } from './pongoTransactionCache-BsigBOq1.js';
4
- import '@event-driven-io/dumbo';
5
- import 'lru-cache';
1
+ import { G as DocumentHandler, Xt as AnyPongoDriver, Z as HandleOptions, fn as PongoClientSchema, gt as PongoDb, ht as PongoDBCollectionOptions, mt as PongoCollection, pt as PongoClientOptions, wt as PongoHandleResult } from "./index-DMq6F3x9.js";
2
+ import { ClientSessionOptions } from "http2";
3
+ import { AbstractCursorOptions, AggregateOptions, AggregationCursor, AnyBulkWriteOperation, BSONSerializeOptions, BulkWriteOptions, BulkWriteResult, ChangeStream, ChangeStreamDocument, ChangeStreamOptions, ClientSession, Collection as Collection$1, CommandOperationOptions, CountDocumentsOptions, CountOptions, CreateIndexesOptions, Db as Db$1, DeleteOptions, DeleteResult, Document, DropCollectionOptions, EnhancedOmit, EstimatedDocumentCountOptions, Filter, FindCursor as FindCursor$1, FindOneAndDeleteOptions, FindOneAndReplaceOptions, FindOneAndUpdateOptions, FindOptions, Flatten, Hint, IndexDescription, IndexDescriptionCompact, IndexDescriptionInfo, IndexInformationOptions, IndexSpecification, InsertManyResult, InsertOneOptions, InsertOneResult, ListIndexesCursor, ListSearchIndexesCursor, ListSearchIndexesOptions, ModifyResult, ObjectId, OperationOptions, OptionalUnlessRequiredId, OrderedBulkOperation, ReadConcern, ReadPreference, RenameOptions, ReplaceOptions, SearchIndexDescription, UnorderedBulkOperation, UpdateFilter, UpdateOptions, UpdateResult, WithId, WithSessionCallback, WithoutId, WriteConcern } from "mongodb";
6
4
 
5
+ //#region src/mongo/findCursor.d.ts
7
6
  declare class FindCursor<T> {
8
- private findDocumentsPromise;
9
- private documents;
10
- private index;
11
- constructor(documents: Promise<T[]>);
12
- toArray(): Promise<T[]>;
13
- forEach(callback: (doc: T) => void): Promise<void>;
14
- hasNext(): boolean;
15
- next(): Promise<T | null>;
16
- private findDocuments;
7
+ private findDocumentsPromise;
8
+ private documents;
9
+ private index;
10
+ constructor(documents: Promise<T[]>);
11
+ toArray(): Promise<T[]>;
12
+ forEach(callback: (doc: T) => void): Promise<void>;
13
+ hasNext(): boolean;
14
+ next(): Promise<T | null>;
15
+ private findDocuments;
17
16
  }
18
-
17
+ //#endregion
18
+ //#region src/mongo/mongoDb.d.ts
19
19
  declare class Db {
20
- private pongoDb;
21
- constructor(pongoDb: PongoDb);
22
- get databaseName(): string;
23
- collection<T extends Document>(collectionName: string, options?: PongoDBCollectionOptions<T>): Collection$1<T> & {
24
- handle(id: ObjectId, handle: DocumentHandler<T>, options?: HandleOptions): Promise<PongoHandleResult<T>>;
25
- };
20
+ private pongoDb;
21
+ constructor(pongoDb: PongoDb);
22
+ get databaseName(): string;
23
+ collection<T extends Document>(collectionName: string, options?: PongoDBCollectionOptions<T>): Collection$1<T> & {
24
+ handle(id: ObjectId, handle: DocumentHandler<T>, options?: HandleOptions): Promise<PongoHandleResult<T>>;
25
+ };
26
26
  }
27
-
27
+ //#endregion
28
+ //#region src/mongo/mongoClient.d.ts
28
29
  declare class MongoClient<DatabaseDriverType extends AnyPongoDriver = AnyPongoDriver, TypedClientSchema extends PongoClientSchema = PongoClientSchema> {
29
- private pongoClient;
30
- constructor(options: PongoClientOptions<DatabaseDriverType, TypedClientSchema>);
31
- constructor(connectionString: string, options?: Omit<PongoClientOptions<DatabaseDriverType, TypedClientSchema>, 'connectionString'> & {
32
- driver?: AnyPongoDriver;
33
- });
34
- connect(): Promise<this>;
35
- close(): Promise<void>;
36
- db(dbName?: string): Db;
37
- startSession(_options?: ClientSessionOptions): ClientSession;
38
- withSession<T = any>(_executor: WithSessionCallback<T>): Promise<T>;
39
- withSession<T = any>(_options: ClientSessionOptions, _executor: WithSessionCallback<T>): Promise<T>;
30
+ private pongoClient;
31
+ constructor(options: PongoClientOptions<DatabaseDriverType, TypedClientSchema>);
32
+ constructor(connectionString: string, options?: Omit<PongoClientOptions<DatabaseDriverType, TypedClientSchema>, 'connectionString'> & {
33
+ driver?: AnyPongoDriver;
34
+ });
35
+ connect(): Promise<this>;
36
+ close(): Promise<void>;
37
+ db(dbName?: string): Db;
38
+ startSession(_options?: ClientSessionOptions): ClientSession;
39
+ withSession<T = any>(_executor: WithSessionCallback<T>): Promise<T>;
40
+ withSession<T = any>(_options: ClientSessionOptions, _executor: WithSessionCallback<T>): Promise<T>;
40
41
  }
41
-
42
+ //#endregion
43
+ //#region src/mongo/mongoCollection.d.ts
42
44
  declare class Collection<T extends Document> implements Collection$1<T> {
43
- private collection;
44
- private database;
45
- constructor(database: Db, collection: PongoCollection<T>);
46
- get db(): Db$1;
47
- get dbName(): string;
48
- get collectionName(): string;
49
- get namespace(): string;
50
- get readConcern(): ReadConcern | undefined;
51
- get readPreference(): ReadPreference | undefined;
52
- get bsonOptions(): BSONSerializeOptions;
53
- get writeConcern(): WriteConcern | undefined;
54
- get hint(): Hint | undefined;
55
- get timeoutMS(): number | undefined;
56
- set hint(v: Hint | undefined);
57
- insertOne(doc: OptionalUnlessRequiredId<T>, options?: InsertOneOptions): Promise<InsertOneResult<T>>;
58
- insertMany(docs: OptionalUnlessRequiredId<T>[], options?: BulkWriteOptions): Promise<InsertManyResult<T>>;
59
- bulkWrite(_operations: AnyBulkWriteOperation<T>[], _options?: BulkWriteOptions): Promise<BulkWriteResult>;
60
- updateOne(filter: Filter<T>, update: Document[] | UpdateFilter<T>, options?: UpdateOptions): Promise<UpdateResult<T>>;
61
- replaceOne(filter: Filter<T>, document: WithoutId<T>, options?: ReplaceOptions): Promise<UpdateResult<T>>;
62
- updateMany(filter: Filter<T>, update: Document[] | UpdateFilter<T>, options?: UpdateOptions): Promise<UpdateResult<T>>;
63
- deleteOne(filter?: Filter<T>, options?: DeleteOptions): Promise<DeleteResult>;
64
- deleteMany(filter?: Filter<T>, options?: DeleteOptions): Promise<DeleteResult>;
65
- rename(newName: string, options?: RenameOptions): Promise<Collection<Document>>;
66
- drop(options?: DropCollectionOptions): Promise<boolean>;
67
- findOne(): Promise<WithId<T> | null>;
68
- findOne(filter: Filter<T>): Promise<WithId<T> | null>;
69
- findOne(filter: Filter<T>, options: FindOptions): Promise<WithId<T> | null>;
70
- findOne<TS = T>(): Promise<TS | null>;
71
- findOne<TS = T>(filter: Filter<TS>): Promise<TS | null>;
72
- findOne<TS = T>(filter: Filter<TS>, options?: FindOptions): Promise<TS | null>;
73
- find(): FindCursor$1<WithId<T>>;
74
- find(filter: Filter<T>, options?: FindOptions): FindCursor$1<WithId<T>>;
75
- find<T extends Document>(filter: Filter<T>, options?: FindOptions): FindCursor$1<T>;
76
- options(_options?: OperationOptions): Promise<Document>;
77
- isCapped(_options?: OperationOptions): Promise<boolean>;
78
- createIndex(_indexSpec: IndexSpecification, _options?: CreateIndexesOptions): Promise<string>;
79
- createIndexes(_indexSpecs: IndexDescription[], _options?: CreateIndexesOptions): Promise<string[]>;
80
- dropIndex(_indexName: string, _options?: CommandOperationOptions): Promise<Document>;
81
- dropIndexes(_options?: CommandOperationOptions): Promise<boolean>;
82
- listIndexes(_options?: AbstractCursorOptions): ListIndexesCursor;
83
- indexExists(_indexes: string | string[], _options?: AbstractCursorOptions): Promise<boolean>;
84
- indexInformation(options: IndexInformationOptions & {
85
- full: true;
86
- }): Promise<IndexDescriptionInfo[]>;
87
- indexInformation(options: IndexInformationOptions & {
88
- full?: false | undefined;
89
- }): Promise<IndexDescriptionCompact>;
90
- indexInformation(options: IndexInformationOptions): Promise<IndexDescriptionCompact | IndexDescriptionInfo[]>;
91
- indexInformation(): Promise<IndexDescriptionCompact>;
92
- estimatedDocumentCount(options?: EstimatedDocumentCountOptions): Promise<number>;
93
- countDocuments(filter?: Filter<T>, options?: CountDocumentsOptions): Promise<number>;
94
- distinct<Key extends '_id' | keyof EnhancedOmit<T, '_id'>>(key: Key): Promise<Flatten<WithId<T>[Key]>[]>;
95
- distinct<Key extends '_id' | keyof EnhancedOmit<T, '_id'>>(key: Key, filter: Filter<T>): Promise<Flatten<WithId<T>[Key]>[]>;
96
- distinct<Key extends '_id' | keyof EnhancedOmit<T, '_id'>>(key: Key, filter: Filter<T>, options: CommandOperationOptions): Promise<Flatten<WithId<T>[Key]>[]>;
97
- distinct(key: string): Promise<any[]>;
98
- distinct(key: string, filter: Filter<T>): Promise<any[]>;
99
- distinct(key: string, filter: Filter<T>, options: CommandOperationOptions): Promise<any[]>;
100
- indexes(options: IndexInformationOptions & {
101
- full?: true | undefined;
102
- }): Promise<IndexDescriptionInfo[]>;
103
- indexes(options: IndexInformationOptions & {
104
- full: false;
105
- }): Promise<IndexDescriptionCompact>;
106
- indexes(options: IndexInformationOptions): Promise<IndexDescriptionCompact | IndexDescriptionInfo[]>;
107
- indexes(options?: AbstractCursorOptions): Promise<IndexDescriptionInfo[]>;
108
- findOneAndDelete(filter: Filter<T>, options: FindOneAndDeleteOptions & {
109
- includeResultMetadata: true;
110
- }): Promise<ModifyResult<T>>;
111
- findOneAndDelete(filter: Filter<T>, options: FindOneAndDeleteOptions & {
112
- includeResultMetadata: false;
113
- }): Promise<WithId<T> | null>;
114
- findOneAndDelete(filter: Filter<T>, options: FindOneAndDeleteOptions): Promise<WithId<T> | null>;
115
- findOneAndDelete(filter: Filter<T>): Promise<WithId<T> | null>;
116
- findOneAndReplace(filter: Filter<T>, replacement: WithoutId<T>, options: FindOneAndReplaceOptions & {
117
- includeResultMetadata: true;
118
- }): Promise<ModifyResult<T>>;
119
- findOneAndReplace(filter: Filter<T>, replacement: WithoutId<T>, options: FindOneAndReplaceOptions & {
120
- includeResultMetadata: false;
121
- }): Promise<WithId<T> | null>;
122
- findOneAndReplace(filter: Filter<T>, replacement: WithoutId<T>, options: FindOneAndReplaceOptions): Promise<WithId<T> | null>;
123
- findOneAndReplace(filter: Filter<T>, replacement: WithoutId<T>): Promise<WithId<T> | null>;
124
- findOneAndUpdate(filter: Filter<T>, update: UpdateFilter<T>, options: FindOneAndUpdateOptions & {
125
- includeResultMetadata: true;
126
- }): Promise<ModifyResult<T>>;
127
- findOneAndUpdate(filter: Filter<T>, update: UpdateFilter<T>, options: FindOneAndUpdateOptions & {
128
- includeResultMetadata: false;
129
- }): Promise<WithId<T> | null>;
130
- findOneAndUpdate(filter: Filter<T>, update: UpdateFilter<T>, options: FindOneAndUpdateOptions): Promise<WithId<T> | null>;
131
- findOneAndUpdate(filter: Filter<T>, update: UpdateFilter<T>): Promise<WithId<T> | null>;
132
- aggregate<T extends Document = Document>(_pipeline?: Document[], _options?: AggregateOptions): AggregationCursor<T>;
133
- watch<TLocal extends Document = T, TChange extends Document = ChangeStreamDocument<TLocal>>(_pipeline?: Document[], _options?: ChangeStreamOptions): ChangeStream<TLocal, TChange>;
134
- initializeUnorderedBulkOp(_options?: BulkWriteOptions): UnorderedBulkOperation;
135
- initializeOrderedBulkOp(_options?: BulkWriteOptions): OrderedBulkOperation;
136
- count(filter?: Filter<T>, options?: CountOptions): Promise<number>;
137
- listSearchIndexes(options?: ListSearchIndexesOptions): ListSearchIndexesCursor;
138
- listSearchIndexes(name: string, options?: ListSearchIndexesOptions): ListSearchIndexesCursor;
139
- createSearchIndex(_description: SearchIndexDescription): Promise<string>;
140
- createSearchIndexes(_descriptions: SearchIndexDescription[]): Promise<string[]>;
141
- dropSearchIndex(_name: string): Promise<void>;
142
- updateSearchIndex(_name: string, _definition: Document): Promise<void>;
143
- createCollection(): Promise<void>;
144
- handle(id: ObjectId, handle: DocumentHandler<T>, options?: HandleOptions): Promise<PongoHandleResult<T>>;
45
+ private collection;
46
+ private database;
47
+ constructor(database: Db, collection: PongoCollection<T>);
48
+ get db(): Db$1;
49
+ get dbName(): string;
50
+ get collectionName(): string;
51
+ get namespace(): string;
52
+ get readConcern(): ReadConcern | undefined;
53
+ get readPreference(): ReadPreference | undefined;
54
+ get bsonOptions(): BSONSerializeOptions;
55
+ get writeConcern(): WriteConcern | undefined;
56
+ get hint(): Hint | undefined;
57
+ get timeoutMS(): number | undefined;
58
+ set hint(v: Hint | undefined);
59
+ insertOne(doc: OptionalUnlessRequiredId<T>, options?: InsertOneOptions): Promise<InsertOneResult<T>>;
60
+ insertMany(docs: OptionalUnlessRequiredId<T>[], options?: BulkWriteOptions): Promise<InsertManyResult<T>>;
61
+ bulkWrite(_operations: AnyBulkWriteOperation<T>[], _options?: BulkWriteOptions): Promise<BulkWriteResult>;
62
+ updateOne(filter: Filter<T>, update: Document[] | UpdateFilter<T>, options?: UpdateOptions): Promise<UpdateResult<T>>;
63
+ replaceOne(filter: Filter<T>, document: WithoutId<T>, options?: ReplaceOptions): Promise<UpdateResult<T>>;
64
+ updateMany(filter: Filter<T>, update: Document[] | UpdateFilter<T>, options?: UpdateOptions): Promise<UpdateResult<T>>;
65
+ deleteOne(filter?: Filter<T>, options?: DeleteOptions): Promise<DeleteResult>;
66
+ deleteMany(filter?: Filter<T>, options?: DeleteOptions): Promise<DeleteResult>;
67
+ rename(newName: string, options?: RenameOptions): Promise<Collection<Document>>;
68
+ drop(options?: DropCollectionOptions): Promise<boolean>;
69
+ findOne(): Promise<WithId<T> | null>;
70
+ findOne(filter: Filter<T>): Promise<WithId<T> | null>;
71
+ findOne(filter: Filter<T>, options: FindOptions): Promise<WithId<T> | null>;
72
+ findOne<TS = T>(): Promise<TS | null>;
73
+ findOne<TS = T>(filter: Filter<TS>): Promise<TS | null>;
74
+ findOne<TS = T>(filter: Filter<TS>, options?: FindOptions): Promise<TS | null>;
75
+ find(): FindCursor$1<WithId<T>>;
76
+ find(filter: Filter<T>, options?: FindOptions): FindCursor$1<WithId<T>>;
77
+ find<T extends Document>(filter: Filter<T>, options?: FindOptions): FindCursor$1<T>;
78
+ options(_options?: OperationOptions): Promise<Document>;
79
+ isCapped(_options?: OperationOptions): Promise<boolean>;
80
+ createIndex(_indexSpec: IndexSpecification, _options?: CreateIndexesOptions): Promise<string>;
81
+ createIndexes(_indexSpecs: IndexDescription[], _options?: CreateIndexesOptions): Promise<string[]>;
82
+ dropIndex(_indexName: string, _options?: CommandOperationOptions): Promise<Document>;
83
+ dropIndexes(_options?: CommandOperationOptions): Promise<boolean>;
84
+ listIndexes(_options?: AbstractCursorOptions): ListIndexesCursor;
85
+ indexExists(_indexes: string | string[], _options?: AbstractCursorOptions): Promise<boolean>;
86
+ indexInformation(options: IndexInformationOptions & {
87
+ full: true;
88
+ }): Promise<IndexDescriptionInfo[]>;
89
+ indexInformation(options: IndexInformationOptions & {
90
+ full?: false | undefined;
91
+ }): Promise<IndexDescriptionCompact>;
92
+ indexInformation(options: IndexInformationOptions): Promise<IndexDescriptionCompact | IndexDescriptionInfo[]>;
93
+ indexInformation(): Promise<IndexDescriptionCompact>;
94
+ estimatedDocumentCount(options?: EstimatedDocumentCountOptions): Promise<number>;
95
+ countDocuments(filter?: Filter<T>, options?: CountDocumentsOptions): Promise<number>;
96
+ distinct<Key extends '_id' | keyof EnhancedOmit<T, '_id'>>(key: Key): Promise<Flatten<WithId<T>[Key]>[]>;
97
+ distinct<Key extends '_id' | keyof EnhancedOmit<T, '_id'>>(key: Key, filter: Filter<T>): Promise<Flatten<WithId<T>[Key]>[]>;
98
+ distinct<Key extends '_id' | keyof EnhancedOmit<T, '_id'>>(key: Key, filter: Filter<T>, options: CommandOperationOptions): Promise<Flatten<WithId<T>[Key]>[]>;
99
+ distinct(key: string): Promise<any[]>;
100
+ distinct(key: string, filter: Filter<T>): Promise<any[]>;
101
+ distinct(key: string, filter: Filter<T>, options: CommandOperationOptions): Promise<any[]>;
102
+ indexes(options: IndexInformationOptions & {
103
+ full?: true | undefined;
104
+ }): Promise<IndexDescriptionInfo[]>;
105
+ indexes(options: IndexInformationOptions & {
106
+ full: false;
107
+ }): Promise<IndexDescriptionCompact>;
108
+ indexes(options: IndexInformationOptions): Promise<IndexDescriptionCompact | IndexDescriptionInfo[]>;
109
+ indexes(options?: AbstractCursorOptions): Promise<IndexDescriptionInfo[]>;
110
+ findOneAndDelete(filter: Filter<T>, options: FindOneAndDeleteOptions & {
111
+ includeResultMetadata: true;
112
+ }): Promise<ModifyResult<T>>;
113
+ findOneAndDelete(filter: Filter<T>, options: FindOneAndDeleteOptions & {
114
+ includeResultMetadata: false;
115
+ }): Promise<WithId<T> | null>;
116
+ findOneAndDelete(filter: Filter<T>, options: FindOneAndDeleteOptions): Promise<WithId<T> | null>;
117
+ findOneAndDelete(filter: Filter<T>): Promise<WithId<T> | null>;
118
+ findOneAndReplace(filter: Filter<T>, replacement: WithoutId<T>, options: FindOneAndReplaceOptions & {
119
+ includeResultMetadata: true;
120
+ }): Promise<ModifyResult<T>>;
121
+ findOneAndReplace(filter: Filter<T>, replacement: WithoutId<T>, options: FindOneAndReplaceOptions & {
122
+ includeResultMetadata: false;
123
+ }): Promise<WithId<T> | null>;
124
+ findOneAndReplace(filter: Filter<T>, replacement: WithoutId<T>, options: FindOneAndReplaceOptions): Promise<WithId<T> | null>;
125
+ findOneAndReplace(filter: Filter<T>, replacement: WithoutId<T>): Promise<WithId<T> | null>;
126
+ findOneAndUpdate(filter: Filter<T>, update: UpdateFilter<T>, options: FindOneAndUpdateOptions & {
127
+ includeResultMetadata: true;
128
+ }): Promise<ModifyResult<T>>;
129
+ findOneAndUpdate(filter: Filter<T>, update: UpdateFilter<T>, options: FindOneAndUpdateOptions & {
130
+ includeResultMetadata: false;
131
+ }): Promise<WithId<T> | null>;
132
+ findOneAndUpdate(filter: Filter<T>, update: UpdateFilter<T>, options: FindOneAndUpdateOptions): Promise<WithId<T> | null>;
133
+ findOneAndUpdate(filter: Filter<T>, update: UpdateFilter<T>): Promise<WithId<T> | null>;
134
+ aggregate<T extends Document = Document>(_pipeline?: Document[], _options?: AggregateOptions): AggregationCursor<T>;
135
+ watch<TLocal extends Document = T, TChange extends Document = ChangeStreamDocument<TLocal>>(_pipeline?: Document[], _options?: ChangeStreamOptions): ChangeStream<TLocal, TChange>;
136
+ initializeUnorderedBulkOp(_options?: BulkWriteOptions): UnorderedBulkOperation;
137
+ initializeOrderedBulkOp(_options?: BulkWriteOptions): OrderedBulkOperation;
138
+ count(filter?: Filter<T>, options?: CountOptions): Promise<number>;
139
+ listSearchIndexes(options?: ListSearchIndexesOptions): ListSearchIndexesCursor;
140
+ listSearchIndexes(name: string, options?: ListSearchIndexesOptions): ListSearchIndexesCursor;
141
+ createSearchIndex(_description: SearchIndexDescription): Promise<string>;
142
+ createSearchIndexes(_descriptions: SearchIndexDescription[]): Promise<string[]>;
143
+ dropSearchIndex(_name: string): Promise<void>;
144
+ updateSearchIndex(_name: string, _definition: Document): Promise<void>;
145
+ createCollection(): Promise<void>;
146
+ handle(id: ObjectId, handle: DocumentHandler<T>, options?: HandleOptions): Promise<PongoHandleResult<T>>;
145
147
  }
146
-
148
+ //#endregion
147
149
  export { Collection, Db, FindCursor, MongoClient };
150
+ //# sourceMappingURL=shim.d.ts.map