@punks/backend-entity-manager 0.0.361 → 0.0.362
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 +10 -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 +11 -1
- 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
|
@@ -3581,6 +3581,16 @@ class QueryClauseBuilder {
|
|
|
3581
3581
|
}
|
|
3582
3582
|
return typeorm.And(...clauses);
|
|
3583
3583
|
}
|
|
3584
|
+
stringListFilter(filter) {
|
|
3585
|
+
const clauses = [];
|
|
3586
|
+
if (!backendCore.isNullOrUndefined(filter?.contains)) {
|
|
3587
|
+
clauses.push(typeorm.Like(`%${filter.contains}%`));
|
|
3588
|
+
}
|
|
3589
|
+
if (!backendCore.isNullOrUndefined(filter?.iContains)) {
|
|
3590
|
+
clauses.push(typeorm.ILike(`%${filter.iContains}%`));
|
|
3591
|
+
}
|
|
3592
|
+
return typeorm.And(...clauses);
|
|
3593
|
+
}
|
|
3584
3594
|
numericFilter(filter) {
|
|
3585
3595
|
const clauses = [];
|
|
3586
3596
|
if (!backendCore.isNullOrUndefined(filter?.gte)) {
|