@codeshine/nestjs-query-core
Advanced tools
Comparing version 0.32.0-alpha.1 to 0.32.0
@@ -1,3 +0,3 @@ | ||
import { CommonFieldComparisonBetweenType } from '../interfaces'; | ||
import { CommonFieldComparisonBetweenType, JsonFieldComparisonPathType } from '../interfaces'; | ||
export declare type FilterFn<DTO> = (dto?: DTO) => boolean; | ||
export declare type ComparisonField<DTO, F extends keyof DTO> = DTO[F] | DTO[F][] | CommonFieldComparisonBetweenType<DTO[F]> | true | false | null; | ||
export declare type ComparisonField<DTO, F extends keyof DTO> = DTO[F] | DTO[F][] | CommonFieldComparisonBetweenType<DTO[F]> | JsonFieldComparisonPathType | true | false | null; |
@@ -41,2 +41,6 @@ /** | ||
} | ||
export interface JsonFieldComparisonPathType { | ||
path: string; | ||
value: string; | ||
} | ||
/** | ||
@@ -181,7 +185,3 @@ * Field comparisons for all types that are NOT `null` or `boolean`. | ||
export declare type JsonFieldComparisons = { | ||
[Property in keyof Pick<StringFieldComparisons, 'like'> as `path${Capitalize<Property>}`]: { | ||
path: string; | ||
} & (StringFieldComparisons[Property] extends object ? StringFieldComparisons[Property] : { | ||
value: StringFieldComparisons[Property]; | ||
}); | ||
[Property in keyof Pick<StringFieldComparisons, 'like'> as `path${Capitalize<Property>}`]: JsonFieldComparisonPathType; | ||
}; | ||
@@ -188,0 +188,0 @@ declare type BuiltInTypes = boolean | boolean | string | string | number | Date | RegExp | bigint | symbol | null | undefined | never; |
{ | ||
"name": "@codeshine/nestjs-query-core", | ||
"version": "0.32.0-alpha.1", | ||
"version": "0.32.0", | ||
"description": "Base query package", | ||
@@ -5,0 +5,0 @@ "author": "doug-martin <doug@dougamartin.com>", |
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
205728