@resolveio/server-lib 8.0.15 → 8.0.17
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.
- package/collections/app-status.collection.d.ts +2 -2
- package/collections/app-status.collection.js +16 -12
- package/collections/app-status.collection.js.map +1 -1
- package/collections/app-version.collection.d.ts +2 -2
- package/collections/app-version.collection.js +18 -14
- package/collections/app-version.collection.js.map +1 -1
- package/collections/counter.collection.d.ts +2 -2
- package/collections/counter.collection.js +18 -14
- package/collections/counter.collection.js.map +1 -1
- package/collections/cron-job-history.collection.d.ts +2 -2
- package/collections/cron-job-history.collection.js +17 -13
- package/collections/cron-job-history.collection.js.map +1 -1
- package/collections/cron-job.collection.d.ts +2 -2
- package/collections/cron-job.collection.js +17 -13
- package/collections/cron-job.collection.js.map +1 -1
- package/collections/email-history.collection.d.ts +2 -2
- package/collections/email-history.collection.js +16 -12
- package/collections/email-history.collection.js.map +1 -1
- package/collections/email-verified.collection.d.ts +2 -2
- package/collections/email-verified.collection.js +16 -12
- package/collections/email-verified.collection.js.map +1 -1
- package/collections/file.collection.d.ts +2 -2
- package/collections/file.collection.js +20 -16
- package/collections/file.collection.js.map +1 -1
- package/collections/flag.collection.d.ts +2 -2
- package/collections/flag.collection.js +16 -12
- package/collections/flag.collection.js.map +1 -1
- package/collections/log-method-latency.collection.d.ts +2 -2
- package/collections/log-method-latency.collection.js +15 -11
- package/collections/log-method-latency.collection.js.map +1 -1
- package/collections/log-subscription.collection.d.ts +2 -2
- package/collections/log-subscription.collection.js +15 -11
- package/collections/log-subscription.collection.js.map +1 -1
- package/collections/log.collection.d.ts +2 -2
- package/collections/log.collection.js +15 -11
- package/collections/log.collection.js.map +1 -1
- package/collections/logged-in-users.collection.d.ts +2 -2
- package/collections/logged-in-users.collection.js +16 -12
- package/collections/logged-in-users.collection.js.map +1 -1
- package/collections/method-call.collection.d.ts +1 -1
- package/collections/method-call.collection.js +5 -2
- package/collections/method-call.collection.js.map +1 -1
- package/collections/method-response.collection.d.ts +1 -1
- package/collections/method-response.collection.js +5 -2
- package/collections/method-response.collection.js.map +1 -1
- package/collections/monitor-cpu.collection.d.ts +2 -2
- package/collections/monitor-cpu.collection.js +16 -12
- package/collections/monitor-cpu.collection.js.map +1 -1
- package/collections/monitor-https-inbound.collection.d.ts +2 -2
- package/collections/monitor-https-inbound.collection.js +16 -12
- package/collections/monitor-https-inbound.collection.js.map +1 -1
- package/collections/monitor-https-outbound.collection.d.ts +2 -2
- package/collections/monitor-https-outbound.collection.js +16 -12
- package/collections/monitor-https-outbound.collection.js.map +1 -1
- package/collections/monitor-memory.collection.d.ts +2 -2
- package/collections/monitor-memory.collection.js +16 -12
- package/collections/monitor-memory.collection.js.map +1 -1
- package/collections/monitor-mongo.collection.d.ts +2 -2
- package/collections/monitor-mongo.collection.js +16 -12
- package/collections/monitor-mongo.collection.js.map +1 -1
- package/collections/notification.collection.d.ts +2 -2
- package/collections/notification.collection.js +16 -12
- package/collections/notification.collection.js.map +1 -1
- package/collections/queue-flag.collection.d.ts +2 -2
- package/collections/queue-flag.collection.js +16 -12
- package/collections/queue-flag.collection.js.map +1 -1
- package/collections/queue-method.collection.d.ts +2 -2
- package/collections/queue-method.collection.js +58 -54
- package/collections/queue-method.collection.js.map +1 -1
- package/collections/queue-response.collection.d.ts +2 -2
- package/collections/queue-response.collection.js +17 -13
- package/collections/queue-response.collection.js.map +1 -1
- package/collections/report-builder-library.collection.d.ts +2 -2
- package/collections/report-builder-library.collection.js +17 -13
- package/collections/report-builder-library.collection.js.map +1 -1
- package/collections/report-builder-report.collection.d.ts +2 -2
- package/collections/report-builder-report.collection.js +17 -13
- package/collections/report-builder-report.collection.js.map +1 -1
- package/collections/user-group.collection.d.ts +2 -2
- package/collections/user-group.collection.js +22 -18
- package/collections/user-group.collection.js.map +1 -1
- package/collections/user-guide.collection.d.ts +2 -2
- package/collections/user-guide.collection.js +20 -16
- package/collections/user-guide.collection.js.map +1 -1
- package/collections/user.collection.d.ts +3 -3
- package/collections/user.collection.js +21 -17
- package/collections/user.collection.js.map +1 -1
- package/http/auth.js.map +1 -1
- package/index.d.ts +1 -0
- package/index.js +4 -0
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +70 -0
- package/public_api.js +39 -0
- package/public_api.js.map +1 -0
- package/server-app.js.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/collections/monitor-memory.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,cAAc,EAAE;QACf,IAAI,EAAE,MAAM;KACZ;IACD,aAAa,EAAE;QACd,IAAI,EAAE,MAAM;KACZ;IACD,aAAa,EAAE;QACd,IAAI,EAAE,MAAM;KACZ;IACD,OAAO,EAAE;QACR,IAAI,EAAE,MAAM;KACZ;IACD,OAAO,EAAE;QACR,IAAI,EAAE,MAAM;KACZ;IACD,QAAQ,EAAE;QACT,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,CA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\nimport SimpleSchema from 'simpl-schema';\nimport { ResolveIOServer } from '../index';\nimport { MonitorMemoryModel } from '../models/monitor-memory.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\tphysical_total: {\n\t\ttype: Number\n\t},\n\tphysical_used: {\n\t\ttype: Number\n\t},\n\tphysical_free: {\n\t\ttype: Number\n\t},\n\tvirtual: {\n\t\ttype: Number\n\t},\n\tprivate: {\n\t\ttype: Number\n\t},\n\tphysical: {\n\t\ttype: Number\n\t}\n};\n\nconst DefaultSchema = new Schema(schema, {\n\tskipVersioning: true,\n\tversionKey: false,\n\ttimestamps: true\n});\n\nDefaultSchema.index({client: 1, instance: 1, date: 1});\nDefaultSchema.index({client: 1, date: 1});\nDefaultSchema.index({date: 1}, {expireAfterSeconds: 60 * 60 * 24 * 30});\n\ninterface ResolveIOModel extends MonitorMemoryModel, Document {}\n\nexport let MonitorMemorys: Model<ResolveIOModel> = null;\nexport let MonitorMemoryVersions: Model<ResolveIOModel> = null;\n\nif (ResolveIOServer.getMainDB()) {\n\tMonitorMemorys = ResolveIOServer.getMainDB().model('monitor-memorys', DefaultSchema);\n\n\tMonitorMemorys['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\tMonitorMemorys['versionCollection'] = 'monitor-memorys.versions';\n\n\tMonitorMemoryVersions = ResolveIOServer.getMainDB().model(MonitorMemorys['versionCollection'], VersionSchema);\n}"]}
|
|
@@ -2,6 +2,6 @@ import { Model, Document } from 'mongoose';
|
|
|
2
2
|
import { MonitorMongoModel } from '../models/monitor-mongo.model';
|
|
3
3
|
interface ResolveIOModel extends MonitorMongoModel, Document {
|
|
4
4
|
}
|
|
5
|
-
export declare
|
|
6
|
-
export declare
|
|
5
|
+
export declare let MonitorMongos: Model<ResolveIOModel>;
|
|
6
|
+
export declare let MonitorMongoVersions: Model<ResolveIOModel>;
|
|
7
7
|
export {};
|
|
@@ -50,17 +50,21 @@ var DefaultSchema = new mongoose_1.Schema(schema, {
|
|
|
50
50
|
DefaultSchema.index({ date: 1 }, { expireAfterSeconds: 60 * 60 * 24 * 30 });
|
|
51
51
|
DefaultSchema.index({ client: 1, date: 1, method: 1 });
|
|
52
52
|
DefaultSchema.index({ client: 1, instance: 1, date: 1, method: 1 });
|
|
53
|
-
exports.MonitorMongos =
|
|
54
|
-
exports.
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
53
|
+
exports.MonitorMongos = null;
|
|
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);
|
|
68
|
+
}
|
|
65
69
|
|
|
66
70
|
//# 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,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,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAC,CAAC,CAAC;AACxE,aAAa,CAAC,KAAK,CAAC,EAAC,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,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AK,CAAC,EAAC,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAC,CAAC,CAAC;AACrD,aAAa,CAAC,KAAK,CAAC,EAAC,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,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,IAAI,uBAAe,CAAC,SAAS,EAAE,EAAE;IAChC,qBAAa,GAAG,uBAAe,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,gBAAgB,EAAE,aAAa,CAAC,CAAC;IAEnF,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,yBAAyB,CAAC;IAE/D,4BAAoB,GAAG,uBAAe,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,qBAAa,CAAC,mBAAmB,CAAC,EAAE,aAAa,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);\n}"]}
|
|
@@ -2,6 +2,6 @@ import { Model, Document } from 'mongoose';
|
|
|
2
2
|
import { NotificationModel } from '../models/notification.model';
|
|
3
3
|
interface ResolveIOModel extends NotificationModel, Document {
|
|
4
4
|
}
|
|
5
|
-
export declare
|
|
6
|
-
export declare
|
|
5
|
+
export declare let Notifications: Model<ResolveIOModel>;
|
|
6
|
+
export declare let NotificationVersions: Model<ResolveIOModel>;
|
|
7
7
|
export {};
|
|
@@ -29,17 +29,21 @@ var DefaultSchema = new mongoose_1.Schema(schema, {
|
|
|
29
29
|
versionKey: false,
|
|
30
30
|
timestamps: true
|
|
31
31
|
});
|
|
32
|
-
exports.Notifications =
|
|
33
|
-
exports.
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
32
|
+
exports.Notifications = null;
|
|
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);
|
|
47
|
+
}
|
|
44
48
|
|
|
45
49
|
//# 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,EA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AAC;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}"]}
|
|
@@ -2,6 +2,6 @@ import { Model, Document } from 'mongoose';
|
|
|
2
2
|
import { CollectionDocument } from '../models/collection-document.model';
|
|
3
3
|
interface ResolveIOModel extends CollectionDocument, Document {
|
|
4
4
|
}
|
|
5
|
-
export declare
|
|
6
|
-
export declare
|
|
5
|
+
export declare let QueueFlags: Model<ResolveIOModel>;
|
|
6
|
+
export declare let QueueFlagVersions: Model<ResolveIOModel>;
|
|
7
7
|
export {};
|
|
@@ -27,17 +27,21 @@ var DefaultSchema = new mongoose_1.Schema(schema, {
|
|
|
27
27
|
timestamps: true
|
|
28
28
|
});
|
|
29
29
|
DefaultSchema.index({ createdAt: 1 }, { expireAfterSeconds: 60 });
|
|
30
|
-
exports.QueueFlags =
|
|
31
|
-
exports.
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
30
|
+
exports.QueueFlags = null;
|
|
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);
|
|
45
|
+
}
|
|
42
46
|
|
|
43
47
|
//# sourceMappingURL=queue-flag.collection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/collections/queue-flag.collection.ts"],"names":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AC,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}"]}
|
|
@@ -2,6 +2,6 @@ import { Model, Document } from 'mongoose';
|
|
|
2
2
|
import { QueueMethodModel } from '../models/queue-method.model';
|
|
3
3
|
interface ResolveIOModel extends QueueMethodModel, Document {
|
|
4
4
|
}
|
|
5
|
-
export declare
|
|
6
|
-
export declare
|
|
5
|
+
export declare let QueueMethods: Model<ResolveIOModel>;
|
|
6
|
+
export declare let QueueMethodVersions: Model<ResolveIOModel>;
|
|
7
7
|
export {};
|
|
@@ -67,59 +67,63 @@ var DefaultSchema = new mongoose_1.Schema(mongooseSchema, {
|
|
|
67
67
|
minimize: false
|
|
68
68
|
});
|
|
69
69
|
DefaultSchema.index({ date: 1 }, { expireAfterSeconds: 60 });
|
|
70
|
-
exports.QueueMethods =
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
70
|
+
exports.QueueMethods = null;
|
|
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);
|
|
127
|
+
}
|
|
124
128
|
|
|
125
129
|
//# 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,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;Q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,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}"]}
|
|
@@ -2,6 +2,6 @@ import { Model, Document } from 'mongoose';
|
|
|
2
2
|
import { QueueResponseModel } from '../models/queue-response.model';
|
|
3
3
|
interface ResolveIOModel extends QueueResponseModel, Document {
|
|
4
4
|
}
|
|
5
|
-
export declare
|
|
6
|
-
export declare
|
|
5
|
+
export declare let QueueResponses: Model<ResolveIOModel>;
|
|
6
|
+
export declare let QueueResponseVersions: Model<ResolveIOModel>;
|
|
7
7
|
export {};
|
|
@@ -60,18 +60,22 @@ var DefaultSchema = new mongoose_1.Schema(schema, {
|
|
|
60
60
|
timestamps: true
|
|
61
61
|
});
|
|
62
62
|
DefaultSchema.index({ date: 1 }, { expireAfterSeconds: 60 });
|
|
63
|
-
exports.QueueResponses =
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
63
|
+
exports.QueueResponses = null;
|
|
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);
|
|
79
|
+
}
|
|
76
80
|
|
|
77
81
|
//# sourceMappingURL=queue-response.collection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/collections/queue-response.collection.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,qCAAmD;AACnD,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ChB,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}"]}
|
|
@@ -2,6 +2,6 @@ import { Model, Document } from 'mongoose';
|
|
|
2
2
|
import { ReportBuilderLibraryModel } from '../models/report-builder-library.model';
|
|
3
3
|
interface ResolveIOModel extends ReportBuilderLibraryModel, Document {
|
|
4
4
|
}
|
|
5
|
-
export declare
|
|
6
|
-
export declare
|
|
5
|
+
export declare let ReportBuilderLibraries: Model<ResolveIOModel>;
|
|
6
|
+
export declare let ReportBuilderLibraryVersions: Model<ResolveIOModel>;
|
|
7
7
|
export {};
|
|
@@ -76,18 +76,22 @@ var DefaultSchema = new mongoose_1.Schema(schema, {
|
|
|
76
76
|
DefaultSchema.index({ name: 1 });
|
|
77
77
|
DefaultSchema.index({ id_user_create: 1 });
|
|
78
78
|
DefaultSchema.index({ 'user_groups.id_user_group': 1 });
|
|
79
|
-
exports.ReportBuilderLibraries =
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
79
|
+
exports.ReportBuilderLibraries = null;
|
|
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);
|
|
95
|
+
}
|
|
92
96
|
|
|
93
97
|
//# 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;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AK,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}"]}
|
|
@@ -2,6 +2,6 @@ import { Model, Document } from 'mongoose';
|
|
|
2
2
|
import { ReportBuilderReportModel } from '../models/report-builder-report.model';
|
|
3
3
|
interface ResolveIOModel extends ReportBuilderReportModel, Document {
|
|
4
4
|
}
|
|
5
|
-
export declare
|
|
6
|
-
export declare
|
|
5
|
+
export declare let ReportBuilderReports: Model<ResolveIOModel>;
|
|
6
|
+
export declare let ReportBuilderReportVersions: Model<ResolveIOModel>;
|
|
7
7
|
export {};
|
|
@@ -136,18 +136,22 @@ var DefaultSchema = new mongoose_1.Schema(schema, {
|
|
|
136
136
|
DefaultSchema.index({ id_user: 1 });
|
|
137
137
|
DefaultSchema.index({ shared_users: 1 });
|
|
138
138
|
DefaultSchema.index({ report_name: 1, collection_root: 1 });
|
|
139
|
-
exports.ReportBuilderReports =
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
139
|
+
exports.ReportBuilderReports = null;
|
|
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);
|
|
155
|
+
}
|
|
152
156
|
|
|
153
157
|
//# 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,EAA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AE,IAAI;IACpB,UAAU,EAAE,KAAK;IACjB,UAAU,EAAE,IAAI;CAChB,CAAC,CAAC;AAEH,aAAa,CAAC,KAAK,CAAC,EAAC,OAAO,EAAE,CAAC,EAAC,CAAC,CAAC;AAClC,aAAa,CAAC,KAAK,CAAC,EAAC,YAAY,EAAE,CAAC,EAAC,CAAC,CAAC;AACvC,aAAa,CAAC,KAAK,CAAC,EAAC,WAAW,EAAE,CAAC,EAAE,eAAe,EAAE,CAAC,EAAC,CAAC,CAAC;AAI/C,QAAA,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}"]}
|
|
@@ -2,6 +2,6 @@ import { Model, Document } from 'mongoose';
|
|
|
2
2
|
import { UserGroupModel } from '../models/user-group.model';
|
|
3
3
|
interface ResolveIOModel extends UserGroupModel, Document {
|
|
4
4
|
}
|
|
5
|
-
export declare
|
|
6
|
-
export declare
|
|
5
|
+
export declare let UserGroups: Model<ResolveIOModel>;
|
|
6
|
+
export declare let UserGroupVersions: Model<ResolveIOModel>;
|
|
7
7
|
export {};
|