From 18cc9c02e827f516854b0d90ff4c41855cd741fd Mon Sep 17 00:00:00 2001 From: Vladimir Valerianov Date: Thu, 26 Dec 2024 14:23:14 +0300 Subject: [PATCH] feat: export command interfaces --- .../databases/mongo/mongo-extract-commands.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/autocomplete/databases/mongo/mongo-extract-commands.ts b/src/autocomplete/databases/mongo/mongo-extract-commands.ts index 68acd7e7..0af835f2 100644 --- a/src/autocomplete/databases/mongo/mongo-extract-commands.ts +++ b/src/autocomplete/databases/mongo/mongo-extract-commands.ts @@ -85,7 +85,7 @@ export type FindModifier = } | {method: 'sort'; parameters?: unknown; options?: unknown}; -interface ExplainParameters { +export interface ExplainParameters { parameters?: unknown; } @@ -381,7 +381,7 @@ export interface DatabaseAdminCommand extends DatabaseCommandBase { childMethod: ChildAdminMethod; } -type ChildAdminMethod = +export type ChildAdminMethod = | CommonAdminMethod | ValidateCollectionMethod | RemoveUserMethod @@ -416,7 +416,7 @@ export interface CommandMethod { options?: unknown; } -type DatabaseCommand = +export type DatabaseCommand = | DatabaseCreateCollectionCommand | DatabaseCommandCommand | DatabaseAggregateCommand @@ -433,7 +433,7 @@ type DatabaseCommand = | DatabaseSetProfilingLevelCommand | DatabaseAdminCommand; -type CollectionCommand = +export type CollectionCommand = | CollectionFindCommand | CollectionFindOneCommand | CollectionFindOneAndDeleteCommand