@alipay/faas-db-builder
Advanced tools
Comparing version 1.1.0-alpha.12 to 1.1.0-alpha.15
@@ -1,1 +0,1 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PipelineStageName=exports.Target=exports.DocumentAction=exports.CollectionAction=exports.Sort=void 0;var Sort;(function(e){e.DESC="desc",e.ASC="asc"})(Sort=exports.Sort||(exports.Sort={}));var CollectionAction;(function(e){e.update="update",e.delete="delete",e.query="query",e.queryList="queryList",e.create="create"})(CollectionAction=exports.CollectionAction||(exports.CollectionAction={}));var DocumentAction;(function(e){e.update="update",e.replace="replace",e.delete="delete",e.query="query",e.queryList="queryList",e.create="create",e.batchCreate="batchCreate",e.count="count",e.aggregate="aggregate"})(DocumentAction=exports.DocumentAction||(exports.DocumentAction={}));var Target;(function(e){e.collection="collection",e.document="document"})(Target=exports.Target||(exports.Target={}));var PipelineStageName;(function(e){e.match="$match",e.group="$group",e.sample="$sample"})(PipelineStageName=exports.PipelineStageName||(exports.PipelineStageName={})); | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PipelineStageName=exports.Target=exports.DocumentAction=exports.CollectionAction=exports.Sort=void 0;var Sort;(function(e){e.DESC="desc",e.ASC="asc"})(Sort||(exports.Sort=Sort={}));var CollectionAction;(function(e){e.update="update",e.delete="delete",e.query="query",e.queryList="queryList",e.create="create"})(CollectionAction||(exports.CollectionAction=CollectionAction={}));var DocumentAction;(function(e){e.update="update",e.replace="replace",e.delete="delete",e.query="query",e.queryList="queryList",e.create="create",e.batchCreate="batchCreate",e.count="count",e.aggregate="aggregate"})(DocumentAction||(exports.DocumentAction=DocumentAction={}));var Target;(function(e){e.collection="collection",e.document="document"})(Target||(exports.Target=Target={}));var PipelineStageName;(function(e){e.match="$match",e.group="$group",e.sample="$sample"})(PipelineStageName||(exports.PipelineStageName=PipelineStageName={})); |
@@ -1,1 +0,1 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.DbBuildError=exports.ErrorCode=void 0;var ErrorCode;(function(t){t.INVALID_PARAM="INVALID_PARAM",t.INVALID_COMMAND="INVALID_COMMAND"})(ErrorCode=exports.ErrorCode||(exports.ErrorCode={}));class DbBuildError extends Error{code;static create(r,e){const o=new DbBuildError(e);return o.code=r,o}static invalidParam(r,e){return DbBuildError.create(ErrorCode.INVALID_PARAM,`Invalid param "${r}", ${e}`)}static invalidCommand(r){return DbBuildError.create(ErrorCode.INVALID_COMMAND,r)}}exports.DbBuildError=DbBuildError; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.DbBuildError=exports.ErrorCode=void 0;var ErrorCode;(function(t){t.INVALID_PARAM="INVALID_PARAM",t.INVALID_COMMAND="INVALID_COMMAND"})(ErrorCode||(exports.ErrorCode=ErrorCode={}));class DbBuildError extends Error{code;static create(r,e){const o=new DbBuildError(e);return o.code=r,o}static invalidParam(r,e){return DbBuildError.create(ErrorCode.INVALID_PARAM,`Invalid param "${r}", ${e}`)}static invalidCommand(r){return DbBuildError.create(ErrorCode.INVALID_COMMAND,r)}}exports.DbBuildError=DbBuildError; |
@@ -18,3 +18,3 @@ import { QueryCommand } from './command/AbstractCommand'; | ||
export interface AddOneDocumentParam { | ||
data: DocumentData | DocumentData[]; | ||
data: DocumentData; | ||
} | ||
@@ -21,0 +21,0 @@ export interface AddManyDocumentParam { |
{ | ||
"name": "@alipay/faas-db-builder", | ||
"version": "1.1.0-alpha.12", | ||
"version": "1.1.0-alpha.15", | ||
"description": "db builder", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
46354