@kipicore/dbcore 1.1.160 → 1.1.161

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.
@@ -13,6 +13,5 @@ export declare class SequelizeCommonService<T extends Model> implements ISequeli
13
13
  create: (createData: T["_creationAttributes"], options?: CreateOptions) => Promise<T["_attributes"]>;
14
14
  bulkCreate: (createData: T["_creationAttributes"][], options?: BulkCreateOptions<T["_attributes"]>) => Promise<T["_attributes"][]>;
15
15
  delete: (where: WhereOptions<T["_attributes"]>, options?: DestroyOptions<T["_attributes"]>) => Promise<number>;
16
- hardDelete: (where: WhereOptions<T["_attributes"]>, options?: Omit<DestroyOptions<T["_attributes"]>, "where">) => Promise<number>;
17
16
  count: (where: WhereOptions<T["_attributes"]>, options?: CountOptions<T["_attributes"]>) => Promise<number>;
18
17
  }
@@ -102,14 +102,6 @@ class SequelizeCommonService {
102
102
  throw err;
103
103
  }
104
104
  };
105
- this.hardDelete = async (where, options) => {
106
- try {
107
- return this.model.destroy({ where, force: true, ...options });
108
- }
109
- catch (err) {
110
- throw err;
111
- }
112
- };
113
105
  this.count = (where, options) => {
114
106
  try {
115
107
  return this.model.count({ where, ...options });
@@ -15,7 +15,6 @@ interface IWriteService<T extends Model> {
15
15
  }
16
16
  interface IDeleteService<T extends Model> {
17
17
  delete(where: WhereOptions<T['_attributes']>, options?: DestroyOptions<T['_attributes']>): Promise<number>;
18
- hardDelete(where: WhereOptions<T['_attributes']>, options?: DestroyOptions<T['_attributes']>): Promise<number>;
19
18
  }
20
19
  export interface ISequelizeCommonService<T extends Model> extends IReadService<T>, IWriteService<T>, IDeleteService<T> {
21
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kipicore/dbcore",
3
- "version": "1.1.160",
3
+ "version": "1.1.161",
4
4
  "description": "Reusable DB core package with Postgres, MongoDB, models, services, interfaces, and types",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",