"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.MongoBuilder=void 0;var command_1=require("../command");var constant_1=require("../common/constant");var util_1=require("../common/util");var Collection_1=require("./Collection");var Geo_1=require("./Geo");var Regex_1=require("./Regex");var MongoBuilder=function(){function o(){this.command=new command_1.Command;this.Geo=new Geo_1.Geo}o.prototype.RegExp=function(e){return new Regex_1.Regex(e)};o.prototype.regexp=function(e){return new Regex_1.Regex(e)};o.prototype.collection=function(e){return new Collection_1.CollectionBuilder(e)};o.prototype.createCollection=function(e){return util_1.ActionBuilder.buildCollectionAction(constant_1.CollectionAction.create,e)};o.prototype.getCollection=function(e){return util_1.ActionBuilder.buildCollectionAction(constant_1.CollectionAction.query,e)};o.prototype.listCollection=function(e,t){return util_1.ActionBuilder.buildCollectionListQueryAction({$limit:e!==null&&e!==void 0?e:10,$skip:t!==null&&t!==void 0?t:0})};o.prototype.deleteCollection=function(e){return util_1.ActionBuilder.buildCollectionAction(constant_1.CollectionAction.delete,e)};return o}();exports.MongoBuilder=MongoBuilder;