@resolveio/server-lib 8.1.4 → 8.1.6

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.
@@ -38,6 +38,9 @@ var schema = {
38
38
  date_created: {
39
39
  type: Date
40
40
  },
41
+ id_user_created: {
42
+ type: String
43
+ },
41
44
  user_created: {
42
45
  type: String
43
46
  },
@@ -47,24 +50,36 @@ var schema = {
47
50
  num_columns: {
48
51
  type: Number
49
52
  },
50
- reports: {
53
+ report_rows: {
54
+ type: Array
55
+ },
56
+ 'report_rows.$': {
57
+ type: Object
58
+ },
59
+ 'report_rows.$.report_columns': {
51
60
  type: Array
52
61
  },
53
- 'reports.$': {
62
+ 'report_rows.$.report_columns.$': {
54
63
  type: Object
55
64
  },
56
- 'reports.$.id_report': {
65
+ 'report_rows.$.report_columns.$.id_report': {
57
66
  type: String
58
67
  },
59
- 'reports.$.report_name': {
68
+ 'report_rows.$.report_columns.$.report_name': {
60
69
  type: String
61
70
  },
62
- 'reports.$.report_type': {
71
+ 'report_rows.$.report_columns.$.report_type': {
63
72
  type: String
64
73
  },
65
- 'reports.$.display_type': {
74
+ 'report_rows.$.report_columns.$.display_type': {
66
75
  type: String
67
- }
76
+ },
77
+ 'report_rows.$.report_columns.$.display_values': {
78
+ type: Array
79
+ },
80
+ 'report_rows.$.report_columns.$.display_values.$': {
81
+ type: String
82
+ },
68
83
  };
69
84
  var DefaultSchema = new mongoose_1.Schema(schema, {
70
85
  skipVersioning: true,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/collections/report-builder-dashboard-builder.collection.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAAmD;AACnD,6CAAwC;AACxC,kCAA2C;AAG3C,IAAI,MAAM,GAAQ;IACjB,GAAG,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,GAAG,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KAC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QAEvH,IAAI,OAAO,gBAAQ,MAAM,CAAE,CAAC;QAC5B,OAAO,CAAC,GAAG,GAAG;YACb,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,KAAK;SACxB,CAAC;QAEF,IAAI,aAAa,GAAG,IAAI,iBAAM,CAAC,OAAO,EAAE;YACvC,cAAc,EAAE,IAAI;YACpB,UAAU,EAAE,KAAK;YACjB,UAAU,EAAE,IAAI;SAChB,CAAC,CAAC;QAEH,sCAA8B,CAAC,mBAAmB,CAAC,GAAG,4CAA4C,CAAC;QAEnG,6CAAqC,GAAG,uBAAe,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,sCAA8B,CAAC,mBAAmB,CAAC,EAAE,aAAa,CAAC,CAAC;QAE9I,sCAA8B,CAAC,aAAa,CAAC,GAAG,IAAI,sBAAY,CAAC,MAAM,CAAC,CAAC;KACzE;SACI;QACJ,UAAU,CAAC;YACV,oBAAoB,EAAE,CAAC;QACxB,CAAC,EAAE,CAAC,CAAC,CAAC;KACN;AACF,CAAC","file":"report-builder-dashboard-builder.collection.js","sourcesContent":["import { Schema, Model, Document } from 'mongoose';\nimport SimpleSchema from 'simpl-schema';\nimport { ResolveIOServer } from '../index';\nimport { ReportBuilderDashboardBuilderModel } from '../models/report-builder-dashboard-builder.model';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t__v: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tupdatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcreatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tname: {\n\t\ttype: String\n\t},\n\tdate_created: {\n\t\ttype: Date\n\t},\n\tuser_created: {\n\t\ttype: String\n\t},\n\tnum_rows: {\n\t\ttype: Number\n\t},\n\tnum_columns: {\n\t\ttype: Number\n\t},\n\treports: {\n\t\ttype: Array\n\t},\n\t'reports.$': {\n\t\ttype: Object\n\t},\n\t'reports.$.id_report': {\n\t\ttype: String\n\t},\n\t'reports.$.report_name': {\n\t\ttype: String\n\t},\n\t'reports.$.report_type': {\n\t\ttype: String\n\t},\n\t'reports.$.display_type': {\n\t\ttype: String\n\t}\n};\n\nconst DefaultSchema = new Schema(schema, {\n\tskipVersioning: true,\n\tversionKey: false,\n\ttimestamps: true\n});\n\nDefaultSchema.index({name: 1});\nDefaultSchema.index({date_created: 1});\n\ninterface ResolveIOModel extends ReportBuilderDashboardBuilderModel, Document {}\n\nexport let ReportBuilderDashboardBuilders: Model<ResolveIOModel> = null;\nexport let ReportBuilderDashboardBuilderVersions: Model<ResolveIOModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer.getMainDB()) {\n\t\tReportBuilderDashboardBuilders = ResolveIOServer.getMainDB().model('report-builder-dashboard-builders', DefaultSchema);\n\n\t\tlet vSchema = { ...schema };\n\t\tvSchema._id = {\n\t\t\ttype: Schema.Types.Mixed\n\t\t};\n\n\t\tlet VersionSchema = new Schema(vSchema, {\n\t\t\tskipVersioning: true,\n\t\t\tversionKey: false,\n\t\t\ttimestamps: true\n\t\t});\n\n\t\tReportBuilderDashboardBuilders['versionCollection'] = 'report-builder-dashboard-builders.versions';\n\n\t\tReportBuilderDashboardBuilderVersions = ResolveIOServer.getMainDB().model(ReportBuilderDashboardBuilders['versionCollection'], VersionSchema);\n\n\t\tReportBuilderDashboardBuilders['simplschema'] = new SimpleSchema(schema);\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 0);\n\t}\n}"]}
1
+ {"version":3,"sources":["../../src/collections/report-builder-dashboard-builder.collection.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAAmD;AACnD,6CAAwC;AACxC,kCAA2C;AAG3C,IAAI,MAAM,GAAQ;IACjB,GAAG,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,GAAG,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,QAA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B,QAAA,8BAA8B,GAA0B,IAAI,CAAC;AAC7D,QAAA,qCAAqC,GAA0B,IAAI,CAAC;AAE/E,oBAAoB,EAAE,CAAC;AAEvB,SAAS,oBAAoB;IAC5B,IAAI,uBAAe,CAAC,SAAS,EAAE,EAAE;QAChC,sCAA8B,GAAG,uBAAe,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,mCAAmC,EAAE,aAAa,CAAC,CAAC;QAEvH,IAAI,OAAO,gBAAQ,MAAM,CAAE,CAAC;QAC5B,OAAO,CAAC,GAAG,GAAG;YACb,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,KAAK;SACxB,CAAC;QAEF,IAAI,aAAa,GAAG,IAAI,iBAAM,CAAC,OAAO,EAAE;YACvC,cAAc,EAAE,IAAI;YACpB,UAAU,EAAE,KAAK;YACjB,UAAU,EAAE,IAAI;SAChB,CAAC,CAAC;QAEH,sCAA8B,CAAC,mBAAmB,CAAC,GAAG,4CAA4C,CAAC;QAEnG,6CAAqC,GAAG,uBAAe,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,sCAA8B,CAAC,mBAAmB,CAAC,EAAE,aAAa,CAAC,CAAC;QAE9I,sCAA8B,CAAC,aAAa,CAAC,GAAG,IAAI,sBAAY,CAAC,MAAM,CAAC,CAAC;KACzE;SACI;QACJ,UAAU,CAAC;YACV,oBAAoB,EAAE,CAAC;QACxB,CAAC,EAAE,CAAC,CAAC,CAAC;KACN;AACF,CAAC","file":"report-builder-dashboard-builder.collection.js","sourcesContent":["import { Schema, Model, Document } from 'mongoose';\nimport SimpleSchema from 'simpl-schema';\nimport { ResolveIOServer } from '../index';\nimport { ReportBuilderDashboardBuilderModel } from '../models/report-builder-dashboard-builder.model';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t__v: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tupdatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcreatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tname: {\n\t\ttype: String\n\t},\n\tdate_created: {\n\t\ttype: Date\n\t},\n\tid_user_created: {\n\t\ttype: String\n\t},\n\tuser_created: {\n\t\ttype: String\n\t},\n\tnum_rows: {\n\t\ttype: Number\n\t},\n\tnum_columns: {\n\t\ttype: Number\n\t},\n\treport_rows: {\n\t\ttype: Array\n\t},\n\t'report_rows.$': {\n\t\ttype: Object\n\t},\n\t'report_rows.$.report_columns': {\n\t\ttype: Array\n\t},\n\t'report_rows.$.report_columns.$': {\n\t\ttype: Object\n\t},\n\t'report_rows.$.report_columns.$.id_report': {\n\t\ttype: String\n\t},\n\t'report_rows.$.report_columns.$.report_name': {\n\t\ttype: String\n\t},\n\t'report_rows.$.report_columns.$.report_type': {\n\t\ttype: String\n\t},\n\t'report_rows.$.report_columns.$.display_type': {\n\t\ttype: String\n\t},\n\t'report_rows.$.report_columns.$.display_values': {\n\t\ttype: Array\n\t},\n\t'report_rows.$.report_columns.$.display_values.$': {\n\t\ttype: String\n\t},\n};\n\nconst DefaultSchema = new Schema(schema, {\n\tskipVersioning: true,\n\tversionKey: false,\n\ttimestamps: true\n});\n\nDefaultSchema.index({name: 1});\nDefaultSchema.index({date_created: 1});\n\ninterface ResolveIOModel extends ReportBuilderDashboardBuilderModel, Document {}\n\nexport let ReportBuilderDashboardBuilders: Model<ResolveIOModel> = null;\nexport let ReportBuilderDashboardBuilderVersions: Model<ResolveIOModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer.getMainDB()) {\n\t\tReportBuilderDashboardBuilders = ResolveIOServer.getMainDB().model('report-builder-dashboard-builders', DefaultSchema);\n\n\t\tlet vSchema = { ...schema };\n\t\tvSchema._id = {\n\t\t\ttype: Schema.Types.Mixed\n\t\t};\n\n\t\tlet VersionSchema = new Schema(vSchema, {\n\t\t\tskipVersioning: true,\n\t\t\tversionKey: false,\n\t\t\ttimestamps: true\n\t\t});\n\n\t\tReportBuilderDashboardBuilders['versionCollection'] = 'report-builder-dashboard-builders.versions';\n\n\t\tReportBuilderDashboardBuilderVersions = ResolveIOServer.getMainDB().model(ReportBuilderDashboardBuilders['versionCollection'], VersionSchema);\n\n\t\tReportBuilderDashboardBuilders['simplschema'] = new SimpleSchema(schema);\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 0);\n\t}\n}"]}
@@ -3,15 +3,20 @@ import { ReportBuilderReportType } from './report-builder-report.model';
3
3
  export interface ReportBuilderDashboardBuilderModel extends CollectionDocument {
4
4
  name: string;
5
5
  date_created: Date;
6
+ id_user_created: string;
6
7
  user_created: string;
7
8
  num_rows: number;
8
9
  num_columns: number;
9
- reports: ReportBuilderDashboardBuilderReportModel[];
10
+ report_rows: ReportBuilderDashboardBuilderReportRowModel[];
11
+ }
12
+ export interface ReportBuilderDashboardBuilderReportRowModel {
13
+ report_columns: ReportBuilderDashboardBuilderReportModel[];
10
14
  }
11
15
  export interface ReportBuilderDashboardBuilderReportModel {
12
16
  id_report: string;
13
17
  report_name: string;
14
18
  report_type: ReportBuilderReportType;
15
19
  display_type: ReportBuilderDashboardBuilderReportDisplayType;
20
+ display_values: string[];
16
21
  }
17
22
  export declare type ReportBuilderDashboardBuilderReportDisplayType = 'Data' | 'Bar' | 'Line' | 'Pie';
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/models/report-builder-dashboard-builder.model.ts"],"names":[],"mappings":"","file":"report-builder-dashboard-builder.model.js","sourcesContent":["import { CollectionDocument } from './collection-document.model';\nimport { ReportBuilderReportType } from './report-builder-report.model';\n\nexport interface ReportBuilderDashboardBuilderModel extends CollectionDocument {\n\tname: string;\n\tdate_created: Date;\n\tuser_created: string;\n\tnum_rows: number;\n\tnum_columns: number;\n\treports: ReportBuilderDashboardBuilderReportModel[];\n}\n\nexport interface ReportBuilderDashboardBuilderReportModel {\n\tid_report: string;\n\treport_name: string;\n\treport_type: ReportBuilderReportType;\n\tdisplay_type: ReportBuilderDashboardBuilderReportDisplayType;\n}\n\nexport type ReportBuilderDashboardBuilderReportDisplayType = 'Data' | 'Bar' | 'Line' | 'Pie';"]}
1
+ {"version":3,"sources":["../../src/models/report-builder-dashboard-builder.model.ts"],"names":[],"mappings":"","file":"report-builder-dashboard-builder.model.js","sourcesContent":["import { CollectionDocument } from './collection-document.model';\nimport { ReportBuilderReportType } from './report-builder-report.model';\n\nexport interface ReportBuilderDashboardBuilderModel extends CollectionDocument {\n\tname: string;\n\tdate_created: Date;\n\tid_user_created: string;\n\tuser_created: string;\n\tnum_rows: number;\n\tnum_columns: number;\n\treport_rows: ReportBuilderDashboardBuilderReportRowModel[];\n}\n\nexport interface ReportBuilderDashboardBuilderReportRowModel {\n\treport_columns: ReportBuilderDashboardBuilderReportModel[];\n}\n\nexport interface ReportBuilderDashboardBuilderReportModel {\n\tid_report: string;\n\treport_name: string;\n\treport_type: ReportBuilderReportType;\n\tdisplay_type: ReportBuilderDashboardBuilderReportDisplayType;\n\tdisplay_values: string[];\n}\n\nexport type ReportBuilderDashboardBuilderReportDisplayType = 'Data' | 'Bar' | 'Line' | 'Pie';"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resolveio/server-lib",
3
- "version": "8.1.4",
3
+ "version": "8.1.6",
4
4
  "description": "",
5
5
  "main": "index.ts",
6
6
  "scripts": {