@resolveio/server-lib 4.6.7 → 4.6.9

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.
@@ -109,6 +109,9 @@ var schema = {
109
109
  type: Object,
110
110
  blackbox: true
111
111
  },
112
+ group_type: {
113
+ type: String
114
+ },
112
115
  id_date_field: {
113
116
  type: String,
114
117
  optional: true
@@ -389,7 +389,7 @@ function loadCronJobMethods(methodManager) {
389
389
  }
390
390
  }
391
391
  });
392
- this.callMethodInternal.call(this, 'reportBuilderGetResults', report.type, report.collection_root, rootOptions, filters_1, filterArrays_1, filterArrayPaths_1, report.fields_selected, report.groups_row, report.fields_total, report.fields_link, report.id_date_field || null, report.date_interval || null, null, function (err, res) {
392
+ this.callMethodInternal.call(this, 'reportBuilderGetResults', report.type, report.collection_root, rootOptions, filters_1, filterArrays_1, filterArrayPaths_1, report.fields_selected, report.groups_row, report.fields_total, report.fields_link, report.id_date_field || null, report.date_interval || null, report.group_type, function (err, res) {
393
393
  if (res && res[0]) {
394
394
  var fields_1 = [];
395
395
  var results_1 = res[0].results;
@@ -94,7 +94,7 @@ function loadReportBuilderMethods(methodManager) {
94
94
  if (!(treeLeaf.fieldType === 'String')) return [3 /*break*/, 5];
95
95
  if (!treeLeaf.fieldPath.includes('(Lookup)')) return [3 /*break*/, 2];
96
96
  _a = resolve;
97
- return [4 /*yield*/, schema_report_builder_1.mongoCommand('distinct', treeLeaf.collection_name, treeLeaf.fieldPath.replace(/\.\$/g, '').replace(/^.+\(Lookup\)\.\$\./g, ''))];
97
+ return [4 /*yield*/, schema_report_builder_1.mongoCommand('distinct', treeLeaf.collection_name, treeLeaf.fieldPath.replace(/^.+\(Lookup\)\.\$\./g, '').replace(/\.\$/g, ''))];
98
98
  case 1:
99
99
  _a.apply(void 0, [_c.sent()]);
100
100
  return [3 /*break*/, 4];
@@ -12,6 +12,7 @@ export interface ReportBuilderReportModel extends CollectionDocument {
12
12
  date_created: Date;
13
13
  shared_users: string[];
14
14
  type: ReportBuilderReportType;
15
+ group_type: string;
15
16
  groups_row: ReportBuilderGroupsRow[];
16
17
  groups_column: ReportBuilderGroupsRow[];
17
18
  id_date_field?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resolveio/server-lib",
3
- "version": "4.6.7",
3
+ "version": "4.6.9",
4
4
  "description": "",
5
5
  "main": "index.ts",
6
6
  "scripts": {