@punks/backend-entity-manager 0.0.126 → 0.0.127

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
@@ -22026,11 +22026,11 @@ class QueryClauseBuilder {
22026
22026
  }
22027
22027
  }
22028
22028
 
22029
- var QueryOperationType;
22030
- (function (QueryOperationType) {
22031
- QueryOperationType["Search"] = "search";
22032
- QueryOperationType["Get"] = "get";
22033
- })(QueryOperationType || (QueryOperationType = {}));
22029
+ var TypeOrmQueryOperationType;
22030
+ (function (TypeOrmQueryOperationType) {
22031
+ TypeOrmQueryOperationType["Search"] = "search";
22032
+ TypeOrmQueryOperationType["Get"] = "get";
22033
+ })(TypeOrmQueryOperationType || (TypeOrmQueryOperationType = {}));
22034
22034
  class TypeOrmQueryBuilder extends QueryBuilderBase {
22035
22035
  constructor(services) {
22036
22036
  super();
@@ -22039,7 +22039,7 @@ class TypeOrmQueryBuilder extends QueryBuilderBase {
22039
22039
  }
22040
22040
  async get(id, context) {
22041
22041
  return await this.getRepository().get(id, {
22042
- relations: this.getRelationsToLoad(undefined, context, QueryOperationType.Get),
22042
+ relations: this.getRelationsToLoad(undefined, context, TypeOrmQueryOperationType.Get),
22043
22043
  });
22044
22044
  }
22045
22045
  async exists(filters, context) {
@@ -22087,7 +22087,7 @@ class TypeOrmQueryBuilder extends QueryBuilderBase {
22087
22087
  ...(context ? this.buildContextFilter(context) : {}),
22088
22088
  ...this.buildWhereClause(request),
22089
22089
  },
22090
- relations: this.getRelationsToLoad(request, context, QueryOperationType.Search),
22090
+ relations: this.getRelationsToLoad(request, context, TypeOrmQueryOperationType.Search),
22091
22091
  order: this.buildSortingClause(request),
22092
22092
  ...this.buildPagingParameters(request),
22093
22093
  });