@dataui/crud-request
Advanced tools
Comparing version 5.1.3 to 5.1.4-alpha.0
import { ObjectLiteral } from '@dataui/crud-util'; | ||
import { ClassTransformOptions } from 'class-transformer'; | ||
import { QueryFields, QueryFilter, QueryJoin, QuerySort, SCondition } from '../types'; | ||
@@ -7,2 +8,3 @@ export interface ParsedRequestParams { | ||
authPersist: ObjectLiteral; | ||
classTransformOptions: ClassTransformOptions; | ||
search: SCondition; | ||
@@ -9,0 +11,0 @@ filter: QueryFilter[]; |
import { ObjectLiteral } from '@dataui/crud-util'; | ||
import { ClassTransformOptions } from 'class-transformer'; | ||
import { CustomOperators, ParamsOptions, ParsedRequestParams } from './interfaces'; | ||
@@ -8,2 +9,3 @@ import { QueryFields, QueryFilter, QueryJoin, QuerySort, SCondition, SConditionAND, SFields } from './types'; | ||
authPersist: ObjectLiteral; | ||
classTransformOptions: ClassTransformOptions; | ||
search: SCondition; | ||
@@ -29,2 +31,3 @@ filter: QueryFilter[]; | ||
setAuthPersist(persist?: ObjectLiteral): void; | ||
setClassTransformOptions(options?: ClassTransformOptions): void; | ||
convertFilterToSearch(filter: QueryFilter): SFields | SConditionAND; | ||
@@ -31,0 +34,0 @@ private getParamNames; |
@@ -13,2 +13,3 @@ "use strict"; | ||
this.authPersist = undefined; | ||
this.classTransformOptions = undefined; | ||
this.filter = []; | ||
@@ -30,2 +31,3 @@ this.or = []; | ||
authPersist: this.authPersist, | ||
classTransformOptions: this.classTransformOptions, | ||
search: this.search, | ||
@@ -84,2 +86,5 @@ filter: this.filter, | ||
} | ||
setClassTransformOptions(options = {}) { | ||
this.classTransformOptions = options || {}; | ||
} | ||
convertFilterToSearch(filter) { | ||
@@ -86,0 +91,0 @@ const isEmptyValue = { |
{ | ||
"name": "@dataui/crud-request", | ||
"description": "NestJs CRUD for RESTful APIs - request query builder", | ||
"version": "5.1.3", | ||
"version": "5.1.4-alpha.0", | ||
"license": "MIT", | ||
@@ -51,6 +51,6 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@dataui/crud-util": "^5.1.3", | ||
"@dataui/crud-util": "^5.1.4-alpha.0", | ||
"qs": "^6.8.0" | ||
}, | ||
"gitHead": "aeefa76a24fa7d1753e73db9bd0dde246faa8cd2" | ||
"gitHead": "15c1e1794f6b1591c69060224861d9ab7a39ed63" | ||
} |
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
65529
906
2