@onivoro/server-typeorm-postgres 0.1.12 → 0.1.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onivoro/server-typeorm-postgres",
3
- "version": "0.1.12",
3
+ "version": "0.1.14",
4
4
  "dependencies": {
5
5
  "typeorm-naming-strategies": "^4.1.0"
6
6
  },
@@ -10,6 +10,7 @@
10
10
  "typeorm": "~0.3.10",
11
11
  "@nestjs/common": "~9.0.0",
12
12
  "@nestjs/swagger": "~6.1.2",
13
+ "@onivoro/isomorphic-common": "0.0.2",
13
14
  "date-fns-tz": "~1.3.7",
14
15
  "tslib": "~2.3.0"
15
16
  }
@@ -5,10 +5,10 @@ import { getSkip } from '../functions/get-skip.function';
5
5
  import { removeFalseyKeys } from '../functions/remove-falsey-keys.function';
6
6
  import { getPagingKey } from '../functions/get-paging-key.function';
7
7
  import { IPageParams } from '../types/page-params.interface';
8
- export declare abstract class TypeOrmPagingRepository<TEntity> extends TypeOrmRepository<TEntity> {
8
+ export declare abstract class TypeOrmPagingRepository<TEntity, TEntityParams> extends TypeOrmRepository<TEntity> {
9
9
  protected getPagingKey: typeof getPagingKey;
10
10
  protected getSkip: typeof getSkip;
11
11
  protected removeFalseyKeys: typeof removeFalseyKeys;
12
12
  constructor(entityType: any, entityManager: EntityManager);
13
- abstract getPage<TParams extends IPageParams>(params: TParams): Promise<IPagedData<TEntity>>;
13
+ abstract getPage(pageParams: IPageParams, params: TEntityParams): Promise<IPagedData<TEntity>>;
14
14
  }
@@ -1 +1 @@
1
- {"version":3,"file":"type-orm-paging-repository.class.js","sourceRoot":"","sources":["../../../../../../libs/server-typeorm-postgres/src/lib/classes/type-orm-paging-repository.class.ts"],"names":[],"mappings":";;;AAIA,2EAAgE;AAEhE,sEAAyD;AACzD,0FAA4E;AAC5E,kFAAoE;AAGpE,MAAsB,uBAAiC,SAAQ,6CAA0B;IAC7E,YAAY,GAAG,sCAAY,CAAC;IAC5B,OAAO,GAAG,2BAAO,CAAC;IAClB,gBAAgB,GAAG,8CAAgB,CAAC;IAE9C,YAAY,UAAe,EAAE,aAA4B;QACvD,KAAK,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;IACnC,CAAC;CAGF;AAVD,0DAUC"}
1
+ {"version":3,"file":"type-orm-paging-repository.class.js","sourceRoot":"","sources":["../../../../../../libs/server-typeorm-postgres/src/lib/classes/type-orm-paging-repository.class.ts"],"names":[],"mappings":";;;AAIA,2EAAgE;AAEhE,sEAAyD;AACzD,0FAA4E;AAC5E,kFAAoE;AAGpE,MAAsB,uBAAgD,SAAQ,6CAA0B;IAC5F,YAAY,GAAG,sCAAY,CAAC;IAC5B,OAAO,GAAG,2BAAO,CAAC;IAClB,gBAAgB,GAAG,8CAAgB,CAAC;IAE9C,YAAY,UAAe,EAAE,aAA4B;QACvD,KAAK,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;IACnC,CAAC;CAGF;AAVD,0DAUC"}