@atlantjs/arch 3.2.4 → 3.2.6

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.
@@ -7,15 +7,14 @@ import { DatabaseConfigAbstract } from "./database.config";
7
7
  import { FailureAbstract } from "../failures/failure.abstract";
8
8
  import { EntityBackendAbstract } from "../../domain/entities/entity-backend.abstract";
9
9
  type SchemaAbstract = EntityTarget<ObjectLiteral>;
10
- type PropertyEntity<T> = {
11
- [K in keyof InstanceType<Newable<T>>]: InstanceType<Newable<T>>[K];
12
- };
13
10
  export declare abstract class DatabaseHelperAbstract {
14
11
  private database;
15
12
  private queryRunner;
16
13
  connect(db: DatabaseConfigAbstract): Promise<DataSource>;
17
14
  disconnect(): Promise<void>;
18
- read<T extends SchemaAbstract, E extends ObjectLiteral>(schema: T, condition: PropertyEntity<E>, relations: FindOptionsRelations<E>): Promise<Return<Optional<ObjectLiteral[]>, FailureAbstract>>;
15
+ read<T extends Newable<ObjectLiteral>, E extends ObjectLiteral>(schema: T, condition: {
16
+ [K in keyof InstanceType<T>]?: InstanceType<T>[K];
17
+ }, relations: FindOptionsRelations<E>): Promise<Return<Optional<ObjectLiteral[]>, FailureAbstract>>;
19
18
  write<T extends SchemaAbstract>(schema: T, sortedEntities: EntityBackendAbstract[]): Promise<Return<undefined, undefined>>;
20
19
  delete<T extends SchemaAbstract>(entity: T, condition: FindOptionsWhere<T>[] | FindOptionsWhere<T>): Promise<Return<undefined, undefined>>;
21
20
  private getManager;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlantjs/arch",
3
- "version": "3.2.4",
3
+ "version": "3.2.6",
4
4
  "main": "index.js",
5
5
  "license": "UNLICENSED",
6
6
  "publishConfig": {