@punks/backend-entity-manager 0.0.360 → 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 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)) {
@@ -40531,7 +40541,7 @@ let SendgridEmailProvider = class SendgridEmailProvider {
40531
40541
  attachments: input.attachments?.map((attachment) => ({
40532
40542
  ...attachment,
40533
40543
  content: attachment.content instanceof Buffer
40534
- ? attachment.content.toString("utf-8")
40544
+ ? attachment.content.toString("base64")
40535
40545
  : attachment.content,
40536
40546
  })),
40537
40547
  });
@@ -40580,7 +40590,7 @@ let SendgridEmailProvider = class SendgridEmailProvider {
40580
40590
  attachments: input.attachments?.map((attachment) => ({
40581
40591
  ...attachment,
40582
40592
  content: attachment.content instanceof Buffer
40583
- ? attachment.content.toString("utf-8")
40593
+ ? attachment.content.toString("base64")
40584
40594
  : attachment.content,
40585
40595
  })),
40586
40596
  });