@event-driven-io/pongo 0.17.0-alpha.6 → 0.17.0-beta.1

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 (53) hide show
  1. package/dist/chunk-3KNMMQUV.cjs +362 -0
  2. package/dist/chunk-3KNMMQUV.cjs.map +1 -0
  3. package/dist/chunk-5LN762VW.js +362 -0
  4. package/dist/chunk-5LN762VW.js.map +1 -0
  5. package/dist/chunk-7W6X4QGY.cjs +10 -0
  6. package/dist/chunk-7W6X4QGY.cjs.map +1 -0
  7. package/dist/{chunk-OO7GMTMP.js → chunk-DL4E3N6J.js} +574 -873
  8. package/dist/chunk-DL4E3N6J.js.map +1 -0
  9. package/dist/chunk-IBJKZ6TS.js +10 -0
  10. package/dist/chunk-IBJKZ6TS.js.map +1 -0
  11. package/dist/chunk-YLV7YIPZ.cjs +876 -0
  12. package/dist/chunk-YLV7YIPZ.cjs.map +1 -0
  13. package/dist/cli.cjs +94 -35
  14. package/dist/cli.cjs.map +1 -1
  15. package/dist/cli.js +92 -33
  16. package/dist/cli.js.map +1 -1
  17. package/dist/index.cjs +3 -6
  18. package/dist/index.cjs.map +1 -1
  19. package/dist/index.d.cts +58 -18
  20. package/dist/index.d.ts +58 -18
  21. package/dist/index.js +14 -17
  22. package/dist/pg-WUYRNGST.js +11 -0
  23. package/dist/pg-WUYRNGST.js.map +1 -0
  24. package/dist/pg-XCWP4FAM.cjs +11 -0
  25. package/dist/pg-XCWP4FAM.cjs.map +1 -0
  26. package/dist/pg.cjs +4 -3
  27. package/dist/pg.cjs.map +1 -1
  28. package/dist/pg.d.cts +33 -6
  29. package/dist/pg.d.ts +33 -6
  30. package/dist/pg.js +10 -9
  31. package/dist/pongoCollectionSchemaComponent-BsHlVyN-.d.cts +422 -0
  32. package/dist/pongoCollectionSchemaComponent-BsHlVyN-.d.ts +422 -0
  33. package/dist/shim.cjs +38 -8
  34. package/dist/shim.cjs.map +1 -1
  35. package/dist/shim.d.cts +10 -8
  36. package/dist/shim.d.ts +10 -8
  37. package/dist/shim.js +35 -5
  38. package/dist/shim.js.map +1 -1
  39. package/dist/sqlite3.cjs +382 -1
  40. package/dist/sqlite3.cjs.map +1 -1
  41. package/dist/sqlite3.d.cts +12 -1
  42. package/dist/sqlite3.d.ts +12 -1
  43. package/dist/sqlite3.js +381 -0
  44. package/dist/sqlite3.js.map +1 -1
  45. package/package.json +20 -12
  46. package/README.md +0 -230
  47. package/dist/chunk-AV4SHJQB.cjs +0 -1175
  48. package/dist/chunk-AV4SHJQB.cjs.map +0 -1
  49. package/dist/chunk-OO7GMTMP.js.map +0 -1
  50. package/dist/pg-BfTNWLV9.d.ts +0 -39
  51. package/dist/pg-C9NmCQe7.d.cts +0 -39
  52. package/dist/pongoClient-D8jPedlZ.d.cts +0 -364
  53. package/dist/pongoClient-D8jPedlZ.d.ts +0 -364
@@ -1,364 +0,0 @@
1
- import { SchemaComponent, ConnectorType, DatabaseTransactionFactory, DatabaseTransaction, SQLExecutor, SQL, QueryResultRow, QueryResult, MigrationStyle } from '@event-driven-io/dumbo';
2
- import { PostgresConnector, NodePostgresConnection } from '@event-driven-io/dumbo/pg';
3
- import pg from 'pg';
4
- import { ConnectorType as ConnectorType$1 } from '@event-driven-io/dumbo/src';
5
-
6
- type PostgresDbClientOptions = PongoDbClientOptions<PostgresConnector>;
7
- declare const isPostgresClientOptions: (options: PongoDbClientOptions) => options is PostgresDbClientOptions;
8
- declare const postgresDb: (options: PostgresDbClientOptions) => PongoDb<PostgresConnector>;
9
- declare const pongoDbSchemaComponent: (collections: string[] | SchemaComponent[]) => SchemaComponent;
10
-
11
- interface PongoClient {
12
- connect(): Promise<this>;
13
- close(): Promise<void>;
14
- db(dbName?: string): PongoDb;
15
- startSession(): PongoSession;
16
- withSession<T = unknown>(callback: (session: PongoSession) => Promise<T>): Promise<T>;
17
- }
18
- declare interface PongoTransactionOptions {
19
- get snapshotEnabled(): boolean;
20
- maxCommitTimeMS?: number;
21
- }
22
- interface PongoDbTransaction {
23
- get databaseName(): string | null;
24
- options: PongoTransactionOptions;
25
- enlistDatabase: (database: PongoDb) => Promise<DatabaseTransaction>;
26
- commit: () => Promise<void>;
27
- rollback: (error?: unknown) => Promise<void>;
28
- get sqlExecutor(): SQLExecutor;
29
- get isStarting(): boolean;
30
- get isActive(): boolean;
31
- get isCommitted(): boolean;
32
- }
33
- interface PongoSession {
34
- hasEnded: boolean;
35
- explicit: boolean;
36
- defaultTransactionOptions: PongoTransactionOptions;
37
- transaction: PongoDbTransaction | null;
38
- get snapshotEnabled(): boolean;
39
- endSession(): Promise<void>;
40
- incrementTransactionNumber(): void;
41
- inTransaction(): boolean;
42
- startTransaction(options?: PongoTransactionOptions): void;
43
- commitTransaction(): Promise<void>;
44
- abortTransaction(): Promise<void>;
45
- withTransaction<T = unknown>(fn: (session: PongoSession) => Promise<T>, options?: PongoTransactionOptions): Promise<T>;
46
- }
47
- interface PongoDb<Connector extends ConnectorType = ConnectorType> extends DatabaseTransactionFactory<Connector> {
48
- get connector(): Connector;
49
- get databaseName(): string;
50
- connect(): Promise<void>;
51
- close(): Promise<void>;
52
- collection<T extends PongoDocument>(name: string): PongoCollection<T>;
53
- collections(): ReadonlyArray<PongoCollection<PongoDocument>>;
54
- readonly schema: Readonly<{
55
- component: SchemaComponent;
56
- migrate(): Promise<void>;
57
- }>;
58
- sql: {
59
- query<Result extends QueryResultRow = QueryResultRow>(sql: SQL, options?: CollectionOperationOptions): Promise<Result[]>;
60
- command<Result extends QueryResultRow = QueryResultRow>(sql: SQL, options?: CollectionOperationOptions): Promise<QueryResult<Result>>;
61
- };
62
- }
63
- type CollectionOperationOptions = {
64
- session?: PongoSession;
65
- };
66
- type InsertOneOptions = {
67
- expectedVersion?: Extract<ExpectedDocumentVersion, 'DOCUMENT_DOES_NOT_EXIST' | 'NO_CONCURRENCY_CHECK'>;
68
- } & CollectionOperationOptions;
69
- type InsertManyOptions = {
70
- expectedVersion?: Extract<ExpectedDocumentVersion, 'DOCUMENT_DOES_NOT_EXIST' | 'NO_CONCURRENCY_CHECK'>;
71
- } & CollectionOperationOptions;
72
- type UpdateOneOptions = {
73
- expectedVersion?: Exclude<ExpectedDocumentVersion, 'DOCUMENT_DOES_NOT_EXIST'>;
74
- } & CollectionOperationOptions;
75
- type UpdateManyOptions = {
76
- expectedVersion?: Extract<ExpectedDocumentVersion, 'DOCUMENT_EXISTS' | 'NO_CONCURRENCY_CHECK'>;
77
- } & CollectionOperationOptions;
78
- type HandleOptions = {
79
- expectedVersion?: ExpectedDocumentVersion;
80
- } & CollectionOperationOptions;
81
- type ReplaceOneOptions = {
82
- expectedVersion?: Exclude<ExpectedDocumentVersion, 'DOCUMENT_DOES_NOT_EXIST'>;
83
- } & CollectionOperationOptions;
84
- type DeleteOneOptions = {
85
- expectedVersion?: Exclude<ExpectedDocumentVersion, 'DOCUMENT_DOES_NOT_EXIST'>;
86
- } & CollectionOperationOptions;
87
- type DeleteManyOptions = {
88
- expectedVersion?: Extract<ExpectedDocumentVersion, 'DOCUMENT_EXISTS' | 'NO_CONCURRENCY_CHECK'>;
89
- } & CollectionOperationOptions;
90
- type FindOptions = {
91
- limit?: number;
92
- skip?: number;
93
- } & CollectionOperationOptions;
94
- interface PongoCollection<T extends PongoDocument> {
95
- readonly dbName: string;
96
- readonly collectionName: string;
97
- createCollection(options?: CollectionOperationOptions): Promise<void>;
98
- insertOne(document: OptionalUnlessRequiredId<T>, options?: InsertOneOptions): Promise<PongoInsertOneResult>;
99
- insertMany(documents: OptionalUnlessRequiredId<T>[], options?: CollectionOperationOptions): Promise<PongoInsertManyResult>;
100
- updateOne(filter: PongoFilter<T> | SQL, update: PongoUpdate<T> | SQL, options?: UpdateOneOptions): Promise<PongoUpdateResult>;
101
- replaceOne(filter: PongoFilter<T> | SQL, document: WithoutId<T>, options?: ReplaceOneOptions): Promise<PongoUpdateResult>;
102
- updateMany(filter: PongoFilter<T> | SQL, update: PongoUpdate<T> | SQL, options?: UpdateManyOptions): Promise<PongoUpdateManyResult>;
103
- deleteOne(filter?: PongoFilter<T> | SQL, options?: DeleteOneOptions): Promise<PongoDeleteResult>;
104
- deleteMany(filter?: PongoFilter<T> | SQL, options?: DeleteManyOptions): Promise<PongoDeleteResult>;
105
- findOne(filter?: PongoFilter<T> | SQL, options?: CollectionOperationOptions): Promise<WithIdAndVersion<T> | null>;
106
- find(filter?: PongoFilter<T> | SQL, options?: FindOptions): Promise<WithIdAndVersion<T>[]>;
107
- findOneAndDelete(filter: PongoFilter<T> | SQL, options?: DeleteOneOptions): Promise<WithIdAndVersion<T> | null>;
108
- findOneAndReplace(filter: PongoFilter<T> | SQL, replacement: WithoutId<T>, options?: ReplaceOneOptions): Promise<WithIdAndVersion<T> | null>;
109
- findOneAndUpdate(filter: PongoFilter<T> | SQL, update: PongoUpdate<T> | SQL, options?: UpdateOneOptions): Promise<WithIdAndVersion<T> | null>;
110
- countDocuments(filter?: PongoFilter<T> | SQL, options?: CollectionOperationOptions): Promise<number>;
111
- drop(options?: CollectionOperationOptions): Promise<boolean>;
112
- rename(newName: string, options?: CollectionOperationOptions): Promise<PongoCollection<T>>;
113
- handle(id: string, handle: DocumentHandler<T>, options?: HandleOptions): Promise<PongoHandleResult<T>>;
114
- readonly schema: Readonly<{
115
- component: SchemaComponent;
116
- migrate(): Promise<void>;
117
- }>;
118
- sql: {
119
- query<Result extends QueryResultRow = QueryResultRow>(sql: SQL, options?: CollectionOperationOptions): Promise<Result[]>;
120
- command<Result extends QueryResultRow = QueryResultRow>(sql: SQL, options?: CollectionOperationOptions): Promise<QueryResult<Result>>;
121
- };
122
- }
123
- type ObjectId = string & {
124
- __brandId: 'ObjectId';
125
- };
126
- declare const ObjectId: (value?: string) => string;
127
- type HasId = {
128
- _id: string;
129
- };
130
- declare type InferIdType<TSchema> = TSchema extends {
131
- _id: infer IdType;
132
- } ? Record<any, never> extends IdType ? never : IdType : TSchema extends {
133
- _id?: infer IdType;
134
- } ? unknown extends IdType ? ObjectId : IdType : ObjectId;
135
- /** TypeScript Omit (Exclude to be specific) does not work for objects with an "any" indexed type, and breaks discriminated unions @public */
136
- declare type EnhancedOmit<TRecordOrUnion, KeyUnion> = string extends keyof TRecordOrUnion ? TRecordOrUnion : TRecordOrUnion extends any ? Pick<TRecordOrUnion, Exclude<keyof TRecordOrUnion, KeyUnion>> : never;
137
- declare type OptionalUnlessRequiredId<TSchema> = TSchema extends {
138
- _id: string | ObjectId;
139
- } ? TSchema : OptionalId<TSchema>;
140
- declare type OptionalUnlessRequiredVersion<TSchema> = TSchema extends {
141
- _version: bigint;
142
- } ? TSchema : OptionalVersion<TSchema>;
143
- declare type OptionalUnlessRequiredIdAndVersion<TSchema> = OptionalUnlessRequiredId<TSchema> & OptionalUnlessRequiredVersion<TSchema>;
144
- declare type WithId<TSchema> = EnhancedOmit<TSchema, '_id'> & {
145
- _id: string | ObjectId;
146
- };
147
- type WithoutId<T> = Omit<T, '_id'>;
148
- declare type WithVersion<TSchema> = EnhancedOmit<TSchema, '_version'> & {
149
- _version: bigint;
150
- };
151
- type WithoutVersion<T> = Omit<T, '_version'>;
152
- type WithIdAndVersion<T> = WithId<WithVersion<T>>;
153
- type WithoutIdAndVersion<T> = WithoutId<WithoutVersion<T>>;
154
- /** @public */
155
- declare type RegExpOrString<T> = T extends string ? RegExp | T : T;
156
- declare interface Document {
157
- [key: string]: any;
158
- }
159
- declare type OptionalId<TSchema> = EnhancedOmit<TSchema, '_id'> & {
160
- _id?: string | ObjectId;
161
- };
162
- declare type OptionalVersion<TSchema> = EnhancedOmit<TSchema, '_version'> & {
163
- _version?: bigint;
164
- };
165
- declare interface ObjectIdLike {
166
- __id?: string | ObjectId;
167
- }
168
- declare type NonObjectIdLikeDocument = {
169
- [key in keyof ObjectIdLike]?: never;
170
- } & Document;
171
- declare type AlternativeType<T> = T extends ReadonlyArray<infer U> ? T | RegExpOrString<U> : RegExpOrString<T>;
172
- declare type Condition<T> = AlternativeType<T> | PongoFilterOperator<AlternativeType<T>>;
173
- declare type PongoFilter<TSchema> = {
174
- [P in keyof WithId<TSchema>]?: Condition<WithId<TSchema>[P]>;
175
- } | HasId;
176
- declare interface RootFilterOperators<TSchema> extends Document {
177
- $and?: PongoFilter<TSchema>[];
178
- $nor?: PongoFilter<TSchema>[];
179
- $or?: PongoFilter<TSchema>[];
180
- $text?: {
181
- $search: string;
182
- $language?: string;
183
- $caseSensitive?: boolean;
184
- $diacriticSensitive?: boolean;
185
- };
186
- $where?: string | ((this: TSchema) => boolean);
187
- $comment?: string | Document;
188
- }
189
- declare interface PongoFilterOperator<TValue> extends NonObjectIdLikeDocument {
190
- $eq?: TValue;
191
- $gt?: TValue;
192
- $gte?: TValue;
193
- $lt?: TValue;
194
- $lte?: TValue;
195
- $ne?: TValue;
196
- $in?: TValue[];
197
- $nin?: TValue[];
198
- }
199
- type $set<T> = Partial<T>;
200
- type $unset<T> = {
201
- [P in keyof T]?: '';
202
- };
203
- type $inc<T> = {
204
- [P in keyof T]?: number | bigint;
205
- };
206
- type $push<T> = {
207
- [P in keyof T]?: T[P];
208
- };
209
- type ExpectedDocumentVersionGeneral = 'DOCUMENT_EXISTS' | 'DOCUMENT_DOES_NOT_EXIST' | 'NO_CONCURRENCY_CHECK';
210
- type ExpectedDocumentVersionValue = bigint & {
211
- __brand: 'sql';
212
- };
213
- type ExpectedDocumentVersion = (bigint & {
214
- __brand: 'sql';
215
- }) | bigint | ExpectedDocumentVersionGeneral;
216
- declare const DOCUMENT_EXISTS: ExpectedDocumentVersionGeneral;
217
- declare const DOCUMENT_DOES_NOT_EXIST: ExpectedDocumentVersionGeneral;
218
- declare const NO_CONCURRENCY_CHECK: ExpectedDocumentVersionGeneral;
219
- declare const isGeneralExpectedDocumentVersion: (version: ExpectedDocumentVersion) => version is ExpectedDocumentVersionGeneral;
220
- declare const expectedVersionValue: (version: ExpectedDocumentVersion | undefined) => ExpectedDocumentVersionValue | null;
221
- declare const expectedVersion: (version: number | bigint | string | undefined | null) => ExpectedDocumentVersion;
222
- type PongoUpdate<T> = {
223
- $set?: Partial<T>;
224
- $unset?: $unset<T>;
225
- $inc?: $inc<T>;
226
- $push?: $push<T>;
227
- };
228
- type OperationResult = {
229
- acknowledged: boolean;
230
- successful: boolean;
231
- assertSuccessful: (errorMessage?: string) => void;
232
- };
233
- declare const operationResult: <T extends OperationResult>(result: Omit<T, "assertSuccess" | "acknowledged" | "assertSuccessful">, options: {
234
- operationName: string;
235
- collectionName: string;
236
- errors?: {
237
- throwOnOperationFailures?: boolean;
238
- } | undefined;
239
- }) => T;
240
- interface PongoInsertOneResult extends OperationResult {
241
- insertedId: string | null;
242
- nextExpectedVersion: bigint;
243
- }
244
- interface PongoInsertManyResult extends OperationResult {
245
- insertedIds: string[];
246
- insertedCount: number;
247
- }
248
- interface PongoUpdateResult extends OperationResult {
249
- matchedCount: number;
250
- modifiedCount: number;
251
- nextExpectedVersion: bigint;
252
- }
253
- interface PongoUpdateManyResult extends OperationResult {
254
- matchedCount: number;
255
- modifiedCount: number;
256
- }
257
- interface PongoDeleteResult extends OperationResult {
258
- matchedCount: number;
259
- deletedCount: number;
260
- }
261
- interface PongoDeleteManyResult extends OperationResult {
262
- deletedCount: number;
263
- }
264
- type PongoHandleResult<T> = (PongoInsertOneResult & {
265
- document: T;
266
- }) | (PongoUpdateResult & {
267
- document: T;
268
- }) | (PongoDeleteResult & {
269
- document: null;
270
- }) | (OperationResult & {
271
- document: null;
272
- });
273
- type PongoDocument = Record<string, unknown>;
274
- type DocumentHandler<T extends PongoDocument> = ((document: T | null) => T | null) | ((document: T | null) => Promise<T | null>);
275
-
276
- type PongoDbClientOptions<Connector extends ConnectorType$1 = ConnectorType$1> = {
277
- connector: Connector;
278
- connectionString: string;
279
- dbName: string | undefined;
280
- } & PongoClientOptions;
281
- type AllowedDbClientOptions = PostgresDbClientOptions;
282
- declare const getPongoDb: <DbClientOptions extends AllowedDbClientOptions = AllowedDbClientOptions>(options: DbClientOptions) => PongoDb;
283
-
284
- interface PongoCollectionSchema<T extends PongoDocument = PongoDocument> {
285
- name: string;
286
- }
287
- interface PongoDbSchema<T extends Record<string, PongoCollectionSchema> = Record<string, PongoCollectionSchema>> {
288
- name?: string;
289
- collections: T;
290
- }
291
- interface PongoClientSchema<T extends Record<string, PongoDbSchema> = Record<string, PongoDbSchema>> {
292
- dbs: T;
293
- }
294
- type CollectionsMap<T extends Record<string, PongoCollectionSchema>> = {
295
- [K in keyof T]: PongoCollection<T[K] extends PongoCollectionSchema<infer U> ? U : PongoDocument>;
296
- };
297
- type PongoDbWithSchema<T extends Record<string, PongoCollectionSchema>, Connector extends ConnectorType$1 = ConnectorType$1> = CollectionsMap<T> & PongoDb<Connector>;
298
- type DBsMap<T extends Record<string, PongoDbSchema>, Connector extends ConnectorType$1 = ConnectorType$1> = {
299
- [K in keyof T]: CollectionsMap<T[K]['collections']> & PongoDb<Connector>;
300
- };
301
- type PongoClientWithSchema<T extends PongoClientSchema, Connector extends ConnectorType$1 = ConnectorType$1> = DBsMap<T['dbs'], Connector> & PongoClient;
302
- declare function pongoDbSchema<T extends Record<string, PongoCollectionSchema>>(collections: T): PongoDbSchema<T>;
303
- declare function pongoDbSchema<T extends Record<string, PongoCollectionSchema>>(name: string, collections: T): PongoDbSchema<T>;
304
- declare const pongoSchema: {
305
- client: <T extends Record<string, PongoDbSchema>>(dbs: T) => PongoClientSchema<T>;
306
- db: typeof pongoDbSchema;
307
- collection: <T extends PongoDocument>(name: string) => PongoCollectionSchema<T>;
308
- };
309
- declare const proxyPongoDbWithSchema: <T extends Record<string, PongoCollectionSchema>, Connector extends ConnectorType$1 = ConnectorType$1>(pongoDb: PongoDb<Connector>, dbSchema: PongoDbSchema<T>, collections: Map<string, PongoCollection<Document>>) => PongoDbWithSchema<T, Connector>;
310
- declare const proxyClientWithSchema: <TypedClientSchema extends PongoClientSchema>(client: PongoClient, schema: TypedClientSchema | undefined) => PongoClientWithSchema<TypedClientSchema>;
311
- type PongoCollectionSchemaMetadata = {
312
- name: string;
313
- };
314
- type PongoDbSchemaMetadata = {
315
- name?: string | undefined;
316
- collections: PongoCollectionSchemaMetadata[];
317
- };
318
- type PongoClientSchemaMetadata = {
319
- databases: PongoDbSchemaMetadata[];
320
- database: (name?: string) => PongoDbSchemaMetadata | undefined;
321
- };
322
- declare const toDbSchemaMetadata: <TypedDbSchema extends PongoDbSchema>(schema: TypedDbSchema) => PongoDbSchemaMetadata;
323
- declare const toClientSchemaMetadata: <TypedClientSchema extends PongoClientSchema>(schema: TypedClientSchema) => PongoClientSchemaMetadata;
324
- interface PongoSchemaConfig<TypedClientSchema extends PongoClientSchema = PongoClientSchema> {
325
- schema: TypedClientSchema;
326
- }
327
-
328
- type PooledPongoClientOptions = {
329
- pool: pg.Pool;
330
- } | {
331
- pooled: true;
332
- } | {
333
- pool: pg.Pool;
334
- pooled: true;
335
- } | object;
336
- type NotPooledPongoOptions = {
337
- client: pg.Client;
338
- } | {
339
- pooled: false;
340
- } | {
341
- client: pg.Client;
342
- pooled: false;
343
- } | {
344
- connection: NodePostgresConnection;
345
- pooled?: false;
346
- };
347
- type PongoClientOptions<TypedClientSchema extends PongoClientSchema = PongoClientSchema> = {
348
- schema?: {
349
- autoMigration?: MigrationStyle;
350
- definition?: TypedClientSchema;
351
- };
352
- errors?: {
353
- throwOnOperationFailures?: boolean;
354
- };
355
- connectionOptions?: PooledPongoClientOptions | NotPooledPongoOptions;
356
- };
357
- declare const pongoClient: <TypedClientSchema extends PongoClientSchema = PongoClientSchema, DbClientOptions extends AllowedDbClientOptions = AllowedDbClientOptions>(connectionString: string, options?: PongoClientOptions<TypedClientSchema>) => PongoClient & PongoClientWithSchema<TypedClientSchema>;
358
- declare const clientToDbOptions: <DbClientOptions extends AllowedDbClientOptions = AllowedDbClientOptions>(options: {
359
- connectionString: string;
360
- dbName?: string;
361
- clientOptions: PongoClientOptions;
362
- }) => DbClientOptions;
363
-
364
- export { type WithIdAndVersion as $, type AllowedDbClientOptions as A, type PongoClient as B, type CollectionsMap as C, type DocumentHandler as D, type CollectionOperationOptions as E, type InsertManyOptions as F, type UpdateManyOptions as G, type HandleOptions as H, type InsertOneOptions as I, type DeleteOneOptions as J, type DeleteManyOptions as K, type FindOptions as L, type HasId as M, type NotPooledPongoOptions as N, ObjectId as O, type PongoDb as P, type InferIdType as Q, type ReplaceOneOptions as R, type EnhancedOmit as S, type OptionalUnlessRequiredId as T, type UpdateOneOptions as U, type OptionalUnlessRequiredVersion as V, type OptionalUnlessRequiredIdAndVersion as W, type WithId as X, type WithoutId as Y, type WithVersion as Z, type WithoutVersion as _, type PongoHandleResult as a, type WithoutIdAndVersion as a0, type RegExpOrString as a1, type Document as a2, type OptionalId as a3, type OptionalVersion as a4, type ObjectIdLike as a5, type NonObjectIdLikeDocument as a6, type AlternativeType as a7, type Condition as a8, type PongoFilter as a9, isPostgresClientOptions as aA, postgresDb as aB, pongoDbSchemaComponent as aC, type RootFilterOperators as aa, type PongoFilterOperator as ab, type $set as ac, type $unset as ad, type $inc as ae, type $push as af, type ExpectedDocumentVersionGeneral as ag, type ExpectedDocumentVersionValue as ah, type ExpectedDocumentVersion as ai, DOCUMENT_EXISTS as aj, DOCUMENT_DOES_NOT_EXIST as ak, NO_CONCURRENCY_CHECK as al, isGeneralExpectedDocumentVersion as am, expectedVersionValue as an, expectedVersion as ao, type PongoUpdate as ap, type OperationResult as aq, operationResult as ar, type PongoInsertOneResult as as, type PongoInsertManyResult as at, type PongoUpdateResult as au, type PongoUpdateManyResult as av, type PongoDeleteResult as aw, type PongoDeleteManyResult as ax, type PongoDocument as ay, type PostgresDbClientOptions as az, type PongoClientOptions as b, type PongoCollection as c, type PongoTransactionOptions as d, type PongoSession as e, type PongoDbTransaction as f, type PooledPongoClientOptions as g, clientToDbOptions as h, type PongoDbClientOptions as i, getPongoDb as j, type PongoCollectionSchema as k, type PongoDbSchema as l, type PongoClientSchema as m, type PongoDbWithSchema as n, type DBsMap as o, pongoClient as p, type PongoClientWithSchema as q, pongoSchema as r, proxyPongoDbWithSchema as s, proxyClientWithSchema as t, type PongoCollectionSchemaMetadata as u, type PongoDbSchemaMetadata as v, type PongoClientSchemaMetadata as w, toDbSchemaMetadata as x, toClientSchemaMetadata as y, type PongoSchemaConfig as z };