@punks/backend-entity-manager 0.0.227 → 0.0.228
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 +16 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/integrations/repository/typeorm/clause.d.ts +6 -0
- package/dist/cjs/types/integrations/repository/typeorm/queryClauseBuilder.d.ts +2 -1
- package/dist/esm/index.js +16 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/integrations/repository/typeorm/clause.d.ts +6 -0
- package/dist/esm/types/integrations/repository/typeorm/queryClauseBuilder.d.ts +2 -1
- package/dist/index.d.ts +7 -0
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -2880,6 +2880,22 @@ class QueryClauseBuilder {
|
|
|
2880
2880
|
}
|
|
2881
2881
|
return typeorm.And(...clauses);
|
|
2882
2882
|
}
|
|
2883
|
+
idFilter(filter) {
|
|
2884
|
+
const clauses = [];
|
|
2885
|
+
if (!!filter?.in) {
|
|
2886
|
+
clauses.push(typeorm.In(filter.in));
|
|
2887
|
+
}
|
|
2888
|
+
if (!!filter?.eq) {
|
|
2889
|
+
clauses.push(typeorm.Equal(filter.eq));
|
|
2890
|
+
}
|
|
2891
|
+
if (!!filter?.ne) {
|
|
2892
|
+
clauses.push(typeorm.Not(typeorm.Equal(filter.ne)));
|
|
2893
|
+
}
|
|
2894
|
+
if (!!filter?.notIn) {
|
|
2895
|
+
clauses.push(typeorm.Not(typeorm.In(filter.notIn)));
|
|
2896
|
+
}
|
|
2897
|
+
return typeorm.And(...clauses);
|
|
2898
|
+
}
|
|
2883
2899
|
stringFilter(filter) {
|
|
2884
2900
|
const clauses = [];
|
|
2885
2901
|
if (!!filter?.gte) {
|