@resolveio/server-lib 8.1.2 → 8.1.3

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,7 +1,7 @@
1
1
  import { Model, Document } from 'mongoose';
2
- import { ReportBuilderReportModel } from '../models/report-builder-report.model';
3
- interface ResolveIOModel extends ReportBuilderReportModel, Document {
2
+ import { ReportBuilderDashboardBuilderModel } from '../models/report-builder-dashboard-builder.model';
3
+ interface ResolveIOModel extends ReportBuilderDashboardBuilderModel, Document {
4
4
  }
5
- export declare let ReportBuilderReports: Model<ResolveIOModel>;
6
- export declare let ReportBuilderReportVersions: Model<ResolveIOModel>;
5
+ export declare let ReportBuilderDashboardBuilders: Model<ResolveIOModel>;
6
+ export declare let ReportBuilderDashboardBuilderVersions: Model<ResolveIOModel>;
7
7
  export {};
@@ -11,7 +11,7 @@ var __assign = (this && this.__assign) || function () {
11
11
  return __assign.apply(this, arguments);
12
12
  };
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.ReportBuilderReportVersions = exports.ReportBuilderReports = void 0;
14
+ exports.ReportBuilderDashboardBuilderVersions = exports.ReportBuilderDashboardBuilders = void 0;
15
15
  var mongoose_1 = require("mongoose");
16
16
  var simpl_schema_1 = require("simpl-schema");
17
17
  var index_1 = require("../index");
@@ -73,12 +73,12 @@ var DefaultSchema = new mongoose_1.Schema(schema, {
73
73
  });
74
74
  DefaultSchema.index({ name: 1 });
75
75
  DefaultSchema.index({ date_created: 1 });
76
- exports.ReportBuilderReports = null;
77
- exports.ReportBuilderReportVersions = null;
76
+ exports.ReportBuilderDashboardBuilders = null;
77
+ exports.ReportBuilderDashboardBuilderVersions = null;
78
78
  initializeCollection();
79
79
  function initializeCollection() {
80
80
  if (index_1.ResolveIOServer.getMainDB()) {
81
- exports.ReportBuilderReports = index_1.ResolveIOServer.getMainDB().model('report-builder-dashboard-builders', DefaultSchema);
81
+ exports.ReportBuilderDashboardBuilders = index_1.ResolveIOServer.getMainDB().model('report-builder-dashboard-builders', DefaultSchema);
82
82
  var vSchema = __assign({}, schema);
83
83
  vSchema._id = {
84
84
  type: mongoose_1.Schema.Types.Mixed
@@ -88,9 +88,9 @@ function initializeCollection() {
88
88
  versionKey: false,
89
89
  timestamps: true
90
90
  });
91
- exports.ReportBuilderReports['versionCollection'] = 'report-builder-dashboard-builders.versions';
92
- exports.ReportBuilderReportVersions = index_1.ResolveIOServer.getMainDB().model(exports.ReportBuilderReports['versionCollection'], VersionSchema);
93
- exports.ReportBuilderReports['simplschema'] = new simpl_schema_1.default(schema);
91
+ exports.ReportBuilderDashboardBuilders['versionCollection'] = 'report-builder-dashboard-builders.versions';
92
+ exports.ReportBuilderDashboardBuilderVersions = index_1.ResolveIOServer.getMainDB().model(exports.ReportBuilderDashboardBuilders['versionCollection'], VersionSchema);
93
+ exports.ReportBuilderDashboardBuilders['simplschema'] = new simpl_schema_1.default(schema);
94
94
  }
95
95
  else {
96
96
  setTimeout(function () {
@@ -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;KACd;IACD,SAAS,EAAE;QACV,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;KACd;IACD,SAAS,EAAE;QACV,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;KACd;IACD,IAAI,EAAE;QACL,IAAI,EAAE,MAAM;KACZ;IACD,YAAY,EAAE;QACb,IAAI,EAAE,IAAI;KACV;IACD,YAAY,EAAE;QACb,IAAI,EAAE,MAAM;KACZ;IACD,QAAQ,EAAE;QACT,IAAI,EAAE,MAAM;K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AG,4CAA4C,CAAC;QAEzF,mCAA2B,GAAG,uBAAe,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,4BAAoB,CAAC,mBAAmB,CAAC,EAAE,aAAa,CAAC,CAAC;QAE1H,4BAAoB,CAAC,aAAa,CAAC,GAAG,IAAI,sBAAY,CAAC,MAAM,CAAC,CAAC;KAC/D;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 { ReportBuilderReportModel } from '../models/report-builder-report.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 ReportBuilderReportModel, Document {}\n\nexport let ReportBuilderReports: Model<ResolveIOModel> = null;\nexport let ReportBuilderReportVersions: Model<ResolveIOModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer.getMainDB()) {\n\t\tReportBuilderReports = 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\tReportBuilderReports['versionCollection'] = 'report-builder-dashboard-builders.versions';\n\n\t\tReportBuilderReportVersions = ResolveIOServer.getMainDB().model(ReportBuilderReports['versionCollection'], VersionSchema);\n\n\t\tReportBuilderReports['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,QAAQ,EAAE,IAAI;KACd;IACD,SAAS,EAAE;QACV,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;KACd;IACD,SAAS,EAAE;QACV,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;KACd;IACD,IAAI,EAAE;QACL,IAAI,EAAE,MAAM;KACZ;IACD,YAAY,EAAE;QACb,IAAI,EAAE,IAAI;KACV;IACD,YAAY,EAAE;QACb,IAAI,EAAE,MAAM;KACZ;IACD,QAAQ,EAAE;QACT,IAAI,EAAE,MAAM;KACZ;IACD,WAAW,EAAE;QACZ,IAAI,EAAE,MAAM;KACZ;IACD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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,6 +1,6 @@
1
1
  import { CollectionDocument } from './collection-document.model';
2
2
  import { ReportBuilderReportType } from './report-builder-report.model';
3
- export interface ReportBuilderDashboardBuilder extends CollectionDocument {
3
+ export interface ReportBuilderDashboardBuilderModel extends CollectionDocument {
4
4
  name: string;
5
5
  date_created: Date;
6
6
  user_created: string;
@@ -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 ReportBuilderDashboardBuilder 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\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';"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resolveio/server-lib",
3
- "version": "8.1.2",
3
+ "version": "8.1.3",
4
4
  "description": "",
5
5
  "main": "index.ts",
6
6
  "scripts": {