@trapi/query
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -19,3 +19,7 @@ "use strict"; | ||
[type_1.FilterOperator.LIKE]: 50, | ||
[type_1.FilterOperator.IN]: 150 | ||
[type_1.FilterOperator.LESS_THAN_EQUAL]: 150, | ||
[type_1.FilterOperator.LESS_THAN]: 450, | ||
[type_1.FilterOperator.MORE_THAN_EQUAL]: 1350, | ||
[type_1.FilterOperator.MORE_THAN]: 4050, | ||
[type_1.FilterOperator.IN]: 13105 | ||
}; | ||
@@ -22,0 +26,0 @@ function transformOperatorConfigToValue(data) { |
@@ -29,3 +29,3 @@ import { ParseOutputElementBase, ParseOptionsBase } from "../../parse"; | ||
declare type FilterValueWithOperator<V> = V extends string | number | boolean ? (FilterValue<V> | FilterValueOperator<V> | Array<FilterValueOperator<V>>) : never; | ||
declare type FilterValueOperator<V extends string | number | boolean> = `!${V}` | `!~${V}` | `~${V}`; | ||
declare type FilterValueOperator<V extends string | number | boolean> = `!${V}` | `!~${V}` | `~${V}` | `<${V}` | `<=${V}` | `>${V}` | `>=${V}`; | ||
export declare type FiltersBuildInput<T> = { | ||
@@ -32,0 +32,0 @@ [K in keyof T]?: T[K] extends OnlyScalar<T[K]> ? T[K] | FilterValueWithOperator<T[K]> | FilterOperatorConfig<T[K], FilterOperator> : T[K] extends OnlyObject<T[K]> ? FiltersBuildInput<Flatten<T[K]>> : never; |
{ | ||
"name": "@trapi/query", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "An tiny library which provides utility types/functions for request and response query handling.", | ||
@@ -60,3 +60,3 @@ "main": "./dist/index.js", | ||
}, | ||
"gitHead": "7f9df1564b6d986915fa819ae172e983d734df9b" | ||
"gitHead": "e10babc473afc65c969d9b8323e4524e26164480" | ||
} |
Sorry, the diff of this file is not supported yet
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
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
152623
1632