@punks/backend-entity-manager 0.0.237 → 0.0.239
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +9 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/integrations/repository/typeorm/clause.d.ts +3 -0
- package/dist/cjs/types/platforms/nest/__test__/server/entities/foos/foo.types.d.ts +1 -0
- package/dist/cjs/types/scripts/postinstall.d.ts +3 -0
- package/dist/esm/index.js +9 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/integrations/repository/typeorm/clause.d.ts +3 -0
- package/dist/esm/types/platforms/nest/__test__/server/entities/foos/foo.types.d.ts +1 -0
- package/dist/esm/types/scripts/postinstall.d.ts +3 -0
- package/dist/index.d.ts +3 -0
- package/package.json +10 -2
|
@@ -6,6 +6,7 @@ export type NumericFilter = {
|
|
|
6
6
|
lt?: number;
|
|
7
7
|
lte?: number;
|
|
8
8
|
isNull?: boolean;
|
|
9
|
+
notIn?: number[];
|
|
9
10
|
};
|
|
10
11
|
export type StringFilter = {
|
|
11
12
|
gt?: string;
|
|
@@ -40,6 +41,8 @@ export type BooleanFilter = {
|
|
|
40
41
|
eq?: boolean;
|
|
41
42
|
ne?: boolean;
|
|
42
43
|
isNull?: boolean;
|
|
44
|
+
in?: boolean[];
|
|
45
|
+
notIn?: boolean[];
|
|
43
46
|
};
|
|
44
47
|
export type DateFilter = {
|
|
45
48
|
in?: Date[];
|
|
@@ -16,6 +16,7 @@ export declare class FooQueryPaging implements ISearchRequestPaging<FooCursor> {
|
|
|
16
16
|
}
|
|
17
17
|
export declare class FooSearchOptions implements ISearchOptions {
|
|
18
18
|
includeFacets?: boolean;
|
|
19
|
+
facetsFilters?: FooSearchFilters;
|
|
19
20
|
}
|
|
20
21
|
export declare class FooSearchParameters implements IEntitySearchParameters<FooEntity, FooSorting, FooCursor> {
|
|
21
22
|
filters?: FooSearchFilters;
|
package/dist/esm/index.js
CHANGED
|
@@ -2957,6 +2957,9 @@ class QueryClauseBuilder {
|
|
|
2957
2957
|
if (!isNullOrUndefined(filter?.in)) {
|
|
2958
2958
|
clauses.push(In(filter.in ?? []));
|
|
2959
2959
|
}
|
|
2960
|
+
if (!isNullOrUndefined(filter?.notIn)) {
|
|
2961
|
+
clauses.push(Not(In(filter.notIn)));
|
|
2962
|
+
}
|
|
2960
2963
|
if (!isNullOrUndefined(filter?.eq)) {
|
|
2961
2964
|
clauses.push(Equal(filter.eq));
|
|
2962
2965
|
}
|
|
@@ -3004,6 +3007,12 @@ class QueryClauseBuilder {
|
|
|
3004
3007
|
if (filter?.isNull === false) {
|
|
3005
3008
|
clauses.push(Not(IsNull()));
|
|
3006
3009
|
}
|
|
3010
|
+
if (!isNullOrUndefined(filter?.in)) {
|
|
3011
|
+
clauses.push(In(filter.in ?? []));
|
|
3012
|
+
}
|
|
3013
|
+
if (!isNullOrUndefined(filter?.notIn)) {
|
|
3014
|
+
clauses.push(Not(In(filter.notIn)));
|
|
3015
|
+
}
|
|
3007
3016
|
return And(...clauses);
|
|
3008
3017
|
}
|
|
3009
3018
|
}
|