@punks/backend-entity-manager 0.0.18 → 0.0.20

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
@@ -80,8 +80,8 @@ exports.ReplicationMode = void 0;
80
80
 
81
81
  exports.SortDirection = void 0;
82
82
  (function (SortDirection) {
83
- SortDirection[SortDirection["Asc"] = 0] = "Asc";
84
- SortDirection[SortDirection["Desc"] = 1] = "Desc";
83
+ SortDirection["Asc"] = "asc";
84
+ SortDirection["Desc"] = "desc";
85
85
  })(exports.SortDirection || (exports.SortDirection = {}));
86
86
 
87
87
  class NestEntityActions {
@@ -29911,6 +29911,11 @@ const WpEntityActions = (entityName, props = {}) => common.applyDecorators(commo
29911
29911
  ...props,
29912
29912
  }));
29913
29913
 
29914
+ const WpEntityAdapter = (entityName, props = {}) => common.applyDecorators(common.Injectable(), common.SetMetadata(EntityManagerSymbols.EntityAdapter, {
29915
+ entityName,
29916
+ ...props,
29917
+ }));
29918
+
29914
29919
  const WpEntityConnector = (entityName, props = {}) => common.applyDecorators(common.Injectable(), common.SetMetadata(EntityManagerSymbols.EntityConnector, {
29915
29920
  entityName,
29916
29921
  ...props,
@@ -60651,6 +60656,7 @@ exports.NestTypeOrmRepository = NestTypeOrmRepository;
60651
60656
  exports.QueryBuilderBase = QueryBuilderBase;
60652
60657
  exports.WpEntity = WpEntity;
60653
60658
  exports.WpEntityActions = WpEntityActions;
60659
+ exports.WpEntityAdapter = WpEntityAdapter;
60654
60660
  exports.WpEntityAuthMiddleware = WpEntityAuthMiddleware;
60655
60661
  exports.WpEntityConnector = WpEntityConnector;
60656
60662
  exports.WpEntityConverter = WpEntityConverter;