@resolveio/server-lib 9.2.18 → 9.2.19
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 -55
- package/client-server-app.js.map +1 -1
- package/collections/app-status.collection.js +1 -40
- package/collections/app-status.collection.js.map +1 -1
- package/collections/app-version.collection.js +1 -40
- package/collections/app-version.collection.js.map +1 -1
- package/collections/counter.collection.js +1 -43
- package/collections/counter.collection.js.map +1 -1
- package/collections/cron-job-history.collection.js +1 -71
- package/collections/cron-job-history.collection.js.map +1 -1
- package/collections/cron-job.collection.js +1 -74
- package/collections/cron-job.collection.js.map +1 -1
- package/collections/email-history.collection.js +1 -55
- package/collections/email-history.collection.js.map +1 -1
- package/collections/email-verified.collection.js +1 -50
- package/collections/email-verified.collection.js.map +1 -1
- package/collections/file.collection.js +1 -62
- package/collections/file.collection.js.map +1 -1
- package/collections/flag.collection.js +1 -44
- package/collections/flag.collection.js.map +1 -1
- package/collections/log-method-latency.collection.js +1 -53
- package/collections/log-method-latency.collection.js.map +1 -1
- package/collections/log-subscription.collection.js +1 -57
- package/collections/log-subscription.collection.js.map +1 -1
- package/collections/log.collection.js +1 -72
- package/collections/log.collection.js.map +1 -1
- package/collections/logged-in-users.collection.js +1 -58
- package/collections/logged-in-users.collection.js.map +1 -1
- package/collections/method-call.collection.js +1 -51
- package/collections/method-call.collection.js.map +1 -1
- package/collections/method-response.collection.js +1 -55
- package/collections/method-response.collection.js.map +1 -1
- package/collections/monitor-cpu.collection.js +1 -57
- package/collections/monitor-cpu.collection.js.map +1 -1
- package/collections/monitor-https-inbound.collection.js +1 -66
- package/collections/monitor-https-inbound.collection.js.map +1 -1
- package/collections/monitor-https-outbound.collection.js +1 -74
- package/collections/monitor-https-outbound.collection.js.map +1 -1
- package/collections/monitor-memory.collection.js +1 -68
- package/collections/monitor-memory.collection.js.map +1 -1
- package/collections/monitor-mongo.collection.js +1 -62
- package/collections/monitor-mongo.collection.js.map +1 -1
- package/collections/notification.collection.js +1 -40
- package/collections/notification.collection.js.map +1 -1
- package/collections/report-builder-dashboard-builder.collection.js +1 -93
- package/collections/report-builder-dashboard-builder.collection.js.map +1 -1
- package/collections/report-builder-library.collection.js +1 -76
- package/collections/report-builder-library.collection.js.map +1 -1
- package/collections/report-builder-report.collection.js +1 -138
- package/collections/report-builder-report.collection.js.map +1 -1
- package/collections/user-group.collection.js +1 -79
- package/collections/user-group.collection.js.map +1 -1
- package/collections/user-guide.collection.js +1 -46
- package/collections/user-guide.collection.js.map +1 -1
- package/collections/user.collection.js +1 -248
- package/collections/user.collection.js.map +1 -1
- package/cron/cron.js +1 -161
- package/cron/cron.js.map +1 -1
- package/fixtures/cron-jobs.js +1 -72
- package/fixtures/cron-jobs.js.map +1 -1
- package/fixtures/init.js +1 -62
- package/fixtures/init.js.map +1 -1
- package/http/auth.js +1 -697
- package/http/auth.js.map +1 -1
- package/http/health.js +1 -10
- package/http/health.js.map +1 -1
- package/http/home.js +1 -64
- package/http/home.js.map +1 -1
- package/index.js +1 -123
- package/index.js.map +1 -1
- package/managers/cron.manager.js +1 -205
- package/managers/cron.manager.js.map +1 -1
- package/managers/method.manager.js +1 -599
- package/managers/method.manager.js.map +1 -1
- package/managers/mongo.manager.js +1 -1682
- package/managers/mongo.manager.js.map +1 -1
- package/managers/monitor.manager.js +1 -334
- package/managers/monitor.manager.js.map +1 -1
- package/managers/subscription.manager.js +1 -867
- package/managers/subscription.manager.js.map +1 -1
- package/managers/subscription.performance.js +1 -100
- package/managers/subscription.performance.js.map +1 -1
- package/methods/accounts.js +1 -224
- package/methods/accounts.js.map +1 -1
- package/methods/aws.js +1 -449
- package/methods/aws.js.map +1 -1
- package/methods/cloudconvert.js +1 -214
- package/methods/cloudconvert.js.map +1 -1
- package/methods/collections.js +1 -526
- 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 -1284
- 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 -384
- package/methods/monitor.js.map +1 -1
- package/methods/pdf.js +1 -685
- package/methods/pdf.js.map +1 -1
- package/methods/report-builder.js +1 -826
- package/methods/report-builder.js.map +1 -1
- package/methods/support.js +1 -263
- 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/app-version.model.js +1 -3
- package/models/app-version.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-call.model.js +1 -3
- package/models/method-call.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-https-inbound.model.js +1 -3
- package/models/monitor-https-inbound.model.js.map +1 -1
- package/models/monitor-https-outbound.model.js +1 -3
- package/models/monitor-https-outbound.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 +2 -1
- package/public_api.js +1 -78
- package/public_api.js.map +1 -1
- package/publications/app-status.js +1 -16
- package/publications/app-status.js.map +1 -1
- package/publications/app-version.js +1 -16
- package/publications/app-version.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 -90
- package/publications/logs.js.map +1 -1
- package/publications/method-calls.js +1 -16
- package/publications/method-calls.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 -682
- package/server-app.js.map +1 -1
- package/util/common.js +1 -498
- 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,63 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Files = 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
|
-
size: {
|
|
27
|
-
type: Number
|
|
28
|
-
},
|
|
29
|
-
key: {
|
|
30
|
-
type: String
|
|
31
|
-
},
|
|
32
|
-
type: {
|
|
33
|
-
type: String
|
|
34
|
-
},
|
|
35
|
-
order: {
|
|
36
|
-
type: Number
|
|
37
|
-
},
|
|
38
|
-
status: {
|
|
39
|
-
type: String,
|
|
40
|
-
optional: true
|
|
41
|
-
},
|
|
42
|
-
default: {
|
|
43
|
-
type: Boolean,
|
|
44
|
-
optional: true
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
exports.Files = null;
|
|
48
|
-
initializeCollection();
|
|
49
|
-
function initializeCollection() {
|
|
50
|
-
if (index_1.ResolveIOServer && index_1.ResolveIOServer.getMainDB()) {
|
|
51
|
-
var model = new mongo_manager_1.Model('files', schema, false, true, [], true, false);
|
|
52
|
-
exports.Files = model.collection_main;
|
|
53
|
-
exports.Files.createIndex({ type: 1, createdAt: 1 });
|
|
54
|
-
exports.Files.createIndex({ key: 1 });
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
setTimeout(function () {
|
|
58
|
-
initializeCollection();
|
|
59
|
-
}, 1);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Files=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},size:{type:Number},key:{type:String},type:{type:String},order:{type:Number},status:{type:String,optional:!0},default:{type:Boolean,optional:!0}};function initializeCollection(){if(index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()){var e=new mongo_manager_1.Model("files",schema,!1,!0,[],!0,!1);exports.Files=e.collection_main,exports.Files.createIndex({type:1,createdAt:1}),exports.Files.createIndex({key:1})}else setTimeout((function(){initializeCollection()}),1)}exports.Files=null,initializeCollection();
|
|
63
2
|
//# sourceMappingURL=file.collection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/collections/file.collection.ts"],"names":[
|
|
1
|
+
{"version":3,"sources":["../../src/collections/file.collection.ts"],"names":["index_1","require","mongo_manager_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","name","size","key","order","status","default","Boolean","initializeCollection","ResolveIOServer","getMainDB","model","Model","exports","Files","collection_main","createIndex","setTimeout"],"mappings":"yFAAA,IAAAA,QAAAC,QAAA,YACAC,gBAAAD,QAAA,6BAGIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,UAAU,GAEXC,IAAK,CACJH,KAAMI,OACNF,UAAU,GAEXG,UAAW,CACVL,KAAMM,KACNJ,UAAU,GAEXK,UAAW,CACVP,KAAMM,KACNJ,UAAU,GAEXM,KAAM,CACLR,KAAMC,QAEPQ,KAAM,CACLT,KAAMI,QAEPM,IAAK,CACJV,KAAMC,QAEPD,KAAM,CACLA,KAAMC,QAEPU,MAAO,CACNX,KAAMI,QAEPQ,OAAQ,CACPZ,KAAMC,OACNC,UAAU,GAEXW,QAAS,CACRb,KAAMc,QACNZ,UAAU,IAQZ,SAASa,uBACR,GAAIpB,QAAAqB,iBAAmBrB,QAAAqB,gBAAgBC,YAAa,CACnD,IAAMC,EAAQ,IAAIrB,gBAAAsB,MAAiB,QAASrB,QAAQ,GAAO,EAAM,IAAI,GAAM,GAC3EsB,QAAAC,MAAQH,EAAMI,gBACdF,QAAAC,MAAME,YAAY,CAACvB,KAAM,EAAGO,UAAW,IACvCa,QAAAC,MAAME,YAAY,CAACb,IAAK,SAGxBc,YAAW,WACVT,yBACE,GAdMK,QAAAC,MAA+B,KAE1CN","file":"file.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } from '../managers/mongo.manager';\nimport { FileModel } from '../models/file.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\tsize: {\n\t\ttype: Number\n\t},\n\tkey: {\n\t\ttype: String\n\t},\n\ttype: {\n\t\ttype: String\n\t},\n\torder: {\n\t\ttype: Number\n\t},\n\tstatus: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\tdefault: {\n\t\ttype: Boolean,\n\t\toptional: true\n\t}\n};\n\nexport let Files: Collection<FileModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<FileModel>('files', schema, false, true, [], true, false);\n\t\tFiles = model.collection_main;\n\t\tFiles.createIndex({type: 1, createdAt: 1});\n\t\tFiles.createIndex({key: 1});\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 1);\n\t}\n}"]}
|
|
@@ -1,45 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Flags = 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
|
-
type: {
|
|
24
|
-
type: String
|
|
25
|
-
},
|
|
26
|
-
value: {
|
|
27
|
-
type: Boolean,
|
|
28
|
-
optional: true
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
exports.Flags = null;
|
|
32
|
-
initializeCollection();
|
|
33
|
-
function initializeCollection() {
|
|
34
|
-
if (index_1.ResolveIOServer && index_1.ResolveIOServer.getMainDB()) {
|
|
35
|
-
var model = new mongo_manager_1.Model('flags', schema, false, false, [], true, false);
|
|
36
|
-
exports.Flags = model.collection_main;
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
setTimeout(function () {
|
|
40
|
-
initializeCollection();
|
|
41
|
-
}, 0);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Flags=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},type:{type:String},value:{type:Boolean,optional:!0}};function initializeCollection(){if(index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()){var e=new mongo_manager_1.Model("flags",schema,!1,!1,[],!0,!1);exports.Flags=e.collection_main}else setTimeout((function(){initializeCollection()}),0)}exports.Flags=null,initializeCollection();
|
|
45
2
|
//# sourceMappingURL=flag.collection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/collections/flag.collection.ts"],"names":[
|
|
1
|
+
{"version":3,"sources":["../../src/collections/flag.collection.ts"],"names":["index_1","require","mongo_manager_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","value","Boolean","initializeCollection","ResolveIOServer","getMainDB","model","Model","exports","Flags","collection_main","setTimeout"],"mappings":"yFAAA,IAAAA,QAAAC,QAAA,YACAC,gBAAAD,QAAA,6BAGIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,UAAU,GAEXC,IAAK,CACJH,KAAMI,OACNF,UAAU,GAEXG,UAAW,CACVL,KAAMM,KACNJ,UAAU,GAEXK,UAAW,CACVP,KAAMM,KACNJ,UAAU,GAEXF,KAAM,CACLA,KAAMC,QAEPO,MAAO,CACNR,KAAMS,QACNP,UAAU,IAQZ,SAASQ,uBACR,GAAIf,QAAAgB,iBAAmBhB,QAAAgB,gBAAgBC,YAAa,CACnD,IAAMC,EAAQ,IAAIhB,gBAAAiB,MAAiB,QAAShB,QAAQ,GAAO,EAAO,IAAI,GAAM,GAC5EiB,QAAAC,MAAQH,EAAMI,qBAGdC,YAAW,WACVR,yBACE,GAZMK,QAAAC,MAA+B,KAE1CN","file":"flag.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } from '../managers/mongo.manager';\nimport { FlagModel } from '../models/flag.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\ttype: {\n\t\ttype: String\n\t},\n\tvalue: {\n\t\ttype: Boolean,\n\t\toptional: true\n\t}\n};\n\nexport let Flags: Collection<FlagModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<FlagModel>('flags', schema, false, false, [], true, false);\n\t\tFlags = model.collection_main;\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 0);\n\t}\n}"]}
|
|
@@ -1,54 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LogMethodLatencies = 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_start: {
|
|
24
|
-
type: Date
|
|
25
|
-
},
|
|
26
|
-
date_end: {
|
|
27
|
-
type: Date,
|
|
28
|
-
optional: true
|
|
29
|
-
},
|
|
30
|
-
latency_ms: {
|
|
31
|
-
type: Number
|
|
32
|
-
},
|
|
33
|
-
method: {
|
|
34
|
-
type: String
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
exports.LogMethodLatencies = null;
|
|
38
|
-
initializeCollection();
|
|
39
|
-
function initializeCollection() {
|
|
40
|
-
if (index_1.ResolveIOServer && index_1.ResolveIOServer.getMainDB()) {
|
|
41
|
-
var model = new mongo_manager_1.Model('log-method-latencies', schema, false, false, [], true, false);
|
|
42
|
-
exports.LogMethodLatencies = model.collection_main;
|
|
43
|
-
exports.LogMethodLatencies.createIndex({ createdAt: 1 }, { expireAfterSeconds: 60 * 60 * 24 * 30 });
|
|
44
|
-
exports.LogMethodLatencies.createIndex({ latency_ms: 1 });
|
|
45
|
-
exports.LogMethodLatencies.createIndex({ method: 1 });
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
setTimeout(function () {
|
|
49
|
-
initializeCollection();
|
|
50
|
-
}, 1);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LogMethodLatencies=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_start:{type:Date},date_end:{type:Date,optional:!0},latency_ms:{type:Number},method:{type:String}};function initializeCollection(){if(index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()){var e=new mongo_manager_1.Model("log-method-latencies",schema,!1,!1,[],!0,!1);exports.LogMethodLatencies=e.collection_main,exports.LogMethodLatencies.createIndex({createdAt:1},{expireAfterSeconds:2592e3}),exports.LogMethodLatencies.createIndex({latency_ms:1}),exports.LogMethodLatencies.createIndex({method:1})}else setTimeout((function(){initializeCollection()}),1)}exports.LogMethodLatencies=null,initializeCollection();
|
|
54
2
|
//# sourceMappingURL=log-method-latency.collection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/collections/log-method-latency.collection.ts"],"names":[
|
|
1
|
+
{"version":3,"sources":["../../src/collections/log-method-latency.collection.ts"],"names":["index_1","require","mongo_manager_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","date_start","date_end","latency_ms","method","initializeCollection","ResolveIOServer","getMainDB","model","Model","exports","LogMethodLatencies","collection_main","createIndex","expireAfterSeconds","setTimeout"],"mappings":"sGAAA,IAAAA,QAAAC,QAAA,YACAC,gBAAAD,QAAA,6BAGIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,UAAU,GAEXC,IAAK,CACJH,KAAMI,OACNF,UAAU,GAEXG,UAAW,CACVL,KAAMM,KACNJ,UAAU,GAEXK,UAAW,CACVP,KAAMM,KACNJ,UAAU,GAEXM,WAAY,CACXR,KAAMM,MAEPG,SAAU,CACTT,KAAMM,KACNJ,UAAU,GAEXQ,WAAY,CACXV,KAAMI,QAEPO,OAAQ,CACPX,KAAMC,SAQR,SAASW,uBACR,GAAIjB,QAAAkB,iBAAmBlB,QAAAkB,gBAAgBC,YAAa,CACnD,IAAMC,EAAQ,IAAIlB,gBAAAmB,MAA6B,uBAAwBlB,QAAQ,GAAO,EAAO,IAAI,GAAM,GACvGmB,QAAAC,mBAAqBH,EAAMI,gBAC3BF,QAAAC,mBAAmBE,YAAY,CAACb,UAAW,GAAI,CAACc,mBAAoB,SACpEJ,QAAAC,mBAAmBE,YAAY,CAACV,WAAY,IAC5CO,QAAAC,mBAAmBE,YAAY,CAACT,OAAQ,SAGxCW,YAAW,WACVV,yBACE,GAfMK,QAAAC,mBAAwD,KAEnEN","file":"log-method-latency.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } from '../managers/mongo.manager';\nimport { LogMethodLatencyModel } from '../models/log-method-latency.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_start: {\n\t\ttype: Date\n\t},\n\tdate_end: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tlatency_ms: {\n\t\ttype: Number\n\t},\n\tmethod: {\n\t\ttype: String\n\t}\n};\n\nexport let LogMethodLatencies: Collection<LogMethodLatencyModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<LogMethodLatencyModel>('log-method-latencies', schema, false, false, [], true, false);\n\t\tLogMethodLatencies = model.collection_main;\n\t\tLogMethodLatencies.createIndex({createdAt: 1}, {expireAfterSeconds: 60 * 60 * 24 * 30});\n\t\tLogMethodLatencies.createIndex({latency_ms: 1});\n\t\tLogMethodLatencies.createIndex({method: 1});\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 1);\n\t}\n}"]}
|
|
@@ -1,58 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LogSubscriptions = 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
|
-
type: {
|
|
27
|
-
type: String
|
|
28
|
-
},
|
|
29
|
-
subscription: {
|
|
30
|
-
type: String
|
|
31
|
-
},
|
|
32
|
-
collection_name: {
|
|
33
|
-
type: String
|
|
34
|
-
},
|
|
35
|
-
subData: {
|
|
36
|
-
type: String
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
exports.LogSubscriptions = null;
|
|
40
|
-
initializeCollection();
|
|
41
|
-
function initializeCollection() {
|
|
42
|
-
if (index_1.ResolveIOServer && index_1.ResolveIOServer.getMainDB()) {
|
|
43
|
-
var model = new mongo_manager_1.Model('log-subscriptions', schema, false, false, [], true, false);
|
|
44
|
-
exports.LogSubscriptions = model.collection_main;
|
|
45
|
-
exports.LogSubscriptions.createIndex({ date: 1 }, { expireAfterSeconds: 60 * 60 * 24 * 30 });
|
|
46
|
-
exports.LogSubscriptions.createIndex({ type: 1 });
|
|
47
|
-
exports.LogSubscriptions.createIndex({ collection_name: 1 });
|
|
48
|
-
exports.LogSubscriptions.createIndex({ date: 1, type: 1 });
|
|
49
|
-
exports.LogSubscriptions.createIndex({ createdAt: 1 });
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
setTimeout(function () {
|
|
53
|
-
initializeCollection();
|
|
54
|
-
}, 1);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LogSubscriptions=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},type:{type:String},subscription:{type:String},collection_name:{type:String},subData:{type:String}};function initializeCollection(){if(index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()){var e=new mongo_manager_1.Model("log-subscriptions",schema,!1,!1,[],!0,!1);exports.LogSubscriptions=e.collection_main,exports.LogSubscriptions.createIndex({date:1},{expireAfterSeconds:2592e3}),exports.LogSubscriptions.createIndex({type:1}),exports.LogSubscriptions.createIndex({collection_name:1}),exports.LogSubscriptions.createIndex({date:1,type:1}),exports.LogSubscriptions.createIndex({createdAt:1})}else setTimeout((function(){initializeCollection()}),1)}exports.LogSubscriptions=null,initializeCollection();
|
|
58
2
|
//# sourceMappingURL=log-subscription.collection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/collections/log-subscription.collection.ts"],"names":[
|
|
1
|
+
{"version":3,"sources":["../../src/collections/log-subscription.collection.ts"],"names":["index_1","require","mongo_manager_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","date","subscription","collection_name","subData","initializeCollection","ResolveIOServer","getMainDB","model","Model","exports","LogSubscriptions","collection_main","createIndex","expireAfterSeconds","setTimeout"],"mappings":"oGAAA,IAAAA,QAAAC,QAAA,YACAC,gBAAAD,QAAA,6BAGIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,UAAU,GAEXC,IAAK,CACJH,KAAMI,OACNF,UAAU,GAEXG,UAAW,CACVL,KAAMM,KACNJ,UAAU,GAEXK,UAAW,CACVP,KAAMM,KACNJ,UAAU,GAEXM,KAAM,CACLR,KAAMM,MAEPN,KAAM,CACLA,KAAMC,QAEPQ,aAAc,CACbT,KAAMC,QAEPS,gBAAiB,CAChBV,KAAMC,QAEPU,QAAS,CACRX,KAAMC,SAQR,SAASW,uBACR,GAAIjB,QAAAkB,iBAAmBlB,QAAAkB,gBAAgBC,YAAa,CACnD,IAAMC,EAAQ,IAAIlB,gBAAAmB,MAA4B,oBAAqBlB,QAAQ,GAAO,EAAO,IAAI,GAAM,GACnGmB,QAAAC,iBAAmBH,EAAMI,gBACzBF,QAAAC,iBAAiBE,YAAY,CAACZ,KAAM,GAAI,CAACa,mBAAoB,SAC7DJ,QAAAC,iBAAiBE,YAAY,CAACpB,KAAM,IACpCiB,QAAAC,iBAAiBE,YAAY,CAACV,gBAAiB,IAC/CO,QAAAC,iBAAiBE,YAAY,CAACZ,KAAM,EAAGR,KAAM,IAC7CiB,QAAAC,iBAAiBE,YAAY,CAACb,UAAW,SAGzCe,YAAW,WACVV,yBACE,GAjBMK,QAAAC,iBAAqD,KAEhEN","file":"log-subscription.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } from '../managers/mongo.manager';\nimport { LogSubscriptionModel } from '../models/log-subscription.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\ttype: {\n\t\ttype: String\n\t},\n\tsubscription: {\n\t\ttype: String\n\t},\n\tcollection_name: {\n\t\ttype: String\n\t},\n\tsubData: {\n\t\ttype: String\t\n\t}\n};\n\nexport let LogSubscriptions: Collection<LogSubscriptionModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<LogSubscriptionModel>('log-subscriptions', schema, false, false, [], true, false);\n\t\tLogSubscriptions = model.collection_main;\n\t\tLogSubscriptions.createIndex({date: 1}, {expireAfterSeconds: 60 * 60 * 24 * 30});\n\t\tLogSubscriptions.createIndex({type: 1});\n\t\tLogSubscriptions.createIndex({collection_name: 1});\n\t\tLogSubscriptions.createIndex({date: 1, type: 1});\n\t\tLogSubscriptions.createIndex({createdAt: 1});\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 1);\n\t}\n}"]}
|
|
@@ -1,73 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Logs = 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
|
-
type: {
|
|
24
|
-
type: String
|
|
25
|
-
},
|
|
26
|
-
collection: {
|
|
27
|
-
type: String
|
|
28
|
-
},
|
|
29
|
-
id_document: {
|
|
30
|
-
type: String
|
|
31
|
-
},
|
|
32
|
-
payload: {
|
|
33
|
-
type: String
|
|
34
|
-
},
|
|
35
|
-
method: {
|
|
36
|
-
type: String
|
|
37
|
-
},
|
|
38
|
-
id_user: {
|
|
39
|
-
type: String
|
|
40
|
-
},
|
|
41
|
-
user: {
|
|
42
|
-
type: String
|
|
43
|
-
},
|
|
44
|
-
messageId: {
|
|
45
|
-
type: Number
|
|
46
|
-
},
|
|
47
|
-
route: {
|
|
48
|
-
type: String
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
exports.Logs = null;
|
|
52
|
-
initializeCollection();
|
|
53
|
-
function initializeCollection() {
|
|
54
|
-
if (index_1.ResolveIOServer && index_1.ResolveIOServer.getMainDB()) {
|
|
55
|
-
var model = new mongo_manager_1.Model('logs', schema, false, false, [], true, false);
|
|
56
|
-
exports.Logs = model.collection_main;
|
|
57
|
-
exports.Logs.createIndex({ createdAt: 1 }, { expireAfterSeconds: 60 * 60 * 24 * 90 });
|
|
58
|
-
exports.Logs.createIndex({ createdAt: -1, type: 1, id_document: 1 });
|
|
59
|
-
exports.Logs.createIndex({ createdAt: -1, type: 1, user: 1 });
|
|
60
|
-
exports.Logs.createIndex({ createdAt: -1, type: 1, method: 1 });
|
|
61
|
-
exports.Logs.createIndex({ createdAt: -1, type: 1, route: 1 });
|
|
62
|
-
exports.Logs.createIndex({ createdAt: -1, type: 1, collection: 1, id_document: 1 });
|
|
63
|
-
exports.Logs.createIndex({ createdAt: -1, type: 1, collection: 1, method: 1, route: 1 });
|
|
64
|
-
exports.Logs.createIndex({ createdAt: -1, type: 1, collection: 1, route: 1 });
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
setTimeout(function () {
|
|
68
|
-
initializeCollection();
|
|
69
|
-
}, 1);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Logs=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},type:{type:String},collection:{type:String},id_document:{type:String},payload:{type:String},method:{type:String},id_user:{type:String},user:{type:String},messageId:{type:Number},route:{type:String}};function initializeCollection(){if(index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()){var e=new mongo_manager_1.Model("logs",schema,!1,!1,[],!0,!1);exports.Logs=e.collection_main,exports.Logs.createIndex({createdAt:1},{expireAfterSeconds:7776e3}),exports.Logs.createIndex({createdAt:-1,type:1,id_document:1}),exports.Logs.createIndex({createdAt:-1,type:1,user:1}),exports.Logs.createIndex({createdAt:-1,type:1,method:1}),exports.Logs.createIndex({createdAt:-1,type:1,route:1}),exports.Logs.createIndex({createdAt:-1,type:1,collection:1,id_document:1}),exports.Logs.createIndex({createdAt:-1,type:1,collection:1,method:1,route:1}),exports.Logs.createIndex({createdAt:-1,type:1,collection:1,route:1})}else setTimeout((function(){initializeCollection()}),1)}exports.Logs=null,initializeCollection();
|
|
73
2
|
//# sourceMappingURL=log.collection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/collections/log.collection.ts"],"names":[
|
|
1
|
+
{"version":3,"sources":["../../src/collections/log.collection.ts"],"names":["index_1","require","mongo_manager_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","collection","id_document","payload","method","id_user","user","messageId","route","initializeCollection","ResolveIOServer","getMainDB","model","Model","exports","Logs","collection_main","createIndex","expireAfterSeconds","setTimeout"],"mappings":"wFAAA,IAAAA,QAAAC,QAAA,YACAC,gBAAAD,QAAA,6BAGIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,UAAU,GAEXC,IAAK,CACJH,KAAMI,OACNF,UAAU,GAEXG,UAAW,CACVL,KAAMM,KACNJ,UAAU,GAEXK,UAAW,CACVP,KAAMM,KACNJ,UAAU,GAEXF,KAAM,CACLA,KAAMC,QAEPO,WAAY,CACXR,KAAMC,QAEPQ,YAAa,CACZT,KAAMC,QAEPS,QAAS,CACRV,KAAMC,QAEPU,OAAQ,CACPX,KAAMC,QAEPW,QAAS,CACRZ,KAAMC,QAEPY,KAAM,CACLb,KAAMC,QAEPa,UAAW,CACVd,KAAMI,QAEPW,MAAO,CACNf,KAAMC,SAQR,SAASe,uBACR,GAAIrB,QAAAsB,iBAAmBtB,QAAAsB,gBAAgBC,YAAa,CACnD,IAAMC,EAAQ,IAAItB,gBAAAuB,MAAgB,OAAQtB,QAAQ,GAAO,EAAO,IAAI,GAAM,GAC1EuB,QAAAC,KAAOH,EAAMI,gBACbF,QAAAC,KAAKE,YAAY,CAACjB,UAAW,GAAI,CAACkB,mBAAoB,SACtDJ,QAAAC,KAAKE,YAAY,CAACjB,WAAY,EAAGP,KAAM,EAAGS,YAAa,IACvDY,QAAAC,KAAKE,YAAY,CAACjB,WAAY,EAAGP,KAAM,EAAGa,KAAM,IAChDQ,QAAAC,KAAKE,YAAY,CAACjB,WAAY,EAAGP,KAAM,EAAGW,OAAQ,IAClDU,QAAAC,KAAKE,YAAY,CAACjB,WAAY,EAAGP,KAAM,EAAGe,MAAO,IACjDM,QAAAC,KAAKE,YAAY,CAACjB,WAAY,EAAGP,KAAM,EAAGQ,WAAY,EAAGC,YAAa,IACtEY,QAAAC,KAAKE,YAAY,CAACjB,WAAY,EAAGP,KAAM,EAAGQ,WAAY,EAAGG,OAAQ,EAAGI,MAAO,IAC3EM,QAAAC,KAAKE,YAAY,CAACjB,WAAY,EAAGP,KAAM,EAAGQ,WAAY,EAAGO,MAAO,SAGhEW,YAAW,WACVV,yBACE,GApBMK,QAAAC,KAA6B,KAExCN","file":"log.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } from '../managers/mongo.manager';\nimport { LogModel } from '../models/log.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\ttype: {\n\t\ttype: String\n\t},\n\tcollection: {\n\t\ttype: String\n\t},\n\tid_document: {\n\t\ttype: String\n\t},\n\tpayload: {\n\t\ttype: String\n\t},\n\tmethod: {\n\t\ttype: String\n\t},\n\tid_user: {\n\t\ttype: String\n\t},\n\tuser: {\n\t\ttype: String\n\t},\n\tmessageId: {\n\t\ttype: Number\n\t},\n\troute: {\n\t\ttype: String\n\t}\n};\n\nexport let Logs: Collection<LogModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<LogModel>('logs', schema, false, false, [], true, false);\n\t\tLogs = model.collection_main;\n\t\tLogs.createIndex({createdAt: 1}, {expireAfterSeconds: 60 * 60 * 24 * 90});\n\t\tLogs.createIndex({createdAt: -1, type: 1, id_document: 1});\n\t\tLogs.createIndex({createdAt: -1, type: 1, user: 1});\n\t\tLogs.createIndex({createdAt: -1, type: 1, method: 1});\n\t\tLogs.createIndex({createdAt: -1, type: 1, route: 1});\n\t\tLogs.createIndex({createdAt: -1, type: 1, collection: 1, id_document: 1});\n\t\tLogs.createIndex({createdAt: -1, type: 1, collection: 1, method: 1, route: 1});\n\t\tLogs.createIndex({createdAt: -1, type: 1, collection: 1, route: 1});\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 1);\n\t}\n}"]}
|
|
@@ -1,59 +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
|
-
app_version: {
|
|
36
|
-
type: Number,
|
|
37
|
-
optional: true
|
|
38
|
-
},
|
|
39
|
-
latency: {
|
|
40
|
-
type: Number,
|
|
41
|
-
optional: true
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
exports.LoggedInUsers = null;
|
|
45
|
-
initializeCollection();
|
|
46
|
-
function initializeCollection() {
|
|
47
|
-
if (index_1.ResolveIOServer && index_1.ResolveIOServer.getMainDB()) {
|
|
48
|
-
var model = new mongo_manager_1.Model('logged-in-users', schema, false, false, [], true, false);
|
|
49
|
-
exports.LoggedInUsers = model.collection_main;
|
|
50
|
-
exports.LoggedInUsers.createIndex({ id_ws: 1 });
|
|
51
|
-
}
|
|
52
|
-
else {
|
|
53
|
-
setTimeout(function () {
|
|
54
|
-
initializeCollection();
|
|
55
|
-
}, 1);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
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},app_version:{type:Number,optional:!0},latency:{type:Number,optional:!0}};function initializeCollection(){if(index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()){var e=new mongo_manager_1.Model("logged-in-users",schema,!1,!1,[],!0,!1);exports.LoggedInUsers=e.collection_main,exports.LoggedInUsers.createIndex({id_ws:1})}else setTimeout((function(){initializeCollection()}),1)}exports.LoggedInUsers=null,initializeCollection();
|
|
59
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","app_version","latency","initializeCollection","ResolveIOServer","getMainDB","model","Model","exports","LoggedInUsers","collection_main","createIndex","setTimeout"],"mappings":"iGAAA,IAAAA,QAAAC,QAAA,YACAC,gBAAAD,QAAA,6BAGIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,UAAU,GAEXC,IAAK,CACJH,KAAMI,OACNF,UAAU,GAEXG,UAAW,CACVL,KAAMM,KACNJ,UAAU,GAEXK,UAAW,CACVP,KAAMM,KACNJ,UAAU,GAEXM,KAAM,CACLR,KAAMM,MAEPG,QAAS,CACRT,KAAMC,QAEPS,KAAM,CACLV,KAAMC,QAEPU,MAAO,CACNX,KAAMC,QAEPW,YAAa,CACZZ,KAAMI,OACNF,UAAU,GAEXW,QAAS,CACRb,KAAMI,OACNF,UAAU,IAQZ,SAASY,uBACR,GAAInB,QAAAoB,iBAAmBpB,QAAAoB,gBAAgBC,YAAa,CACnD,IAAMC,EAAQ,IAAIpB,gBAAAqB,MAAyB,kBAAmBpB,QAAQ,GAAO,EAAO,IAAI,GAAM,GAC9FqB,QAAAC,cAAgBH,EAAMI,gBACtBF,QAAAC,cAAcE,YAAY,CAACX,MAAO,SAGlCY,YAAW,WACVT,yBACE,GAbMK,QAAAC,cAA+C,KAE1DN","file":"logged-in-users.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } 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\tapp_version: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tlatency: {\n\t\ttype: Number,\n\t\toptional: true\n\t}\n};\n\nexport let LoggedInUsers: Collection<LoggedInUserModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<LoggedInUserModel>('logged-in-users', schema, false, false, [], true, false);\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,52 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MethodCalls = 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
|
-
date: {
|
|
33
|
-
type: Date
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
exports.MethodCalls = null;
|
|
37
|
-
initializeCollection();
|
|
38
|
-
function initializeCollection() {
|
|
39
|
-
if (index_1.ResolveIOServer && index_1.ResolveIOServer.getMainDB()) {
|
|
40
|
-
var model = new mongo_manager_1.Model('method-calls', schema, false, false, [], true, false);
|
|
41
|
-
exports.MethodCalls = model.collection_main;
|
|
42
|
-
exports.MethodCalls.createIndex({ id_user: 1, message_id: 1 });
|
|
43
|
-
exports.MethodCalls.createIndex({ createdAt: 1 }, { expireAfterSeconds: 86400 });
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
setTimeout(function () {
|
|
47
|
-
initializeCollection();
|
|
48
|
-
}, 1);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MethodCalls=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},date:{type:Date}};function initializeCollection(){if(index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()){var e=new mongo_manager_1.Model("method-calls",schema,!1,!1,[],!0,!1);exports.MethodCalls=e.collection_main,exports.MethodCalls.createIndex({id_user:1,message_id:1}),exports.MethodCalls.createIndex({createdAt:1},{expireAfterSeconds:86400})}else setTimeout((function(){initializeCollection()}),1)}exports.MethodCalls=null,initializeCollection();
|
|
52
2
|
//# sourceMappingURL=method-call.collection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/collections/method-call.collection.ts"],"names":[
|
|
1
|
+
{"version":3,"sources":["../../src/collections/method-call.collection.ts"],"names":["index_1","require","mongo_manager_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","id_user","message_id","method","date","initializeCollection","ResolveIOServer","getMainDB","model","Model","exports","MethodCalls","collection_main","createIndex","expireAfterSeconds","setTimeout"],"mappings":"+FAAA,IAAAA,QAAAC,QAAA,YACAC,gBAAAD,QAAA,6BAGIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,UAAU,GAEXC,IAAK,CACJH,KAAMI,OACNF,UAAU,GAEXG,UAAW,CACVL,KAAMM,KACNJ,UAAU,GAEXK,UAAW,CACVP,KAAMM,KACNJ,UAAU,GAEXM,QAAS,CACRR,KAAMC,QAEPQ,WAAY,CACXT,KAAMI,QAEPM,OAAQ,CACPV,KAAMC,QAEPU,KAAM,CACLX,KAAMM,OAQR,SAASM,uBACR,GAAIjB,QAAAkB,iBAAmBlB,QAAAkB,gBAAgBC,YAAa,CACnD,IAAMC,EAAQ,IAAIlB,gBAAAmB,MAAuB,eAAgBlB,QAAQ,GAAO,EAAO,IAAI,GAAM,GACzFmB,QAAAC,YAAcH,EAAMI,gBACpBF,QAAAC,YAAYE,YAAY,CAACZ,QAAS,EAAGC,WAAY,IACjDQ,QAAAC,YAAYE,YAAY,CAACb,UAAW,GAAI,CAACc,mBAAoB,aAG7DC,YAAW,WACVV,yBACE,GAdMK,QAAAC,YAA2C,KAEtDN","file":"method-call.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } from '../managers/mongo.manager';\nimport { MethodCallModel } from '../models/method-call.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\tdate: {\n\t\ttype: Date\n\t}\n};\n\nexport let MethodCalls: Collection<MethodCallModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<MethodCallModel>('method-calls', schema, false, false, [], true, false);\n\t\tMethodCalls = model.collection_main;\n\t\tMethodCalls.createIndex({id_user: 1, message_id: 1});\n\t\tMethodCalls.createIndex({createdAt: 1}, {expireAfterSeconds: 86400});\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.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.Model('method-responses', schema, false, false, [], true, false);
|
|
45
|
-
exports.MethodResponses = model.collection_main;
|
|
46
|
-
exports.MethodResponses.createIndex({ id_user: 1, message_id: 1 });
|
|
47
|
-
exports.MethodResponses.createIndex({ createdAt: 1 }, { expireAfterSeconds: 86400 });
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
setTimeout(function () {
|
|
51
|
-
initializeCollection();
|
|
52
|
-
}, 1);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
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(){if(index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()){var e=new mongo_manager_1.Model("method-responses",schema,!1,!1,[],!0,!1);exports.MethodResponses=e.collection_main,exports.MethodResponses.createIndex({id_user:1,message_id:1}),exports.MethodResponses.createIndex({createdAt:1},{expireAfterSeconds:86400})}else setTimeout((function(){initializeCollection()}),1)}exports.MethodResponses=null,initializeCollection();
|
|
56
2
|
//# sourceMappingURL=method-response.collection.js.map
|