@onivoro/server-typeorm-postgres 0.1.29 → 0.1.30
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/lib/classes/type-orm-repository.class.d.ts +1 -0
- package/dist/cjs/lib/classes/type-orm-repository.class.js +3 -0
- package/dist/esm/lib/classes/type-orm-repository.class.d.ts +1 -0
- package/dist/esm/lib/classes/type-orm-repository.class.js +3 -0
- package/dist/types/lib/classes/type-orm-repository.class.d.ts +1 -0
- package/package.json +1 -1
|
@@ -12,6 +12,7 @@ export declare class TypeOrmRepository<TEntity> implements IEntityProvider<TEnti
|
|
|
12
12
|
postOne(body: Partial<TEntity>): Promise<TEntity>;
|
|
13
13
|
postMany(body: Partial<TEntity>[]): Promise<TEntity[]>;
|
|
14
14
|
delete(options: FindOptionsWhere<TEntity>): Promise<void>;
|
|
15
|
+
softDelete(options: FindOptionsWhere<TEntity>): Promise<void>;
|
|
15
16
|
put(options: FindOptionsWhere<TEntity>, body: QueryDeepPartialEntity<TEntity>): Promise<void>;
|
|
16
17
|
patch(options: FindOptionsWhere<TEntity>, body: QueryDeepPartialEntity<TEntity>): Promise<void>;
|
|
17
18
|
protected get repo(): import("typeorm").Repository<import("typeorm").ObjectLiteral>;
|
|
@@ -33,6 +33,9 @@ class TypeOrmRepository {
|
|
|
33
33
|
async delete(options) {
|
|
34
34
|
return await this.repo.delete(options);
|
|
35
35
|
}
|
|
36
|
+
async softDelete(options) {
|
|
37
|
+
return await this.repo.softDelete(options);
|
|
38
|
+
}
|
|
36
39
|
async put(options, body) {
|
|
37
40
|
// await this.repo.save(options, body); <= this doesn't do what i expected,
|
|
38
41
|
// so just call patch instead
|
|
@@ -12,6 +12,7 @@ export declare class TypeOrmRepository<TEntity> implements IEntityProvider<TEnti
|
|
|
12
12
|
postOne(body: Partial<TEntity>): Promise<TEntity>;
|
|
13
13
|
postMany(body: Partial<TEntity>[]): Promise<TEntity[]>;
|
|
14
14
|
delete(options: FindOptionsWhere<TEntity>): Promise<void>;
|
|
15
|
+
softDelete(options: FindOptionsWhere<TEntity>): Promise<void>;
|
|
15
16
|
put(options: FindOptionsWhere<TEntity>, body: QueryDeepPartialEntity<TEntity>): Promise<void>;
|
|
16
17
|
patch(options: FindOptionsWhere<TEntity>, body: QueryDeepPartialEntity<TEntity>): Promise<void>;
|
|
17
18
|
protected get repo(): import("typeorm").Repository<import("typeorm").ObjectLiteral>;
|
|
@@ -33,6 +33,9 @@ class TypeOrmRepository {
|
|
|
33
33
|
async delete(options) {
|
|
34
34
|
return await this.repo.delete(options);
|
|
35
35
|
}
|
|
36
|
+
async softDelete(options) {
|
|
37
|
+
return await this.repo.softDelete(options);
|
|
38
|
+
}
|
|
36
39
|
async put(options, body) {
|
|
37
40
|
// await this.repo.save(options, body); <= this doesn't do what i expected,
|
|
38
41
|
// so just call patch instead
|
|
@@ -12,6 +12,7 @@ export declare class TypeOrmRepository<TEntity> implements IEntityProvider<TEnti
|
|
|
12
12
|
postOne(body: Partial<TEntity>): Promise<TEntity>;
|
|
13
13
|
postMany(body: Partial<TEntity>[]): Promise<TEntity[]>;
|
|
14
14
|
delete(options: FindOptionsWhere<TEntity>): Promise<void>;
|
|
15
|
+
softDelete(options: FindOptionsWhere<TEntity>): Promise<void>;
|
|
15
16
|
put(options: FindOptionsWhere<TEntity>, body: QueryDeepPartialEntity<TEntity>): Promise<void>;
|
|
16
17
|
patch(options: FindOptionsWhere<TEntity>, body: QueryDeepPartialEntity<TEntity>): Promise<void>;
|
|
17
18
|
protected get repo(): import("typeorm").Repository<import("typeorm").ObjectLiteral>;
|