@onivoro/server-typeorm-postgres 0.1.10 → 0.1.11
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 +1 -1
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
- package/src/index.js.map +1 -1
- package/src/lib/classes/type-orm-paging-repository.class.d.ts +2 -1
- package/src/lib/classes/type-orm-paging-repository.class.js.map +1 -1
- package/src/lib/types/page-params.interface.d.ts +4 -0
- package/src/lib/types/page-params.interface.js +3 -0
- package/src/lib/types/page-params.interface.js.map +1 -0
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -18,5 +18,6 @@ export * from './lib/functions/get-skip.function';
|
|
|
18
18
|
export * from './lib/functions/remove-falsey-keys.function';
|
|
19
19
|
export * from './lib/types/data-source-options.interface';
|
|
20
20
|
export * from './lib/types/entity-provider.interface';
|
|
21
|
+
export * from './lib/types/page-params.interface';
|
|
21
22
|
export * from './lib/types/paged-data.interface';
|
|
22
23
|
export * from './lib/server-typeorm-postgres.module';
|
package/src/index.js
CHANGED
|
@@ -21,6 +21,7 @@ tslib_1.__exportStar(require("./lib/functions/get-skip.function"), exports);
|
|
|
21
21
|
tslib_1.__exportStar(require("./lib/functions/remove-falsey-keys.function"), exports);
|
|
22
22
|
tslib_1.__exportStar(require("./lib/types/data-source-options.interface"), exports);
|
|
23
23
|
tslib_1.__exportStar(require("./lib/types/entity-provider.interface"), exports);
|
|
24
|
+
tslib_1.__exportStar(require("./lib/types/page-params.interface"), exports);
|
|
24
25
|
tslib_1.__exportStar(require("./lib/types/paged-data.interface"), exports);
|
|
25
26
|
tslib_1.__exportStar(require("./lib/server-typeorm-postgres.module"), exports);
|
|
26
27
|
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/server-typeorm-postgres/src/index.ts"],"names":[],"mappings":";;;AAAA,oFAA0D;AAC1D,qFAA2D;AAC3D,yFAA+D;AAC/D,mFAAyD;AACzD,yEAA+C;AAC/C,yFAA+D;AAC/D,kFAAwD;AAExD,2FAAiE;AACjE,0FAAgE;AAChE,kFAAwD;AACxD,2EAAiD;AAEjD,8FAAoE;AACpE,uFAA6D;AAC7D,uFAA6D;AAC7D,4FAAkE;AAClE,kFAAwD;AACxD,4EAAkD;AAClD,sFAA4D;AAE5D,oFAA0D;AAC1D,gFAAsD;AACtD,2EAAiD;AAEjD,+EAAqD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/server-typeorm-postgres/src/index.ts"],"names":[],"mappings":";;;AAAA,oFAA0D;AAC1D,qFAA2D;AAC3D,yFAA+D;AAC/D,mFAAyD;AACzD,yEAA+C;AAC/C,yFAA+D;AAC/D,kFAAwD;AAExD,2FAAiE;AACjE,0FAAgE;AAChE,kFAAwD;AACxD,2EAAiD;AAEjD,8FAAoE;AACpE,uFAA6D;AAC7D,uFAA6D;AAC7D,4FAAkE;AAClE,kFAAwD;AACxD,4EAAkD;AAClD,sFAA4D;AAE5D,oFAA0D;AAC1D,gFAAsD;AACtD,4EAAkD;AAClD,2EAAiD;AAEjD,+EAAqD"}
|
|
@@ -4,10 +4,11 @@ import { IPagedData } from '../types/paged-data.interface';
|
|
|
4
4
|
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
|
+
import { IPageParams } from '../types/page-params.interface';
|
|
7
8
|
export declare abstract class TypeOrmPagingRepository<TEntity> extends TypeOrmRepository<TEntity> {
|
|
8
9
|
protected getPagingKey: typeof getPagingKey;
|
|
9
10
|
protected getSkip: typeof getSkip;
|
|
10
11
|
protected removeFalseyKeys: typeof removeFalseyKeys;
|
|
11
12
|
constructor(entityType: any, entityManager: EntityManager);
|
|
12
|
-
abstract getPage(): Promise<IPagedData<TEntity>>;
|
|
13
|
+
abstract getPage<TParams extends IPageParams>(params: TParams): Promise<IPagedData<TEntity>>;
|
|
13
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;
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-params.interface.js","sourceRoot":"","sources":["../../../../../../libs/server-typeorm-postgres/src/lib/types/page-params.interface.ts"],"names":[],"mappings":""}
|