@punks/backend-entity-manager 0.0.19 → 0.0.21

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
@@ -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,
@@ -30243,6 +30248,13 @@ const toDict = (array, selector) => {
30243
30248
  return data;
30244
30249
  };
30245
30250
 
30251
+ const newUuid$1 = () => {
30252
+ return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {
30253
+ var r = (Math.random() * 16) | 0, v = c == "x" ? r : (r & 0x3) | 0x8;
30254
+ return v.toString(16);
30255
+ });
30256
+ };
30257
+
30246
30258
  class EntityCreateAction {
30247
30259
  constructor(services) {
30248
30260
  this.services = services;
@@ -60639,6 +60651,8 @@ exports.EntityManagerModule = __decorate$3([
60639
60651
  })
60640
60652
  ], exports.EntityManagerModule);
60641
60653
 
60654
+ const newUuid = newUuid$1;
60655
+
60642
60656
  exports.EntityManagerException = EntityManagerException;
60643
60657
  exports.EntityManagerSymbols = EntityManagerSymbols;
60644
60658
  exports.EntityNotFoundException = EntityNotFoundException;
@@ -60651,10 +60665,12 @@ exports.NestTypeOrmRepository = NestTypeOrmRepository;
60651
60665
  exports.QueryBuilderBase = QueryBuilderBase;
60652
60666
  exports.WpEntity = WpEntity;
60653
60667
  exports.WpEntityActions = WpEntityActions;
60668
+ exports.WpEntityAdapter = WpEntityAdapter;
60654
60669
  exports.WpEntityAuthMiddleware = WpEntityAuthMiddleware;
60655
60670
  exports.WpEntityConnector = WpEntityConnector;
60656
60671
  exports.WpEntityConverter = WpEntityConverter;
60657
60672
  exports.WpEntityManager = WpEntityManager;
60658
60673
  exports.WpEntityQueryBuilder = WpEntityQueryBuilder;
60659
60674
  exports.WpEntityRepository = WpEntityRepository;
60675
+ exports.newUuid = newUuid;
60660
60676
  //# sourceMappingURL=index.js.map