@kipicore/dbcore 1.1.330 → 1.1.332

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.
@@ -157,14 +157,14 @@ export declare function extractFromObject(data: any[], config: {
157
157
  export declare const enumAlternatives: (enumObj: Record<string, string>, isRequired?: boolean, allowArray?: boolean) => Joi.StringSchema<string> | Joi.AlternativesSchema<any>;
158
158
  export declare const objectIdAlternatives: (isRequired?: boolean, allowArray?: boolean) => Joi.AlternativesSchema<any> | undefined;
159
159
  export declare const uuidIdAlternatives: (isRequired?: boolean, allowArray?: boolean) => Joi.AlternativesSchema<any> | undefined;
160
- export declare const customPagination: (data: any[], page: number, limit: number, totalRecords: number) => Promise<{
160
+ export declare const customPagination: <T>(data: T[], page: number, limit: number, totalRecords: number) => Promise<{
161
161
  limit: number;
162
162
  totalRecords: number;
163
163
  totalPages: number;
164
164
  hasPreviousPage: boolean;
165
165
  currentPage: number;
166
166
  hasNextPage: boolean;
167
- recordList: any[];
167
+ recordList: T[];
168
168
  }>;
169
169
  export declare const generateHmacSHA256: (data: string, secret: string) => string;
170
170
  export declare const verifyHmacSHA256: (data: string, secret: string, signature: string) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kipicore/dbcore",
3
- "version": "1.1.330",
3
+ "version": "1.1.332",
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",