@punks/backend-entity-manager 0.0.228 → 0.0.229

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 CHANGED
@@ -2878,6 +2878,12 @@ class QueryClauseBuilder {
2878
2878
  if (!!filter?.notIn) {
2879
2879
  clauses.push(typeorm.Not(typeorm.In(filter.notIn)));
2880
2880
  }
2881
+ if (filter?.isNull === true) {
2882
+ clauses.push(typeorm.IsNull());
2883
+ }
2884
+ if (filter?.isNull === false) {
2885
+ clauses.push(typeorm.Not(typeorm.IsNull()));
2886
+ }
2881
2887
  return typeorm.And(...clauses);
2882
2888
  }
2883
2889
  idFilter(filter) {
@@ -2894,6 +2900,12 @@ class QueryClauseBuilder {
2894
2900
  if (!!filter?.notIn) {
2895
2901
  clauses.push(typeorm.Not(typeorm.In(filter.notIn)));
2896
2902
  }
2903
+ if (filter?.isNull === true) {
2904
+ clauses.push(typeorm.IsNull());
2905
+ }
2906
+ if (filter?.isNull === false) {
2907
+ clauses.push(typeorm.Not(typeorm.IsNull()));
2908
+ }
2897
2909
  return typeorm.And(...clauses);
2898
2910
  }
2899
2911
  stringFilter(filter) {
@@ -2934,6 +2946,12 @@ class QueryClauseBuilder {
2934
2946
  if (!!filter?.notLike) {
2935
2947
  clauses.push(typeorm.Not(typeorm.Like(filter.notLike.replaceAll("*", "%"))));
2936
2948
  }
2949
+ if (filter?.isNull === true) {
2950
+ clauses.push(typeorm.IsNull());
2951
+ }
2952
+ if (filter?.isNull === false) {
2953
+ clauses.push(typeorm.Not(typeorm.IsNull()));
2954
+ }
2937
2955
  return typeorm.And(...clauses);
2938
2956
  }
2939
2957
  numericFilter(filter) {
@@ -2950,6 +2968,12 @@ class QueryClauseBuilder {
2950
2968
  if (!!filter?.lt) {
2951
2969
  clauses.push(typeorm.LessThan(filter.lt));
2952
2970
  }
2971
+ if (filter?.isNull === true) {
2972
+ clauses.push(typeorm.IsNull());
2973
+ }
2974
+ if (filter?.isNull === false) {
2975
+ clauses.push(typeorm.Not(typeorm.IsNull()));
2976
+ }
2953
2977
  return typeorm.And(...clauses);
2954
2978
  }
2955
2979
  dateFilter(filter) {
@@ -2966,6 +2990,12 @@ class QueryClauseBuilder {
2966
2990
  if (!!filter?.lt) {
2967
2991
  clauses.push(typeorm.LessThan(filter.lt));
2968
2992
  }
2993
+ if (filter?.isNull === true) {
2994
+ clauses.push(typeorm.IsNull());
2995
+ }
2996
+ if (filter?.isNull === false) {
2997
+ clauses.push(typeorm.Not(typeorm.IsNull()));
2998
+ }
2969
2999
  return typeorm.And(...clauses);
2970
3000
  }
2971
3001
  boolFilter(filter) {
@@ -2976,6 +3006,12 @@ class QueryClauseBuilder {
2976
3006
  if (!backendCore.isNullOrUndefined(filter?.ne)) {
2977
3007
  clauses.push(typeorm.Not(typeorm.Equal(filter.ne)));
2978
3008
  }
3009
+ if (filter?.isNull === true) {
3010
+ clauses.push(typeorm.IsNull());
3011
+ }
3012
+ if (filter?.isNull === false) {
3013
+ clauses.push(typeorm.Not(typeorm.IsNull()));
3014
+ }
2979
3015
  return typeorm.And(...clauses);
2980
3016
  }
2981
3017
  }