@punks/backend-entity-manager 0.0.128 → 0.0.129

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
@@ -21927,11 +21927,11 @@ const createExpressFileResponse = (res, file) => {
21927
21927
  return new common.StreamableFile(file.content);
21928
21928
  };
21929
21929
 
21930
- exports.QueryOperationType = void 0;
21930
+ exports.QueryBuilderOperation = void 0;
21931
21931
  (function (QueryBuilderOperation) {
21932
21932
  QueryBuilderOperation["Search"] = "search";
21933
21933
  QueryBuilderOperation["Get"] = "get";
21934
- })(exports.QueryOperationType || (exports.QueryOperationType = {}));
21934
+ })(exports.QueryBuilderOperation || (exports.QueryBuilderOperation = {}));
21935
21935
  class QueryBuilderBase {
21936
21936
  getIndexBasedPagingResult({ paging, totResults, currentPageResults, }) {
21937
21937
  if (!paging) {
@@ -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, exports.QueryOperationType.Get),
22042
+ relations: this.getRelationsToLoad(undefined, context, exports.QueryBuilderOperation.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, exports.QueryOperationType.Search),
22090
+ relations: this.getRelationsToLoad(request, context, exports.QueryBuilderOperation.Search),
22091
22091
  order: this.buildSortingClause(request),
22092
22092
  ...this.buildPagingParameters(request),
22093
22093
  });