@resolveio/server-lib 20.0.26 → 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 -616
- 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,73 +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.MongoManagerModel({
|
|
52
|
-
collectionName: 'files',
|
|
53
|
-
schema: schema,
|
|
54
|
-
useVersionCollection: false,
|
|
55
|
-
useReportBuilder: true,
|
|
56
|
-
reportBuilderLookupTables: [],
|
|
57
|
-
timestamps: true,
|
|
58
|
-
createLogs: false,
|
|
59
|
-
checkSchema: true,
|
|
60
|
-
collectionOptions: null
|
|
61
|
-
});
|
|
62
|
-
exports.Files = model.collection_main;
|
|
63
|
-
exports.Files.createIndex({ type: 1, createdAt: 1 });
|
|
64
|
-
exports.Files.createIndex({ key: 1 });
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
setTimeout(function () {
|
|
68
|
-
initializeCollection();
|
|
69
|
-
}, 1);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
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(){var e;index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()?(e=new mongo_manager_1.MongoManagerModel({collectionName:"files",schema:schema,useVersionCollection:!1,useReportBuilder:!0,reportBuilderLookupTables:[],timestamps:!0,createLogs:!1,checkSchema:!0,collectionOptions:null}),exports.Files=e.collection_main,exports.Files.createIndex({type:1,createdAt:1}),exports.Files.createIndex({key:1})):setTimeout(function(){initializeCollection()},1)}exports.Files=null,initializeCollection();
|
|
73
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","model","ResolveIOServer","getMainDB","MongoManagerModel","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","exports","Files","collection_main","createIndex","setTimeout"],"mappings":"yFAAA,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,KAAM,CACLT,KAAMI,M,EAEPM,IAAK,CACJV,KAAMC,M,EAEPD,KAAM,CACLA,KAAMC,M,EAEPU,MAAO,CACNX,KAAMI,M,EAEPQ,OAAQ,CACPZ,KAAMC,OACNC,SAAU,CAAA,C,EAEXW,QAAS,CACRb,KAAMc,QACNZ,SAAU,CAAA,C,GAQZ,SAASa,uBACR,IACOC,EADHrB,QAAAsB,iBAAmBtB,QAAAsB,gBAAgBC,UAAS,GACzCF,EAAQ,IAAInB,gBAAAsB,kBAA6B,CAC9CC,eAAgB,QAChBtB,OAAQA,OACRuB,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,I,CACnB,EACDC,QAAAC,MAAQb,EAAMc,gBACdF,QAAAC,MAAME,YAAY,CAAC/B,KAAM,EAAGO,UAAW,CAAC,CAAC,EACzCqB,QAAAC,MAAME,YAAY,CAACrB,IAAK,CAAC,CAAC,GAG1BsB,WAAW,WACVjB,qBAAoB,CACrB,EAAG,CAAC,CAEN,CA1BWa,QAAAC,MAA2C,KAEtDd,qBAAoB","file":"file.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { MongoManagerCollection, MongoManagerModel } 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: MongoManagerCollection<FileModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new MongoManagerModel<FileModel>({\n\t\t\tcollectionName: 'files',\n\t\t\tschema: schema,\n\t\t\tuseVersionCollection: false,\n\t\t\tuseReportBuilder: true,\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\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,56 +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.MongoManagerModel({
|
|
36
|
-
collectionName: 'flags',
|
|
37
|
-
schema: schema,
|
|
38
|
-
useVersionCollection: false,
|
|
39
|
-
useReportBuilder: false,
|
|
40
|
-
reportBuilderLookupTables: [],
|
|
41
|
-
timestamps: true,
|
|
42
|
-
createLogs: false,
|
|
43
|
-
checkSchema: true,
|
|
44
|
-
collectionOptions: null
|
|
45
|
-
});
|
|
46
|
-
exports.Flags = model.collection_main;
|
|
47
|
-
exports.Flags.createIndex({ type: 1 }, { unique: true });
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
setTimeout(function () {
|
|
51
|
-
initializeCollection();
|
|
52
|
-
}, 0);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
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(){var e;index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()?(e=new mongo_manager_1.MongoManagerModel({collectionName:"flags",schema:schema,useVersionCollection:!1,useReportBuilder:!1,reportBuilderLookupTables:[],timestamps:!0,createLogs:!1,checkSchema:!0,collectionOptions:null}),exports.Flags=e.collection_main,exports.Flags.createIndex({type:1},{unique:!0})):setTimeout(function(){initializeCollection()},0)}exports.Flags=null,initializeCollection();
|
|
56
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","model","ResolveIOServer","getMainDB","MongoManagerModel","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","exports","Flags","collection_main","createIndex","unique","setTimeout"],"mappings":"yFAAA,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,EAEXF,KAAM,CACLA,KAAMC,M,EAEPO,MAAO,CACNR,KAAMS,QACNP,SAAU,CAAA,C,GAQZ,SAASQ,uBACR,IACOC,EADHhB,QAAAiB,iBAAmBjB,QAAAiB,gBAAgBC,UAAS,GACzCF,EAAQ,IAAId,gBAAAiB,kBAA6B,CAC9CC,eAAgB,QAChBjB,OAAQA,OACRkB,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,I,CACnB,EACDC,QAAAC,MAAQb,EAAMc,gBACdF,QAAAC,MAAME,YAAY,CAAC1B,KAAM,CAAC,EAAG,CAAC2B,OAAQ,CAAA,CAAI,CAAC,GAG3CC,WAAW,WACVlB,qBAAoB,CACrB,EAAG,CAAC,CAEN,CAzBWa,QAAAC,MAA2C,KAEtDd,qBAAoB","file":"flag.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { MongoManagerCollection, MongoManagerModel } 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: MongoManagerCollection<FlagModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new MongoManagerModel<FlagModel>({\n\t\t\tcollectionName: 'flags',\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\tFlags = model.collection_main;\n\t\tFlags.createIndex({type: 1}, {unique: true});\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 0);\n\t}\n}"]}
|
|
@@ -1,64 +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.MongoManagerModel({
|
|
42
|
-
collectionName: 'log-method-latencies',
|
|
43
|
-
schema: schema,
|
|
44
|
-
useVersionCollection: false,
|
|
45
|
-
useReportBuilder: true,
|
|
46
|
-
reportBuilderLookupTables: [],
|
|
47
|
-
timestamps: true,
|
|
48
|
-
createLogs: false,
|
|
49
|
-
checkSchema: true,
|
|
50
|
-
collectionOptions: null
|
|
51
|
-
});
|
|
52
|
-
exports.LogMethodLatencies = model.collection_main;
|
|
53
|
-
exports.LogMethodLatencies.createIndex({ createdAt: 1 }, { expireAfterSeconds: 60 * 60 * 24 * 30 });
|
|
54
|
-
exports.LogMethodLatencies.createIndex({ latency_ms: 1 });
|
|
55
|
-
exports.LogMethodLatencies.createIndex({ method: 1 });
|
|
56
|
-
}
|
|
57
|
-
else {
|
|
58
|
-
setTimeout(function () {
|
|
59
|
-
initializeCollection();
|
|
60
|
-
}, 1);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
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(){var e;index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()?(e=new mongo_manager_1.MongoManagerModel({collectionName:"log-method-latencies",schema:schema,useVersionCollection:!1,useReportBuilder:!0,reportBuilderLookupTables:[],timestamps:!0,createLogs:!1,checkSchema:!0,collectionOptions:null}),exports.LogMethodLatencies=e.collection_main,exports.LogMethodLatencies.createIndex({createdAt:1},{expireAfterSeconds:2592e3}),exports.LogMethodLatencies.createIndex({latency_ms:1}),exports.LogMethodLatencies.createIndex({method:1})):setTimeout(function(){initializeCollection()},1)}exports.LogMethodLatencies=null,initializeCollection();
|
|
64
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","model","ResolveIOServer","getMainDB","MongoManagerModel","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","exports","LogMethodLatencies","collection_main","createIndex","expireAfterSeconds","setTimeout"],"mappings":"sGAAA,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,WAAY,CACXR,KAAMM,I,EAEPG,SAAU,CACTT,KAAMM,KACNJ,SAAU,CAAA,C,EAEXQ,WAAY,CACXV,KAAMI,M,EAEPO,OAAQ,CACPX,KAAMC,M,GAQR,SAASW,uBACR,IACOC,EADHlB,QAAAmB,iBAAmBnB,QAAAmB,gBAAgBC,UAAS,GACzCF,EAAQ,IAAIhB,gBAAAmB,kBAAyC,CAC1DC,eAAgB,uBAChBnB,OAAQA,OACRoB,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,I,CACnB,EACDC,QAAAC,mBAAqBb,EAAMc,gBAC3BF,QAAAC,mBAAmBE,YAAY,CAACrB,UAAW,CAAC,EAAG,CAACsB,mBAAoB,MAAiB,CAAC,EACtFJ,QAAAC,mBAAmBE,YAAY,CAAClB,WAAY,CAAC,CAAC,EAC9Ce,QAAAC,mBAAmBE,YAAY,CAACjB,OAAQ,CAAC,CAAC,GAG1CmB,WAAW,WACVlB,qBAAoB,CACrB,EAAG,CAAC,CAEN,CA3BWa,QAAAC,mBAAoE,KAE/Ed,qBAAoB","file":"log-method-latency.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { MongoManagerCollection, MongoManagerModel } 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: MongoManagerCollection<LogMethodLatencyModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new MongoManagerModel<LogMethodLatencyModel>({\n\t\t\tcollectionName: 'log-method-latencies',\n\t\t\tschema: schema,\n\t\t\tuseVersionCollection: false,\n\t\t\tuseReportBuilder: true,\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\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,68 +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.MongoManagerModel({
|
|
44
|
-
collectionName: 'log-subscriptions',
|
|
45
|
-
schema: schema,
|
|
46
|
-
useVersionCollection: false,
|
|
47
|
-
useReportBuilder: true,
|
|
48
|
-
reportBuilderLookupTables: [],
|
|
49
|
-
timestamps: true,
|
|
50
|
-
createLogs: false,
|
|
51
|
-
checkSchema: true,
|
|
52
|
-
collectionOptions: null
|
|
53
|
-
});
|
|
54
|
-
exports.LogSubscriptions = model.collection_main;
|
|
55
|
-
exports.LogSubscriptions.createIndex({ date: 1 }, { expireAfterSeconds: 60 * 60 * 24 * 30 });
|
|
56
|
-
exports.LogSubscriptions.createIndex({ type: 1 });
|
|
57
|
-
exports.LogSubscriptions.createIndex({ collection_name: 1 });
|
|
58
|
-
exports.LogSubscriptions.createIndex({ date: 1, type: 1 });
|
|
59
|
-
exports.LogSubscriptions.createIndex({ createdAt: 1 });
|
|
60
|
-
}
|
|
61
|
-
else {
|
|
62
|
-
setTimeout(function () {
|
|
63
|
-
initializeCollection();
|
|
64
|
-
}, 1);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
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(){var e;index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()?(e=new mongo_manager_1.MongoManagerModel({collectionName:"log-subscriptions",schema:schema,useVersionCollection:!1,useReportBuilder:!0,reportBuilderLookupTables:[],timestamps:!0,createLogs:!1,checkSchema:!0,collectionOptions:null}),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})):setTimeout(function(){initializeCollection()},1)}exports.LogSubscriptions=null,initializeCollection();
|
|
68
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","model","ResolveIOServer","getMainDB","MongoManagerModel","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","exports","LogSubscriptions","collection_main","createIndex","expireAfterSeconds","setTimeout"],"mappings":"oGAAA,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,EAEPN,KAAM,CACLA,KAAMC,M,EAEPQ,aAAc,CACbT,KAAMC,M,EAEPS,gBAAiB,CAChBV,KAAMC,M,EAEPU,QAAS,CACRX,KAAMC,M,GAQR,SAASW,uBACR,IACOC,EADHlB,QAAAmB,iBAAmBnB,QAAAmB,gBAAgBC,UAAS,GACzCF,EAAQ,IAAIhB,gBAAAmB,kBAAwC,CACzDC,eAAgB,oBAChBnB,OAAQA,OACRoB,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,I,CACnB,EACDC,QAAAC,iBAAmBb,EAAMc,gBACzBF,QAAAC,iBAAiBE,YAAY,CAACpB,KAAM,CAAC,EAAG,CAACqB,mBAAoB,MAAiB,CAAC,EAC/EJ,QAAAC,iBAAiBE,YAAY,CAAC5B,KAAM,CAAC,CAAC,EACtCyB,QAAAC,iBAAiBE,YAAY,CAAClB,gBAAiB,CAAC,CAAC,EACjDe,QAAAC,iBAAiBE,YAAY,CAACpB,KAAM,EAAGR,KAAM,CAAC,CAAC,EAC/CyB,QAAAC,iBAAiBE,YAAY,CAACrB,UAAW,CAAC,CAAC,GAG3CuB,WAAW,WACVlB,qBAAoB,CACrB,EAAG,CAAC,CAEN,CA7BWa,QAAAC,iBAAiE,KAE5Ed,qBAAoB","file":"log-subscription.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { MongoManagerCollection, MongoManagerModel } 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: MongoManagerCollection<LogSubscriptionModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new MongoManagerModel<LogSubscriptionModel>({\n\t\t\tcollectionName: 'log-subscriptions',\n\t\t\tschema: schema,\n\t\t\tuseVersionCollection: false,\n\t\t\tuseReportBuilder: true,\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\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,78 +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
|
-
createdAt: {
|
|
12
|
-
type: Date,
|
|
13
|
-
optional: true
|
|
14
|
-
},
|
|
15
|
-
metadata: {
|
|
16
|
-
type: Object
|
|
17
|
-
},
|
|
18
|
-
'metadata.type': {
|
|
19
|
-
type: String
|
|
20
|
-
},
|
|
21
|
-
'metadata.collection': {
|
|
22
|
-
type: String
|
|
23
|
-
},
|
|
24
|
-
id_document: {
|
|
25
|
-
type: String
|
|
26
|
-
},
|
|
27
|
-
payload: {
|
|
28
|
-
type: String
|
|
29
|
-
},
|
|
30
|
-
method: {
|
|
31
|
-
type: String
|
|
32
|
-
},
|
|
33
|
-
id_user: {
|
|
34
|
-
type: String
|
|
35
|
-
},
|
|
36
|
-
user: {
|
|
37
|
-
type: String
|
|
38
|
-
},
|
|
39
|
-
messageId: {
|
|
40
|
-
type: Number
|
|
41
|
-
},
|
|
42
|
-
route: {
|
|
43
|
-
type: String
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
exports.Logs = null;
|
|
47
|
-
initializeCollection();
|
|
48
|
-
function initializeCollection() {
|
|
49
|
-
if (index_1.ResolveIOServer && index_1.ResolveIOServer.getMainDB()) {
|
|
50
|
-
var model = new mongo_manager_1.MongoManagerModel({
|
|
51
|
-
collectionName: 'logs',
|
|
52
|
-
schema: schema,
|
|
53
|
-
useVersionCollection: false,
|
|
54
|
-
useReportBuilder: false,
|
|
55
|
-
reportBuilderLookupTables: [],
|
|
56
|
-
timestamps: true,
|
|
57
|
-
createLogs: false,
|
|
58
|
-
checkSchema: true,
|
|
59
|
-
collectionOptions: null
|
|
60
|
-
});
|
|
61
|
-
exports.Logs = model.collection_main;
|
|
62
|
-
exports.Logs.createIndex({ createdAt: 1 }, { expireAfterSeconds: 60 * 60 * 24 * 90 });
|
|
63
|
-
exports.Logs.createIndex({ createdAt: -1, type: 1, id_document: 1 });
|
|
64
|
-
exports.Logs.createIndex({ createdAt: -1, type: 1, user: 1 });
|
|
65
|
-
exports.Logs.createIndex({ createdAt: -1, type: 1, method: 1 });
|
|
66
|
-
exports.Logs.createIndex({ createdAt: -1, type: 1, route: 1 });
|
|
67
|
-
exports.Logs.createIndex({ createdAt: -1, type: 1, collection: 1, id_document: 1 });
|
|
68
|
-
exports.Logs.createIndex({ createdAt: -1, type: 1, collection: 1, method: 1, route: 1 });
|
|
69
|
-
exports.Logs.createIndex({ createdAt: -1, type: 1, collection: 1, route: 1 });
|
|
70
|
-
}
|
|
71
|
-
else {
|
|
72
|
-
setTimeout(function () {
|
|
73
|
-
initializeCollection();
|
|
74
|
-
}, 1);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
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},createdAt:{type:Date,optional:!0},metadata:{type:Object},"metadata.type":{type:String},"metadata.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(){var e;index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()?(e=new mongo_manager_1.MongoManagerModel({collectionName:"logs",schema:schema,useVersionCollection:!1,useReportBuilder:!1,reportBuilderLookupTables:[],timestamps:!0,createLogs:!1,checkSchema:!0,collectionOptions:null}),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})):setTimeout(function(){initializeCollection()},1)}exports.Logs=null,initializeCollection();
|
|
78
2
|
//# sourceMappingURL=log-ts.collection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/collections/log-ts.collection.ts"],"names":[
|
|
1
|
+
{"version":3,"sources":["../../src/collections/log-ts.collection.ts"],"names":["index_1","require","mongo_manager_1","schema","_id","type","String","optional","createdAt","Date","metadata","Object","metadata.type","metadata.collection","id_document","payload","method","id_user","user","messageId","Number","route","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","exports","Logs","collection_main","createIndex","expireAfterSeconds","collection","setTimeout"],"mappings":"wFAAA,IAAAA,QAAAC,QAAA,UAAA,EACAC,gBAAAD,QAAA,2BAAA,EAGIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,SAAU,CAAA,C,EAEXC,UAAW,CACVH,KAAMI,KACNF,SAAU,CAAA,C,EAEXG,SAAU,CACTL,KAAMM,M,EAEPC,gBAAiB,CAChBP,KAAMC,M,EAEPO,sBAAuB,CACtBR,KAAMC,M,EAEPQ,YAAa,CACZT,KAAMC,M,EAEPS,QAAS,CACRV,KAAMC,M,EAEPU,OAAQ,CACPX,KAAMC,M,EAEPW,QAAS,CACRZ,KAAMC,M,EAEPY,KAAM,CACLb,KAAMC,M,EAEPa,UAAW,CACVd,KAAMe,M,EAEPC,MAAO,CACNhB,KAAMC,M,GAQR,SAASgB,uBACR,IACOC,EADHvB,QAAAwB,iBAAmBxB,QAAAwB,gBAAgBC,UAAS,GACzCF,EAAQ,IAAIrB,gBAAAwB,kBAA4B,CAC7CC,eAAgB,OAChBxB,OAAQA,OACRyB,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,I,CACnB,EACDC,QAAAC,KAAOb,EAAMc,gBACbF,QAAAC,KAAKE,YAAY,CAAC9B,UAAW,CAAC,EAAG,CAAC+B,mBAAoB,MAAiB,CAAC,EACxEJ,QAAAC,KAAKE,YAAY,CAAC9B,UAAW,CAAC,EAAGH,KAAM,EAAGS,YAAa,CAAC,CAAC,EACzDqB,QAAAC,KAAKE,YAAY,CAAC9B,UAAW,CAAC,EAAGH,KAAM,EAAGa,KAAM,CAAC,CAAC,EAClDiB,QAAAC,KAAKE,YAAY,CAAC9B,UAAW,CAAC,EAAGH,KAAM,EAAGW,OAAQ,CAAC,CAAC,EACpDmB,QAAAC,KAAKE,YAAY,CAAC9B,UAAW,CAAC,EAAGH,KAAM,EAAGgB,MAAO,CAAC,CAAC,EACnDc,QAAAC,KAAKE,YAAY,CAAC9B,UAAW,CAAC,EAAGH,KAAM,EAAGmC,WAAY,EAAG1B,YAAa,CAAC,CAAC,EACxEqB,QAAAC,KAAKE,YAAY,CAAC9B,UAAW,CAAC,EAAGH,KAAM,EAAGmC,WAAY,EAAGxB,OAAQ,EAAGK,MAAO,CAAC,CAAC,EAC7Ec,QAAAC,KAAKE,YAAY,CAAC9B,UAAW,CAAC,EAAGH,KAAM,EAAGmC,WAAY,EAAGnB,MAAO,CAAC,CAAC,GAGlEoB,WAAW,WACVnB,qBAAoB,CACrB,EAAG,CAAC,CAEN,CAhCWa,QAAAC,KAAyC,KAEpDd,qBAAoB","file":"log-ts.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { MongoManagerCollection, MongoManagerModel } 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\tcreatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tmetadata: {\n\t\ttype: Object\n\t},\n\t'metadata.type': {\n\t\ttype: String\n\t},\n\t'metadata.collection': {\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: MongoManagerCollection<LogModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new MongoManagerModel<LogModel>({\n\t\t\tcollectionName: 'logs',\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\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,77 +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.MongoManagerModel({
|
|
56
|
-
collectionName: 'logs',
|
|
57
|
-
schema: schema,
|
|
58
|
-
useVersionCollection: false,
|
|
59
|
-
useReportBuilder: false,
|
|
60
|
-
reportBuilderLookupTables: [],
|
|
61
|
-
timestamps: true,
|
|
62
|
-
createLogs: false,
|
|
63
|
-
checkSchema: true,
|
|
64
|
-
collectionOptions: null
|
|
65
|
-
});
|
|
66
|
-
exports.Logs = model.collection_main;
|
|
67
|
-
exports.Logs.createIndex({ createdAt: 1 }, { expireAfterSeconds: 60 * 60 * 24 * 90 });
|
|
68
|
-
exports.Logs.createIndex({ createdAt: -1, type: 1, id_document: 1 });
|
|
69
|
-
}
|
|
70
|
-
else {
|
|
71
|
-
setTimeout(function () {
|
|
72
|
-
initializeCollection();
|
|
73
|
-
}, 1);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
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(){var e;index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()?(e=new mongo_manager_1.MongoManagerModel({collectionName:"logs",schema:schema,useVersionCollection:!1,useReportBuilder:!1,reportBuilderLookupTables:[],timestamps:!0,createLogs:!1,checkSchema:!0,collectionOptions:null}),exports.Logs=e.collection_main,exports.Logs.createIndex({createdAt:1},{expireAfterSeconds:7776e3}),exports.Logs.createIndex({createdAt:-1,type:1,id_document:1})):setTimeout(function(){initializeCollection()},1)}exports.Logs=null,initializeCollection();
|
|
77
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","model","ResolveIOServer","getMainDB","MongoManagerModel","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","exports","Logs","collection_main","createIndex","expireAfterSeconds","setTimeout"],"mappings":"wFAAA,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,EAEXF,KAAM,CACLA,KAAMC,M,EAEPO,WAAY,CACXR,KAAMC,M,EAEPQ,YAAa,CACZT,KAAMC,M,EAEPS,QAAS,CACRV,KAAMC,M,EAEPU,OAAQ,CACPX,KAAMC,M,EAEPW,QAAS,CACRZ,KAAMC,M,EAEPY,KAAM,CACLb,KAAMC,M,EAEPa,UAAW,CACVd,KAAMI,M,EAEPW,MAAO,CACNf,KAAMC,M,GAQR,SAASe,uBACR,IACOC,EADHtB,QAAAuB,iBAAmBvB,QAAAuB,gBAAgBC,UAAS,GACzCF,EAAQ,IAAIpB,gBAAAuB,kBAA4B,CAC7CC,eAAgB,OAChBvB,OAAQA,OACRwB,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,I,CACnB,EACDC,QAAAC,KAAOb,EAAMc,gBACbF,QAAAC,KAAKE,YAAY,CAACzB,UAAW,CAAC,EAAG,CAAC0B,mBAAoB,MAAiB,CAAC,EACxEJ,QAAAC,KAAKE,YAAY,CAACzB,UAAW,CAAC,EAAGP,KAAM,EAAGS,YAAa,CAAC,CAAC,GAGzDyB,WAAW,WACVlB,qBAAoB,CACrB,EAAG,CAAC,CAEN,CA1BWa,QAAAC,KAAyC,KAEpDd,qBAAoB","file":"log.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { MongoManagerCollection, MongoManagerModel } 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: MongoManagerCollection<LogModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new MongoManagerModel<LogModel>({\n\t\t\tcollectionName: 'logs',\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\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}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 1);\n\t}\n}"]}
|