@punks/backend-entity-manager 0.0.400 → 0.0.401

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.
@@ -18,6 +18,7 @@ export declare class TypeOrmRepository<TEntity extends ObjectLiteral, TEntityId>
18
18
  all(): Promise<TEntity[]>;
19
19
  count(condition: FindManyOptions<TEntity>): Promise<number>;
20
20
  find(condition: FindManyOptions<TEntity>): Promise<TEntity[]>;
21
+ findOne(condition: FindManyOptions<TEntity>): Promise<TEntity>;
21
22
  findById(id: TEntityId[]): Promise<TEntity[]>;
22
23
  delete(id: TEntityId): Promise<void>;
23
24
  deleteBy(condition: DeleteCriteria<TEntity>): Promise<IEntitiesDeleteResult>;
package/dist/index.d.ts CHANGED
@@ -3071,6 +3071,7 @@ declare class TypeOrmRepository<TEntity extends ObjectLiteral, TEntityId> implem
3071
3071
  all(): Promise<TEntity[]>;
3072
3072
  count(condition: FindManyOptions<TEntity>): Promise<number>;
3073
3073
  find(condition: FindManyOptions<TEntity>): Promise<TEntity[]>;
3074
+ findOne(condition: FindManyOptions<TEntity>): Promise<TEntity>;
3074
3075
  findById(id: TEntityId[]): Promise<TEntity[]>;
3075
3076
  delete(id: TEntityId): Promise<void>;
3076
3077
  deleteBy(condition: DeleteCriteria<TEntity>): Promise<IEntitiesDeleteResult>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@punks/backend-entity-manager",
3
- "version": "0.0.400",
3
+ "version": "0.0.401",
4
4
  "description": "",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",