@resolveio/server-lib 20.0.27 → 20.0.28
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/client-server-app.js +1 -47
- package/client-server-app.js.map +1 -1
- package/collections/app-status.collection.js +1 -50
- package/collections/app-status.collection.js.map +1 -1
- package/collections/counter.collection.js +1 -53
- package/collections/counter.collection.js.map +1 -1
- package/collections/cron-job-history.collection.js +1 -88
- package/collections/cron-job-history.collection.js.map +1 -1
- package/collections/cron-job.collection.js +1 -84
- package/collections/cron-job.collection.js.map +1 -1
- package/collections/email-history.collection.js +1 -65
- package/collections/email-history.collection.js.map +1 -1
- package/collections/email-verified.collection.js +1 -60
- package/collections/email-verified.collection.js.map +1 -1
- package/collections/file.collection.js +1 -72
- package/collections/file.collection.js.map +1 -1
- package/collections/flag.collection.js +1 -55
- package/collections/flag.collection.js.map +1 -1
- package/collections/log-method-latency.collection.js +1 -63
- package/collections/log-method-latency.collection.js.map +1 -1
- package/collections/log-subscription.collection.js +1 -67
- package/collections/log-subscription.collection.js.map +1 -1
- package/collections/log-ts.collection.js +1 -77
- package/collections/log-ts.collection.js.map +1 -1
- package/collections/log.collection.js +1 -76
- package/collections/log.collection.js.map +1 -1
- package/collections/logged-in-users.collection.js +1 -64
- package/collections/logged-in-users.collection.js.map +1 -1
- package/collections/method-response.collection.js +1 -65
- package/collections/method-response.collection.js.map +1 -1
- package/collections/monitor-cpu.collection.js +1 -62
- package/collections/monitor-cpu.collection.js.map +1 -1
- package/collections/monitor-memory.collection.js +1 -74
- package/collections/monitor-memory.collection.js.map +1 -1
- package/collections/monitor-mongo.collection.js +1 -68
- package/collections/monitor-mongo.collection.js.map +1 -1
- package/collections/notification.collection.js +1 -55
- package/collections/notification.collection.js.map +1 -1
- package/collections/report-builder-dashboard-builder.collection.js +1 -108
- package/collections/report-builder-dashboard-builder.collection.js.map +1 -1
- package/collections/report-builder-library.collection.js +1 -86
- package/collections/report-builder-library.collection.js.map +1 -1
- package/collections/report-builder-report.collection.js +1 -148
- package/collections/report-builder-report.collection.js.map +1 -1
- package/collections/user-group.collection.js +1 -93
- package/collections/user-group.collection.js.map +1 -1
- package/collections/user-guide.collection.js +1 -56
- package/collections/user-guide.collection.js.map +1 -1
- package/collections/user.collection.js +1 -265
- package/collections/user.collection.js.map +1 -1
- package/cron/cron.js +1 -101
- package/cron/cron.js.map +1 -1
- package/fixtures/cron-jobs.js +1 -87
- package/fixtures/cron-jobs.js.map +1 -1
- package/fixtures/init.js +1 -58
- package/fixtures/init.js.map +1 -1
- package/http/auth.js +1 -763
- package/http/auth.js.map +1 -1
- package/http/health.js +1 -11
- package/http/health.js.map +1 -1
- package/http/home.js +1 -65
- package/http/home.js.map +1 -1
- package/index.js +1 -126
- package/index.js.map +1 -1
- package/managers/cron.manager.js +1 -322
- package/managers/cron.manager.js.map +1 -1
- package/managers/method.manager.js +1 -593
- package/managers/method.manager.js.map +1 -1
- package/managers/mongo.manager.js +1 -2259
- package/managers/mongo.manager.js.map +1 -1
- package/managers/monitor.manager.js +1 -350
- package/managers/monitor.manager.js.map +1 -1
- package/managers/subscription.manager.js +1 -1110
- package/managers/subscription.manager.js.map +1 -1
- package/managers/subscription.performance.js +1 -102
- package/managers/subscription.performance.js.map +1 -1
- package/methods/accounts.js +1 -291
- package/methods/accounts.js.map +1 -1
- package/methods/aws.js +1 -634
- package/methods/aws.js.map +1 -1
- package/methods/collections.js +1 -499
- package/methods/collections.js.map +1 -1
- package/methods/counters.js +1 -121
- package/methods/counters.js.map +1 -1
- package/methods/cron-jobs.js +1 -1337
- package/methods/cron-jobs.js.map +1 -1
- package/methods/flags.js +1 -8
- package/methods/flags.js.map +1 -1
- package/methods/logs.js +1 -370
- package/methods/logs.js.map +1 -1
- package/methods/monitor.js +1 -564
- package/methods/monitor.js.map +1 -1
- package/methods/pdf.js +1 -731
- package/methods/pdf.js.map +1 -1
- package/methods/report-builder.js +1 -859
- package/methods/report-builder.js.map +1 -1
- package/methods/support.js +1 -245
- package/methods/support.js.map +1 -1
- package/models/app-status.model.js +1 -3
- package/models/app-status.model.js.map +1 -1
- package/models/billing-logged-in-users.model.js +1 -3
- package/models/billing-logged-in-users.model.js.map +1 -1
- package/models/collection-document.model.js +1 -3
- package/models/collection-document.model.js.map +1 -1
- package/models/counter.model.js +1 -3
- package/models/counter.model.js.map +1 -1
- package/models/cron-job-history.model.js +1 -3
- package/models/cron-job-history.model.js.map +1 -1
- package/models/cron-job.model.js +1 -3
- package/models/cron-job.model.js.map +1 -1
- package/models/dialog.model.js +1 -3
- package/models/dialog.model.js.map +1 -1
- package/models/email-history.model.js +1 -3
- package/models/email-history.model.js.map +1 -1
- package/models/email-verified.model.js +1 -3
- package/models/email-verified.model.js.map +1 -1
- package/models/file.model.js +1 -3
- package/models/file.model.js.map +1 -1
- package/models/flag.model.js +1 -3
- package/models/flag.model.js.map +1 -1
- package/models/log-method-latency.model.js +1 -3
- package/models/log-method-latency.model.js.map +1 -1
- package/models/log-subscription.model.js +1 -3
- package/models/log-subscription.model.js.map +1 -1
- package/models/log.model.js +1 -3
- package/models/log.model.js.map +1 -1
- package/models/logged-in-users.model.js +1 -3
- package/models/logged-in-users.model.js.map +1 -1
- package/models/method-response.model.js +1 -3
- package/models/method-response.model.js.map +1 -1
- package/models/method.model.js +1 -3
- package/models/method.model.js.map +1 -1
- package/models/monitor-cpu.model.js +1 -3
- package/models/monitor-cpu.model.js.map +1 -1
- package/models/monitor-memory.model.js +1 -3
- package/models/monitor-memory.model.js.map +1 -1
- package/models/monitor-mongo.model.js +1 -3
- package/models/monitor-mongo.model.js.map +1 -1
- package/models/notification.model.js +1 -3
- package/models/notification.model.js.map +1 -1
- package/models/pagination.model.js +1 -23
- package/models/pagination.model.js.map +1 -1
- package/models/permission.model.js +1 -3
- package/models/permission.model.js.map +1 -1
- package/models/report-builder-dashboard-builder.model.js +1 -3
- package/models/report-builder-dashboard-builder.model.js.map +1 -1
- package/models/report-builder-library.model.js +1 -3
- package/models/report-builder-library.model.js.map +1 -1
- package/models/report-builder-report.model.js +1 -3
- package/models/report-builder-report.model.js.map +1 -1
- package/models/report-builder.model.js +1 -3
- package/models/report-builder.model.js.map +1 -1
- package/models/select-data-label.model.js +1 -3
- package/models/select-data-label.model.js.map +1 -1
- package/models/server-response.model.js +1 -3
- package/models/server-response.model.js.map +1 -1
- package/models/subscription.model.js +1 -3
- package/models/subscription.model.js.map +1 -1
- package/models/support-ticket.model.js +1 -3
- package/models/support-ticket.model.js.map +1 -1
- package/models/user-group.model.js +1 -3
- package/models/user-group.model.js.map +1 -1
- package/models/user-guide.model.js +1 -3
- package/models/user-guide.model.js.map +1 -1
- package/models/user.model.js +1 -3
- package/models/user.model.js.map +1 -1
- package/package.json +6 -4
- package/public_api.js +1 -74
- package/public_api.js.map +1 -1
- package/publications/app-status.js +1 -16
- package/publications/app-status.js.map +1 -1
- package/publications/cron-jobs.js +1 -32
- package/publications/cron-jobs.js.map +1 -1
- package/publications/files.js +1 -36
- package/publications/files.js.map +1 -1
- package/publications/flags.js +1 -22
- package/publications/flags.js.map +1 -1
- package/publications/logs.js +1 -164
- package/publications/logs.js.map +1 -1
- package/publications/method-responses.js +1 -16
- package/publications/method-responses.js.map +1 -1
- package/publications/notifications.js +1 -16
- package/publications/notifications.js.map +1 -1
- package/publications/report-builder-dashboard-builders.js +1 -42
- package/publications/report-builder-dashboard-builders.js.map +1 -1
- package/publications/report-builder-libraries.js +1 -89
- package/publications/report-builder-libraries.js.map +1 -1
- package/publications/report-builder-reports.js +1 -50
- package/publications/report-builder-reports.js.map +1 -1
- package/publications/super-admin.js +1 -16
- package/publications/super-admin.js.map +1 -1
- package/publications/user-groups.js +1 -16
- package/publications/user-groups.js.map +1 -1
- package/publications/user-guides.js +1 -16
- package/publications/user-guides.js.map +1 -1
- package/server-app.js +1 -770
- package/server-app.js.map +1 -1
- package/util/common.js +1 -546
- package/util/common.js.map +1 -1
- package/util/schema-report-builder.js +1 -452
- package/util/schema-report-builder.js.map +1 -1
|
@@ -1,65 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LoggedInUsers = void 0;
|
|
4
|
-
var index_1 = require("../index");
|
|
5
|
-
var mongo_manager_1 = require("../managers/mongo.manager");
|
|
6
|
-
var schema = {
|
|
7
|
-
_id: {
|
|
8
|
-
type: String,
|
|
9
|
-
optional: true
|
|
10
|
-
},
|
|
11
|
-
__v: {
|
|
12
|
-
type: Number,
|
|
13
|
-
optional: true
|
|
14
|
-
},
|
|
15
|
-
updatedAt: {
|
|
16
|
-
type: Date,
|
|
17
|
-
optional: true
|
|
18
|
-
},
|
|
19
|
-
createdAt: {
|
|
20
|
-
type: Date,
|
|
21
|
-
optional: true
|
|
22
|
-
},
|
|
23
|
-
date: {
|
|
24
|
-
type: Date
|
|
25
|
-
},
|
|
26
|
-
id_user: {
|
|
27
|
-
type: String
|
|
28
|
-
},
|
|
29
|
-
user: {
|
|
30
|
-
type: String
|
|
31
|
-
},
|
|
32
|
-
id_ws: {
|
|
33
|
-
type: String
|
|
34
|
-
},
|
|
35
|
-
latency: {
|
|
36
|
-
type: Number,
|
|
37
|
-
optional: true
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
exports.LoggedInUsers = null;
|
|
41
|
-
initializeCollection();
|
|
42
|
-
function initializeCollection() {
|
|
43
|
-
if (index_1.ResolveIOServer && index_1.ResolveIOServer.getMainDB()) {
|
|
44
|
-
var model = new mongo_manager_1.MongoManagerModel({
|
|
45
|
-
collectionName: 'logged-in-users',
|
|
46
|
-
schema: schema,
|
|
47
|
-
useVersionCollection: false,
|
|
48
|
-
useReportBuilder: false,
|
|
49
|
-
reportBuilderLookupTables: [],
|
|
50
|
-
timestamps: true,
|
|
51
|
-
createLogs: false,
|
|
52
|
-
checkSchema: true,
|
|
53
|
-
collectionOptions: null
|
|
54
|
-
});
|
|
55
|
-
exports.LoggedInUsers = model.collection_main;
|
|
56
|
-
exports.LoggedInUsers.createIndex({ id_ws: 1 });
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
setTimeout(function () {
|
|
60
|
-
initializeCollection();
|
|
61
|
-
}, 1);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LoggedInUsers=void 0;var index_1=require("../index"),mongo_manager_1=require("../managers/mongo.manager"),schema={_id:{type:String,optional:!0},__v:{type:Number,optional:!0},updatedAt:{type:Date,optional:!0},createdAt:{type:Date,optional:!0},date:{type:Date},id_user:{type:String},user:{type:String},id_ws:{type:String},latency:{type:Number,optional:!0}};function initializeCollection(){var e;index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()?(e=new mongo_manager_1.MongoManagerModel({collectionName:"logged-in-users",schema:schema,useVersionCollection:!1,useReportBuilder:!1,reportBuilderLookupTables:[],timestamps:!0,createLogs:!1,checkSchema:!0,collectionOptions:null}),exports.LoggedInUsers=e.collection_main,exports.LoggedInUsers.createIndex({id_ws:1})):setTimeout(function(){initializeCollection()},1)}exports.LoggedInUsers=null,initializeCollection();
|
|
65
2
|
//# sourceMappingURL=logged-in-users.collection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/collections/logged-in-users.collection.ts"],"names":[
|
|
1
|
+
{"version":3,"sources":["../../src/collections/logged-in-users.collection.ts"],"names":["index_1","require","mongo_manager_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","date","id_user","user","id_ws","latency","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","exports","LoggedInUsers","collection_main","createIndex","setTimeout"],"mappings":"iGAAA,IAAAA,QAAAC,QAAA,UAAA,EACAC,gBAAAD,QAAA,2BAAA,EAGIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,SAAU,CAAA,C,EAEXC,IAAK,CACJH,KAAMI,OACNF,SAAU,CAAA,C,EAEXG,UAAW,CACVL,KAAMM,KACNJ,SAAU,CAAA,C,EAEXK,UAAW,CACVP,KAAMM,KACNJ,SAAU,CAAA,C,EAEXM,KAAM,CACLR,KAAMM,I,EAEPG,QAAS,CACRT,KAAMC,M,EAEPS,KAAM,CACLV,KAAMC,M,EAEPU,MAAO,CACNX,KAAMC,M,EAEPW,QAAS,CACRZ,KAAMI,OACNF,SAAU,CAAA,C,GAQZ,SAASW,uBACR,IACOC,EADHnB,QAAAoB,iBAAmBpB,QAAAoB,gBAAgBC,UAAS,GACzCF,EAAQ,IAAIjB,gBAAAoB,kBAAqC,CACtDC,eAAgB,kBAChBpB,OAAQA,OACRqB,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,I,CACnB,EACDC,QAAAC,cAAgBb,EAAMc,gBACtBF,QAAAC,cAAcE,YAAY,CAAClB,MAAO,CAAC,CAAC,GAGpCmB,WAAW,WACVjB,qBAAoB,CACrB,EAAG,CAAC,CAEN,CAzBWa,QAAAC,cAA2D,KAEtEd,qBAAoB","file":"logged-in-users.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { LoggedInUserModel } from '../models/logged-in-users.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\tdate: {\n\t\ttype: Date\n\t},\n\tid_user: {\n\t\ttype: String\n\t},\n\tuser: {\n\t\ttype: String\n\t},\n\tid_ws: {\n\t\ttype: String\n\t},\n\tlatency: {\n\t\ttype: Number,\n\t\toptional: true\n\t}\n};\n\nexport let LoggedInUsers: MongoManagerCollection<LoggedInUserModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new MongoManagerModel<LoggedInUserModel>({\n\t\t\tcollectionName: 'logged-in-users',\n\t\t\tschema: schema,\n\t\t\tuseVersionCollection: false,\n\t\t\tuseReportBuilder: false,\n\t\t\treportBuilderLookupTables: [],\n\t\t\ttimestamps: true,\n\t\t\tcreateLogs: false,\n\t\t\tcheckSchema: true,\n\t\t\tcollectionOptions: null\n\t\t});\n\t\tLoggedInUsers = model.collection_main;\n\t\tLoggedInUsers.createIndex({id_ws: 1});\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 1);\n\t}\n}"]}
|
|
@@ -1,66 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MethodResponses = void 0;
|
|
4
|
-
var index_1 = require("../index");
|
|
5
|
-
var mongo_manager_1 = require("../managers/mongo.manager");
|
|
6
|
-
var schema = {
|
|
7
|
-
_id: {
|
|
8
|
-
type: String,
|
|
9
|
-
optional: true
|
|
10
|
-
},
|
|
11
|
-
__v: {
|
|
12
|
-
type: Number,
|
|
13
|
-
optional: true
|
|
14
|
-
},
|
|
15
|
-
updatedAt: {
|
|
16
|
-
type: Date,
|
|
17
|
-
optional: true
|
|
18
|
-
},
|
|
19
|
-
createdAt: {
|
|
20
|
-
type: Date,
|
|
21
|
-
optional: true
|
|
22
|
-
},
|
|
23
|
-
id_user: {
|
|
24
|
-
type: String
|
|
25
|
-
},
|
|
26
|
-
message_id: {
|
|
27
|
-
type: Number
|
|
28
|
-
},
|
|
29
|
-
method: {
|
|
30
|
-
type: String
|
|
31
|
-
},
|
|
32
|
-
response: {
|
|
33
|
-
type: Object,
|
|
34
|
-
blackbox: true
|
|
35
|
-
},
|
|
36
|
-
date: {
|
|
37
|
-
type: Date
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
exports.MethodResponses = null;
|
|
41
|
-
initializeCollection();
|
|
42
|
-
function initializeCollection() {
|
|
43
|
-
if (index_1.ResolveIOServer && index_1.ResolveIOServer.getMainDB()) {
|
|
44
|
-
var model = new mongo_manager_1.MongoManagerModel({
|
|
45
|
-
collectionName: 'method-responses',
|
|
46
|
-
schema: schema,
|
|
47
|
-
useVersionCollection: false,
|
|
48
|
-
useReportBuilder: false,
|
|
49
|
-
reportBuilderLookupTables: [],
|
|
50
|
-
timestamps: true,
|
|
51
|
-
createLogs: false,
|
|
52
|
-
checkSchema: true,
|
|
53
|
-
collectionOptions: null
|
|
54
|
-
});
|
|
55
|
-
exports.MethodResponses = model.collection_main;
|
|
56
|
-
exports.MethodResponses.createIndex({ id_user: 1, message_id: 1 });
|
|
57
|
-
exports.MethodResponses.createIndex({ createdAt: 1 }, { expireAfterSeconds: 86400 });
|
|
58
|
-
}
|
|
59
|
-
else {
|
|
60
|
-
setTimeout(function () {
|
|
61
|
-
initializeCollection();
|
|
62
|
-
}, 1);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MethodResponses=void 0;var index_1=require("../index"),mongo_manager_1=require("../managers/mongo.manager"),schema={_id:{type:String,optional:!0},__v:{type:Number,optional:!0},updatedAt:{type:Date,optional:!0},createdAt:{type:Date,optional:!0},id_user:{type:String},message_id:{type:Number},method:{type:String},response:{type:Object,blackbox:!0},date:{type:Date}};function initializeCollection(){var e;index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()?(e=new mongo_manager_1.MongoManagerModel({collectionName:"method-responses",schema:schema,useVersionCollection:!1,useReportBuilder:!1,reportBuilderLookupTables:[],timestamps:!0,createLogs:!1,checkSchema:!0,collectionOptions:null}),exports.MethodResponses=e.collection_main,exports.MethodResponses.createIndex({id_user:1,message_id:1}),exports.MethodResponses.createIndex({createdAt:1},{expireAfterSeconds:86400})):setTimeout(function(){initializeCollection()},1)}exports.MethodResponses=null,initializeCollection();
|
|
66
2
|
//# sourceMappingURL=method-response.collection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/collections/method-response.collection.ts"],"names":[
|
|
1
|
+
{"version":3,"sources":["../../src/collections/method-response.collection.ts"],"names":["index_1","require","mongo_manager_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","id_user","message_id","method","response","Object","blackbox","date","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","exports","MethodResponses","collection_main","createIndex","expireAfterSeconds","setTimeout"],"mappings":"mGAAA,IAAAA,QAAAC,QAAA,UAAA,EACAC,gBAAAD,QAAA,2BAAA,EAGIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,SAAU,CAAA,C,EAEXC,IAAK,CACJH,KAAMI,OACNF,SAAU,CAAA,C,EAEXG,UAAW,CACVL,KAAMM,KACNJ,SAAU,CAAA,C,EAEXK,UAAW,CACVP,KAAMM,KACNJ,SAAU,CAAA,C,EAEXM,QAAS,CACRR,KAAMC,M,EAEPQ,WAAY,CACXT,KAAMI,M,EAEPM,OAAQ,CACPV,KAAMC,M,EAEPU,SAAU,CACTX,KAAMY,OACNC,SAAU,CAAA,C,EAEXC,KAAM,CACLd,KAAMM,I,GAQR,SAASS,uBACR,IACOC,EADHrB,QAAAsB,iBAAmBtB,QAAAsB,gBAAgBC,UAAS,GACzCF,EAAQ,IAAInB,gBAAAsB,kBAAuC,CACxDC,eAAgB,mBAChBtB,OAAQA,OACRuB,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,I,CACnB,EACDC,QAAAC,gBAAkBb,EAAMc,gBACxBF,QAAAC,gBAAgBE,YAAY,CAACvB,QAAS,EAAGC,WAAY,CAAC,CAAC,EACvDmB,QAAAC,gBAAgBE,YAAY,CAACxB,UAAW,CAAC,EAAG,CAACyB,mBAAoB,KAAK,CAAC,GAGvEC,WAAW,WACVlB,qBAAoB,CACrB,EAAG,CAAC,CAEN,CA1BWa,QAAAC,gBAA+D,KAE1Ed,qBAAoB","file":"method-response.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { MethodResponseModel } from '../models/method-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\tid_user: {\n\t\ttype: String\n\t},\n\tmessage_id: {\n\t\ttype: Number\n\t},\n\tmethod: {\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\nexport let MethodResponses: MongoManagerCollection<MethodResponseModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new MongoManagerModel<MethodResponseModel>({\n\t\t\tcollectionName: 'method-responses',\n\t\t\tschema: schema,\n\t\t\tuseVersionCollection: false,\n\t\t\tuseReportBuilder: false,\n\t\t\treportBuilderLookupTables: [],\n\t\t\ttimestamps: true,\n\t\t\tcreateLogs: false,\n\t\t\tcheckSchema: true,\n\t\t\tcollectionOptions: null\n\t\t});\n\t\tMethodResponses = model.collection_main;\n\t\tMethodResponses.createIndex({id_user: 1, message_id: 1});\n\t\tMethodResponses.createIndex({createdAt: 1}, {expireAfterSeconds: 86400});\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 1);\n\t}\n}"]}
|
|
@@ -1,63 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MonitorCPUs = void 0;
|
|
4
|
-
var index_1 = require("../index");
|
|
5
|
-
var mongo_manager_1 = require("../managers/mongo.manager");
|
|
6
|
-
var schema = {
|
|
7
|
-
_id: {
|
|
8
|
-
type: String,
|
|
9
|
-
optional: true
|
|
10
|
-
},
|
|
11
|
-
metadata: {
|
|
12
|
-
type: Object
|
|
13
|
-
},
|
|
14
|
-
'metadata.client': {
|
|
15
|
-
type: String
|
|
16
|
-
},
|
|
17
|
-
'metadata.instance': {
|
|
18
|
-
type: String
|
|
19
|
-
},
|
|
20
|
-
date: {
|
|
21
|
-
type: Date
|
|
22
|
-
},
|
|
23
|
-
app: {
|
|
24
|
-
type: Number
|
|
25
|
-
},
|
|
26
|
-
system: {
|
|
27
|
-
type: Number
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
exports.MonitorCPUs = null;
|
|
31
|
-
initializeCollection();
|
|
32
|
-
function initializeCollection() {
|
|
33
|
-
if (index_1.ResolveIOServer && index_1.ResolveIOServer.getMainDB()) {
|
|
34
|
-
var model = new mongo_manager_1.MongoManagerModel({
|
|
35
|
-
collectionName: 'monitor-cpus',
|
|
36
|
-
schema: schema,
|
|
37
|
-
useVersionCollection: false,
|
|
38
|
-
useReportBuilder: false,
|
|
39
|
-
reportBuilderLookupTables: [],
|
|
40
|
-
timestamps: false,
|
|
41
|
-
createLogs: false,
|
|
42
|
-
checkSchema: false,
|
|
43
|
-
collectionOptions: {
|
|
44
|
-
timeseries: {
|
|
45
|
-
timeField: 'date',
|
|
46
|
-
granularity: 'seconds',
|
|
47
|
-
metaField: 'metadata'
|
|
48
|
-
},
|
|
49
|
-
expireAfterSeconds: 60 * 60 * 24 * 3
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
exports.MonitorCPUs = model.collection_main;
|
|
53
|
-
exports.MonitorCPUs.createIndex({ 'metadata.client': 1, date: 1 });
|
|
54
|
-
exports.MonitorCPUs.createIndex({ 'metadata.client': 1, 'metadata.instance': 1, date: 1 });
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
setTimeout(function () {
|
|
58
|
-
initializeCollection();
|
|
59
|
-
}, 1);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MonitorCPUs=void 0;var index_1=require("../index"),mongo_manager_1=require("../managers/mongo.manager"),schema={_id:{type:String,optional:!0},metadata:{type:Object},"metadata.client":{type:String},"metadata.instance":{type:String},date:{type:Date},app:{type:Number},system:{type:Number}};function initializeCollection(){var e;index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()?(e=new mongo_manager_1.MongoManagerModel({collectionName:"monitor-cpus",schema:schema,useVersionCollection:!1,useReportBuilder:!1,reportBuilderLookupTables:[],timestamps:!1,createLogs:!1,checkSchema:!1,collectionOptions:{timeseries:{timeField:"date",granularity:"seconds",metaField:"metadata"},expireAfterSeconds:259200}}),exports.MonitorCPUs=e.collection_main,exports.MonitorCPUs.createIndex({"metadata.client":1,date:1}),exports.MonitorCPUs.createIndex({"metadata.client":1,"metadata.instance":1,date:1})):setTimeout(function(){initializeCollection()},1)}exports.MonitorCPUs=null,initializeCollection();
|
|
63
2
|
//# sourceMappingURL=monitor-cpu.collection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/collections/monitor-cpu.collection.ts"],"names":[
|
|
1
|
+
{"version":3,"sources":["../../src/collections/monitor-cpu.collection.ts"],"names":["index_1","require","mongo_manager_1","schema","_id","type","String","optional","metadata","Object","metadata.client","metadata.instance","date","Date","app","Number","system","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","timeseries","timeField","granularity","metaField","expireAfterSeconds","exports","MonitorCPUs","collection_main","createIndex","setTimeout"],"mappings":"+FAAA,IAAAA,QAAAC,QAAA,UAAA,EACAC,gBAAAD,QAAA,2BAAA,EAGIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,SAAU,CAAA,C,EAEXC,SAAU,CACTH,KAAMI,M,EAEPC,kBAAmB,CAClBL,KAAMC,M,EAEPK,oBAAqB,CACpBN,KAAMC,M,EAEPM,KAAM,CACLP,KAAMQ,I,EAEPC,IAAK,CACJT,KAAMU,M,EAEPC,OAAQ,CACPX,KAAMU,M,GAQR,SAASE,uBACR,IACOC,EADHlB,QAAAmB,iBAAmBnB,QAAAmB,gBAAgBC,UAAS,GACzCF,EAAQ,IAAIhB,gBAAAmB,kBAAmC,CACpDC,eAAgB,eAChBnB,OAAQA,OACRoB,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,CAClBC,WAAY,CACXC,UAAW,OACXC,YAAa,UACbC,UAAW,U,EAEZC,mBAAoB,M,EAErB,EACDC,QAAAC,YAAclB,EAAMmB,gBACpBF,QAAAC,YAAYE,YAAY,CAAC5B,kBAAmB,EAAGE,KAAM,CAAC,CAAC,EACvDuB,QAAAC,YAAYE,YAAY,CAAC5B,kBAAmB,EAAGC,oBAAqB,EAAGC,KAAM,CAAC,CAAC,GAG/E2B,WAAW,WACVtB,qBAAoB,CACrB,EAAG,CAAC,CAEN,CAjCWkB,QAAAC,YAAuD,KAElEnB,qBAAoB","file":"monitor-cpu.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { MonitorCPUModel } from '../models/monitor-cpu.model';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\tmetadata: {\n\t\ttype: Object\n\t},\n\t'metadata.client': {\n\t\ttype: String\n\t},\n\t'metadata.instance': {\n\t\ttype: String\n\t},\n\tdate: {\n\t\ttype: Date\n\t},\n\tapp: {\n\t\ttype: Number\n\t},\n\tsystem: {\n\t\ttype: Number\n\t}\n};\n\nexport let MonitorCPUs: MongoManagerCollection<MonitorCPUModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new MongoManagerModel<MonitorCPUModel>({\n\t\t\tcollectionName: 'monitor-cpus',\n\t\t\tschema: schema,\n\t\t\tuseVersionCollection: false,\n\t\t\tuseReportBuilder: false,\n\t\t\treportBuilderLookupTables: [],\n\t\t\ttimestamps: false,\n\t\t\tcreateLogs: false,\n\t\t\tcheckSchema: false,\n\t\t\tcollectionOptions: {\n\t\t\t\ttimeseries: {\n\t\t\t\t\ttimeField: 'date',\n\t\t\t\t\tgranularity: 'seconds',\n\t\t\t\t\tmetaField: 'metadata'\n\t\t\t\t},\n\t\t\t\texpireAfterSeconds: 60 * 60 * 24 * 3\n\t\t\t}\n\t\t});\n\t\tMonitorCPUs = model.collection_main;\n\t\tMonitorCPUs.createIndex({'metadata.client': 1, date: 1});\n\t\tMonitorCPUs.createIndex({'metadata.client': 1, 'metadata.instance': 1, date: 1});\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 1);\n\t}\n}"]}
|
|
@@ -1,75 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MonitorMemorys = void 0;
|
|
4
|
-
var index_1 = require("../index");
|
|
5
|
-
var mongo_manager_1 = require("../managers/mongo.manager");
|
|
6
|
-
var schema = {
|
|
7
|
-
_id: {
|
|
8
|
-
type: String,
|
|
9
|
-
optional: true
|
|
10
|
-
},
|
|
11
|
-
metadata: {
|
|
12
|
-
type: Object
|
|
13
|
-
},
|
|
14
|
-
'metadata.client': {
|
|
15
|
-
type: String
|
|
16
|
-
},
|
|
17
|
-
'metadata.instance': {
|
|
18
|
-
type: String
|
|
19
|
-
},
|
|
20
|
-
date: {
|
|
21
|
-
type: Date
|
|
22
|
-
},
|
|
23
|
-
physical_total: {
|
|
24
|
-
type: Number
|
|
25
|
-
},
|
|
26
|
-
physical_used: {
|
|
27
|
-
type: Number
|
|
28
|
-
},
|
|
29
|
-
physical_free: {
|
|
30
|
-
type: Number
|
|
31
|
-
},
|
|
32
|
-
virtual: {
|
|
33
|
-
type: Number
|
|
34
|
-
},
|
|
35
|
-
private: {
|
|
36
|
-
type: Number
|
|
37
|
-
},
|
|
38
|
-
physical: {
|
|
39
|
-
type: Number
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
exports.MonitorMemorys = null;
|
|
43
|
-
initializeCollection();
|
|
44
|
-
function initializeCollection() {
|
|
45
|
-
if (index_1.ResolveIOServer && index_1.ResolveIOServer.getMainDB()) {
|
|
46
|
-
var model = new mongo_manager_1.MongoManagerModel({
|
|
47
|
-
collectionName: 'monitor-memorys',
|
|
48
|
-
schema: schema,
|
|
49
|
-
useVersionCollection: false,
|
|
50
|
-
useReportBuilder: false,
|
|
51
|
-
reportBuilderLookupTables: [],
|
|
52
|
-
timestamps: false,
|
|
53
|
-
createLogs: false,
|
|
54
|
-
checkSchema: false,
|
|
55
|
-
collectionOptions: {
|
|
56
|
-
timeseries: {
|
|
57
|
-
timeField: 'date',
|
|
58
|
-
granularity: 'seconds',
|
|
59
|
-
metaField: 'metadata'
|
|
60
|
-
},
|
|
61
|
-
expireAfterSeconds: 60 * 60 * 24 * 3
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
exports.MonitorMemorys = model.collection_main;
|
|
65
|
-
exports.MonitorMemorys.createIndex({ 'metadata.client': 1, date: 1 });
|
|
66
|
-
exports.MonitorMemorys.createIndex({ 'metadata.client': 1, 'metadata.instance': 1, date: 1 });
|
|
67
|
-
}
|
|
68
|
-
else {
|
|
69
|
-
setTimeout(function () {
|
|
70
|
-
initializeCollection();
|
|
71
|
-
}, 1);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MonitorMemorys=void 0;var index_1=require("../index"),mongo_manager_1=require("../managers/mongo.manager"),schema={_id:{type:String,optional:!0},metadata:{type:Object},"metadata.client":{type:String},"metadata.instance":{type:String},date:{type:Date},physical_total:{type:Number},physical_used:{type:Number},physical_free:{type:Number},virtual:{type:Number},private:{type:Number},physical:{type:Number}};function initializeCollection(){var e;index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()?(e=new mongo_manager_1.MongoManagerModel({collectionName:"monitor-memorys",schema:schema,useVersionCollection:!1,useReportBuilder:!1,reportBuilderLookupTables:[],timestamps:!1,createLogs:!1,checkSchema:!1,collectionOptions:{timeseries:{timeField:"date",granularity:"seconds",metaField:"metadata"},expireAfterSeconds:259200}}),exports.MonitorMemorys=e.collection_main,exports.MonitorMemorys.createIndex({"metadata.client":1,date:1}),exports.MonitorMemorys.createIndex({"metadata.client":1,"metadata.instance":1,date:1})):setTimeout(function(){initializeCollection()},1)}exports.MonitorMemorys=null,initializeCollection();
|
|
75
2
|
//# sourceMappingURL=monitor-memory.collection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/collections/monitor-memory.collection.ts"],"names":[
|
|
1
|
+
{"version":3,"sources":["../../src/collections/monitor-memory.collection.ts"],"names":["index_1","require","mongo_manager_1","schema","_id","type","String","optional","metadata","Object","metadata.client","metadata.instance","date","Date","physical_total","Number","physical_used","physical_free","virtual","private","physical","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","timeseries","timeField","granularity","metaField","expireAfterSeconds","exports","MonitorMemorys","collection_main","createIndex","setTimeout"],"mappings":"kGAAA,IAAAA,QAAAC,QAAA,UAAA,EACAC,gBAAAD,QAAA,2BAAA,EAGIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,SAAU,CAAA,C,EAEXC,SAAU,CACTH,KAAMI,M,EAEPC,kBAAmB,CAClBL,KAAMC,M,EAEPK,oBAAqB,CACpBN,KAAMC,M,EAEPM,KAAM,CACLP,KAAMQ,I,EAEPC,eAAgB,CACfT,KAAMU,M,EAEPC,cAAe,CACdX,KAAMU,M,EAEPE,cAAe,CACdZ,KAAMU,M,EAEPG,QAAS,CACRb,KAAMU,M,EAEPI,QAAS,CACRd,KAAMU,M,EAEPK,SAAU,CACTf,KAAMU,M,GAQR,SAASM,uBACR,IACOC,EADHtB,QAAAuB,iBAAmBvB,QAAAuB,gBAAgBC,UAAS,GACzCF,EAAQ,IAAIpB,gBAAAuB,kBAAsC,CACvDC,eAAgB,kBAChBvB,OAAQA,OACRwB,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,CAClBC,WAAY,CACXC,UAAW,OACXC,YAAa,UACbC,UAAW,U,EAEZC,mBAAoB,M,EAErB,EACDC,QAAAC,eAAiBlB,EAAMmB,gBACvBF,QAAAC,eAAeE,YAAY,CAAChC,kBAAmB,EAAGE,KAAM,CAAC,CAAC,EAC1D2B,QAAAC,eAAeE,YAAY,CAAChC,kBAAmB,EAAGC,oBAAqB,EAAGC,KAAM,CAAC,CAAC,GAGlF+B,WAAW,WACVtB,qBAAoB,CACrB,EAAG,CAAC,CAEN,CAjCWkB,QAAAC,eAA6D,KAExEnB,qBAAoB","file":"monitor-memory.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\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\tmetadata: {\n\t\ttype: Object\n\t},\n\t'metadata.client': {\n\t\ttype: String\n\t},\n\t'metadata.instance': {\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\nexport let MonitorMemorys: MongoManagerCollection<MonitorMemoryModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new MongoManagerModel<MonitorMemoryModel>({\n\t\t\tcollectionName: 'monitor-memorys',\n\t\t\tschema: schema,\n\t\t\tuseVersionCollection: false,\n\t\t\tuseReportBuilder: false,\n\t\t\treportBuilderLookupTables: [],\n\t\t\ttimestamps: false,\n\t\t\tcreateLogs: false,\n\t\t\tcheckSchema: false,\n\t\t\tcollectionOptions: {\n\t\t\t\ttimeseries: {\n\t\t\t\t\ttimeField: 'date',\n\t\t\t\t\tgranularity: 'seconds',\n\t\t\t\t\tmetaField: 'metadata'\n\t\t\t\t},\n\t\t\t\texpireAfterSeconds: 60 * 60 * 24 * 3\n\t\t\t}\n\t\t});\n\t\tMonitorMemorys = model.collection_main;\n\t\tMonitorMemorys.createIndex({'metadata.client': 1, date: 1});\n\t\tMonitorMemorys.createIndex({'metadata.client': 1, 'metadata.instance': 1, date: 1});\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 1);\n\t}\n}"]}
|
|
@@ -1,69 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MonitorMongos = void 0;
|
|
4
|
-
var index_1 = require("../index");
|
|
5
|
-
var mongo_manager_1 = require("../managers/mongo.manager");
|
|
6
|
-
var schema = {
|
|
7
|
-
_id: {
|
|
8
|
-
type: String,
|
|
9
|
-
optional: true
|
|
10
|
-
},
|
|
11
|
-
metadata: {
|
|
12
|
-
type: Object
|
|
13
|
-
},
|
|
14
|
-
'metadata.client': {
|
|
15
|
-
type: String
|
|
16
|
-
},
|
|
17
|
-
'metadata.instance': {
|
|
18
|
-
type: String
|
|
19
|
-
},
|
|
20
|
-
date: {
|
|
21
|
-
type: Date
|
|
22
|
-
},
|
|
23
|
-
method: {
|
|
24
|
-
type: String
|
|
25
|
-
},
|
|
26
|
-
doc_collection: {
|
|
27
|
-
type: String
|
|
28
|
-
},
|
|
29
|
-
duration: {
|
|
30
|
-
type: Number
|
|
31
|
-
},
|
|
32
|
-
query: {
|
|
33
|
-
type: String
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
exports.MonitorMongos = null;
|
|
37
|
-
initializeCollection();
|
|
38
|
-
function initializeCollection() {
|
|
39
|
-
if (index_1.ResolveIOServer && index_1.ResolveIOServer.getMainDB()) {
|
|
40
|
-
var model = new mongo_manager_1.MongoManagerModel({
|
|
41
|
-
collectionName: 'monitor-mongos',
|
|
42
|
-
schema: schema,
|
|
43
|
-
useVersionCollection: false,
|
|
44
|
-
useReportBuilder: false,
|
|
45
|
-
reportBuilderLookupTables: [],
|
|
46
|
-
timestamps: false,
|
|
47
|
-
createLogs: false,
|
|
48
|
-
checkSchema: false,
|
|
49
|
-
collectionOptions: {
|
|
50
|
-
timeseries: {
|
|
51
|
-
timeField: 'date',
|
|
52
|
-
granularity: 'seconds',
|
|
53
|
-
metaField: 'metadata'
|
|
54
|
-
},
|
|
55
|
-
expireAfterSeconds: 60 * 60 * 24 * 3
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
exports.MonitorMongos = model.collection_main;
|
|
59
|
-
exports.MonitorMongos.createIndex({ 'metadata.client': 1, date: 1 });
|
|
60
|
-
exports.MonitorMongos.createIndex({ 'metadata.client': 1, 'metadata.instance': 1, date: 1 });
|
|
61
|
-
}
|
|
62
|
-
else {
|
|
63
|
-
setTimeout(function () {
|
|
64
|
-
initializeCollection();
|
|
65
|
-
}, 1);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MonitorMongos=void 0;var index_1=require("../index"),mongo_manager_1=require("../managers/mongo.manager"),schema={_id:{type:String,optional:!0},metadata:{type:Object},"metadata.client":{type:String},"metadata.instance":{type:String},date:{type:Date},method:{type:String},doc_collection:{type:String},duration:{type:Number},query:{type:String}};function initializeCollection(){var e;index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()?(e=new mongo_manager_1.MongoManagerModel({collectionName:"monitor-mongos",schema:schema,useVersionCollection:!1,useReportBuilder:!1,reportBuilderLookupTables:[],timestamps:!1,createLogs:!1,checkSchema:!1,collectionOptions:{timeseries:{timeField:"date",granularity:"seconds",metaField:"metadata"},expireAfterSeconds:259200}}),exports.MonitorMongos=e.collection_main,exports.MonitorMongos.createIndex({"metadata.client":1,date:1}),exports.MonitorMongos.createIndex({"metadata.client":1,"metadata.instance":1,date:1})):setTimeout(function(){initializeCollection()},1)}exports.MonitorMongos=null,initializeCollection();
|
|
69
2
|
//# sourceMappingURL=monitor-mongo.collection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/collections/monitor-mongo.collection.ts"],"names":[
|
|
1
|
+
{"version":3,"sources":["../../src/collections/monitor-mongo.collection.ts"],"names":["index_1","require","mongo_manager_1","schema","_id","type","String","optional","metadata","Object","metadata.client","metadata.instance","date","Date","method","doc_collection","duration","Number","query","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","timeseries","timeField","granularity","metaField","expireAfterSeconds","exports","MonitorMongos","collection_main","createIndex","setTimeout"],"mappings":"iGAAA,IAAAA,QAAAC,QAAA,UAAA,EACAC,gBAAAD,QAAA,2BAAA,EAGIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,SAAU,CAAA,C,EAEXC,SAAU,CACTH,KAAMI,M,EAEPC,kBAAmB,CAClBL,KAAMC,M,EAEPK,oBAAqB,CACpBN,KAAMC,M,EAEPM,KAAM,CACLP,KAAMQ,I,EAEPC,OAAQ,CACPT,KAAMC,M,EAEPS,eAAgB,CACfV,KAAMC,M,EAEPU,SAAU,CACTX,KAAMY,M,EAEPC,MAAO,CACNb,KAAMC,M,GAQR,SAASa,uBACR,IACOC,EADHpB,QAAAqB,iBAAmBrB,QAAAqB,gBAAgBC,UAAS,GACzCF,EAAQ,IAAIlB,gBAAAqB,kBAAqC,CACtDC,eAAgB,iBAChBrB,OAAQA,OACRsB,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,CAClBC,WAAY,CACXC,UAAW,OACXC,YAAa,UACbC,UAAW,U,EAEZC,mBAAoB,M,EAErB,EACDC,QAAAC,cAAgBlB,EAAMmB,gBACtBF,QAAAC,cAAcE,YAAY,CAAC9B,kBAAmB,EAAGE,KAAM,CAAC,CAAC,EACzDyB,QAAAC,cAAcE,YAAY,CAAC9B,kBAAmB,EAAGC,oBAAqB,EAAGC,KAAM,CAAC,CAAC,GAGjF6B,WAAW,WACVtB,qBAAoB,CACrB,EAAG,CAAC,CAEN,CAjCWkB,QAAAC,cAA2D,KAEtEnB,qBAAoB","file":"monitor-mongo.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\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\tmetadata: {\n\t\ttype: Object\n\t},\n\t'metadata.client': {\n\t\ttype: String\n\t},\n\t'metadata.instance': {\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\nexport let MonitorMongos: MongoManagerCollection<MonitorMongoModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new MongoManagerModel<MonitorMongoModel>({\n\t\t\tcollectionName: 'monitor-mongos',\n\t\t\tschema: schema,\n\t\t\tuseVersionCollection: false,\n\t\t\tuseReportBuilder: false,\n\t\t\treportBuilderLookupTables: [],\n\t\t\ttimestamps: false,\n\t\t\tcreateLogs: false,\n\t\t\tcheckSchema: false,\n\t\t\tcollectionOptions: {\n\t\t\t\ttimeseries: {\n\t\t\t\t\ttimeField: 'date',\n\t\t\t\t\tgranularity: 'seconds',\n\t\t\t\t\tmetaField: 'metadata'\n\t\t\t\t},\n\t\t\t\texpireAfterSeconds: 60 * 60 * 24 * 3\n\t\t\t}\n\t\t});\n\t\tMonitorMongos = model.collection_main;\n\t\tMonitorMongos.createIndex({'metadata.client': 1, date: 1});\n\t\tMonitorMongos.createIndex({'metadata.client': 1, 'metadata.instance': 1, date: 1});\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 1);\n\t}\n}"]}
|
|
@@ -1,56 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Notifications = void 0;
|
|
4
|
-
var index_1 = require("../index");
|
|
5
|
-
var mongo_manager_1 = require("../managers/mongo.manager");
|
|
6
|
-
var schema = {
|
|
7
|
-
_id: {
|
|
8
|
-
type: String,
|
|
9
|
-
optional: true
|
|
10
|
-
},
|
|
11
|
-
__v: {
|
|
12
|
-
type: Number,
|
|
13
|
-
optional: true
|
|
14
|
-
},
|
|
15
|
-
updatedAt: {
|
|
16
|
-
type: Date,
|
|
17
|
-
optional: true
|
|
18
|
-
},
|
|
19
|
-
createdAt: {
|
|
20
|
-
type: Date,
|
|
21
|
-
optional: true
|
|
22
|
-
},
|
|
23
|
-
name: {
|
|
24
|
-
type: String
|
|
25
|
-
},
|
|
26
|
-
config: {
|
|
27
|
-
type: Object,
|
|
28
|
-
blackbox: true,
|
|
29
|
-
optional: true
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
exports.Notifications = null;
|
|
33
|
-
initializeCollection();
|
|
34
|
-
function initializeCollection() {
|
|
35
|
-
if (index_1.ResolveIOServer && index_1.ResolveIOServer.getMainDB()) {
|
|
36
|
-
var model = new mongo_manager_1.MongoManagerModel({
|
|
37
|
-
collectionName: 'notifications',
|
|
38
|
-
schema: schema,
|
|
39
|
-
useVersionCollection: false,
|
|
40
|
-
useReportBuilder: false,
|
|
41
|
-
reportBuilderLookupTables: [],
|
|
42
|
-
timestamps: true,
|
|
43
|
-
createLogs: false,
|
|
44
|
-
checkSchema: true,
|
|
45
|
-
collectionOptions: null
|
|
46
|
-
});
|
|
47
|
-
exports.Notifications = model.collection_main;
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
setTimeout(function () {
|
|
51
|
-
initializeCollection();
|
|
52
|
-
}, 1);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Notifications=void 0;var index_1=require("../index"),mongo_manager_1=require("../managers/mongo.manager"),schema={_id:{type:String,optional:!0},__v:{type:Number,optional:!0},updatedAt:{type:Date,optional:!0},createdAt:{type:Date,optional:!0},name:{type:String},config:{type:Object,blackbox:!0,optional:!0}};function initializeCollection(){var e;index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()?(e=new mongo_manager_1.MongoManagerModel({collectionName:"notifications",schema:schema,useVersionCollection:!1,useReportBuilder:!1,reportBuilderLookupTables:[],timestamps:!0,createLogs:!1,checkSchema:!0,collectionOptions:null}),exports.Notifications=e.collection_main):setTimeout(function(){initializeCollection()},1)}exports.Notifications=null,initializeCollection();
|
|
56
2
|
//# sourceMappingURL=notification.collection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/collections/notification.collection.ts"],"names":[
|
|
1
|
+
{"version":3,"sources":["../../src/collections/notification.collection.ts"],"names":["index_1","require","mongo_manager_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","name","config","Object","blackbox","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","exports","Notifications","collection_main","setTimeout"],"mappings":"iGAAA,IAAAA,QAAAC,QAAA,UAAA,EACAC,gBAAAD,QAAA,2BAAA,EAGIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,SAAU,CAAA,C,EAEXC,IAAK,CACJH,KAAMI,OACNF,SAAU,CAAA,C,EAEXG,UAAW,CACVL,KAAMM,KACNJ,SAAU,CAAA,C,EAEXK,UAAW,CACVP,KAAMM,KACNJ,SAAU,CAAA,C,EAEXM,KAAM,CACLR,KAAMC,M,EAEPQ,OAAQ,CACPT,KAAMU,OACNC,SAAU,CAAA,EACVT,SAAU,CAAA,C,GAQZ,SAASU,uBACR,IACOC,EADHlB,QAAAmB,iBAAmBnB,QAAAmB,gBAAgBC,UAAS,GACzCF,EAAQ,IAAIhB,gBAAAmB,kBAAqC,CACtDC,eAAgB,gBAChBnB,OAAQA,OACRoB,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,I,CACnB,EACDC,QAAAC,cAAgBb,EAAMc,iBAGtBC,WAAW,WACVhB,qBAAoB,CACrB,EAAG,CAAC,CAEN,CAxBWa,QAAAC,cAA2D,KAEtEd,qBAAoB","file":"notification.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { NotificationModel } from '../models/notification.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\tconfig: {\n\t\ttype: Object,\n\t\tblackbox: true,\n\t\toptional: true\n\t}\n};\n\nexport let Notifications: MongoManagerCollection<NotificationModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new MongoManagerModel<NotificationModel>({\n\t\t\tcollectionName: 'notifications',\n\t\t\tschema: schema,\n\t\t\tuseVersionCollection: false,\n\t\t\tuseReportBuilder: false,\n\t\t\treportBuilderLookupTables: [],\n\t\t\ttimestamps: true,\n\t\t\tcreateLogs: false,\n\t\t\tcheckSchema: true,\n\t\t\tcollectionOptions: null\n\t\t});\n\t\tNotifications = model.collection_main;\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 1);\n\t}\n}"]}
|