@resolveio/server-lib 8.0.17 → 8.0.18

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.
Files changed (59) hide show
  1. package/collections/app-status.collection.js +21 -13
  2. package/collections/app-status.collection.js.map +1 -1
  3. package/collections/app-version.collection.js +23 -15
  4. package/collections/app-version.collection.js.map +1 -1
  5. package/collections/counter.collection.js +23 -15
  6. package/collections/counter.collection.js.map +1 -1
  7. package/collections/cron-job-history.collection.js +22 -14
  8. package/collections/cron-job-history.collection.js.map +1 -1
  9. package/collections/cron-job.collection.js +22 -14
  10. package/collections/cron-job.collection.js.map +1 -1
  11. package/collections/email-history.collection.js +21 -13
  12. package/collections/email-history.collection.js.map +1 -1
  13. package/collections/email-verified.collection.js +21 -13
  14. package/collections/email-verified.collection.js.map +1 -1
  15. package/collections/file.collection.js +25 -17
  16. package/collections/file.collection.js.map +1 -1
  17. package/collections/flag.collection.js +21 -13
  18. package/collections/flag.collection.js.map +1 -1
  19. package/collections/log-method-latency.collection.js +20 -12
  20. package/collections/log-method-latency.collection.js.map +1 -1
  21. package/collections/log-subscription.collection.js +20 -12
  22. package/collections/log-subscription.collection.js.map +1 -1
  23. package/collections/log.collection.js +20 -12
  24. package/collections/log.collection.js.map +1 -1
  25. package/collections/logged-in-users.collection.js +21 -13
  26. package/collections/logged-in-users.collection.js.map +1 -1
  27. package/collections/method-call.collection.js +11 -3
  28. package/collections/method-call.collection.js.map +1 -1
  29. package/collections/method-response.collection.js +11 -3
  30. package/collections/method-response.collection.js.map +1 -1
  31. package/collections/monitor-cpu.collection.js +21 -13
  32. package/collections/monitor-cpu.collection.js.map +1 -1
  33. package/collections/monitor-https-inbound.collection.js +21 -13
  34. package/collections/monitor-https-inbound.collection.js.map +1 -1
  35. package/collections/monitor-https-outbound.collection.js +21 -13
  36. package/collections/monitor-https-outbound.collection.js.map +1 -1
  37. package/collections/monitor-memory.collection.js +21 -13
  38. package/collections/monitor-memory.collection.js.map +1 -1
  39. package/collections/monitor-mongo.collection.js +21 -13
  40. package/collections/monitor-mongo.collection.js.map +1 -1
  41. package/collections/notification.collection.js +21 -13
  42. package/collections/notification.collection.js.map +1 -1
  43. package/collections/queue-flag.collection.js +21 -13
  44. package/collections/queue-flag.collection.js.map +1 -1
  45. package/collections/queue-method.collection.js +63 -55
  46. package/collections/queue-method.collection.js.map +1 -1
  47. package/collections/queue-response.collection.js +22 -14
  48. package/collections/queue-response.collection.js.map +1 -1
  49. package/collections/report-builder-library.collection.js +22 -14
  50. package/collections/report-builder-library.collection.js.map +1 -1
  51. package/collections/report-builder-report.collection.js +22 -14
  52. package/collections/report-builder-report.collection.js.map +1 -1
  53. package/collections/user-group.collection.js +27 -19
  54. package/collections/user-group.collection.js.map +1 -1
  55. package/collections/user-guide.collection.js +25 -17
  56. package/collections/user-guide.collection.js.map +1 -1
  57. package/collections/user.collection.js +26 -18
  58. package/collections/user.collection.js.map +1 -1
  59. package/package.json +1 -1
@@ -52,19 +52,27 @@ DefaultSchema.index({ client: 1, date: 1, method: 1 });
52
52
  DefaultSchema.index({ client: 1, instance: 1, date: 1, method: 1 });
53
53
  exports.MonitorMongos = null;
54
54
  exports.MonitorMongoVersions = null;
55
- if (index_1.ResolveIOServer.getMainDB()) {
56
- exports.MonitorMongos = index_1.ResolveIOServer.getMainDB().model('monitor-mongos', DefaultSchema);
57
- exports.MonitorMongos['simplschema'] = new simpl_schema_1.default(schema);
58
- schema._id = {
59
- type: mongoose_1.Schema.Types.Mixed
60
- };
61
- var VersionSchema = new mongoose_1.Schema(schema, {
62
- skipVersioning: true,
63
- versionKey: false,
64
- timestamps: true
65
- });
66
- exports.MonitorMongos['versionCollection'] = 'monitor-mongos.versions';
67
- exports.MonitorMongoVersions = index_1.ResolveIOServer.getMainDB().model(exports.MonitorMongos['versionCollection'], VersionSchema);
55
+ initializeCollection();
56
+ function initializeCollection() {
57
+ if (index_1.ResolveIOServer.getMainDB()) {
58
+ exports.MonitorMongos = index_1.ResolveIOServer.getMainDB().model('monitor-mongos', DefaultSchema);
59
+ exports.MonitorMongos['simplschema'] = new simpl_schema_1.default(schema);
60
+ schema._id = {
61
+ type: mongoose_1.Schema.Types.Mixed
62
+ };
63
+ var VersionSchema = new mongoose_1.Schema(schema, {
64
+ skipVersioning: true,
65
+ versionKey: false,
66
+ timestamps: true
67
+ });
68
+ exports.MonitorMongos['versionCollection'] = 'monitor-mongos.versions';
69
+ exports.MonitorMongoVersions = index_1.ResolveIOServer.getMainDB().model(exports.MonitorMongos['versionCollection'], VersionSchema);
70
+ }
71
+ else {
72
+ setTimeout(function () {
73
+ initializeCollection();
74
+ }, 0);
75
+ }
68
76
  }
69
77
 
70
78
  //# sourceMappingURL=monitor-mongo.collection.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/collections/monitor-mongo.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,QAAQ,EAAE;QACT,IAAI,EAAE,MAAM;KACZ;IACD,MAAM,EAAE;QACP,IAAI,EAAE,MAAM;KACZ;IACD,IAAI,EAAE;QACL,IAAI,EAAE,IAAI;KACV;IACD,MAAM,EAAE;QACP,IAAI,EAAE,MAAM;KACZ;IACD,cAAc,EAAE;QACf,IAAI,EAAE,MAAM;KACZ;IACD,QAAQ,EAAE;QACT,IAAI,EAAE,MAAM;KACZ;IACD,KAAK,EAAE;QACN,IAAI,EAAE,MAAM;KACZ;CACD,CAAC;AAEF,IAAM,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AAa,CAAC,CAAC;CAC5G","file":"monitor-mongo.collection.js","sourcesContent":["import { Schema, Model, Document } from 'mongoose';\nimport SimpleSchema from 'simpl-schema';\nimport { ResolveIOServer } from '../index';\nimport { MonitorMongoModel } from '../models/monitor-mongo.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\tinstance: {\n\t\ttype: String\n\t},\n\tclient: {\n\t\ttype: String\n\t},\n\tdate: {\n\t\ttype: Date\n\t},\n\tmethod: {\n\t\ttype: String\n\t},\n\tdoc_collection: {\n\t\ttype: String\n\t},\n\tduration: {\n\t\ttype: Number\n\t},\n\tquery: {\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({date: 1}, {expireAfterSeconds: 60 * 60 * 24 * 30});\nDefaultSchema.index({client: 1, date: 1, method: 1});\nDefaultSchema.index({client: 1, instance: 1, date: 1, method: 1});\n\ninterface ResolveIOModel extends MonitorMongoModel, Document {}\n\nexport let MonitorMongos: Model<ResolveIOModel> = null;\nexport let MonitorMongoVersions: Model<ResolveIOModel> = null;\n\nif (ResolveIOServer.getMainDB()) {\n\tMonitorMongos = ResolveIOServer.getMainDB().model('monitor-mongos', DefaultSchema);\n\n\tMonitorMongos['simplschema'] = new SimpleSchema(schema);\n\n\tschema._id = {\n\t\ttype: Schema.Types.Mixed\n\t};\n\n\tlet VersionSchema = new Schema(schema, {\n\t\tskipVersioning: true,\n\t\tversionKey: false,\n\t\ttimestamps: true\n\t});\n\n\tMonitorMongos['versionCollection'] = 'monitor-mongos.versions';\n\n\tMonitorMongoVersions = ResolveIOServer.getMainDB().model(MonitorMongos['versionCollection'], VersionSchema);\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E,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAC,CAAC,CAAC;AAIvD,QAAA,aAAa,GAA0B,IAAI,CAAC;AAC5C,QAAA,oBAAoB,GAA0B,IAAI,CAAC;AAE9D,oBAAoB,EAAE,CAAC;AAEvB,SAAS,oBAAoB;IAC5B,IAAI,uBAAe,CAAC,SAAS,EAAE,EAAE;QAChC,qBAAa,GAAG,uBAAe,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,gBAAgB,EAAE,aAAa,CAAC,CAAC;QAEnF,qBAAa,CAAC,aAAa,CAAC,GAAG,IAAI,sBAAY,CAAC,MAAM,CAAC,CAAC;QAExD,MAAM,CAAC,GAAG,GAAG;YACZ,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,KAAK;SACxB,CAAC;QAEF,IAAI,aAAa,GAAG,IAAI,iBAAM,CAAC,MAAM,EAAE;YACtC,cAAc,EAAE,IAAI;YACpB,UAAU,EAAE,KAAK;YACjB,UAAU,EAAE,IAAI;SAChB,CAAC,CAAC;QAEH,qBAAa,CAAC,mBAAmB,CAAC,GAAG,yBAAyB,CAAC;QAE/D,4BAAoB,GAAG,uBAAe,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,qBAAa,CAAC,mBAAmB,CAAC,EAAE,aAAa,CAAC,CAAC;KAC5G;SACI;QACJ,UAAU,CAAC;YACV,oBAAoB,EAAE,CAAC;QACxB,CAAC,EAAE,CAAC,CAAC,CAAC;KACN;AACF,CAAC","file":"monitor-mongo.collection.js","sourcesContent":["import { Schema, Model, Document } from 'mongoose';\nimport SimpleSchema from 'simpl-schema';\nimport { ResolveIOServer } from '../index';\nimport { MonitorMongoModel } from '../models/monitor-mongo.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\tinstance: {\n\t\ttype: String\n\t},\n\tclient: {\n\t\ttype: String\n\t},\n\tdate: {\n\t\ttype: Date\n\t},\n\tmethod: {\n\t\ttype: String\n\t},\n\tdoc_collection: {\n\t\ttype: String\n\t},\n\tduration: {\n\t\ttype: Number\n\t},\n\tquery: {\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({date: 1}, {expireAfterSeconds: 60 * 60 * 24 * 30});\nDefaultSchema.index({client: 1, date: 1, method: 1});\nDefaultSchema.index({client: 1, instance: 1, date: 1, method: 1});\n\ninterface ResolveIOModel extends MonitorMongoModel, Document {}\n\nexport let MonitorMongos: Model<ResolveIOModel> = null;\nexport let MonitorMongoVersions: Model<ResolveIOModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer.getMainDB()) {\n\t\tMonitorMongos = ResolveIOServer.getMainDB().model('monitor-mongos', DefaultSchema);\n\n\t\tMonitorMongos['simplschema'] = new SimpleSchema(schema);\n\n\t\tschema._id = {\n\t\t\ttype: Schema.Types.Mixed\n\t\t};\n\n\t\tlet VersionSchema = new Schema(schema, {\n\t\t\tskipVersioning: true,\n\t\t\tversionKey: false,\n\t\t\ttimestamps: true\n\t\t});\n\n\t\tMonitorMongos['versionCollection'] = 'monitor-mongos.versions';\n\n\t\tMonitorMongoVersions = ResolveIOServer.getMainDB().model(MonitorMongos['versionCollection'], VersionSchema);\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 0);\n\t}\n}"]}
@@ -31,19 +31,27 @@ var DefaultSchema = new mongoose_1.Schema(schema, {
31
31
  });
32
32
  exports.Notifications = null;
33
33
  exports.NotificationVersions = null;
34
- if (index_1.ResolveIOServer.getMainDB()) {
35
- exports.Notifications = index_1.ResolveIOServer.getMainDB().model('notifications', DefaultSchema);
36
- exports.Notifications['simplschema'] = new simpl_schema_1.default(schema);
37
- schema._id = {
38
- type: mongoose_1.Schema.Types.Mixed
39
- };
40
- var VersionSchema = new mongoose_1.Schema(schema, {
41
- skipVersioning: true,
42
- versionKey: false,
43
- timestamps: true
44
- });
45
- exports.Notifications['versionCollection'] = 'notifications.versions';
46
- exports.NotificationVersions = index_1.ResolveIOServer.getMainDB().model(exports.Notifications['versionCollection'], VersionSchema);
34
+ initializeCollection();
35
+ function initializeCollection() {
36
+ if (index_1.ResolveIOServer.getMainDB()) {
37
+ exports.Notifications = index_1.ResolveIOServer.getMainDB().model('notifications', DefaultSchema);
38
+ exports.Notifications['simplschema'] = new simpl_schema_1.default(schema);
39
+ schema._id = {
40
+ type: mongoose_1.Schema.Types.Mixed
41
+ };
42
+ var VersionSchema = new mongoose_1.Schema(schema, {
43
+ skipVersioning: true,
44
+ versionKey: false,
45
+ timestamps: true
46
+ });
47
+ exports.Notifications['versionCollection'] = 'notifications.versions';
48
+ exports.NotificationVersions = index_1.ResolveIOServer.getMainDB().model(exports.Notifications['versionCollection'], VersionSchema);
49
+ }
50
+ else {
51
+ setTimeout(function () {
52
+ initializeCollection();
53
+ }, 0);
54
+ }
47
55
  }
48
56
 
49
57
  //# sourceMappingURL=notification.collection.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/collections/notification.collection.ts"],"names":[],"mappings":";;AAAA,qCAAmD;AACnD,6CAAwC;AAExC,kCAA2C;AAE3C,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;CACD,CAAC;AAEF,IAAM,aAAa,GAAG,IAAI,iBAAM,CAAC,MAAM,EAAE;IACxC,cAAc,EAAE,IAAI;IACpB,UAAU,EAAE,KAAK;IACjB,UAAU,EAAE,IAAI;CAChB,CAAC,CAAC;AAIQ,QAAA,aAAa,GAA0B,IAAI,CAAC;AAC5C,QAAA,oBAAoB,GAA0B,IAAI,CAAC;AAE9D,IAAI,uBAAe,CAAC,SAAS,EAAE,EAAE;IAChC,qBAAa,GAAG,uBAAe,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC;IAElF,qBAAa,CAAC,aAAa,CAAC,GAAG,IAAI,sBAAY,CAAC,MAAM,CAAC,CAAC;IAExD,MAAM,CAAC,GAAG,GAAG;QACZ,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,KAAK;KACxB,CAAC;IAEF,IAAI,aAAa,GAAG,IAAI,iBAAM,CAAC,MAAM,EAAE;QACtC,cAAc,EAAE,IAAI;QACpB,UAAU,EAAE,KAAK;QACjB,UAAU,EAAE,IAAI;KAChB,CAAC,CAAC;IAEH,qBAAa,CAAC,mBAAmB,CAAC,GAAG,wBAAwB,CAAC;IAE9D,4BAAoB,GAAG,uBAAe,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,qBAAa,CAAC,mBAAmB,CAAC,EAAE,aAAa,CAAC,CAAC;CAC5G","file":"notification.collection.js","sourcesContent":["import { Schema, Model, Document } from 'mongoose';\nimport SimpleSchema from 'simpl-schema';\nimport { NotificationModel } from '../models/notification.model';\nimport { ResolveIOServer } from '../index';\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};\n\nconst DefaultSchema = new Schema(schema, {\n\tskipVersioning: true,\n\tversionKey: false,\n\ttimestamps: true\n});\n\ninterface ResolveIOModel extends NotificationModel, Document {}\n\nexport let Notifications: Model<ResolveIOModel> = null;\nexport let NotificationVersions: Model<ResolveIOModel> = null;\n\nif (ResolveIOServer.getMainDB()) {\n\tNotifications = ResolveIOServer.getMainDB().model('notifications', DefaultSchema);\n\n\tNotifications['simplschema'] = new SimpleSchema(schema);\n\n\tschema._id = {\n\t\ttype: Schema.Types.Mixed\n\t};\n\n\tlet VersionSchema = new Schema(schema, {\n\t\tskipVersioning: true,\n\t\tversionKey: false,\n\t\ttimestamps: true\n\t});\n\n\tNotifications['versionCollection'] = 'notifications.versions';\n\n\tNotificationVersions = ResolveIOServer.getMainDB().model(Notifications['versionCollection'], VersionSchema);\n}"]}
1
+ {"version":3,"sources":["../../src/collections/notification.collection.ts"],"names":[],"mappings":";;AAAA,qCAAmD;AACnD,6CAAwC;AAExC,kCAA2C;AAE3C,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;CACD,CAAC;AAEF,IAAM,aAAa,GAAG,IAAI,iBAAM,CAAC,MAAM,EAAE;IACxC,cAAc,EAAE,IAAI;IACpB,UAAU,EAAE,KAAK;IACjB,UAAU,EAAE,IAAI;CAChB,CAAC,CAAC;AAIQ,QAAA,aAAa,GAA0B,IAAI,CAAC;AAC5C,QAAA,oBAAoB,GAA0B,IAAI,CAAC;AAE9D,oBAAoB,EAAE,CAAC;AAEvB,SAAS,oBAAoB;IAC5B,IAAI,uBAAe,CAAC,SAAS,EAAE,EAAE;QAChC,qBAAa,GAAG,uBAAe,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC;QAElF,qBAAa,CAAC,aAAa,CAAC,GAAG,IAAI,sBAAY,CAAC,MAAM,CAAC,CAAC;QAExD,MAAM,CAAC,GAAG,GAAG;YACZ,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,KAAK;SACxB,CAAC;QAEF,IAAI,aAAa,GAAG,IAAI,iBAAM,CAAC,MAAM,EAAE;YACtC,cAAc,EAAE,IAAI;YACpB,UAAU,EAAE,KAAK;YACjB,UAAU,EAAE,IAAI;SAChB,CAAC,CAAC;QAEH,qBAAa,CAAC,mBAAmB,CAAC,GAAG,wBAAwB,CAAC;QAE9D,4BAAoB,GAAG,uBAAe,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,qBAAa,CAAC,mBAAmB,CAAC,EAAE,aAAa,CAAC,CAAC;KAC5G;SACI;QACJ,UAAU,CAAC;YACV,oBAAoB,EAAE,CAAC;QACxB,CAAC,EAAE,CAAC,CAAC,CAAC;KACN;AACF,CAAC","file":"notification.collection.js","sourcesContent":["import { Schema, Model, Document } from 'mongoose';\nimport SimpleSchema from 'simpl-schema';\nimport { NotificationModel } from '../models/notification.model';\nimport { ResolveIOServer } from '../index';\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};\n\nconst DefaultSchema = new Schema(schema, {\n\tskipVersioning: true,\n\tversionKey: false,\n\ttimestamps: true\n});\n\ninterface ResolveIOModel extends NotificationModel, Document {}\n\nexport let Notifications: Model<ResolveIOModel> = null;\nexport let NotificationVersions: Model<ResolveIOModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer.getMainDB()) {\n\t\tNotifications = ResolveIOServer.getMainDB().model('notifications', DefaultSchema);\n\n\t\tNotifications['simplschema'] = new SimpleSchema(schema);\n\n\t\tschema._id = {\n\t\t\ttype: Schema.Types.Mixed\n\t\t};\n\n\t\tlet VersionSchema = new Schema(schema, {\n\t\t\tskipVersioning: true,\n\t\t\tversionKey: false,\n\t\t\ttimestamps: true\n\t\t});\n\n\t\tNotifications['versionCollection'] = 'notifications.versions';\n\n\t\tNotificationVersions = ResolveIOServer.getMainDB().model(Notifications['versionCollection'], VersionSchema);\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 0);\n\t}\n}"]}
@@ -29,19 +29,27 @@ var DefaultSchema = new mongoose_1.Schema(schema, {
29
29
  DefaultSchema.index({ createdAt: 1 }, { expireAfterSeconds: 60 });
30
30
  exports.QueueFlags = null;
31
31
  exports.QueueFlagVersions = null;
32
- if (index_1.ResolveIOServer.getMainDB()) {
33
- exports.QueueFlags = index_1.ResolveIOServer.getMainDB().model('queue-flags', DefaultSchema);
34
- exports.QueueFlags['simplschema'] = new simpl_schema_1.default(schema);
35
- schema._id = {
36
- type: mongoose_1.Schema.Types.Mixed
37
- };
38
- var VersionSchema = new mongoose_1.Schema(schema, {
39
- skipVersioning: true,
40
- versionKey: false,
41
- timestamps: true
42
- });
43
- exports.QueueFlags['versionCollection'] = 'queue-flags.versions';
44
- exports.QueueFlagVersions = index_1.ResolveIOServer.getMainDB().model(exports.QueueFlags['versionCollection'], VersionSchema);
32
+ initializeCollection();
33
+ function initializeCollection() {
34
+ if (index_1.ResolveIOServer.getMainDB()) {
35
+ exports.QueueFlags = index_1.ResolveIOServer.getMainDB().model('queue-flags', DefaultSchema);
36
+ exports.QueueFlags['simplschema'] = new simpl_schema_1.default(schema);
37
+ schema._id = {
38
+ type: mongoose_1.Schema.Types.Mixed
39
+ };
40
+ var VersionSchema = new mongoose_1.Schema(schema, {
41
+ skipVersioning: true,
42
+ versionKey: false,
43
+ timestamps: true
44
+ });
45
+ exports.QueueFlags['versionCollection'] = 'queue-flags.versions';
46
+ exports.QueueFlagVersions = index_1.ResolveIOServer.getMainDB().model(exports.QueueFlags['versionCollection'], VersionSchema);
47
+ }
48
+ else {
49
+ setTimeout(function () {
50
+ initializeCollection();
51
+ }, 0);
52
+ }
45
53
  }
46
54
 
47
55
  //# sourceMappingURL=queue-flag.collection.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/collections/queue-flag.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;CACD,CAAC;AAEF,IAAM,aAAa,GAAG,IAAI,iBAAM,CAAC,MAAM,EAAE;IACxC,cAAc,EAAE,IAAI;IACpB,UAAU,EAAE,KAAK;IACjB,UAAU,EAAE,IAAI;CAChB,CAAC,CAAC;AAEH,aAAa,CAAC,KAAK,CAAC,EAAC,SAAS,EAAE,CAAC,EAAC,EAAE,EAAC,kBAAkB,EAAE,EAAE,EAAC,CAAC,CAAC;AAInD,QAAA,UAAU,GAA0B,IAAI,CAAC;AACzC,QAAA,iBAAiB,GAA0B,IAAI,CAAC;AAE3D,IAAI,uBAAe,CAAC,SAAS,EAAE,EAAE;IAChC,kBAAU,GAAG,uBAAe,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;IAE7E,kBAAU,CAAC,aAAa,CAAC,GAAG,IAAI,sBAAY,CAAC,MAAM,CAAC,CAAC;IAErD,MAAM,CAAC,GAAG,GAAG;QACZ,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,KAAK;KACxB,CAAC;IAEF,IAAI,aAAa,GAAG,IAAI,iBAAM,CAAC,MAAM,EAAE;QACtC,cAAc,EAAE,IAAI;QACpB,UAAU,EAAE,KAAK;QACjB,UAAU,EAAE,IAAI;KAChB,CAAC,CAAC;IAEH,kBAAU,CAAC,mBAAmB,CAAC,GAAG,sBAAsB,CAAC;IAEzD,yBAAiB,GAAG,uBAAe,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,kBAAU,CAAC,mBAAmB,CAAC,EAAE,aAAa,CAAC,CAAC;CACtG","file":"queue-flag.collection.js","sourcesContent":["import { Schema, Model, Document } from 'mongoose';\nimport SimpleSchema from 'simpl-schema';\nimport { ResolveIOServer } from '../index';\nimport { CollectionDocument } from '../models/collection-document.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};\n\nconst DefaultSchema = new Schema(schema, {\n\tskipVersioning: true,\n\tversionKey: false,\n\ttimestamps: true\n});\n\nDefaultSchema.index({createdAt: 1}, {expireAfterSeconds: 60});\n\ninterface ResolveIOModel extends CollectionDocument, Document {}\n\nexport let QueueFlags: Model<ResolveIOModel> = null;\nexport let QueueFlagVersions: Model<ResolveIOModel> = null;\n\nif (ResolveIOServer.getMainDB()) {\n\tQueueFlags = ResolveIOServer.getMainDB().model('queue-flags', DefaultSchema);\n\n\tQueueFlags['simplschema'] = new SimpleSchema(schema);\n\n\tschema._id = {\n\t\ttype: Schema.Types.Mixed\n\t};\n\n\tlet VersionSchema = new Schema(schema, {\n\t\tskipVersioning: true,\n\t\tversionKey: false,\n\t\ttimestamps: true\n\t});\n\n\tQueueFlags['versionCollection'] = 'queue-flags.versions';\n\n\tQueueFlagVersions = ResolveIOServer.getMainDB().model(QueueFlags['versionCollection'], VersionSchema);\n}"]}
1
+ {"version":3,"sources":["../../src/collections/queue-flag.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;CACD,CAAC;AAEF,IAAM,aAAa,GAAG,IAAI,iBAAM,CAAC,MAAM,EAAE;IACxC,cAAc,EAAE,IAAI;IACpB,UAAU,EAAE,KAAK;IACjB,UAAU,EAAE,IAAI;CAChB,CAAC,CAAC;AAEH,aAAa,CAAC,KAAK,CAAC,EAAC,SAAS,EAAE,CAAC,EAAC,EAAE,EAAC,kBAAkB,EAAE,EAAE,EAAC,CAAC,CAAC;AAInD,QAAA,UAAU,GAA0B,IAAI,CAAC;AACzC,QAAA,iBAAiB,GAA0B,IAAI,CAAC;AAE3D,oBAAoB,EAAE,CAAC;AAEvB,SAAS,oBAAoB;IAC5B,IAAI,uBAAe,CAAC,SAAS,EAAE,EAAE;QAChC,kBAAU,GAAG,uBAAe,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;QAE7E,kBAAU,CAAC,aAAa,CAAC,GAAG,IAAI,sBAAY,CAAC,MAAM,CAAC,CAAC;QAErD,MAAM,CAAC,GAAG,GAAG;YACZ,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,KAAK;SACxB,CAAC;QAEF,IAAI,aAAa,GAAG,IAAI,iBAAM,CAAC,MAAM,EAAE;YACtC,cAAc,EAAE,IAAI;YACpB,UAAU,EAAE,KAAK;YACjB,UAAU,EAAE,IAAI;SAChB,CAAC,CAAC;QAEH,kBAAU,CAAC,mBAAmB,CAAC,GAAG,sBAAsB,CAAC;QAEzD,yBAAiB,GAAG,uBAAe,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,kBAAU,CAAC,mBAAmB,CAAC,EAAE,aAAa,CAAC,CAAC;KACtG;SACI;QACJ,UAAU,CAAC;YACV,oBAAoB,EAAE,CAAC;QACxB,CAAC,EAAE,CAAC,CAAC,CAAC;KACN;AACF,CAAC","file":"queue-flag.collection.js","sourcesContent":["import { Schema, Model, Document } from 'mongoose';\nimport SimpleSchema from 'simpl-schema';\nimport { ResolveIOServer } from '../index';\nimport { CollectionDocument } from '../models/collection-document.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};\n\nconst DefaultSchema = new Schema(schema, {\n\tskipVersioning: true,\n\tversionKey: false,\n\ttimestamps: true\n});\n\nDefaultSchema.index({createdAt: 1}, {expireAfterSeconds: 60});\n\ninterface ResolveIOModel extends CollectionDocument, Document {}\n\nexport let QueueFlags: Model<ResolveIOModel> = null;\nexport let QueueFlagVersions: Model<ResolveIOModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer.getMainDB()) {\n\t\tQueueFlags = ResolveIOServer.getMainDB().model('queue-flags', DefaultSchema);\n\n\t\tQueueFlags['simplschema'] = new SimpleSchema(schema);\n\n\t\tschema._id = {\n\t\t\ttype: Schema.Types.Mixed\n\t\t};\n\n\t\tlet VersionSchema = new Schema(schema, {\n\t\t\tskipVersioning: true,\n\t\t\tversionKey: false,\n\t\t\ttimestamps: true\n\t\t});\n\n\t\tQueueFlags['versionCollection'] = 'queue-flags.versions';\n\n\t\tQueueFlagVersions = ResolveIOServer.getMainDB().model(QueueFlags['versionCollection'], VersionSchema);\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 0);\n\t}\n}"]}
@@ -69,61 +69,69 @@ var DefaultSchema = new mongoose_1.Schema(mongooseSchema, {
69
69
  DefaultSchema.index({ date: 1 }, { expireAfterSeconds: 60 });
70
70
  exports.QueueMethods = null;
71
71
  exports.QueueMethodVersions = null;
72
- if (index_1.ResolveIOServer.getMainDB()) {
73
- exports.QueueMethods = index_1.ResolveIOServer.getMainDB().model('queue-methods', DefaultSchema);
74
- var vSchema = __assign({}, mongooseSchema);
75
- vSchema._id = {
76
- type: mongoose_1.Schema.Types.Mixed
77
- };
78
- var VersionSchema = new mongoose_1.Schema(vSchema, {
79
- skipVersioning: true,
80
- versionKey: false,
81
- timestamps: true,
82
- minimize: false
83
- });
84
- exports.QueueMethods['versionCollection'] = 'queue-methods.versions';
85
- exports.QueueMethodVersions = index_1.ResolveIOServer.getMainDB().model(exports.QueueMethods['versionCollection'], VersionSchema);
86
- var simplSchema = {
87
- _id: {
88
- type: String,
89
- optional: true
90
- },
91
- __v: {
92
- type: Number,
93
- optional: true
94
- },
95
- updatedAt: {
96
- type: Date,
97
- optional: true
98
- },
99
- createdAt: {
100
- type: Date,
101
- optional: true
102
- },
103
- method: {
104
- type: String
105
- },
106
- method_data: {
107
- type: Array
108
- },
109
- 'method_data.$': {
110
- type: Object,
111
- blackbox: true
112
- },
113
- id_ws: {
114
- type: String
115
- },
116
- messageId: {
117
- type: Number
118
- },
119
- id_user: {
120
- type: String
121
- },
122
- user: {
123
- type: String
124
- }
125
- };
126
- exports.QueueMethods['simplschema'] = new simpl_schema_1.default(simplSchema);
72
+ initializeCollection();
73
+ function initializeCollection() {
74
+ if (index_1.ResolveIOServer.getMainDB()) {
75
+ exports.QueueMethods = index_1.ResolveIOServer.getMainDB().model('queue-methods', DefaultSchema);
76
+ var vSchema = __assign({}, mongooseSchema);
77
+ vSchema._id = {
78
+ type: mongoose_1.Schema.Types.Mixed
79
+ };
80
+ var VersionSchema = new mongoose_1.Schema(vSchema, {
81
+ skipVersioning: true,
82
+ versionKey: false,
83
+ timestamps: true,
84
+ minimize: false
85
+ });
86
+ exports.QueueMethods['versionCollection'] = 'queue-methods.versions';
87
+ exports.QueueMethodVersions = index_1.ResolveIOServer.getMainDB().model(exports.QueueMethods['versionCollection'], VersionSchema);
88
+ var simplSchema = {
89
+ _id: {
90
+ type: String,
91
+ optional: true
92
+ },
93
+ __v: {
94
+ type: Number,
95
+ optional: true
96
+ },
97
+ updatedAt: {
98
+ type: Date,
99
+ optional: true
100
+ },
101
+ createdAt: {
102
+ type: Date,
103
+ optional: true
104
+ },
105
+ method: {
106
+ type: String
107
+ },
108
+ method_data: {
109
+ type: Array
110
+ },
111
+ 'method_data.$': {
112
+ type: Object,
113
+ blackbox: true
114
+ },
115
+ id_ws: {
116
+ type: String
117
+ },
118
+ messageId: {
119
+ type: Number
120
+ },
121
+ id_user: {
122
+ type: String
123
+ },
124
+ user: {
125
+ type: String
126
+ }
127
+ };
128
+ exports.QueueMethods['simplschema'] = new simpl_schema_1.default(simplSchema);
129
+ }
130
+ else {
131
+ setTimeout(function () {
132
+ initializeCollection();
133
+ }, 0);
134
+ }
127
135
  }
128
136
 
129
137
  //# sourceMappingURL=queue-method.collection.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/collections/queue-method.collection.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qCAAmD;AACnD,6CAAwC;AACxC,kCAA2C;AAG3C,IAAI,cAAc,GAAQ;IACzB,GAAG,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,GAAG,EAAE;QACJ,IAAI,EA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AK,CAAC,KAAK;KACxB,CAAC;IAEF,IAAI,aAAa,GAAG,IAAI,iBAAM,CAAC,OAAO,EAAE;QACvC,cAAc,EAAE,IAAI;QACpB,UAAU,EAAE,KAAK;QACjB,UAAU,EAAE,IAAI;QAChB,QAAQ,EAAE,KAAK;KACf,CAAC,CAAC;IAEH,oBAAY,CAAC,mBAAmB,CAAC,GAAG,wBAAwB,CAAC;IAE7D,2BAAmB,GAAG,uBAAe,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,oBAAY,CAAC,mBAAmB,CAAC,EAAE,aAAa,CAAC,CAAC;IAE1G,IAAI,WAAW,GAAG;QACjB,GAAG,EAAE;YACJ,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,IAAI;SACd;QACD,GAAG,EAAE;YACJ,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,IAAI;SACd;QACD,SAAS,EAAE;YACV,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,IAAI;SACd;QACD,SAAS,EAAE;YACV,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,IAAI;SACd;QACD,MAAM,EAAE;YACP,IAAI,EAAE,MAAM;SACZ;QACD,WAAW,EAAE;YACZ,IAAI,EAAE,KAAK;SACX;QACD,eAAe,EAAE;YAChB,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,IAAI;SACd;QACD,KAAK,EAAE;YACN,IAAI,EAAE,MAAM;SACZ;QACD,SAAS,EAAE;YACV,IAAI,EAAE,MAAM;SACZ;QACD,OAAO,EAAE;YACR,IAAI,EAAE,MAAM;SACZ;QACD,IAAI,EAAE;YACL,IAAI,EAAE,MAAM;SACZ;KACD,CAAC;IAEF,oBAAY,CAAC,aAAa,CAAC,GAAG,IAAI,sBAAY,CAAC,WAAW,CAAC,CAAC;CAC5D","file":"queue-method.collection.js","sourcesContent":["import { Schema, Model, Document } from 'mongoose';\nimport SimpleSchema from 'simpl-schema';\nimport { ResolveIOServer } from '../index';\nimport { QueueMethodModel } from '../models/queue-method.model';\n\nlet mongooseSchema: 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\tmethod: {\n\t\ttype: String\n\t},\n\tmethod_data: {\n\t\ttype: Array\n\t},\n\t'method_data.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tid_ws: {\n\t\ttype: String\n\t},\n\tmessageId: {\n\t\ttype: Number\n\t},\n\tid_user: {\n\t\ttype: String\n\t},\n\tuser: {\n\t\ttype: String\n\t},\n\tdate: {\n\t\ttype: Date\n\t},\n\tid_methodLatency: {\n\t\ttype: String\n\t}\n};\n\nconst DefaultSchema = new Schema(mongooseSchema, {\n\tskipVersioning: true,\n\tversionKey: false,\n\ttimestamps: true,\n\tminimize: false\n});\n\nDefaultSchema.index({date: 1}, {expireAfterSeconds: 60});\n\ninterface ResolveIOModel extends QueueMethodModel, Document {}\n\nexport let QueueMethods: Model<ResolveIOModel> = null;\nexport let QueueMethodVersions: Model<ResolveIOModel> = null;\n\nif (ResolveIOServer.getMainDB()) {\n\tQueueMethods = ResolveIOServer.getMainDB().model('queue-methods', DefaultSchema); \n\n\tlet vSchema = { ...mongooseSchema };\n\tvSchema._id = {\n\t\ttype: Schema.Types.Mixed\n\t};\n\n\tlet VersionSchema = new Schema(vSchema, {\n\t\tskipVersioning: true,\n\t\tversionKey: false,\n\t\ttimestamps: true,\n\t\tminimize: false\n\t});\n\n\tQueueMethods['versionCollection'] = 'queue-methods.versions';\n\n\tQueueMethodVersions = ResolveIOServer.getMainDB().model(QueueMethods['versionCollection'], VersionSchema);\n\n\tlet simplSchema = {\n\t\t_id: {\n\t\t\ttype: String,\n\t\t\toptional: true\n\t\t},\n\t\t__v: {\n\t\t\ttype: Number,\n\t\t\toptional: true \n\t\t},\n\t\tupdatedAt: {\n\t\t\ttype: Date,\n\t\t\toptional: true\n\t\t},\n\t\tcreatedAt: {\n\t\t\ttype: Date,\n\t\t\toptional: true\n\t\t},\n\t\tmethod: {\n\t\t\ttype: String\n\t\t},\n\t\tmethod_data: {\n\t\t\ttype: Array\n\t\t},\n\t\t'method_data.$': {\n\t\t\ttype: Object,\n\t\t\tblackbox: true\n\t\t},\n\t\tid_ws: {\n\t\t\ttype: String\n\t\t},\n\t\tmessageId: {\n\t\t\ttype: Number\n\t\t},\n\t\tid_user: {\n\t\t\ttype: String\n\t\t},\n\t\tuser: {\n\t\t\ttype: String\n\t\t}\n\t};\n\n\tQueueMethods['simplschema'] = new SimpleSchema(simplSchema);\n}"]}
1
+ {"version":3,"sources":["../../src/collections/queue-method.collection.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qCAAmD;AACnD,6CAAwC;AACxC,kCAA2C;AAG3C,IAAI,cAAc,GAAQ;IACzB,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,MAAM,EAAE;QACP,IAAI,EAAE,MAAM;KACZ;IACD,WAAW,EAAE;QACZ,IAAI,EAAE,KAAK;KACX;IACD,eAAe,EAAE;QAChB,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,KAAK,EAAE;QACN,IAAI,EAAE,MAAM;KACZ;IACD,SAAS,EAAE;QACV,IAAI,EAAE,MAAM;KACZ;IACD,OAAO,EAAE;QACR,IAAI,EAAE,MAAM;KACZ;IACD,IAAI,EAAE;QACL,IAAI,EAAE,MAAM;KACZ;IACD,IAAI,EAAE;QACL,IAAI,EAAE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AAM;gBACZ,QAAQ,EAAE,IAAI;aACd;YACD,SAAS,EAAE;gBACV,IAAI,EAAE,IAAI;gBACV,QAAQ,EAAE,IAAI;aACd;YACD,SAAS,EAAE;gBACV,IAAI,EAAE,IAAI;gBACV,QAAQ,EAAE,IAAI;aACd;YACD,MAAM,EAAE;gBACP,IAAI,EAAE,MAAM;aACZ;YACD,WAAW,EAAE;gBACZ,IAAI,EAAE,KAAK;aACX;YACD,eAAe,EAAE;gBAChB,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,IAAI;aACd;YACD,KAAK,EAAE;gBACN,IAAI,EAAE,MAAM;aACZ;YACD,SAAS,EAAE;gBACV,IAAI,EAAE,MAAM;aACZ;YACD,OAAO,EAAE;gBACR,IAAI,EAAE,MAAM;aACZ;YACD,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;aACZ;SACD,CAAC;QAEF,oBAAY,CAAC,aAAa,CAAC,GAAG,IAAI,sBAAY,CAAC,WAAW,CAAC,CAAC;KAC5D;SACI;QACJ,UAAU,CAAC;YACV,oBAAoB,EAAE,CAAC;QACxB,CAAC,EAAE,CAAC,CAAC,CAAC;KACN;AACF,CAAC","file":"queue-method.collection.js","sourcesContent":["import { Schema, Model, Document } from 'mongoose';\nimport SimpleSchema from 'simpl-schema';\nimport { ResolveIOServer } from '../index';\nimport { QueueMethodModel } from '../models/queue-method.model';\n\nlet mongooseSchema: 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\tmethod: {\n\t\ttype: String\n\t},\n\tmethod_data: {\n\t\ttype: Array\n\t},\n\t'method_data.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tid_ws: {\n\t\ttype: String\n\t},\n\tmessageId: {\n\t\ttype: Number\n\t},\n\tid_user: {\n\t\ttype: String\n\t},\n\tuser: {\n\t\ttype: String\n\t},\n\tdate: {\n\t\ttype: Date\n\t},\n\tid_methodLatency: {\n\t\ttype: String\n\t}\n};\n\nconst DefaultSchema = new Schema(mongooseSchema, {\n\tskipVersioning: true,\n\tversionKey: false,\n\ttimestamps: true,\n\tminimize: false\n});\n\nDefaultSchema.index({date: 1}, {expireAfterSeconds: 60});\n\ninterface ResolveIOModel extends QueueMethodModel, Document {}\n\nexport let QueueMethods: Model<ResolveIOModel> = null;\nexport let QueueMethodVersions: Model<ResolveIOModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer.getMainDB()) {\n\t\tQueueMethods = ResolveIOServer.getMainDB().model('queue-methods', DefaultSchema); \n\n\t\tlet vSchema = { ...mongooseSchema };\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\tminimize: false\n\t\t});\n\n\t\tQueueMethods['versionCollection'] = 'queue-methods.versions';\n\n\t\tQueueMethodVersions = ResolveIOServer.getMainDB().model(QueueMethods['versionCollection'], VersionSchema);\n\n\t\tlet simplSchema = {\n\t\t\t_id: {\n\t\t\t\ttype: String,\n\t\t\t\toptional: true\n\t\t\t},\n\t\t\t__v: {\n\t\t\t\ttype: Number,\n\t\t\t\toptional: true \n\t\t\t},\n\t\t\tupdatedAt: {\n\t\t\t\ttype: Date,\n\t\t\t\toptional: true\n\t\t\t},\n\t\t\tcreatedAt: {\n\t\t\t\ttype: Date,\n\t\t\t\toptional: true\n\t\t\t},\n\t\t\tmethod: {\n\t\t\t\ttype: String\n\t\t\t},\n\t\t\tmethod_data: {\n\t\t\t\ttype: Array\n\t\t\t},\n\t\t\t'method_data.$': {\n\t\t\t\ttype: Object,\n\t\t\t\tblackbox: true\n\t\t\t},\n\t\t\tid_ws: {\n\t\t\t\ttype: String\n\t\t\t},\n\t\t\tmessageId: {\n\t\t\t\ttype: Number\n\t\t\t},\n\t\t\tid_user: {\n\t\t\t\ttype: String\n\t\t\t},\n\t\t\tuser: {\n\t\t\t\ttype: String\n\t\t\t}\n\t\t};\n\n\t\tQueueMethods['simplschema'] = new SimpleSchema(simplSchema);\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 0);\n\t}\n}"]}
@@ -62,20 +62,28 @@ var DefaultSchema = new mongoose_1.Schema(schema, {
62
62
  DefaultSchema.index({ date: 1 }, { expireAfterSeconds: 60 });
63
63
  exports.QueueResponses = null;
64
64
  exports.QueueResponseVersions = null;
65
- if (index_1.ResolveIOServer.getMainDB()) {
66
- exports.QueueResponses = index_1.ResolveIOServer.getMainDB().model('queue-responses', DefaultSchema);
67
- var vSchema = __assign({}, schema);
68
- vSchema._id = {
69
- type: mongoose_1.Schema.Types.Mixed
70
- };
71
- var VersionSchema = new mongoose_1.Schema(vSchema, {
72
- skipVersioning: true,
73
- versionKey: false,
74
- timestamps: true
75
- });
76
- exports.QueueResponses['versionCollection'] = 'queue-responses.versions';
77
- exports.QueueResponseVersions = index_1.ResolveIOServer.getMainDB().model(exports.QueueResponses['versionCollection'], VersionSchema);
78
- exports.QueueResponses['simplschema'] = new simpl_schema_1.default(schema);
65
+ initializeCollection();
66
+ function initializeCollection() {
67
+ if (index_1.ResolveIOServer.getMainDB()) {
68
+ exports.QueueResponses = index_1.ResolveIOServer.getMainDB().model('queue-responses', DefaultSchema);
69
+ var vSchema = __assign({}, schema);
70
+ vSchema._id = {
71
+ type: mongoose_1.Schema.Types.Mixed
72
+ };
73
+ var VersionSchema = new mongoose_1.Schema(vSchema, {
74
+ skipVersioning: true,
75
+ versionKey: false,
76
+ timestamps: true
77
+ });
78
+ exports.QueueResponses['versionCollection'] = 'queue-responses.versions';
79
+ exports.QueueResponseVersions = index_1.ResolveIOServer.getMainDB().model(exports.QueueResponses['versionCollection'], VersionSchema);
80
+ exports.QueueResponses['simplschema'] = new simpl_schema_1.default(schema);
81
+ }
82
+ else {
83
+ setTimeout(function () {
84
+ initializeCollection();
85
+ }, 0);
86
+ }
79
87
  }
80
88
 
81
89
  //# sourceMappingURL=queue-response.collection.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/collections/queue-response.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,MAAM,EAAE;QACP,IAAI,EAAE,MAAM;KACZ;IACD,KAAK,EAAE;QACN,IAAI,EAAE,MAAM;KACZ;IACD,SAAS,EAAE;QACV,IAAI,EAAE,MAAM;KACZ;IACD,OAAO,EAAE;QACR,IAAI,EAAE,MAAM;KACZ;IACD,IAAI,EAAE;QACL,IAAI,EAAE,MAAM;KACZ;IACD,QAAQ,EAAE;QACT,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,IAAI,EAAE;QACL,IAAI,EAAE,IAAI;KACV;CACD,CAAC;AAEF,IAAM,aAAa,GAAG,IAAI,iBAAM,CAAC,MAAM,EAAE;IACxC,cAAc,EAAE,IAAI;IACpB,UAAU,EAAE,KAAK;IACjB,UAAU,EAAE,IAAI;CAChB,CAAC,CAAC;AAEH,aAAa,CAAC,KAAK,CAAC,EAAC,IAAI,EAAE,CAAC,EAAC,EAAE,EAAC,kBAAkB,EAAE,EAAE,EAAC,CAAC,CAAC;AAI9C,QAAA,cAAc,GAA0B,IAAI,CAAC;AAC7C,QAAA,qBAAqB,GAA0B,IAAI,CAAC;AAE/D,IAAI,uBAAe,CAAC,SAAS,EAAE,EAAE;IAChC,sBAAc,GAAG,uBAAe,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;IAErF,IAAI,OAAO,gBAAQ,MAAM,CAAE,CAAC;IAC5B,OAAO,CAAC,GAAG,GAAG;QACb,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,KAAK;KACxB,CAAC;IAEF,IAAI,aAAa,GAAG,IAAI,iBAAM,CAAC,OAAO,EAAE;QACvC,cAAc,EAAE,IAAI;QACpB,UAAU,EAAE,KAAK;QACjB,UAAU,EAAE,IAAI;KAChB,CAAC,CAAC;IAEH,sBAAc,CAAC,mBAAmB,CAAC,GAAG,0BAA0B,CAAC;IAEjE,6BAAqB,GAAG,uBAAe,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,sBAAc,CAAC,mBAAmB,CAAC,EAAE,aAAa,CAAC,CAAC;IAE9G,sBAAc,CAAC,aAAa,CAAC,GAAG,IAAI,sBAAY,CAAC,MAAM,CAAC,CAAC;CACzD","file":"queue-response.collection.js","sourcesContent":["import { Schema, Model, Document } from 'mongoose';\nimport SimpleSchema from 'simpl-schema';\nimport { ResolveIOServer } from '../index';\nimport { QueueResponseModel } from '../models/queue-response.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\tmethod: {\n\t\ttype: String\n\t},\n\tid_ws: {\n\t\ttype: String\n\t},\n\tmessageId: {\n\t\ttype: Number\n\t},\n\tid_user: {\n\t\ttype: String\n\t},\n\tuser: {\n\t\ttype: String\n\t},\n\tresponse: {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tdate: {\n\t\ttype: Date\n\t}\n};\n\nconst DefaultSchema = new Schema(schema, {\n\tskipVersioning: true,\n\tversionKey: false,\n\ttimestamps: true\n});\n\nDefaultSchema.index({date: 1}, {expireAfterSeconds: 60});\n\ninterface ResolveIOModel extends QueueResponseModel, Document {}\n\nexport let QueueResponses: Model<ResolveIOModel> = null;\nexport let QueueResponseVersions: Model<ResolveIOModel> = null;\n\nif (ResolveIOServer.getMainDB()) {\n\tQueueResponses = ResolveIOServer.getMainDB().model('queue-responses', DefaultSchema); \n\n\tlet vSchema = { ...schema };\n\tvSchema._id = {\n\t\ttype: Schema.Types.Mixed\n\t};\n\n\tlet VersionSchema = new Schema(vSchema, {\n\t\tskipVersioning: true,\n\t\tversionKey: false,\n\t\ttimestamps: true\n\t});\n\n\tQueueResponses['versionCollection'] = 'queue-responses.versions';\n\n\tQueueResponseVersions = ResolveIOServer.getMainDB().model(QueueResponses['versionCollection'], VersionSchema);\n\n\tQueueResponses['simplschema'] = new SimpleSchema(schema);\n}"]}
1
+ {"version":3,"sources":["../../src/collections/queue-response.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,MAAM,EAAE;QACP,IAAI,EAAE,MAAM;KACZ;IACD,KAAK,EAAE;QACN,IAAI,EAAE,MAAM;KACZ;IACD,SAAS,EAAE;QACV,IAAI,EAAE,MAAM;KACZ;IACD,OAAO,EAAE;QACR,IAAI,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AAC,CAAC;KACzD;SACI;QACJ,UAAU,CAAC;YACV,oBAAoB,EAAE,CAAC;QACxB,CAAC,EAAE,CAAC,CAAC,CAAC;KACN;AACF,CAAC","file":"queue-response.collection.js","sourcesContent":["import { Schema, Model, Document } from 'mongoose';\nimport SimpleSchema from 'simpl-schema';\nimport { ResolveIOServer } from '../index';\nimport { QueueResponseModel } from '../models/queue-response.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\tmethod: {\n\t\ttype: String\n\t},\n\tid_ws: {\n\t\ttype: String\n\t},\n\tmessageId: {\n\t\ttype: Number\n\t},\n\tid_user: {\n\t\ttype: String\n\t},\n\tuser: {\n\t\ttype: String\n\t},\n\tresponse: {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tdate: {\n\t\ttype: Date\n\t}\n};\n\nconst DefaultSchema = new Schema(schema, {\n\tskipVersioning: true,\n\tversionKey: false,\n\ttimestamps: true\n});\n\nDefaultSchema.index({date: 1}, {expireAfterSeconds: 60});\n\ninterface ResolveIOModel extends QueueResponseModel, Document {}\n\nexport let QueueResponses: Model<ResolveIOModel> = null;\nexport let QueueResponseVersions: Model<ResolveIOModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer.getMainDB()) {\n\t\tQueueResponses = ResolveIOServer.getMainDB().model('queue-responses', 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\tQueueResponses['versionCollection'] = 'queue-responses.versions';\n\n\t\tQueueResponseVersions = ResolveIOServer.getMainDB().model(QueueResponses['versionCollection'], VersionSchema);\n\n\t\tQueueResponses['simplschema'] = new SimpleSchema(schema);\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 0);\n\t}\n}"]}
@@ -78,20 +78,28 @@ DefaultSchema.index({ id_user_create: 1 });
78
78
  DefaultSchema.index({ 'user_groups.id_user_group': 1 });
79
79
  exports.ReportBuilderLibraries = null;
80
80
  exports.ReportBuilderLibraryVersions = null;
81
- if (index_1.ResolveIOServer.getMainDB()) {
82
- exports.ReportBuilderLibraries = index_1.ResolveIOServer.getMainDB().model('report-builder-libraries', DefaultSchema);
83
- var vSchema = __assign({}, schema);
84
- vSchema._id = {
85
- type: mongoose_1.Schema.Types.Mixed
86
- };
87
- var VersionSchema = new mongoose_1.Schema(vSchema, {
88
- skipVersioning: true,
89
- versionKey: false,
90
- timestamps: true
91
- });
92
- exports.ReportBuilderLibraries['versionCollection'] = 'report-builder-libraries.versions';
93
- exports.ReportBuilderLibraryVersions = index_1.ResolveIOServer.getMainDB().model(exports.ReportBuilderLibraries['versionCollection'], VersionSchema);
94
- exports.ReportBuilderLibraries['simplschema'] = new simpl_schema_1.default(schema);
81
+ initializeCollection();
82
+ function initializeCollection() {
83
+ if (index_1.ResolveIOServer.getMainDB()) {
84
+ exports.ReportBuilderLibraries = index_1.ResolveIOServer.getMainDB().model('report-builder-libraries', DefaultSchema);
85
+ var vSchema = __assign({}, schema);
86
+ vSchema._id = {
87
+ type: mongoose_1.Schema.Types.Mixed
88
+ };
89
+ var VersionSchema = new mongoose_1.Schema(vSchema, {
90
+ skipVersioning: true,
91
+ versionKey: false,
92
+ timestamps: true
93
+ });
94
+ exports.ReportBuilderLibraries['versionCollection'] = 'report-builder-libraries.versions';
95
+ exports.ReportBuilderLibraryVersions = index_1.ResolveIOServer.getMainDB().model(exports.ReportBuilderLibraries['versionCollection'], VersionSchema);
96
+ exports.ReportBuilderLibraries['simplschema'] = new simpl_schema_1.default(schema);
97
+ }
98
+ else {
99
+ setTimeout(function () {
100
+ initializeCollection();
101
+ }, 0);
102
+ }
95
103
  }
96
104
 
97
105
  //# sourceMappingURL=report-builder-library.collection.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/collections/report-builder-library.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,cAAc,EAAE;QACf,IAAI,EAAE,MAAM;KACZ;IACD,WAAW,EAAE;QACZ,IAAI,EAAE,MAAM;KACZ;IACD,IAAI,EAAE;QACL,IAAI,EAAE,IAAI;KACV;IACD,OAAO,EAAE;QACR,IAAI,EAAE,KAAK;KACX;IACD,WAAW,EAAE;QACZ,IAAI,EAAE,MAAM;KACZ;IACD,qBAAqB,EAAE;QACtB,IAAI,EAAE,MAAM;KACZ;IACD,kBAAkB,EAAE;QACnB,IAAI,EAAE,MAAM;KACZ;IACD,WAAW,EAAE;QACZ,IAAI,EAAE,KAAK;KACX;IACD,eAAe,EAAE;QAChB,IAAI,EAAE,MAAM;KACZ;IACD,6BAA6B,EAAE;QAC9B,IAAI,EAAE,MAAM;KACZ;IACD,0BAA0B,EAAE;QAC3B,IAAI,EAAE,MAAM;KACZ;CACD,CAAC;AAEF,IAAM,aAAa,GAAG,IAAI,iBAAM,CAAC,MAAM,EAAE;IACxC,cAAc,EAAE,IAAI;IACpB,UAAU,EAAE,KAAK;IACjB,UAAU,EAAE,IAAI;CAChB,CAAC,CAAC;AAEH,aAAa,CAAC,KAAK,CAAC,EAAC,IAAI,EAAE,CAAC,EAAC,CAAC,CAAC;AAC/B,aAAa,CAAC,KAAK,CAAC,EAAC,cAAc,EAAE,CAAC,EAAC,CAAC,CAAC;AACzC,aAAa,CAAC,KAAK,CAAC,EAAC,2BAA2B,EAAE,CAAC,EAAC,CAAC,CAAC;AAI3C,QAAA,sBAAsB,GAA0B,IAAI,CAAC;AACrD,QAAA,4BAA4B,GAA0B,IAAI,CAAC;AAEtE,IAAI,uBAAe,CAAC,SAAS,EAAE,EAAE;IAChC,8BAAsB,GAAG,uBAAe,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,0BAA0B,EAAE,aAAa,CAAC,CAAC;IAEtG,IAAI,OAAO,gBAAQ,MAAM,CAAE,CAAC;IAC5B,OAAO,CAAC,GAAG,GAAG;QACb,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,KAAK;KACxB,CAAC;IAEF,IAAI,aAAa,GAAG,IAAI,iBAAM,CAAC,OAAO,EAAE;QACvC,cAAc,EAAE,IAAI;QACpB,UAAU,EAAE,KAAK;QACjB,UAAU,EAAE,IAAI;KAChB,CAAC,CAAC;IAEH,8BAAsB,CAAC,mBAAmB,CAAC,GAAG,mCAAmC,CAAC;IAElF,oCAA4B,GAAG,uBAAe,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,8BAAsB,CAAC,mBAAmB,CAAC,EAAE,aAAa,CAAC,CAAC;IAE7H,8BAAsB,CAAC,aAAa,CAAC,GAAG,IAAI,sBAAY,CAAC,MAAM,CAAC,CAAC;CACjE","file":"report-builder-library.collection.js","sourcesContent":["import { Schema, Model, Document } from 'mongoose';\nimport SimpleSchema from 'simpl-schema';\nimport { ResolveIOServer } from '../index';\nimport { ReportBuilderLibraryModel } from '../models/report-builder-library.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\tid_user_create: {\n\t\ttype: String\n\t},\n\tuser_create: {\n\t\ttype: String\n\t},\n\tdate: {\n\t\ttype: Date\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': {\n\t\ttype: String\n\t},\n\tuser_groups: {\n\t\ttype: Array\n\t},\n\t'user_groups.$': {\n\t\ttype: Object\n\t},\n\t'user_groups.$.id_user_group': {\n\t\ttype: String\n\t},\n\t'user_groups.$.user_group': {\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({id_user_create: 1});\nDefaultSchema.index({'user_groups.id_user_group': 1});\n\ninterface ResolveIOModel extends ReportBuilderLibraryModel, Document {}\n\nexport let ReportBuilderLibraries: Model<ResolveIOModel> = null;\nexport let ReportBuilderLibraryVersions: Model<ResolveIOModel> = null;\n\nif (ResolveIOServer.getMainDB()) {\n\tReportBuilderLibraries = ResolveIOServer.getMainDB().model('report-builder-libraries', DefaultSchema);\n\n\tlet vSchema = { ...schema };\n\tvSchema._id = {\n\t\ttype: Schema.Types.Mixed\n\t};\n\n\tlet VersionSchema = new Schema(vSchema, {\n\t\tskipVersioning: true,\n\t\tversionKey: false,\n\t\ttimestamps: true\n\t});\n\n\tReportBuilderLibraries['versionCollection'] = 'report-builder-libraries.versions';\n\n\tReportBuilderLibraryVersions = ResolveIOServer.getMainDB().model(ReportBuilderLibraries['versionCollection'], VersionSchema);\n\n\tReportBuilderLibraries['simplschema'] = new SimpleSchema(schema);\n}"]}
1
+ {"version":3,"sources":["../../src/collections/report-builder-library.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,cAAc,EAAE;QACf,IAAI,EAAE,MAAM;KACZ;IACD,WAAW,EAAE;QACZ,IAAI,EAAE,MAAM;KACZ;IACD,IAAI,EAAE;QACL,IAAI,EAAE,IAAI;KACV;IACD,OAAO,EAAE;QACR,IAAI,EAAE,KAAK;KACX;IACD,WAAW,EAAE;QACZ,IAAI,EAAE,MAAM;KACZ;IACD,qBAAqB,EAAE;QACtB,IAAI,EAAE,MAAM;KACZ;IACD,kBAAkB,EAAE;QACnB,IAAI,EAAE,MAAM;KACZ;IACD,WAAW,EAAE;QACZ,IAAI,EAAE,KAAK;KACX;IACD,eAAe,EAAE;QAChB,IAAI,EAAE,MAAM;KACZ;IACD,6BAA6B,EAAE;QAC9B,IAAI,EAAE,MAAM;KACZ;IACD,0BAA0B,EAAE;QAC3B,IAAI,EAAE,MAAM;KACZ;CACD,CAAC;AAEF,IAAM,aAAa,GAAG,IAAI,iBAAM,CAAC,MAAM,EAAE;IACxC,cAAc,EAAE,IAAI;IACpB,UAAU,EAAE,KAAK;IACjB,UAAU,EAAE,IAAI;CAChB,CAAC,CAAC;AAEH,aAAa,CAAC,KAAK,CAAC,EAAC,IAAI,EAAE,CAAC,EAAC,CAAC,CAAC;AAC/B,aAAa,CAAC,KAAK,CAAC,EAAC,cAAc,EAAE,CAAC,EAAC,CAAC,CAAC;AACzC,aAAa,CAAC,KAAK,CAAC,EAAC,2BAA2B,EAAE,CAAC,EAAC,CAAC,CAAC;AAI3C,QAAA,sBAAsB,GAA0B,IAAI,CAAC;AACrD,QAAA,4BAA4B,GAA0B,IAAI,CAAC;AAEtE,oBAAoB,EAAE,CAAC;AAEvB,SAAS,oBAAoB;IAC5B,IAAI,uBAAe,CAAC,SAAS,EAAE,EAAE;QAChC,8BAAsB,GAAG,uBAAe,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,0BAA0B,EAAE,aAAa,CAAC,CAAC;QAEtG,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,8BAAsB,CAAC,mBAAmB,CAAC,GAAG,mCAAmC,CAAC;QAElF,oCAA4B,GAAG,uBAAe,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,8BAAsB,CAAC,mBAAmB,CAAC,EAAE,aAAa,CAAC,CAAC;QAE7H,8BAAsB,CAAC,aAAa,CAAC,GAAG,IAAI,sBAAY,CAAC,MAAM,CAAC,CAAC;KACjE;SACI;QACJ,UAAU,CAAC;YACV,oBAAoB,EAAE,CAAC;QACxB,CAAC,EAAE,CAAC,CAAC,CAAC;KACN;AACF,CAAC","file":"report-builder-library.collection.js","sourcesContent":["import { Schema, Model, Document } from 'mongoose';\nimport SimpleSchema from 'simpl-schema';\nimport { ResolveIOServer } from '../index';\nimport { ReportBuilderLibraryModel } from '../models/report-builder-library.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\tid_user_create: {\n\t\ttype: String\n\t},\n\tuser_create: {\n\t\ttype: String\n\t},\n\tdate: {\n\t\ttype: Date\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': {\n\t\ttype: String\n\t},\n\tuser_groups: {\n\t\ttype: Array\n\t},\n\t'user_groups.$': {\n\t\ttype: Object\n\t},\n\t'user_groups.$.id_user_group': {\n\t\ttype: String\n\t},\n\t'user_groups.$.user_group': {\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({id_user_create: 1});\nDefaultSchema.index({'user_groups.id_user_group': 1});\n\ninterface ResolveIOModel extends ReportBuilderLibraryModel, Document {}\n\nexport let ReportBuilderLibraries: Model<ResolveIOModel> = null;\nexport let ReportBuilderLibraryVersions: Model<ResolveIOModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer.getMainDB()) {\n\t\tReportBuilderLibraries = ResolveIOServer.getMainDB().model('report-builder-libraries', 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\tReportBuilderLibraries['versionCollection'] = 'report-builder-libraries.versions';\n\n\t\tReportBuilderLibraryVersions = ResolveIOServer.getMainDB().model(ReportBuilderLibraries['versionCollection'], VersionSchema);\n\n\t\tReportBuilderLibraries['simplschema'] = new SimpleSchema(schema);\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 0);\n\t}\n}"]}
@@ -138,20 +138,28 @@ DefaultSchema.index({ shared_users: 1 });
138
138
  DefaultSchema.index({ report_name: 1, collection_root: 1 });
139
139
  exports.ReportBuilderReports = null;
140
140
  exports.ReportBuilderReportVersions = null;
141
- if (index_1.ResolveIOServer.getMainDB()) {
142
- exports.ReportBuilderReports = index_1.ResolveIOServer.getMainDB().model('report-builder-reports', DefaultSchema);
143
- var vSchema = __assign({}, schema);
144
- vSchema._id = {
145
- type: mongoose_1.Schema.Types.Mixed
146
- };
147
- var VersionSchema = new mongoose_1.Schema(vSchema, {
148
- skipVersioning: true,
149
- versionKey: false,
150
- timestamps: true
151
- });
152
- exports.ReportBuilderReports['versionCollection'] = 'report-builder-reports.versions';
153
- exports.ReportBuilderReportVersions = index_1.ResolveIOServer.getMainDB().model(exports.ReportBuilderReports['versionCollection'], VersionSchema);
154
- exports.ReportBuilderReports['simplschema'] = new simpl_schema_1.default(schema);
141
+ initializeCollection();
142
+ function initializeCollection() {
143
+ if (index_1.ResolveIOServer.getMainDB()) {
144
+ exports.ReportBuilderReports = index_1.ResolveIOServer.getMainDB().model('report-builder-reports', DefaultSchema);
145
+ var vSchema = __assign({}, schema);
146
+ vSchema._id = {
147
+ type: mongoose_1.Schema.Types.Mixed
148
+ };
149
+ var VersionSchema = new mongoose_1.Schema(vSchema, {
150
+ skipVersioning: true,
151
+ versionKey: false,
152
+ timestamps: true
153
+ });
154
+ exports.ReportBuilderReports['versionCollection'] = 'report-builder-reports.versions';
155
+ exports.ReportBuilderReportVersions = index_1.ResolveIOServer.getMainDB().model(exports.ReportBuilderReports['versionCollection'], VersionSchema);
156
+ exports.ReportBuilderReports['simplschema'] = new simpl_schema_1.default(schema);
157
+ }
158
+ else {
159
+ setTimeout(function () {
160
+ initializeCollection();
161
+ }, 0);
162
+ }
155
163
  }
156
164
 
157
165
  //# sourceMappingURL=report-builder-report.collection.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/collections/report-builder-report.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,eAAe,EAAE;QAChB,IAAI,EAAE,MAAM;KACZ;IACD,WAAW,EAAE;QACZ,IAAI,EAAE,MAAM;KACZ;IACD,WAAW,EAAE;QACZ,IAAI,EAAE,KAAK;KACX;IACD,eAAe,EAAE;QAChB,IAAI,EAAE,MAAM;KACZ;IACD,qBAAqB,EAAE;QACtB,IAAI,EAAE,MAAM;KACZ;IACD,qBAAqB,EAAE;QACtB,IAAI,EAAE,MAAM;KACZ;IACD,aAAa,EAAE;QACd,IAAI,EAAE,KAAK;KACX;IACD,iBAAiB,EAAE;QAClB,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,aAAa,EAAE;QACd,IAAI,EAAE,KAAK;KACX;IACD,iBAAiB,EAAE;QAClB,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,eAAe,EAAE;QAChB,IAAI,EAAE,KAAK;KACX;IACD,mBAAmB,EAAE;QACpB,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,YAAY,EAAE;QACb,IAAI,EAAE,KAAK;KACX;IACD,gBAAgB,EAAE;QACjB,IAAI,EAAE,MAAM;QACZ,QAAQ,EA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A,oBAAoB,GAA0B,IAAI,CAAC;AACnD,QAAA,2BAA2B,GAA0B,IAAI,CAAC;AAErE,IAAI,uBAAe,CAAC,SAAS,EAAE,EAAE;IAChC,4BAAoB,GAAG,uBAAe,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,wBAAwB,EAAE,aAAa,CAAC,CAAC;IAElG,IAAI,OAAO,gBAAQ,MAAM,CAAE,CAAC;IAC5B,OAAO,CAAC,GAAG,GAAG;QACb,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,KAAK;KACxB,CAAC;IAEF,IAAI,aAAa,GAAG,IAAI,iBAAM,CAAC,OAAO,EAAE;QACvC,cAAc,EAAE,IAAI;QACpB,UAAU,EAAE,KAAK;QACjB,UAAU,EAAE,IAAI;KAChB,CAAC,CAAC;IAEH,4BAAoB,CAAC,mBAAmB,CAAC,GAAG,iCAAiC,CAAC;IAE9E,mCAA2B,GAAG,uBAAe,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,4BAAoB,CAAC,mBAAmB,CAAC,EAAE,aAAa,CAAC,CAAC;IAE1H,4BAAoB,CAAC,aAAa,CAAC,GAAG,IAAI,sBAAY,CAAC,MAAM,CAAC,CAAC;CAC/D","file":"report-builder-report.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\tcollection_root: {\n\t\ttype: String\n\t},\n\treport_name: {\n\t\ttype: String\n\t},\n\tfields_sort: {\n\t\ttype: Array\n\t},\n\t'fields_sort.$': {\n\t\ttype: Object\n\t},\n\t'fields_sort.$.field': {\n\t\ttype: String\n\t},\n\t'fields_sort.$.order': {\n\t\ttype: String\n\t},\n\tfields_filter: {\n\t\ttype: Array\n\t},\n\t'fields_filter.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tfields_custom: {\n\t\ttype: Array\n\t},\n\t'fields_custom.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tfields_selected: {\n\t\ttype: Array\n\t},\n\t'fields_selected.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tfields_total: {\n\t\ttype: Array\n\t},\n\t'fields_total.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tfields_link: {\n\t\ttype: Array\n\t},\n\t'fields_link.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tid_user: {\n\t\ttype: String\n\t},\n\tuser: {\n\t\ttype: String\n\t},\n\tdate_created: {\n\t\ttype: Date\n\t},\n\tshared_users: {\n\t\ttype: Array\n\t},\n\t'shared_users.$': {\n\t\ttype: String\n\t},\n\ttype: {\n\t\ttype: String\n\t},\n\tgroups_row: {\n\t\ttype: Array\n\t},\n\t'groups_row.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tgroups_column: {\n\t\ttype: Array\n\t},\n\t'groups_column.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tgroup_type: {\n\t\ttype: String\n\t},\n\tid_date_field: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\tdate_interval: {\n\t\ttype: String,\n\t\toptional: true\n\t}\n};\n\nconst DefaultSchema = new Schema(schema, {\n\tskipVersioning: true,\n\tversionKey: false,\n\ttimestamps: true\n});\n\nDefaultSchema.index({id_user: 1});\nDefaultSchema.index({shared_users: 1});\nDefaultSchema.index({report_name: 1, collection_root: 1});\n\ninterface ResolveIOModel extends ReportBuilderReportModel, Document {}\n\nexport let ReportBuilderReports: Model<ResolveIOModel> = null;\nexport let ReportBuilderReportVersions: Model<ResolveIOModel> = null;\n\nif (ResolveIOServer.getMainDB()) {\n\tReportBuilderReports = ResolveIOServer.getMainDB().model('report-builder-reports', DefaultSchema);\n\n\tlet vSchema = { ...schema };\n\tvSchema._id = {\n\t\ttype: Schema.Types.Mixed\n\t};\n\n\tlet VersionSchema = new Schema(vSchema, {\n\t\tskipVersioning: true,\n\t\tversionKey: false,\n\t\ttimestamps: true\n\t});\n\n\tReportBuilderReports['versionCollection'] = 'report-builder-reports.versions';\n\n\tReportBuilderReportVersions = ResolveIOServer.getMainDB().model(ReportBuilderReports['versionCollection'], VersionSchema);\n\n\tReportBuilderReports['simplschema'] = new SimpleSchema(schema);\n}"]}
1
+ {"version":3,"sources":["../../src/collections/report-builder-report.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,eAAe,EAAE;QAChB,IAAI,EAAE,MAAM;KACZ;IACD,WAAW,EAAE;QACZ,IAAI,EAAE,MAAM;KACZ;IACD,WAAW,EAAE;QACZ,IAAI,EAAE,KAAK;KACX;IACD,eAAe,EAAE;QAChB,IAAI,EAAE,MAAM;KACZ;IACD,qBAAqB,EAAE;QACtB,IAAI,EAAE,MAAM;KACZ;IACD,qBAAqB,EAAE;QACtB,IAAI,EAAE,MAAM;KACZ;IACD,aAAa,EAAE;QACd,IAAI,EAAE,KAAK;KACX;IACD,iBAAiB,EAAE;QAClB,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,aAAa,EAAE;QACd,IAAI,EAA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":["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\tcollection_root: {\n\t\ttype: String\n\t},\n\treport_name: {\n\t\ttype: String\n\t},\n\tfields_sort: {\n\t\ttype: Array\n\t},\n\t'fields_sort.$': {\n\t\ttype: Object\n\t},\n\t'fields_sort.$.field': {\n\t\ttype: String\n\t},\n\t'fields_sort.$.order': {\n\t\ttype: String\n\t},\n\tfields_filter: {\n\t\ttype: Array\n\t},\n\t'fields_filter.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tfields_custom: {\n\t\ttype: Array\n\t},\n\t'fields_custom.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tfields_selected: {\n\t\ttype: Array\n\t},\n\t'fields_selected.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tfields_total: {\n\t\ttype: Array\n\t},\n\t'fields_total.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tfields_link: {\n\t\ttype: Array\n\t},\n\t'fields_link.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tid_user: {\n\t\ttype: String\n\t},\n\tuser: {\n\t\ttype: String\n\t},\n\tdate_created: {\n\t\ttype: Date\n\t},\n\tshared_users: {\n\t\ttype: Array\n\t},\n\t'shared_users.$': {\n\t\ttype: String\n\t},\n\ttype: {\n\t\ttype: String\n\t},\n\tgroups_row: {\n\t\ttype: Array\n\t},\n\t'groups_row.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tgroups_column: {\n\t\ttype: Array\n\t},\n\t'groups_column.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tgroup_type: {\n\t\ttype: String\n\t},\n\tid_date_field: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\tdate_interval: {\n\t\ttype: String,\n\t\toptional: true\n\t}\n};\n\nconst DefaultSchema = new Schema(schema, {\n\tskipVersioning: true,\n\tversionKey: false,\n\ttimestamps: true\n});\n\nDefaultSchema.index({id_user: 1});\nDefaultSchema.index({shared_users: 1});\nDefaultSchema.index({report_name: 1, collection_root: 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-reports', 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-reports.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}"]}
@@ -80,25 +80,33 @@ var DefaultSchema = new mongoose_1.Schema(schema, {
80
80
  DefaultSchema.index({ name: 1 });
81
81
  exports.UserGroups = null;
82
82
  exports.UserGroupVersions = null;
83
- if (index_1.ResolveIOServer.getMainDB()) {
84
- exports.UserGroups = index_1.ResolveIOServer.getMainDB().model('user-groups', DefaultSchema);
85
- var vSchema = __assign({}, schema);
86
- vSchema._id = {
87
- type: mongoose_1.Schema.Types.Mixed
88
- };
89
- var VersionSchema = new mongoose_1.Schema(vSchema, {
90
- skipVersioning: true,
91
- versionKey: false,
92
- timestamps: true
93
- });
94
- VersionSchema.index({ '_id.__v': 1, '_id._id': 1 });
95
- exports.UserGroups['versionCollection'] = 'user-groups.versions';
96
- exports.UserGroupVersions = index_1.ResolveIOServer.getMainDB().model(exports.UserGroups['versionCollection'], VersionSchema);
97
- exports.UserGroups['simplschema'] = new simpl_schema_1.default(schema);
98
- //------------- Report Builder Schema
99
- var rbLookups = [];
100
- var rbSchema = Object.assign(schema, schema_report_builder_1.buildRbLookups(rbLookups, DefaultSchema, []));
101
- exports.UserGroups['rbSchema'] = schema_report_builder_1.buildRbSchema(rbSchema);
83
+ initializeCollection();
84
+ function initializeCollection() {
85
+ if (index_1.ResolveIOServer.getMainDB()) {
86
+ exports.UserGroups = index_1.ResolveIOServer.getMainDB().model('user-groups', DefaultSchema);
87
+ var vSchema = __assign({}, schema);
88
+ vSchema._id = {
89
+ type: mongoose_1.Schema.Types.Mixed
90
+ };
91
+ var VersionSchema = new mongoose_1.Schema(vSchema, {
92
+ skipVersioning: true,
93
+ versionKey: false,
94
+ timestamps: true
95
+ });
96
+ VersionSchema.index({ '_id.__v': 1, '_id._id': 1 });
97
+ exports.UserGroups['versionCollection'] = 'user-groups.versions';
98
+ exports.UserGroupVersions = index_1.ResolveIOServer.getMainDB().model(exports.UserGroups['versionCollection'], VersionSchema);
99
+ exports.UserGroups['simplschema'] = new simpl_schema_1.default(schema);
100
+ //------------- Report Builder Schema
101
+ var rbLookups = [];
102
+ var rbSchema = Object.assign(schema, schema_report_builder_1.buildRbLookups(rbLookups, DefaultSchema, []));
103
+ exports.UserGroups['rbSchema'] = schema_report_builder_1.buildRbSchema(rbSchema);
104
+ }
105
+ else {
106
+ setTimeout(function () {
107
+ initializeCollection();
108
+ }, 0);
109
+ }
102
110
  }
103
111
 
104
112
  //# sourceMappingURL=user-group.collection.js.map