@punks/backend-entity-manager 0.0.231 → 0.0.233
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 +28 -28
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/abstractions/media.d.ts +3 -3
- package/dist/esm/index.js +28 -28
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/abstractions/media.d.ts +3 -3
- package/dist/index.d.ts +3 -3
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -2866,16 +2866,16 @@ class QueryBuilderBase {
|
|
|
2866
2866
|
class QueryClauseBuilder {
|
|
2867
2867
|
enumFilter(filter) {
|
|
2868
2868
|
const clauses = [];
|
|
2869
|
-
if (
|
|
2869
|
+
if (!backendCore.isNullOrUndefined(filter?.in)) {
|
|
2870
2870
|
clauses.push(typeorm.In(filter.in));
|
|
2871
2871
|
}
|
|
2872
|
-
if (
|
|
2872
|
+
if (!backendCore.isNullOrUndefined(filter?.eq)) {
|
|
2873
2873
|
clauses.push(typeorm.Equal(filter.eq));
|
|
2874
2874
|
}
|
|
2875
|
-
if (
|
|
2875
|
+
if (!backendCore.isNullOrUndefined(filter?.ne)) {
|
|
2876
2876
|
clauses.push(typeorm.Not(typeorm.Equal(filter.ne)));
|
|
2877
2877
|
}
|
|
2878
|
-
if (
|
|
2878
|
+
if (!backendCore.isNullOrUndefined(filter?.notIn)) {
|
|
2879
2879
|
clauses.push(typeorm.Not(typeorm.In(filter.notIn)));
|
|
2880
2880
|
}
|
|
2881
2881
|
if (filter?.isNull === true) {
|
|
@@ -2888,16 +2888,16 @@ class QueryClauseBuilder {
|
|
|
2888
2888
|
}
|
|
2889
2889
|
idFilter(filter) {
|
|
2890
2890
|
const clauses = [];
|
|
2891
|
-
if (
|
|
2891
|
+
if (!backendCore.isNullOrUndefined(filter?.in)) {
|
|
2892
2892
|
clauses.push(typeorm.In(filter.in));
|
|
2893
2893
|
}
|
|
2894
|
-
if (
|
|
2894
|
+
if (!backendCore.isNullOrUndefined(filter?.eq)) {
|
|
2895
2895
|
clauses.push(typeorm.Equal(filter.eq));
|
|
2896
2896
|
}
|
|
2897
|
-
if (
|
|
2897
|
+
if (!backendCore.isNullOrUndefined(filter?.ne)) {
|
|
2898
2898
|
clauses.push(typeorm.Not(typeorm.Equal(filter.ne)));
|
|
2899
2899
|
}
|
|
2900
|
-
if (
|
|
2900
|
+
if (!backendCore.isNullOrUndefined(filter?.notIn)) {
|
|
2901
2901
|
clauses.push(typeorm.Not(typeorm.In(filter.notIn)));
|
|
2902
2902
|
}
|
|
2903
2903
|
if (filter?.isNull === true) {
|
|
@@ -2910,40 +2910,40 @@ class QueryClauseBuilder {
|
|
|
2910
2910
|
}
|
|
2911
2911
|
stringFilter(filter) {
|
|
2912
2912
|
const clauses = [];
|
|
2913
|
-
if (
|
|
2913
|
+
if (!backendCore.isNullOrUndefined(filter?.gte)) {
|
|
2914
2914
|
clauses.push(typeorm.MoreThanOrEqual(filter.gte));
|
|
2915
2915
|
}
|
|
2916
|
-
if (
|
|
2916
|
+
if (!backendCore.isNullOrUndefined(filter?.gt)) {
|
|
2917
2917
|
clauses.push(typeorm.MoreThan(filter.gt));
|
|
2918
2918
|
}
|
|
2919
|
-
if (
|
|
2919
|
+
if (!backendCore.isNullOrUndefined(filter?.lte)) {
|
|
2920
2920
|
clauses.push(typeorm.LessThanOrEqual(filter.lte));
|
|
2921
2921
|
}
|
|
2922
|
-
if (
|
|
2922
|
+
if (!backendCore.isNullOrUndefined(filter?.lt)) {
|
|
2923
2923
|
clauses.push(typeorm.LessThan(filter.lt));
|
|
2924
2924
|
}
|
|
2925
|
-
if (
|
|
2925
|
+
if (!backendCore.isNullOrUndefined(filter?.in)) {
|
|
2926
2926
|
clauses.push(typeorm.In(filter.in));
|
|
2927
2927
|
}
|
|
2928
|
-
if (
|
|
2928
|
+
if (!backendCore.isNullOrUndefined(filter?.eq)) {
|
|
2929
2929
|
clauses.push(typeorm.Equal(filter.eq));
|
|
2930
2930
|
}
|
|
2931
|
-
if (
|
|
2931
|
+
if (!backendCore.isNullOrUndefined(filter?.ieq)) {
|
|
2932
2932
|
clauses.push(typeorm.ILike(filter.eq));
|
|
2933
2933
|
}
|
|
2934
|
-
if (
|
|
2934
|
+
if (!backendCore.isNullOrUndefined(filter?.like)) {
|
|
2935
2935
|
clauses.push(typeorm.Like(filter.like.replaceAll("*", "%")));
|
|
2936
2936
|
}
|
|
2937
|
-
if (
|
|
2937
|
+
if (!backendCore.isNullOrUndefined(filter?.ne)) {
|
|
2938
2938
|
clauses.push(typeorm.Not(typeorm.Equal(filter.ne)));
|
|
2939
2939
|
}
|
|
2940
|
-
if (
|
|
2940
|
+
if (!backendCore.isNullOrUndefined(filter?.ine)) {
|
|
2941
2941
|
clauses.push(typeorm.Not(typeorm.ILike(filter.ine)));
|
|
2942
2942
|
}
|
|
2943
|
-
if (
|
|
2943
|
+
if (!backendCore.isNullOrUndefined(filter?.notIn)) {
|
|
2944
2944
|
clauses.push(typeorm.Not(typeorm.In(filter.notIn)));
|
|
2945
2945
|
}
|
|
2946
|
-
if (
|
|
2946
|
+
if (!backendCore.isNullOrUndefined(filter?.notLike)) {
|
|
2947
2947
|
clauses.push(typeorm.Not(typeorm.Like(filter.notLike.replaceAll("*", "%"))));
|
|
2948
2948
|
}
|
|
2949
2949
|
if (filter?.isNull === true) {
|
|
@@ -2956,16 +2956,16 @@ class QueryClauseBuilder {
|
|
|
2956
2956
|
}
|
|
2957
2957
|
numericFilter(filter) {
|
|
2958
2958
|
const clauses = [];
|
|
2959
|
-
if (
|
|
2959
|
+
if (!backendCore.isNullOrUndefined(filter?.gte)) {
|
|
2960
2960
|
clauses.push(typeorm.MoreThanOrEqual(filter.gte));
|
|
2961
2961
|
}
|
|
2962
|
-
if (
|
|
2962
|
+
if (!backendCore.isNullOrUndefined(filter?.gt)) {
|
|
2963
2963
|
clauses.push(typeorm.MoreThan(filter.gt));
|
|
2964
2964
|
}
|
|
2965
|
-
if (
|
|
2965
|
+
if (!backendCore.isNullOrUndefined(filter?.lte)) {
|
|
2966
2966
|
clauses.push(typeorm.LessThanOrEqual(filter.lte));
|
|
2967
2967
|
}
|
|
2968
|
-
if (
|
|
2968
|
+
if (!backendCore.isNullOrUndefined(filter?.lt)) {
|
|
2969
2969
|
clauses.push(typeorm.LessThan(filter.lt));
|
|
2970
2970
|
}
|
|
2971
2971
|
if (filter?.isNull === true) {
|
|
@@ -2978,16 +2978,16 @@ class QueryClauseBuilder {
|
|
|
2978
2978
|
}
|
|
2979
2979
|
dateFilter(filter) {
|
|
2980
2980
|
const clauses = [];
|
|
2981
|
-
if (
|
|
2981
|
+
if (!backendCore.isNullOrUndefined(filter?.gte)) {
|
|
2982
2982
|
clauses.push(typeorm.MoreThanOrEqual(filter.gte));
|
|
2983
2983
|
}
|
|
2984
|
-
if (
|
|
2984
|
+
if (!backendCore.isNullOrUndefined(filter?.gt)) {
|
|
2985
2985
|
clauses.push(typeorm.MoreThan(filter.gt));
|
|
2986
2986
|
}
|
|
2987
|
-
if (
|
|
2987
|
+
if (!backendCore.isNullOrUndefined(filter?.lte)) {
|
|
2988
2988
|
clauses.push(typeorm.LessThanOrEqual(filter.lte));
|
|
2989
2989
|
}
|
|
2990
|
-
if (
|
|
2990
|
+
if (!backendCore.isNullOrUndefined(filter?.lt)) {
|
|
2991
2991
|
clauses.push(typeorm.LessThan(filter.lt));
|
|
2992
2992
|
}
|
|
2993
2993
|
if (filter?.isNull === true) {
|