@qrvey/utils 1.16.1-23 → 1.16.1-24

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.
@@ -10,5 +10,5 @@ export declare function getRefenceBody(layer: any): any;
10
10
  export declare function getTrendBody(layer: any): any;
11
11
  export declare function getRefenceBodyU(layer: any, body: any): any;
12
12
  export declare function getLayerBody(layer: any, dateGroup: any, qrveyid: any): any;
13
- export declare function setDateGroup(column: any, body: any, obj: any): void;
13
+ export declare function setDateGroup(column: any, body: any, obj: any, defaultMaxDataPoints?: number): void;
14
14
  export declare function getSummariesBody(layer: any, body: any): any;
@@ -374,12 +374,12 @@ function getSortOrder(sorting = {}, category = {}, body = {}) {
374
374
  },
375
375
  ];
376
376
  }
377
- export function setDateGroup(column, body, obj) {
377
+ export function setDateGroup(column, body, obj, defaultMaxDataPoints = 61) {
378
378
  if (isColumnDate(column) && !isEmpty(_get(body, "dateGroup.label"))) {
379
379
  obj["groupType"] = COLUMN.DATE;
380
380
  obj["groupValue"] = body.dateGroup.label;
381
381
  if (_get(body, "dateGroup.datePart", false)) {
382
- obj["maxDataPoints"] = obj["maxDataPoints"] || 60;
382
+ obj["maxDataPoints"] = obj["maxDataPoints"] || defaultMaxDataPoints;
383
383
  }
384
384
  }
385
385
  }
@@ -10,5 +10,5 @@ export declare function getRefenceBody(layer: any): any;
10
10
  export declare function getTrendBody(layer: any): any;
11
11
  export declare function getRefenceBodyU(layer: any, body: any): any;
12
12
  export declare function getLayerBody(layer: any, dateGroup: any, qrveyid: any): any;
13
- export declare function setDateGroup(column: any, body: any, obj: any): void;
13
+ export declare function setDateGroup(column: any, body: any, obj: any, defaultMaxDataPoints?: number): void;
14
14
  export declare function getSummariesBody(layer: any, body: any): any;
@@ -388,12 +388,12 @@ function getSortOrder(sorting = {}, category = {}, body = {}) {
388
388
  },
389
389
  ];
390
390
  }
391
- function setDateGroup(column, body, obj) {
391
+ function setDateGroup(column, body, obj, defaultMaxDataPoints = 61) {
392
392
  if ((0, endpointDataValidators_1.isColumnDate)(column) && !(0, general_1.isEmpty)((0, general_1._get)(body, "dateGroup.label"))) {
393
393
  obj["groupType"] = columns_1.COLUMN.DATE;
394
394
  obj["groupValue"] = body.dateGroup.label;
395
395
  if ((0, general_1._get)(body, "dateGroup.datePart", false)) {
396
- obj["maxDataPoints"] = obj["maxDataPoints"] || 60;
396
+ obj["maxDataPoints"] = obj["maxDataPoints"] || defaultMaxDataPoints;
397
397
  }
398
398
  }
399
399
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qrvey/utils",
3
- "version": "1.16.1-23",
3
+ "version": "1.16.1-24",
4
4
  "description": "Helper, Utils for all Qrvey Projects",
5
5
  "homepage": "https://bitbucket.org/qrvey/qrvey_utils/wiki/Home",
6
6
  "main": "dist/index.js",