asv-hlps 1.3.34 → 1.3.35

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.
@@ -1,6 +1,7 @@
1
+ import { SelectQueryBuilder } from "typeorm";
1
2
  import { IParam } from "../models/shared/IParam";
2
3
  declare class HlpQBuilder {
3
- userWhereParams(qb: any, prms: IParam): void;
4
+ userWhereParams(qb: SelectQueryBuilder<any>, prms: IParam): void;
4
5
  }
5
6
  declare const _default: HlpQBuilder;
6
7
  export default _default;
@@ -39,6 +39,10 @@ const tormDateParams = (qb, propColumn, opDates, dates, datesBy) => {
39
39
  break;
40
40
  }
41
41
  if (dates) {
42
+ console.log("------ dates ------");
43
+ console.log(dates);
44
+ console.log(datesBy);
45
+ console.log("------ dates ------");
42
46
  if (!datesBy) {
43
47
  qb.andWhere(`DATE_FORMAT(${propColumn}, '%Y-%m-%d') BETWEEN CAST(:fromDate as date) AND CAST(:toDate as date)`, {
44
48
  fromDate: dates.fromDate,
@@ -1,6 +1,7 @@
1
+ import { SelectQueryBuilder } from "typeorm";
1
2
  import { IParam } from "../models/shared/IParam";
2
3
  declare class HlpQBuilder {
3
- userWhereParams(qb: any, prms: IParam): void;
4
+ userWhereParams(qb: SelectQueryBuilder<any>, prms: IParam): void;
4
5
  }
5
6
  declare const _default: HlpQBuilder;
6
7
  export default _default;
@@ -36,6 +36,10 @@ export const tormDateParams = (qb, propColumn, opDates, dates, datesBy) => {
36
36
  break;
37
37
  }
38
38
  if (dates) {
39
+ console.log("------ dates ------");
40
+ console.log(dates);
41
+ console.log(datesBy);
42
+ console.log("------ dates ------");
39
43
  if (!datesBy) {
40
44
  qb.andWhere(`DATE_FORMAT(${propColumn}, '%Y-%m-%d') BETWEEN CAST(:fromDate as date) AND CAST(:toDate as date)`, {
41
45
  fromDate: dates.fromDate,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asv-hlps",
3
- "version": "1.3.34",
3
+ "version": "1.3.35",
4
4
  "description": "helpers",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "module": "./lib/esm/index.js",
@@ -16,11 +16,11 @@
16
16
  "author": "Aril Vignon",
17
17
  "license": "ISC",
18
18
  "devDependencies": {
19
- "@types/bcryptjs": "^2.4.4",
20
- "@types/lodash": "^4.14.199",
19
+ "@types/bcryptjs": "^2.4.5",
20
+ "@types/lodash": "^4.14.200",
21
21
  "@types/pdfmake": "^0.2.5",
22
22
  "@types/randomatic": "^3.1.3",
23
- "@types/react": "^18.2.25",
23
+ "@types/react": "^18.2.28",
24
24
  "typescript": "^5.2.2"
25
25
  },
26
26
  "dependencies": {