@punks/backend-entity-manager 0.0.20 → 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.
@@ -2,7 +2,7 @@ export interface IEntityCreateCommandAdapter<TEntity, TEntityCreateData> {
2
2
  createDataToEntity(data: TEntityCreateData): Partial<TEntity>;
3
3
  }
4
4
  export interface IEntityUpdateCommandAdapter<TEntity, TEntityUpdateData> {
5
- updateDataToEntity(input: TEntityUpdateData): Partial<TEntity>;
5
+ updateDataToEntity(data: TEntityUpdateData): Partial<TEntity>;
6
6
  }
7
7
  export interface IEntityAdapter<TEntity, TEntityCreateData, TEntityUpdateData> extends IEntityCreateCommandAdapter<TEntity, TEntityCreateData>, IEntityUpdateCommandAdapter<TEntity, TEntityUpdateData> {
8
8
  }
@@ -1,3 +1,4 @@
1
1
  export * from "./abstractions";
2
2
  export * from "./platforms";
3
3
  export * from "./templates";
4
+ export * from "./utils";
@@ -0,0 +1 @@
1
+ export { newUuid } from "./uid";
@@ -0,0 +1 @@
1
+ export declare const newUuid: () => string;
package/dist/esm/index.js CHANGED
@@ -30230,6 +30230,13 @@ const toDict = (array, selector) => {
30230
30230
  return data;
30231
30231
  };
30232
30232
 
30233
+ const newUuid$1 = () => {
30234
+ return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {
30235
+ var r = (Math.random() * 16) | 0, v = c == "x" ? r : (r & 0x3) | 0x8;
30236
+ return v.toString(16);
30237
+ });
30238
+ };
30239
+
30233
30240
  class EntityCreateAction {
30234
30241
  constructor(services) {
30235
30242
  this.services = services;
@@ -60626,5 +60633,7 @@ EntityManagerModule = __decorate$3([
60626
60633
  })
60627
60634
  ], EntityManagerModule);
60628
60635
 
60629
- export { EntityManagerException, EntityManagerInitializer, EntityManagerModule, EntityManagerRegistry, EntityManagerSymbols, EntityNotFoundException, EntityOperationType, EntityOperationUnauthorizedException, ModulesContainerProvider, MultipleEntitiesFoundException, NestEntityActions, NestEntityManager, NestTypeOrmQueryBuilder, NestTypeOrmRepository, QueryBuilderBase, ReplicationMode, SortDirection, WpEntity, WpEntityActions, WpEntityAdapter, WpEntityAuthMiddleware, WpEntityConnector, WpEntityConverter, WpEntityManager, WpEntityQueryBuilder, WpEntityRepository };
60636
+ const newUuid = newUuid$1;
60637
+
60638
+ export { EntityManagerException, EntityManagerInitializer, EntityManagerModule, EntityManagerRegistry, EntityManagerSymbols, EntityNotFoundException, EntityOperationType, EntityOperationUnauthorizedException, ModulesContainerProvider, MultipleEntitiesFoundException, NestEntityActions, NestEntityManager, NestTypeOrmQueryBuilder, NestTypeOrmRepository, QueryBuilderBase, ReplicationMode, SortDirection, WpEntity, WpEntityActions, WpEntityAdapter, WpEntityAuthMiddleware, WpEntityConnector, WpEntityConverter, WpEntityManager, WpEntityQueryBuilder, WpEntityRepository, newUuid };
60630
60639
  //# sourceMappingURL=index.js.map