@punks/backend-entity-manager 0.0.128 → 0.0.130

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
@@ -2193,6 +2193,9 @@ class NestEntityActions {
2193
2193
  constructor(entityName, registry) {
2194
2194
  this.services = registry.resolveEntityServicesCollection(entityName);
2195
2195
  }
2196
+ get converter() {
2197
+ return this.services.resolveConverter();
2198
+ }
2196
2199
  get manager() {
2197
2200
  if (!this.actionsInstance) {
2198
2201
  this.actionsInstance =
@@ -21927,11 +21930,11 @@ const createExpressFileResponse = (res, file) => {
21927
21930
  return new common.StreamableFile(file.content);
21928
21931
  };
21929
21932
 
21930
- exports.QueryOperationType = void 0;
21933
+ exports.QueryBuilderOperation = void 0;
21931
21934
  (function (QueryBuilderOperation) {
21932
21935
  QueryBuilderOperation["Search"] = "search";
21933
21936
  QueryBuilderOperation["Get"] = "get";
21934
- })(exports.QueryOperationType || (exports.QueryOperationType = {}));
21937
+ })(exports.QueryBuilderOperation || (exports.QueryBuilderOperation = {}));
21935
21938
  class QueryBuilderBase {
21936
21939
  getIndexBasedPagingResult({ paging, totResults, currentPageResults, }) {
21937
21940
  if (!paging) {
@@ -22039,7 +22042,7 @@ class TypeOrmQueryBuilder extends QueryBuilderBase {
22039
22042
  }
22040
22043
  async get(id, context) {
22041
22044
  return await this.getRepository().get(id, {
22042
- relations: this.getRelationsToLoad(undefined, context, exports.QueryOperationType.Get),
22045
+ relations: this.getRelationsToLoad(undefined, context, exports.QueryBuilderOperation.Get),
22043
22046
  });
22044
22047
  }
22045
22048
  async exists(filters, context) {
@@ -22087,7 +22090,7 @@ class TypeOrmQueryBuilder extends QueryBuilderBase {
22087
22090
  ...(context ? this.buildContextFilter(context) : {}),
22088
22091
  ...this.buildWhereClause(request),
22089
22092
  },
22090
- relations: this.getRelationsToLoad(request, context, exports.QueryOperationType.Search),
22093
+ relations: this.getRelationsToLoad(request, context, exports.QueryBuilderOperation.Search),
22091
22094
  order: this.buildSortingClause(request),
22092
22095
  ...this.buildPagingParameters(request),
22093
22096
  });