@punks/backend-entity-manager 0.0.483 → 0.0.485

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/esm/index.js CHANGED
@@ -2,7 +2,7 @@ import { Log, csvParse, excelParse, ExcelKeyTransform, excelBuild, csvBuild, map
2
2
  import { QueryCommand, ScanCommand, GetItemCommand, PutItemCommand, DeleteItemCommand, DynamoDBClient } from '@aws-sdk/client-dynamodb';
3
3
  import { unmarshall, marshall } from '@aws-sdk/util-dynamodb';
4
4
  import { Module, applyDecorators, Injectable, SetMetadata, createParamDecorator, Global, Scope, Inject, Logger, StreamableFile, HttpException, HttpStatus } from '@nestjs/common';
5
- import { MoreThanOrEqual, Equal, Not, IsNull, And, MoreThan, LessThanOrEqual, LessThan, ILike, Like, In, Or, Repository } from 'typeorm';
5
+ import { MoreThanOrEqual, Equal, Not, IsNull, And, MoreThan, LessThanOrEqual, LessThan, ILike, Like, Between, In, Or, Repository } from 'typeorm';
6
6
  import { Reflector } from '@nestjs/core';
7
7
  import { AsyncLocalStorage } from 'async_hooks';
8
8
  import { hash } from 'bcrypt';
@@ -3729,6 +3729,13 @@ class QueryClauseBuilder {
3729
3729
  }
3730
3730
  dateFilter(filter) {
3731
3731
  const clauses = [];
3732
+ if (!isNullOrUndefined(filter?.eq)) {
3733
+ const startOfDay = new Date(filter.eq);
3734
+ startOfDay.setHours(0, 0, 0, 0);
3735
+ const endOfDay = new Date(filter.eq);
3736
+ endOfDay.setHours(23, 59, 59, 999);
3737
+ clauses.push(Between(startOfDay, endOfDay));
3738
+ }
3732
3739
  if (!isNullOrUndefined(filter?.gte)) {
3733
3740
  clauses.push(MoreThanOrEqual(filter.gte));
3734
3741
  }
@@ -35757,6 +35764,9 @@ let AwsS3BucketProvider = class AwsS3BucketProvider {
35757
35764
  return (result.ContentLength ?? 0) > 0;
35758
35765
  }
35759
35766
  catch (e) {
35767
+ if (e.Code === "NoSuchKey") {
35768
+ return false;
35769
+ }
35760
35770
  throw new AwsS3BucketError(`AwsS3Bucket | folderExists | Error -> ${e.message}`);
35761
35771
  }
35762
35772
  }
@@ -35781,6 +35791,9 @@ let AwsS3BucketProvider = class AwsS3BucketProvider {
35781
35791
  return (result.ContentLength ?? 0) > 0;
35782
35792
  }
35783
35793
  catch (e) {
35794
+ if (e.Code === "NoSuchKey") {
35795
+ return false;
35796
+ }
35784
35797
  throw new AwsS3BucketError(`AwsS3Bucket | fileExists | Error -> ${e.message}`);
35785
35798
  }
35786
35799
  }