@resolveio/server-lib 20.7.8 → 20.7.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/collections/cron-job.collection.js.map +1 -1
  2. package/collections/email-history.collection.js.map +1 -1
  3. package/collections/email-verified.collection.js.map +1 -1
  4. package/collections/file.collection.js.map +1 -1
  5. package/collections/flag-update.collection.js.map +1 -1
  6. package/collections/flag.collection.js.map +1 -1
  7. package/collections/log-method-latency.collection.js.map +1 -1
  8. package/collections/log-subscription.collection.js.map +1 -1
  9. package/collections/log.collection.js.map +1 -1
  10. package/collections/logged-in-users.collection.js.map +1 -1
  11. package/collections/method-response.collection.js.map +1 -1
  12. package/collections/monitor-cpu.collection.js.map +1 -1
  13. package/collections/monitor-function.collection.js.map +1 -1
  14. package/collections/monitor-memory.collection.js.map +1 -1
  15. package/collections/monitor-mongo.collection.js.map +1 -1
  16. package/collections/notification.collection.js.map +1 -1
  17. package/collections/report-builder-dashboard-builder.collection.js.map +1 -1
  18. package/collections/report-builder-library.collection.js.map +1 -1
  19. package/collections/report-builder-report.collection.js.map +1 -1
  20. package/collections/user-group.collection.js.map +1 -1
  21. package/collections/user.collection.js.map +1 -1
  22. package/cron/cron.d.ts +1 -1
  23. package/cron/cron.js +1 -1
  24. package/cron/cron.js.map +1 -1
  25. package/http/auth.js.map +1 -1
  26. package/http/health.d.ts +1 -1
  27. package/http/health.js +1 -1
  28. package/http/health.js.map +1 -1
  29. package/managers/method.manager.js +1 -1
  30. package/managers/method.manager.js.map +1 -1
  31. package/managers/mongo.manager.d.ts +3 -2
  32. package/managers/mongo.manager.js +1 -1
  33. package/managers/mongo.manager.js.map +1 -1
  34. package/managers/monitor.manager.js.map +1 -1
  35. package/managers/subscription.manager.js.map +1 -1
  36. package/methods/aws.js.map +1 -1
  37. package/methods/cron-jobs.js +1 -1
  38. package/methods/cron-jobs.js.map +1 -1
  39. package/methods/monitor.js.map +1 -1
  40. package/methods/support.js.map +1 -1
  41. package/package.json +1 -1
  42. package/public_api.d.ts +4 -4
  43. package/public_api.js +1 -1
  44. package/public_api.js.map +1 -1
  45. package/publications/cron-jobs.js.map +1 -1
  46. package/publications/files.js.map +1 -1
  47. package/publications/report-builder-reports.js.map +1 -1
  48. package/server-app.js +1 -1
  49. package/server-app.js.map +1 -1
  50. package/util/schema-report-builder.js.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/collections/cron-job.collection.ts"],"names":["simpl_schema_1","require","mongo_manager_1","resolveio_server_app_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","name","repeat","Boolean","time_to_run","default","oneOf","method_run","method_run_data","Object","blackbox","method_complete","method_complete_data","running","timezone","next_run","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","create","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","skipCache","exports","CronJobs","collection_main","createIndex","setImmediate"],"mappings":"4FACA,IAAAA,eAAAC,QAAA,cAAA,EACAC,gBAAAD,QAAA,2BAAA,EAEAE,uBAAAF,QAAA,yBAAA,EAEIG,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,SAAU,CAAA,C,EAEXC,IAAK,CACJH,KAAMI,OACNF,SAAU,CAAA,C,EAEXG,UAAW,CACVL,KAAMM,KACNJ,SAAU,CAAA,C,EAEXK,UAAW,CACVP,KAAMM,KACNJ,SAAU,CAAA,C,EAEXM,KAAM,CACLR,KAAMC,M,EAEPQ,OAAQ,CACPT,KAAMU,O,EAEPC,YAAa,CACZX,KAAMN,eAAAkB,QAAaC,MAAMZ,OAAQK,IAAI,C,EAEtCQ,WAAY,CACXd,KAAMC,M,EAEPc,gBAAiB,CAChBf,KAAMgB,OACNC,SAAU,CAAA,EACVf,SAAU,CAAA,C,EAEXgB,gBAAiB,CAChBlB,KAAMC,OACNC,SAAU,CAAA,C,EAEXiB,qBAAsB,CACrBnB,KAAMgB,OACNC,SAAU,CAAA,EACVf,SAAU,CAAA,C,EAEXkB,QAAS,CACRpB,KAAMU,O,EAEPW,SAAU,CACTrB,KAAMC,M,EAEPqB,SAAU,CACTtB,KAAMM,KACNJ,SAAU,CAAA,C,GAQZ,SAASqB,uBACR,IACOC,EADH3B,uBAAA4B,iBAAmB5B,uBAAA4B,gBAAgBC,UAAS,GAAM9B,gBAAA+B,mBAC/CH,EAAQ5B,gBAAA+B,kBAAkBC,OAAqB,CACpDC,eAAgB,YAChB/B,OAAQA,OACRgC,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,KACnBC,UAAW,CAAA,C,CACX,EACDC,QAAAC,SAAWf,EAAMgB,gBACjBF,QAAAC,SAASE,YAAY,CAACrB,QAAS,CAAC,CAAC,GAGjCsB,aAAa,WACZnB,qBAAoB,CACrB,CAAC,CAEH,CA1BWe,QAAAC,SAAiD,KAE5DhB,qBAAoB","file":"cron-job.collection.js","sourcesContent":["/* eslint-disable @typescript-eslint/no-floating-promises */\nimport SimpleSchema from 'simpl-schema';\nimport { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { CronJobModel } from '../models/cron-job.model';\nimport { ResolveIOServer } from '../resolveio-server-app';\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\trepeat: {\n\t\ttype: Boolean\n\t},\n\ttime_to_run: {\n\t\ttype: SimpleSchema.oneOf(String, Date)\n\t},\n\tmethod_run: {\n\t\ttype: String\n\t},\n\tmethod_run_data: {\n\t\ttype: Object,\n\t\tblackbox: true,\n\t\toptional: true\n\t},\n\tmethod_complete: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\tmethod_complete_data: {\n\t\ttype: Object,\n\t\tblackbox: true,\n\t\toptional: true\n\t},\n\trunning: {\n\t\ttype: Boolean\n\t},\n\ttimezone: {\n\t\ttype: String\n\t},\n\tnext_run: {\n\t\ttype: Date,\n\t\toptional: true\n\t}\n};\n\nexport let CronJobs: MongoManagerCollection<CronJobModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB() && MongoManagerModel) {\n\t\tconst model = MongoManagerModel.create<CronJobModel>({\n\t\t\tcollectionName: 'cron-jobs',\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\tskipCache: true\n\t\t});\n\t\tCronJobs = model.collection_main;\n\t\tCronJobs.createIndex({running: 1});\n\t}\n\telse {\n\t\tsetImmediate(() => {\n\t\t\tinitializeCollection();\n\t\t});\n\t}\n}"]}
1
+ {"version":3,"sources":["../../src/collections/cron-job.collection.ts"],"names":["simpl_schema_1","require","mongo_manager_1","resolveio_server_app_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","name","repeat","Boolean","time_to_run","default","oneOf","method_run","method_run_data","Object","blackbox","method_complete","method_complete_data","running","timezone","next_run","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","create","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","skipCache","exports","CronJobs","collection_main","createIndex","setImmediate"],"mappings":"4FAAA,IAAAA,eAAAC,QAAA,cAAA,EACAC,gBAAAD,QAAA,2BAAA,EAEAE,uBAAAF,QAAA,yBAAA,EAEIG,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,SAAU,CAAA,C,EAEXC,IAAK,CACJH,KAAMI,OACNF,SAAU,CAAA,C,EAEXG,UAAW,CACVL,KAAMM,KACNJ,SAAU,CAAA,C,EAEXK,UAAW,CACVP,KAAMM,KACNJ,SAAU,CAAA,C,EAEXM,KAAM,CACLR,KAAMC,M,EAEPQ,OAAQ,CACPT,KAAMU,O,EAEPC,YAAa,CACZX,KAAMN,eAAAkB,QAAaC,MAAMZ,OAAQK,IAAI,C,EAEtCQ,WAAY,CACXd,KAAMC,M,EAEPc,gBAAiB,CAChBf,KAAMgB,OACNC,SAAU,CAAA,EACVf,SAAU,CAAA,C,EAEXgB,gBAAiB,CAChBlB,KAAMC,OACNC,SAAU,CAAA,C,EAEXiB,qBAAsB,CACrBnB,KAAMgB,OACNC,SAAU,CAAA,EACVf,SAAU,CAAA,C,EAEXkB,QAAS,CACRpB,KAAMU,O,EAEPW,SAAU,CACTrB,KAAMC,M,EAEPqB,SAAU,CACTtB,KAAMM,KACNJ,SAAU,CAAA,C,GAQZ,SAASqB,uBACR,IACOC,EADH3B,uBAAA4B,iBAAmB5B,uBAAA4B,gBAAgBC,UAAS,GAAM9B,gBAAA+B,mBAC/CH,EAAQ5B,gBAAA+B,kBAAkBC,OAAqB,CACpDC,eAAgB,YAChB/B,OAAQA,OACRgC,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,KACnBC,UAAW,CAAA,C,CACX,EACDC,QAAAC,SAAWf,EAAMgB,gBACjBF,QAAAC,SAASE,YAAY,CAACrB,QAAS,CAAC,CAAC,GAGjCsB,aAAa,WACZnB,qBAAoB,CACrB,CAAC,CAEH,CA1BWe,QAAAC,SAAiD,KAE5DhB,qBAAoB","file":"cron-job.collection.js","sourcesContent":["import SimpleSchema from 'simpl-schema';\nimport { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { CronJobModel } from '../models/cron-job.model';\nimport { ResolveIOServer } from '../resolveio-server-app';\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\trepeat: {\n\t\ttype: Boolean\n\t},\n\ttime_to_run: {\n\t\ttype: SimpleSchema.oneOf(String, Date)\n\t},\n\tmethod_run: {\n\t\ttype: String\n\t},\n\tmethod_run_data: {\n\t\ttype: Object,\n\t\tblackbox: true,\n\t\toptional: true\n\t},\n\tmethod_complete: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\tmethod_complete_data: {\n\t\ttype: Object,\n\t\tblackbox: true,\n\t\toptional: true\n\t},\n\trunning: {\n\t\ttype: Boolean\n\t},\n\ttimezone: {\n\t\ttype: String\n\t},\n\tnext_run: {\n\t\ttype: Date,\n\t\toptional: true\n\t}\n};\n\nexport let CronJobs: MongoManagerCollection<CronJobModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB() && MongoManagerModel) {\n\t\tconst model = MongoManagerModel.create<CronJobModel>({\n\t\t\tcollectionName: 'cron-jobs',\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\tskipCache: true\n\t\t});\n\t\tCronJobs = model.collection_main;\n\t\tCronJobs.createIndex({running: 1});\n\t}\n\telse {\n\t\tsetImmediate(() => {\n\t\t\tinitializeCollection();\n\t\t});\n\t}\n}"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/collections/email-history.collection.ts"],"names":["mongo_manager_1","require","resolveio_server_app_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","date","id_user","user","email","subject","text","html","attachments","Array","attachments.$","Object","blackbox","send_from","reply_to","status","error","processingAt","completedAt","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","create","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","skipCache","bypassSession","exports","EmailHistories","collection_main","createIndex","setImmediate"],"mappings":"kGACA,IAAAA,gBAAAC,QAAA,2BAAA,EAEAC,uBAAAD,QAAA,yBAAA,EAEIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,SAAU,CAAA,C,EAEXC,IAAK,CACJH,KAAMI,OACNF,SAAU,CAAA,C,EAEXG,UAAW,CACVL,KAAMM,KACNJ,SAAU,CAAA,C,EAEXK,UAAW,CACVP,KAAMM,KACNJ,SAAU,CAAA,C,EAEXM,KAAM,CACLR,KAAMM,I,EAEPG,QAAS,CACRT,KAAMC,M,EAEPS,KAAM,CACLV,KAAMC,M,EAEPU,MAAO,CACNX,KAAMC,M,EAEPW,QAAS,CACRZ,KAAMC,M,EAEPY,KAAM,CACLb,KAAMC,M,EAEPa,KAAM,CACLd,KAAMC,M,EAEPc,YAAa,CACZf,KAAMgB,K,EAEPC,gBAAiB,CAChBjB,KAAMkB,OACNC,SAAU,CAAA,C,EAEXC,UAAW,CACVpB,KAAMC,M,EAEPoB,SAAU,CACTrB,KAAMC,M,EAEPqB,OAAQ,CACPtB,KAAMC,M,EAEPsB,MAAO,CACNvB,KAAMC,M,EAEPuB,aAAc,CACbxB,KAAMM,KACNJ,SAAU,CAAA,C,EAEXuB,YAAa,CACZzB,KAAMM,KACNJ,SAAU,CAAA,C,GAQZ,SAASwB,uBACR,IACOC,EADH9B,uBAAA+B,iBAAmB/B,uBAAA+B,gBAAgBC,UAAS,GAAMlC,gBAAAmC,mBAC/CH,EAAQhC,gBAAAmC,kBAAkBC,OAA0B,CACzDC,eAAgB,kBAChBlC,OAAQA,OACRmC,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,KACnBC,UAAW,CAAA,EACXC,cAAe,CAAA,C,CACf,EACDC,QAAAC,eAAiBhB,EAAMiB,gBACvBF,QAAAC,eAAeE,YAAY,CAACvB,OAAQ,CAAC,CAAC,GAGtCwB,aAAa,WACZpB,qBAAoB,CACrB,CAAC,CAEH,CA3BWgB,QAAAC,eAA4D,KAEvEjB,qBAAoB","file":"email-history.collection.js","sourcesContent":[" /* eslint-disable @typescript-eslint/no-floating-promises */\nimport { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { EmailHistoryModel } from '../models/email-history.model';\nimport { ResolveIOServer } from '../resolveio-server-app';\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\temail: {\n\t\ttype: String\n\t},\n\tsubject: {\n\t\ttype: String\n\t},\n\ttext: {\n\t\ttype: String\n\t},\n\thtml: {\n\t\ttype: String\n\t},\n\tattachments: {\n\t\ttype: Array\n\t},\n\t'attachments.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tsend_from: {\n\t\ttype: String\n\t},\n\treply_to: {\n\t\ttype: String\n\t},\n\tstatus: {\n\t\ttype: String\n\t},\n\terror: {\n\t\ttype: String\n\t},\n\tprocessingAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcompletedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t}\n};\n\nexport let EmailHistories: MongoManagerCollection<EmailHistoryModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB() && MongoManagerModel) {\n\t\tconst model = MongoManagerModel.create<EmailHistoryModel>({\n\t\t\tcollectionName: 'email-histories',\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\tskipCache: true,\n\t\t\tbypassSession: true\n\t\t});\n\t\tEmailHistories = model.collection_main;\n\t\tEmailHistories.createIndex({status: 1});\n\t}\n\telse {\n\t\tsetImmediate(() => {\n\t\t\tinitializeCollection();\n\t\t});\n\t}\n}"]}
1
+ {"version":3,"sources":["../../src/collections/email-history.collection.ts"],"names":["mongo_manager_1","require","resolveio_server_app_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","date","id_user","user","email","subject","text","html","attachments","Array","attachments.$","Object","blackbox","send_from","reply_to","status","error","processingAt","completedAt","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","create","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","skipCache","bypassSession","exports","EmailHistories","collection_main","createIndex","setImmediate"],"mappings":"kGAAC,IAAAA,gBAAAC,QAAA,2BAAA,EAEDC,uBAAAD,QAAA,yBAAA,EAEIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,SAAU,CAAA,C,EAEXC,IAAK,CACJH,KAAMI,OACNF,SAAU,CAAA,C,EAEXG,UAAW,CACVL,KAAMM,KACNJ,SAAU,CAAA,C,EAEXK,UAAW,CACVP,KAAMM,KACNJ,SAAU,CAAA,C,EAEXM,KAAM,CACLR,KAAMM,I,EAEPG,QAAS,CACRT,KAAMC,M,EAEPS,KAAM,CACLV,KAAMC,M,EAEPU,MAAO,CACNX,KAAMC,M,EAEPW,QAAS,CACRZ,KAAMC,M,EAEPY,KAAM,CACLb,KAAMC,M,EAEPa,KAAM,CACLd,KAAMC,M,EAEPc,YAAa,CACZf,KAAMgB,K,EAEPC,gBAAiB,CAChBjB,KAAMkB,OACNC,SAAU,CAAA,C,EAEXC,UAAW,CACVpB,KAAMC,M,EAEPoB,SAAU,CACTrB,KAAMC,M,EAEPqB,OAAQ,CACPtB,KAAMC,M,EAEPsB,MAAO,CACNvB,KAAMC,M,EAEPuB,aAAc,CACbxB,KAAMM,KACNJ,SAAU,CAAA,C,EAEXuB,YAAa,CACZzB,KAAMM,KACNJ,SAAU,CAAA,C,GAQZ,SAASwB,uBACR,IACOC,EADH9B,uBAAA+B,iBAAmB/B,uBAAA+B,gBAAgBC,UAAS,GAAMlC,gBAAAmC,mBAC/CH,EAAQhC,gBAAAmC,kBAAkBC,OAA0B,CACzDC,eAAgB,kBAChBlC,OAAQA,OACRmC,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,KACnBC,UAAW,CAAA,EACXC,cAAe,CAAA,C,CACf,EACDC,QAAAC,eAAiBhB,EAAMiB,gBACvBF,QAAAC,eAAeE,YAAY,CAACvB,OAAQ,CAAC,CAAC,GAGtCwB,aAAa,WACZpB,qBAAoB,CACrB,CAAC,CAEH,CA3BWgB,QAAAC,eAA4D,KAEvEjB,qBAAoB","file":"email-history.collection.js","sourcesContent":[" import { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { EmailHistoryModel } from '../models/email-history.model';\nimport { ResolveIOServer } from '../resolveio-server-app';\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\temail: {\n\t\ttype: String\n\t},\n\tsubject: {\n\t\ttype: String\n\t},\n\ttext: {\n\t\ttype: String\n\t},\n\thtml: {\n\t\ttype: String\n\t},\n\tattachments: {\n\t\ttype: Array\n\t},\n\t'attachments.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tsend_from: {\n\t\ttype: String\n\t},\n\treply_to: {\n\t\ttype: String\n\t},\n\tstatus: {\n\t\ttype: String\n\t},\n\terror: {\n\t\ttype: String\n\t},\n\tprocessingAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcompletedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t}\n};\n\nexport let EmailHistories: MongoManagerCollection<EmailHistoryModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB() && MongoManagerModel) {\n\t\tconst model = MongoManagerModel.create<EmailHistoryModel>({\n\t\t\tcollectionName: 'email-histories',\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\tskipCache: true,\n\t\t\tbypassSession: true\n\t\t});\n\t\tEmailHistories = model.collection_main;\n\t\tEmailHistories.createIndex({status: 1});\n\t}\n\telse {\n\t\tsetImmediate(() => {\n\t\t\tinitializeCollection();\n\t\t});\n\t}\n}"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/collections/email-verified.collection.ts"],"names":["mongo_manager_1","require","resolveio_server_app_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","date","id_user","user","email","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","create","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","exports","EmailVerifies","collection_main","createIndex","setImmediate"],"mappings":"iGACA,IAAAA,gBAAAC,QAAA,2BAAA,EAEAC,uBAAAD,QAAA,yBAAA,EAEIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,SAAU,CAAA,C,EAEXC,IAAK,CACJH,KAAMI,OACNF,SAAU,CAAA,C,EAEXG,UAAW,CACVL,KAAMM,KACNJ,SAAU,CAAA,C,EAEXK,UAAW,CACVP,KAAMM,KACNJ,SAAU,CAAA,C,EAEXM,KAAM,CACLR,KAAMM,I,EAEPG,QAAS,CACRT,KAAMC,M,EAEPS,KAAM,CACLV,KAAMC,M,EAEPU,MAAO,CACNX,KAAMC,M,GAQR,SAASW,uBACR,IACOC,EADHhB,uBAAAiB,iBAAmBjB,uBAAAiB,gBAAgBC,UAAS,GAAMpB,gBAAAqB,mBAC/CH,EAAQlB,gBAAAqB,kBAAkBC,OAA2B,CAC1DC,eAAgB,iBAChBpB,OAAQA,OACRqB,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,I,CACnB,EACDC,QAAAC,cAAgBd,EAAMe,gBACtBF,QAAAC,cAAcE,YAAY,CAAClB,MAAO,CAAC,CAAC,GAGpCmB,aAAa,WACZlB,qBAAoB,CACrB,CAAC,CAEH,CAzBWc,QAAAC,cAA4D,KAEvEf,qBAAoB","file":"email-verified.collection.js","sourcesContent":["/* eslint-disable @typescript-eslint/no-floating-promises */\nimport { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { EmailVerifiedModel } from '../models/email-verified.model';\nimport { ResolveIOServer } from '../resolveio-server-app';\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\temail: {\n\t\ttype: String\n\t}\n};\n\nexport let EmailVerifies: MongoManagerCollection<EmailVerifiedModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB() && MongoManagerModel) {\n\t\tconst model = MongoManagerModel.create<EmailVerifiedModel>({\n\t\t\tcollectionName: 'email-verifies',\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\tEmailVerifies = model.collection_main;\n\t\tEmailVerifies.createIndex({email: 1});\n\t}\n\telse {\n\t\tsetImmediate(() => {\n\t\t\tinitializeCollection();\n\t\t});\n\t}\n}"]}
1
+ {"version":3,"sources":["../../src/collections/email-verified.collection.ts"],"names":["mongo_manager_1","require","resolveio_server_app_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","date","id_user","user","email","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","create","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","exports","EmailVerifies","collection_main","createIndex","setImmediate"],"mappings":"iGAAA,IAAAA,gBAAAC,QAAA,2BAAA,EAEAC,uBAAAD,QAAA,yBAAA,EAEIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,SAAU,CAAA,C,EAEXC,IAAK,CACJH,KAAMI,OACNF,SAAU,CAAA,C,EAEXG,UAAW,CACVL,KAAMM,KACNJ,SAAU,CAAA,C,EAEXK,UAAW,CACVP,KAAMM,KACNJ,SAAU,CAAA,C,EAEXM,KAAM,CACLR,KAAMM,I,EAEPG,QAAS,CACRT,KAAMC,M,EAEPS,KAAM,CACLV,KAAMC,M,EAEPU,MAAO,CACNX,KAAMC,M,GAQR,SAASW,uBACR,IACOC,EADHhB,uBAAAiB,iBAAmBjB,uBAAAiB,gBAAgBC,UAAS,GAAMpB,gBAAAqB,mBAC/CH,EAAQlB,gBAAAqB,kBAAkBC,OAA2B,CAC1DC,eAAgB,iBAChBpB,OAAQA,OACRqB,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,I,CACnB,EACDC,QAAAC,cAAgBd,EAAMe,gBACtBF,QAAAC,cAAcE,YAAY,CAAClB,MAAO,CAAC,CAAC,GAGpCmB,aAAa,WACZlB,qBAAoB,CACrB,CAAC,CAEH,CAzBWc,QAAAC,cAA4D,KAEvEf,qBAAoB","file":"email-verified.collection.js","sourcesContent":["import { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { EmailVerifiedModel } from '../models/email-verified.model';\nimport { ResolveIOServer } from '../resolveio-server-app';\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\temail: {\n\t\ttype: String\n\t}\n};\n\nexport let EmailVerifies: MongoManagerCollection<EmailVerifiedModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB() && MongoManagerModel) {\n\t\tconst model = MongoManagerModel.create<EmailVerifiedModel>({\n\t\t\tcollectionName: 'email-verifies',\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\tEmailVerifies = model.collection_main;\n\t\tEmailVerifies.createIndex({email: 1});\n\t}\n\telse {\n\t\tsetImmediate(() => {\n\t\t\tinitializeCollection();\n\t\t});\n\t}\n}"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/collections/file.collection.ts"],"names":["mongo_manager_1","require","resolveio_server_app_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","name","size","key","order","status","default","Boolean","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","create","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","exports","Files","collection_main","createIndex","setImmediate"],"mappings":"yFACA,IAAAA,gBAAAC,QAAA,2BAAA,EAEAC,uBAAAD,QAAA,yBAAA,EAEIE,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,EADHnB,uBAAAoB,iBAAmBpB,uBAAAoB,gBAAgBC,UAAS,GAAMvB,gBAAAwB,mBAC/CH,EAAQrB,gBAAAwB,kBAAkBC,OAAkB,CACjDC,eAAgB,QAChBvB,OAAQA,OACRwB,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,I,CACnB,EACDC,QAAAC,MAAQd,EAAMe,gBACdF,QAAAC,MAAME,YAAY,CAAChC,KAAM,EAAGO,UAAW,CAAC,CAAC,EACzCsB,QAAAC,MAAME,YAAY,CAACtB,IAAK,CAAC,CAAC,GAG1BuB,aAAa,WACZlB,qBAAoB,CACrB,CAAC,CAEH,CA1BWc,QAAAC,MAA2C,KAEtDf,qBAAoB","file":"file.collection.js","sourcesContent":["/* eslint-disable @typescript-eslint/no-floating-promises */\nimport { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { FileModel } from '../models/file.model';\nimport { ResolveIOServer } from '../resolveio-server-app';\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() && MongoManagerModel) {\n\t\tconst model = MongoManagerModel.create<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\tsetImmediate(() => {\n\t\t\tinitializeCollection();\n\t\t});\n\t}\n}"]}
1
+ {"version":3,"sources":["../../src/collections/file.collection.ts"],"names":["mongo_manager_1","require","resolveio_server_app_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","name","size","key","order","status","default","Boolean","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","create","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","exports","Files","collection_main","createIndex","setImmediate"],"mappings":"yFAAA,IAAAA,gBAAAC,QAAA,2BAAA,EAEAC,uBAAAD,QAAA,yBAAA,EAEIE,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,EADHnB,uBAAAoB,iBAAmBpB,uBAAAoB,gBAAgBC,UAAS,GAAMvB,gBAAAwB,mBAC/CH,EAAQrB,gBAAAwB,kBAAkBC,OAAkB,CACjDC,eAAgB,QAChBvB,OAAQA,OACRwB,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,I,CACnB,EACDC,QAAAC,MAAQd,EAAMe,gBACdF,QAAAC,MAAME,YAAY,CAAChC,KAAM,EAAGO,UAAW,CAAC,CAAC,EACzCsB,QAAAC,MAAME,YAAY,CAACtB,IAAK,CAAC,CAAC,GAG1BuB,aAAa,WACZlB,qBAAoB,CACrB,CAAC,CAEH,CA1BWc,QAAAC,MAA2C,KAEtDf,qBAAoB","file":"file.collection.js","sourcesContent":["import { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { FileModel } from '../models/file.model';\nimport { ResolveIOServer } from '../resolveio-server-app';\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() && MongoManagerModel) {\n\t\tconst model = MongoManagerModel.create<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\tsetImmediate(() => {\n\t\t\tinitializeCollection();\n\t\t});\n\t}\n}"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/collections/flag-update.collection.ts"],"names":["mongo_manager_1","require","resolveio_server_app_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","value","Boolean","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","create","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","exports","FlagUpdates","collection_main","createIndex","unique","setImmediate"],"mappings":"+FACA,IAAAA,gBAAAC,QAAA,2BAAA,EAEAC,uBAAAD,QAAA,yBAAA,EAEIE,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,EADHd,uBAAAe,iBAAmBf,uBAAAe,gBAAgBC,UAAS,GAAMlB,gBAAAmB,mBAC/CH,EAAQhB,gBAAAmB,kBAAkBC,OAAwB,CACvDC,eAAgB,eAChBlB,OAAQA,OACRmB,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,I,CACnB,EACDC,QAAAC,YAAcd,EAAMe,gBACpBF,QAAAC,YAAYE,YAAY,CAAC3B,KAAM,CAAC,EAAG,CAAC4B,OAAQ,CAAA,CAAI,CAAC,GAGjDC,aAAa,WACZnB,qBAAoB,CACrB,CAAC,CAEH,CAzBWc,QAAAC,YAAuD,KAElEf,qBAAoB","file":"flag-update.collection.js","sourcesContent":["/* eslint-disable @typescript-eslint/no-floating-promises */\nimport { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { FlagUpdateModel } from '../models/flag-update.model';\nimport { ResolveIOServer } from '../resolveio-server-app';\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 FlagUpdates: MongoManagerCollection<FlagUpdateModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB() && MongoManagerModel) {\n\t\tconst model = MongoManagerModel.create<FlagUpdateModel>({\n\t\t\tcollectionName: 'flag-updates',\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\tFlagUpdates = model.collection_main;\n\t\tFlagUpdates.createIndex({type: 1}, {unique: true});\n\t}\n\telse {\n\t\tsetImmediate(() => {\n\t\t\tinitializeCollection();\n\t\t});\n\t}\n}"]}
1
+ {"version":3,"sources":["../../src/collections/flag-update.collection.ts"],"names":["mongo_manager_1","require","resolveio_server_app_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","value","Boolean","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","create","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","exports","FlagUpdates","collection_main","createIndex","unique","setImmediate"],"mappings":"+FAAA,IAAAA,gBAAAC,QAAA,2BAAA,EAEAC,uBAAAD,QAAA,yBAAA,EAEIE,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,EADHd,uBAAAe,iBAAmBf,uBAAAe,gBAAgBC,UAAS,GAAMlB,gBAAAmB,mBAC/CH,EAAQhB,gBAAAmB,kBAAkBC,OAAwB,CACvDC,eAAgB,eAChBlB,OAAQA,OACRmB,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,I,CACnB,EACDC,QAAAC,YAAcd,EAAMe,gBACpBF,QAAAC,YAAYE,YAAY,CAAC3B,KAAM,CAAC,EAAG,CAAC4B,OAAQ,CAAA,CAAI,CAAC,GAGjDC,aAAa,WACZnB,qBAAoB,CACrB,CAAC,CAEH,CAzBWc,QAAAC,YAAuD,KAElEf,qBAAoB","file":"flag-update.collection.js","sourcesContent":["import { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { FlagUpdateModel } from '../models/flag-update.model';\nimport { ResolveIOServer } from '../resolveio-server-app';\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 FlagUpdates: MongoManagerCollection<FlagUpdateModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB() && MongoManagerModel) {\n\t\tconst model = MongoManagerModel.create<FlagUpdateModel>({\n\t\t\tcollectionName: 'flag-updates',\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\tFlagUpdates = model.collection_main;\n\t\tFlagUpdates.createIndex({type: 1}, {unique: true});\n\t}\n\telse {\n\t\tsetImmediate(() => {\n\t\t\tinitializeCollection();\n\t\t});\n\t}\n}"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/collections/flag.collection.ts"],"names":["mongo_manager_1","require","resolveio_server_app_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","value","Boolean","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","create","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","bypassSession","exports","Flags","collection_main","createIndex","unique","setImmediate"],"mappings":"yFACA,IAAAA,gBAAAC,QAAA,2BAAA,EAEAC,uBAAAD,QAAA,yBAAA,EAEIE,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,EADHd,uBAAAe,iBAAmBf,uBAAAe,gBAAgBC,UAAS,GAAMlB,gBAAAmB,mBAC/CH,EAAQhB,gBAAAmB,kBAAkBC,OAAkB,CACjDC,eAAgB,QAChBlB,OAAQA,OACRmB,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,KACnBC,cAAe,CAAA,C,CACf,EACDC,QAAAC,MAAQf,EAAMgB,gBACdF,QAAAC,MAAME,YAAY,CAAC5B,KAAM,CAAC,EAAG,CAAC6B,OAAQ,CAAA,CAAI,CAAC,GAG3CC,aAAa,WACZpB,qBAAoB,CACrB,CAAC,CAEH,CA1BWe,QAAAC,MAA2C,KAEtDhB,qBAAoB","file":"flag.collection.js","sourcesContent":["/* eslint-disable @typescript-eslint/no-floating-promises */\nimport { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { FlagModel } from '../models/flag.model';\nimport { ResolveIOServer } from '../resolveio-server-app';\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() && MongoManagerModel) {\n\t\tconst model = MongoManagerModel.create<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\tbypassSession: true\n\t\t});\n\t\tFlags = model.collection_main;\n\t\tFlags.createIndex({type: 1}, {unique: true});\n\t}\n\telse {\n\t\tsetImmediate(() => {\n\t\t\tinitializeCollection();\n\t\t});\n\t}\n}"]}
1
+ {"version":3,"sources":["../../src/collections/flag.collection.ts"],"names":["mongo_manager_1","require","resolveio_server_app_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","value","Boolean","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","create","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","bypassSession","exports","Flags","collection_main","createIndex","unique","setImmediate"],"mappings":"yFAAA,IAAAA,gBAAAC,QAAA,2BAAA,EAEAC,uBAAAD,QAAA,yBAAA,EAEIE,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,EADHd,uBAAAe,iBAAmBf,uBAAAe,gBAAgBC,UAAS,GAAMlB,gBAAAmB,mBAC/CH,EAAQhB,gBAAAmB,kBAAkBC,OAAkB,CACjDC,eAAgB,QAChBlB,OAAQA,OACRmB,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,KACnBC,cAAe,CAAA,C,CACf,EACDC,QAAAC,MAAQf,EAAMgB,gBACdF,QAAAC,MAAME,YAAY,CAAC5B,KAAM,CAAC,EAAG,CAAC6B,OAAQ,CAAA,CAAI,CAAC,GAG3CC,aAAa,WACZpB,qBAAoB,CACrB,CAAC,CAEH,CA1BWe,QAAAC,MAA2C,KAEtDhB,qBAAoB","file":"flag.collection.js","sourcesContent":["import { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { FlagModel } from '../models/flag.model';\nimport { ResolveIOServer } from '../resolveio-server-app';\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() && MongoManagerModel) {\n\t\tconst model = MongoManagerModel.create<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\tbypassSession: true\n\t\t});\n\t\tFlags = model.collection_main;\n\t\tFlags.createIndex({type: 1}, {unique: true});\n\t}\n\telse {\n\t\tsetImmediate(() => {\n\t\t\tinitializeCollection();\n\t\t});\n\t}\n}"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/collections/log-method-latency.collection.ts"],"names":["mongo_manager_1","require","resolveio_server_app_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","date_start","date_end","latency_ms","method","client","instance","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","create","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","skipCache","exports","LogMethodLatencies","collection_main","createIndex","expireAfterSeconds","setImmediate"],"mappings":"sGACA,IAAAA,gBAAAC,QAAA,2BAAA,EAEAC,uBAAAD,QAAA,yBAAA,EAEIE,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,EAEPW,OAAQ,CACPZ,KAAMC,M,EAEPY,SAAU,CACTb,KAAMC,M,GAQR,SAASa,uBACR,IACOC,EADHlB,uBAAAmB,iBAAmBnB,uBAAAmB,gBAAgBC,UAAS,GAAMtB,gBAAAuB,mBAC/CH,EAAQpB,gBAAAuB,kBAAkBC,OAA8B,CAC7DC,eAAgB,uBAChBtB,OAAQA,OACRuB,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,KACnBC,UAAW,CAAA,C,CACX,EACDC,QAAAC,mBAAqBf,EAAMgB,gBAC3BF,QAAAC,mBAAmBE,YAAY,CAACzB,UAAW,CAAC,EAAG,CAAC0B,mBAAoB,MAAiB,CAAC,EACtFJ,QAAAC,mBAAmBE,YAAY,CAACzB,UAAW,CAAC,EAAGK,OAAQ,CAAC,CAAC,EACzDiB,QAAAC,mBAAmBE,YAAY,CAACtB,WAAY,CAAC,CAAC,EAC9CmB,QAAAC,mBAAmBE,YAAY,CAACrB,OAAQ,CAAC,CAAC,GAG1CuB,aAAa,WACZpB,qBAAoB,CACrB,CAAC,CAEH,CA7BWe,QAAAC,mBAAoE,KAE/EhB,qBAAoB","file":"log-method-latency.collection.js","sourcesContent":["/* eslint-disable @typescript-eslint/no-floating-promises */\nimport { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { LogMethodLatencyModel } from '../models/log-method-latency.model';\nimport { ResolveIOServer } from '../resolveio-server-app';\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\tclient: {\n\t\ttype: String\n\t},\n\tinstance: {\n\t\ttype: String\n\t}\n};\n\nexport let LogMethodLatencies: MongoManagerCollection<LogMethodLatencyModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB() && MongoManagerModel) {\n\t\tconst model = MongoManagerModel.create<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\tskipCache: true\n\t\t});\n\t\tLogMethodLatencies = model.collection_main;\n\t\tLogMethodLatencies.createIndex({createdAt: 1}, {expireAfterSeconds: 60 * 60 * 24 * 30});\n\t\tLogMethodLatencies.createIndex({createdAt: -1, client: 1});\n\t\tLogMethodLatencies.createIndex({latency_ms: 1});\n\t\tLogMethodLatencies.createIndex({method: 1});\n\t}\n\telse {\n\t\tsetImmediate(() => {\n\t\t\tinitializeCollection();\n\t\t});\n\t}\n}"]}
1
+ {"version":3,"sources":["../../src/collections/log-method-latency.collection.ts"],"names":["mongo_manager_1","require","resolveio_server_app_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","date_start","date_end","latency_ms","method","client","instance","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","create","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","skipCache","exports","LogMethodLatencies","collection_main","createIndex","expireAfterSeconds","setImmediate"],"mappings":"sGAAA,IAAAA,gBAAAC,QAAA,2BAAA,EAEAC,uBAAAD,QAAA,yBAAA,EAEIE,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,EAEPW,OAAQ,CACPZ,KAAMC,M,EAEPY,SAAU,CACTb,KAAMC,M,GAQR,SAASa,uBACR,IACOC,EADHlB,uBAAAmB,iBAAmBnB,uBAAAmB,gBAAgBC,UAAS,GAAMtB,gBAAAuB,mBAC/CH,EAAQpB,gBAAAuB,kBAAkBC,OAA8B,CAC7DC,eAAgB,uBAChBtB,OAAQA,OACRuB,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,KACnBC,UAAW,CAAA,C,CACX,EACDC,QAAAC,mBAAqBf,EAAMgB,gBAC3BF,QAAAC,mBAAmBE,YAAY,CAACzB,UAAW,CAAC,EAAG,CAAC0B,mBAAoB,MAAiB,CAAC,EACtFJ,QAAAC,mBAAmBE,YAAY,CAACzB,UAAW,CAAC,EAAGK,OAAQ,CAAC,CAAC,EACzDiB,QAAAC,mBAAmBE,YAAY,CAACtB,WAAY,CAAC,CAAC,EAC9CmB,QAAAC,mBAAmBE,YAAY,CAACrB,OAAQ,CAAC,CAAC,GAG1CuB,aAAa,WACZpB,qBAAoB,CACrB,CAAC,CAEH,CA7BWe,QAAAC,mBAAoE,KAE/EhB,qBAAoB","file":"log-method-latency.collection.js","sourcesContent":["import { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { LogMethodLatencyModel } from '../models/log-method-latency.model';\nimport { ResolveIOServer } from '../resolveio-server-app';\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\tclient: {\n\t\ttype: String\n\t},\n\tinstance: {\n\t\ttype: String\n\t}\n};\n\nexport let LogMethodLatencies: MongoManagerCollection<LogMethodLatencyModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB() && MongoManagerModel) {\n\t\tconst model = MongoManagerModel.create<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\tskipCache: true\n\t\t});\n\t\tLogMethodLatencies = model.collection_main;\n\t\tLogMethodLatencies.createIndex({createdAt: 1}, {expireAfterSeconds: 60 * 60 * 24 * 30});\n\t\tLogMethodLatencies.createIndex({createdAt: -1, client: 1});\n\t\tLogMethodLatencies.createIndex({latency_ms: 1});\n\t\tLogMethodLatencies.createIndex({method: 1});\n\t}\n\telse {\n\t\tsetImmediate(() => {\n\t\t\tinitializeCollection();\n\t\t});\n\t}\n}"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/collections/log-subscription.collection.ts"],"names":["mongo_manager_1","require","resolveio_server_app_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","date","subscription","collection_name","subData","client","instance","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","create","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","skipCache","exports","LogSubscriptions","collection_main","createIndex","expireAfterSeconds","setImmediate"],"mappings":"oGACA,IAAAA,gBAAAC,QAAA,2BAAA,EAEAC,uBAAAD,QAAA,yBAAA,EAEIE,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,EAEPW,OAAQ,CACPZ,KAAMC,M,EAEPY,SAAU,CACTb,KAAMC,M,GAQR,SAASa,uBACR,IACOC,EADHlB,uBAAAmB,iBAAmBnB,uBAAAmB,gBAAgBC,UAAS,GAAMtB,gBAAAuB,mBAC/CH,EAAQpB,gBAAAuB,kBAAkBC,OAA6B,CAC5DC,eAAgB,oBAChBtB,OAAQA,OACRuB,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,KACnBC,UAAW,CAAA,C,CACX,EACDC,QAAAC,iBAAmBf,EAAMgB,gBACzBF,QAAAC,iBAAiBE,YAAY,CAACxB,KAAM,CAAC,EAAG,CAACyB,mBAAoB,MAAiB,CAAC,EAC/EJ,QAAAC,iBAAiBE,YAAY,CAAChC,KAAM,CAAC,CAAC,EACtC6B,QAAAC,iBAAiBE,YAAY,CAACtB,gBAAiB,CAAC,CAAC,EACjDmB,QAAAC,iBAAiBE,YAAY,CAACxB,KAAM,EAAGR,KAAM,CAAC,CAAC,EAC/C6B,QAAAC,iBAAiBE,YAAY,CAACzB,UAAW,CAAC,EAAGK,OAAQ,CAAC,CAAC,GAGvDsB,aAAa,WACZpB,qBAAoB,CACrB,CAAC,CAEH,CA9BWe,QAAAC,iBAAiE,KAE5EhB,qBAAoB","file":"log-subscription.collection.js","sourcesContent":["/* eslint-disable @typescript-eslint/no-floating-promises */\nimport { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { LogSubscriptionModel } from '../models/log-subscription.model';\nimport { ResolveIOServer } from '../resolveio-server-app';\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\tclient: {\n\t\ttype: String\n\t},\n\tinstance: {\n\t\ttype: String\n\t}\n};\n\nexport let LogSubscriptions: MongoManagerCollection<LogSubscriptionModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB() && MongoManagerModel) {\n\t\tconst model = MongoManagerModel.create<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\tskipCache: true\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, client: 1});\n\t}\n\telse {\n\t\tsetImmediate(() => {\n\t\t\tinitializeCollection();\n\t\t});\n\t}\n}"]}
1
+ {"version":3,"sources":["../../src/collections/log-subscription.collection.ts"],"names":["mongo_manager_1","require","resolveio_server_app_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","date","subscription","collection_name","subData","client","instance","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","create","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","skipCache","exports","LogSubscriptions","collection_main","createIndex","expireAfterSeconds","setImmediate"],"mappings":"oGAAA,IAAAA,gBAAAC,QAAA,2BAAA,EAEAC,uBAAAD,QAAA,yBAAA,EAEIE,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,EAEPW,OAAQ,CACPZ,KAAMC,M,EAEPY,SAAU,CACTb,KAAMC,M,GAQR,SAASa,uBACR,IACOC,EADHlB,uBAAAmB,iBAAmBnB,uBAAAmB,gBAAgBC,UAAS,GAAMtB,gBAAAuB,mBAC/CH,EAAQpB,gBAAAuB,kBAAkBC,OAA6B,CAC5DC,eAAgB,oBAChBtB,OAAQA,OACRuB,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,KACnBC,UAAW,CAAA,C,CACX,EACDC,QAAAC,iBAAmBf,EAAMgB,gBACzBF,QAAAC,iBAAiBE,YAAY,CAACxB,KAAM,CAAC,EAAG,CAACyB,mBAAoB,MAAiB,CAAC,EAC/EJ,QAAAC,iBAAiBE,YAAY,CAAChC,KAAM,CAAC,CAAC,EACtC6B,QAAAC,iBAAiBE,YAAY,CAACtB,gBAAiB,CAAC,CAAC,EACjDmB,QAAAC,iBAAiBE,YAAY,CAACxB,KAAM,EAAGR,KAAM,CAAC,CAAC,EAC/C6B,QAAAC,iBAAiBE,YAAY,CAACzB,UAAW,CAAC,EAAGK,OAAQ,CAAC,CAAC,GAGvDsB,aAAa,WACZpB,qBAAoB,CACrB,CAAC,CAEH,CA9BWe,QAAAC,iBAAiE,KAE5EhB,qBAAoB","file":"log-subscription.collection.js","sourcesContent":["import { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { LogSubscriptionModel } from '../models/log-subscription.model';\nimport { ResolveIOServer } from '../resolveio-server-app';\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\tclient: {\n\t\ttype: String\n\t},\n\tinstance: {\n\t\ttype: String\n\t}\n};\n\nexport let LogSubscriptions: MongoManagerCollection<LogSubscriptionModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB() && MongoManagerModel) {\n\t\tconst model = MongoManagerModel.create<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\tskipCache: true\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, client: 1});\n\t}\n\telse {\n\t\tsetImmediate(() => {\n\t\t\tinitializeCollection();\n\t\t});\n\t}\n}"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/collections/log.collection.ts"],"names":["mongo_manager_1","require","resolveio_server_app_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","collection","id_document","payload","method","id_user","user","messageId","route","client","instance","instance_index","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","create","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","skipCache","exports","Logs","collection_main","createIndex","expireAfterSeconds","setImmediate"],"mappings":"wFACA,IAAAA,gBAAAC,QAAA,2BAAA,EAEAC,uBAAAD,QAAA,yBAAA,EAEIE,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,EAEPe,OAAQ,CACPhB,KAAMC,M,EAEPgB,SAAU,CACTjB,KAAMC,M,EAEPiB,eAAgB,CACflB,KAAMC,M,GAQR,SAASkB,uBACR,IACOC,EADHvB,uBAAAwB,iBAAmBxB,uBAAAwB,gBAAgBC,UAAS,GAAM3B,gBAAA4B,mBAC/CH,EAAQzB,gBAAA4B,kBAAkBC,OAAiB,CAChDC,eAAgB,OAChB3B,OAAQA,OACR4B,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,KACnBC,UAAW,CAAA,C,CACX,EACDC,QAAAC,KAAOf,EAAMgB,gBACbF,QAAAC,KAAKE,YAAY,CAAC9B,UAAW,CAAC,EAAG,CAAC+B,mBAAoB,MAAiB,CAAC,EACxEJ,QAAAC,KAAKE,YAAY,CAAC9B,UAAW,CAAC,EAAGS,OAAQ,EAAGhB,KAAM,EAAGS,YAAa,CAAC,CAAC,GAGpE8B,aAAa,WACZpB,qBAAoB,CACrB,CAAC,CAEH,CA3BWe,QAAAC,KAAyC,KAEpDhB,qBAAoB","file":"log.collection.js","sourcesContent":["/* eslint-disable @typescript-eslint/no-floating-promises */\nimport { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { LogModel } from '../models/log.model';\nimport { ResolveIOServer } from '../resolveio-server-app';\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\tclient: {\n\t\ttype: String\n\t},\n\tinstance: {\n\t\ttype: String\n\t},\n\tinstance_index: {\n\t\ttype: String\n\t}\n};\n\nexport let Logs: MongoManagerCollection<LogModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB() && MongoManagerModel) {\n\t\tconst model = MongoManagerModel.create<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\tskipCache: true\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, client: 1, type: 1, id_document: 1});\n\t}\n\telse {\n\t\tsetImmediate(() => {\n\t\t\tinitializeCollection();\n\t\t});\n\t}\n}"]}
1
+ {"version":3,"sources":["../../src/collections/log.collection.ts"],"names":["mongo_manager_1","require","resolveio_server_app_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","collection","id_document","payload","method","id_user","user","messageId","route","client","instance","instance_index","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","create","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","skipCache","exports","Logs","collection_main","createIndex","expireAfterSeconds","setImmediate"],"mappings":"wFAAA,IAAAA,gBAAAC,QAAA,2BAAA,EAEAC,uBAAAD,QAAA,yBAAA,EAEIE,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,EAEPe,OAAQ,CACPhB,KAAMC,M,EAEPgB,SAAU,CACTjB,KAAMC,M,EAEPiB,eAAgB,CACflB,KAAMC,M,GAQR,SAASkB,uBACR,IACOC,EADHvB,uBAAAwB,iBAAmBxB,uBAAAwB,gBAAgBC,UAAS,GAAM3B,gBAAA4B,mBAC/CH,EAAQzB,gBAAA4B,kBAAkBC,OAAiB,CAChDC,eAAgB,OAChB3B,OAAQA,OACR4B,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,KACnBC,UAAW,CAAA,C,CACX,EACDC,QAAAC,KAAOf,EAAMgB,gBACbF,QAAAC,KAAKE,YAAY,CAAC9B,UAAW,CAAC,EAAG,CAAC+B,mBAAoB,MAAiB,CAAC,EACxEJ,QAAAC,KAAKE,YAAY,CAAC9B,UAAW,CAAC,EAAGS,OAAQ,EAAGhB,KAAM,EAAGS,YAAa,CAAC,CAAC,GAGpE8B,aAAa,WACZpB,qBAAoB,CACrB,CAAC,CAEH,CA3BWe,QAAAC,KAAyC,KAEpDhB,qBAAoB","file":"log.collection.js","sourcesContent":["import { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { LogModel } from '../models/log.model';\nimport { ResolveIOServer } from '../resolveio-server-app';\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\tclient: {\n\t\ttype: String\n\t},\n\tinstance: {\n\t\ttype: String\n\t},\n\tinstance_index: {\n\t\ttype: String\n\t}\n};\n\nexport let Logs: MongoManagerCollection<LogModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB() && MongoManagerModel) {\n\t\tconst model = MongoManagerModel.create<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\tskipCache: true\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, client: 1, type: 1, id_document: 1});\n\t}\n\telse {\n\t\tsetImmediate(() => {\n\t\t\tinitializeCollection();\n\t\t});\n\t}\n}"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/collections/logged-in-users.collection.ts"],"names":["mongo_manager_1","require","resolveio_server_app_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","date","id_user","user","id_ws","latency","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","create","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","skipCache","bypassSession","exports","LoggedInUsers","collection_main","createIndex","setImmediate"],"mappings":"iGACA,IAAAA,gBAAAC,QAAA,2BAAA,EAEAC,uBAAAD,QAAA,yBAAA,EAEIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,SAAU,CAAA,C,EAEXC,IAAK,CACJH,KAAMI,OACNF,SAAU,CAAA,C,EAEXG,UAAW,CACVL,KAAMM,KACNJ,SAAU,CAAA,C,EAEXK,UAAW,CACVP,KAAMM,KACNJ,SAAU,CAAA,C,EAEXM,KAAM,CACLR,KAAMM,I,EAEPG,QAAS,CACRT,KAAMC,M,EAEPS,KAAM,CACLV,KAAMC,M,EAEPU,MAAO,CACNX,KAAMC,M,EAEPW,QAAS,CACRZ,KAAMI,OACNF,SAAU,CAAA,C,GAQZ,SAASW,uBACR,IACOC,EADHjB,uBAAAkB,iBAAmBlB,uBAAAkB,gBAAgBC,UAAS,GAAMrB,gBAAAsB,mBAC/CH,EAAQnB,gBAAAsB,kBAAkBC,OAA0B,CACzDC,eAAgB,kBAChBrB,OAAQA,OACRsB,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,KACnBC,UAAW,CAAA,EACXC,cAAe,CAAA,C,CACf,EACDC,QAAAC,cAAgBhB,EAAMiB,gBACtBF,QAAAC,cAAcE,YAAY,CAACrB,MAAO,CAAC,CAAC,GAGpCsB,aAAa,WACZpB,qBAAoB,CACrB,CAAC,CAEH,CA3BWgB,QAAAC,cAA2D,KAEtEjB,qBAAoB","file":"logged-in-users.collection.js","sourcesContent":["/* eslint-disable @typescript-eslint/no-floating-promises */\nimport { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { LoggedInUserModel } from '../models/logged-in-users.model';\nimport { ResolveIOServer } from '../resolveio-server-app';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t__v: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tupdatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcreatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tdate: {\n\t\ttype: Date\n\t},\n\tid_user: {\n\t\ttype: String\n\t},\n\tuser: {\n\t\ttype: String\n\t},\n\tid_ws: {\n\t\ttype: String\n\t},\n\tlatency: {\n\t\ttype: Number,\n\t\toptional: true\n\t}\n};\n\nexport let LoggedInUsers: MongoManagerCollection<LoggedInUserModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB() && MongoManagerModel) {\n\t\tconst model = MongoManagerModel.create<LoggedInUserModel>({\n\t\t\tcollectionName: 'logged-in-users',\n\t\t\tschema: schema,\n\t\t\tuseVersionCollection: false,\n\t\t\tuseReportBuilder: false,\n\t\t\treportBuilderLookupTables: [],\n\t\t\ttimestamps: true,\n\t\t\tcreateLogs: false,\n\t\t\tcheckSchema: true,\n\t\t\tcollectionOptions: null,\n\t\t\tskipCache: true,\n\t\t\tbypassSession: true\n\t\t});\n\t\tLoggedInUsers = model.collection_main;\n\t\tLoggedInUsers.createIndex({id_ws: 1});\n\t}\n\telse {\n\t\tsetImmediate(() => {\n\t\t\tinitializeCollection();\n\t\t});\n\t}\n}"]}
1
+ {"version":3,"sources":["../../src/collections/logged-in-users.collection.ts"],"names":["mongo_manager_1","require","resolveio_server_app_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","date","id_user","user","id_ws","latency","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","create","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","skipCache","bypassSession","exports","LoggedInUsers","collection_main","createIndex","setImmediate"],"mappings":"iGAAA,IAAAA,gBAAAC,QAAA,2BAAA,EAEAC,uBAAAD,QAAA,yBAAA,EAEIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,SAAU,CAAA,C,EAEXC,IAAK,CACJH,KAAMI,OACNF,SAAU,CAAA,C,EAEXG,UAAW,CACVL,KAAMM,KACNJ,SAAU,CAAA,C,EAEXK,UAAW,CACVP,KAAMM,KACNJ,SAAU,CAAA,C,EAEXM,KAAM,CACLR,KAAMM,I,EAEPG,QAAS,CACRT,KAAMC,M,EAEPS,KAAM,CACLV,KAAMC,M,EAEPU,MAAO,CACNX,KAAMC,M,EAEPW,QAAS,CACRZ,KAAMI,OACNF,SAAU,CAAA,C,GAQZ,SAASW,uBACR,IACOC,EADHjB,uBAAAkB,iBAAmBlB,uBAAAkB,gBAAgBC,UAAS,GAAMrB,gBAAAsB,mBAC/CH,EAAQnB,gBAAAsB,kBAAkBC,OAA0B,CACzDC,eAAgB,kBAChBrB,OAAQA,OACRsB,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,KACnBC,UAAW,CAAA,EACXC,cAAe,CAAA,C,CACf,EACDC,QAAAC,cAAgBhB,EAAMiB,gBACtBF,QAAAC,cAAcE,YAAY,CAACrB,MAAO,CAAC,CAAC,GAGpCsB,aAAa,WACZpB,qBAAoB,CACrB,CAAC,CAEH,CA3BWgB,QAAAC,cAA2D,KAEtEjB,qBAAoB","file":"logged-in-users.collection.js","sourcesContent":["import { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { LoggedInUserModel } from '../models/logged-in-users.model';\nimport { ResolveIOServer } from '../resolveio-server-app';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t__v: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tupdatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcreatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tdate: {\n\t\ttype: Date\n\t},\n\tid_user: {\n\t\ttype: String\n\t},\n\tuser: {\n\t\ttype: String\n\t},\n\tid_ws: {\n\t\ttype: String\n\t},\n\tlatency: {\n\t\ttype: Number,\n\t\toptional: true\n\t}\n};\n\nexport let LoggedInUsers: MongoManagerCollection<LoggedInUserModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB() && MongoManagerModel) {\n\t\tconst model = MongoManagerModel.create<LoggedInUserModel>({\n\t\t\tcollectionName: 'logged-in-users',\n\t\t\tschema: schema,\n\t\t\tuseVersionCollection: false,\n\t\t\tuseReportBuilder: false,\n\t\t\treportBuilderLookupTables: [],\n\t\t\ttimestamps: true,\n\t\t\tcreateLogs: false,\n\t\t\tcheckSchema: true,\n\t\t\tcollectionOptions: null,\n\t\t\tskipCache: true,\n\t\t\tbypassSession: true\n\t\t});\n\t\tLoggedInUsers = model.collection_main;\n\t\tLoggedInUsers.createIndex({id_ws: 1});\n\t}\n\telse {\n\t\tsetImmediate(() => {\n\t\t\tinitializeCollection();\n\t\t});\n\t}\n}"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/collections/method-response.collection.ts"],"names":["mongo_manager_1","require","resolveio_server_app_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","id_user","message_id","method","response","Object","blackbox","date","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","create","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","exports","MethodResponses","collection_main","createIndex","expireAfterSeconds","setImmediate"],"mappings":"mGACA,IAAAA,gBAAAC,QAAA,2BAAA,EAEAC,uBAAAD,QAAA,yBAAA,EAEIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,SAAU,CAAA,C,EAEXC,IAAK,CACJH,KAAMI,OACNF,SAAU,CAAA,C,EAEXG,UAAW,CACVL,KAAMM,KACNJ,SAAU,CAAA,C,EAEXK,UAAW,CACVP,KAAMM,KACNJ,SAAU,CAAA,C,EAEXM,QAAS,CACRR,KAAMC,M,EAEPQ,WAAY,CACXT,KAAMI,M,EAEPM,OAAQ,CACPV,KAAMC,M,EAEPU,SAAU,CACTX,KAAMY,OACNC,SAAU,CAAA,C,EAEXC,KAAM,CACLd,KAAMM,I,GAQR,SAASS,uBACR,IACOC,EADHnB,uBAAAoB,iBAAmBpB,uBAAAoB,gBAAgBC,UAAS,GAAMvB,gBAAAwB,mBAC/CH,EAAQrB,gBAAAwB,kBAAkBC,OAA4B,CAC3DC,eAAgB,mBAChBvB,OAAQA,OACRwB,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,I,CACnB,EACDC,QAAAC,gBAAkBd,EAAMe,gBACxBF,QAAAC,gBAAgBE,YAAY,CAACxB,QAAS,EAAGC,WAAY,CAAC,CAAC,EACvDoB,QAAAC,gBAAgBE,YAAY,CAACzB,UAAW,CAAC,EAAG,CAAC0B,mBAAoB,KAAK,CAAC,GAGvEC,aAAa,WACZnB,qBAAoB,CACrB,CAAC,CAEH,CA1BWc,QAAAC,gBAA+D,KAE1Ef,qBAAoB","file":"method-response.collection.js","sourcesContent":["/* eslint-disable @typescript-eslint/no-floating-promises */\nimport { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { MethodResponseModel } from '../models/method-response.model';\nimport { ResolveIOServer } from '../resolveio-server-app';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t__v: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tupdatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcreatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tid_user: {\n\t\ttype: String\n\t},\n\tmessage_id: {\n\t\ttype: Number\n\t},\n\tmethod: {\n\t\ttype: String\n\t},\n\tresponse: {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tdate: {\n\t\ttype: Date\n\t}\n};\n\nexport let MethodResponses: MongoManagerCollection<MethodResponseModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB() && MongoManagerModel) {\n\t\tconst model = MongoManagerModel.create<MethodResponseModel>({\n\t\t\tcollectionName: 'method-responses',\n\t\t\tschema: schema,\n\t\t\tuseVersionCollection: false,\n\t\t\tuseReportBuilder: false,\n\t\t\treportBuilderLookupTables: [],\n\t\t\ttimestamps: true,\n\t\t\tcreateLogs: false,\n\t\t\tcheckSchema: true,\n\t\t\tcollectionOptions: null\n\t\t});\n\t\tMethodResponses = model.collection_main;\n\t\tMethodResponses.createIndex({id_user: 1, message_id: 1});\n\t\tMethodResponses.createIndex({createdAt: 1}, {expireAfterSeconds: 86400});\n\t}\n\telse {\n\t\tsetImmediate(() => {\n\t\t\tinitializeCollection();\n\t\t});\n\t}\n}"]}
1
+ {"version":3,"sources":["../../src/collections/method-response.collection.ts"],"names":["mongo_manager_1","require","resolveio_server_app_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","id_user","message_id","method","response","Object","blackbox","date","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","create","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","exports","MethodResponses","collection_main","createIndex","expireAfterSeconds","setImmediate"],"mappings":"mGAAA,IAAAA,gBAAAC,QAAA,2BAAA,EAEAC,uBAAAD,QAAA,yBAAA,EAEIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,SAAU,CAAA,C,EAEXC,IAAK,CACJH,KAAMI,OACNF,SAAU,CAAA,C,EAEXG,UAAW,CACVL,KAAMM,KACNJ,SAAU,CAAA,C,EAEXK,UAAW,CACVP,KAAMM,KACNJ,SAAU,CAAA,C,EAEXM,QAAS,CACRR,KAAMC,M,EAEPQ,WAAY,CACXT,KAAMI,M,EAEPM,OAAQ,CACPV,KAAMC,M,EAEPU,SAAU,CACTX,KAAMY,OACNC,SAAU,CAAA,C,EAEXC,KAAM,CACLd,KAAMM,I,GAQR,SAASS,uBACR,IACOC,EADHnB,uBAAAoB,iBAAmBpB,uBAAAoB,gBAAgBC,UAAS,GAAMvB,gBAAAwB,mBAC/CH,EAAQrB,gBAAAwB,kBAAkBC,OAA4B,CAC3DC,eAAgB,mBAChBvB,OAAQA,OACRwB,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,I,CACnB,EACDC,QAAAC,gBAAkBd,EAAMe,gBACxBF,QAAAC,gBAAgBE,YAAY,CAACxB,QAAS,EAAGC,WAAY,CAAC,CAAC,EACvDoB,QAAAC,gBAAgBE,YAAY,CAACzB,UAAW,CAAC,EAAG,CAAC0B,mBAAoB,KAAK,CAAC,GAGvEC,aAAa,WACZnB,qBAAoB,CACrB,CAAC,CAEH,CA1BWc,QAAAC,gBAA+D,KAE1Ef,qBAAoB","file":"method-response.collection.js","sourcesContent":["import { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { MethodResponseModel } from '../models/method-response.model';\nimport { ResolveIOServer } from '../resolveio-server-app';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t__v: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tupdatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcreatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tid_user: {\n\t\ttype: String\n\t},\n\tmessage_id: {\n\t\ttype: Number\n\t},\n\tmethod: {\n\t\ttype: String\n\t},\n\tresponse: {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tdate: {\n\t\ttype: Date\n\t}\n};\n\nexport let MethodResponses: MongoManagerCollection<MethodResponseModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB() && MongoManagerModel) {\n\t\tconst model = MongoManagerModel.create<MethodResponseModel>({\n\t\t\tcollectionName: 'method-responses',\n\t\t\tschema: schema,\n\t\t\tuseVersionCollection: false,\n\t\t\tuseReportBuilder: false,\n\t\t\treportBuilderLookupTables: [],\n\t\t\ttimestamps: true,\n\t\t\tcreateLogs: false,\n\t\t\tcheckSchema: true,\n\t\t\tcollectionOptions: null\n\t\t});\n\t\tMethodResponses = model.collection_main;\n\t\tMethodResponses.createIndex({id_user: 1, message_id: 1});\n\t\tMethodResponses.createIndex({createdAt: 1}, {expireAfterSeconds: 86400});\n\t}\n\telse {\n\t\tsetImmediate(() => {\n\t\t\tinitializeCollection();\n\t\t});\n\t}\n}"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/collections/monitor-cpu.collection.ts"],"names":["mongo_manager_1","require","resolveio_server_app_1","schema","_id","type","String","optional","metadata","Object","metadata.client","metadata.instance","date","Date","app","Number","system","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","create","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","timeseries","timeField","granularity","metaField","expireAfterSeconds","skipCache","bypassSession","exports","MonitorCPUs","collection_main","createIndex","setImmediate"],"mappings":"+FACA,IAAAA,gBAAAC,QAAA,2BAAA,EAEAC,uBAAAD,QAAA,yBAAA,EAEIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,SAAU,CAAA,C,EAEXC,SAAU,CACTH,KAAMI,M,EAEPC,kBAAmB,CAClBL,KAAMC,M,EAEPK,oBAAqB,CACpBN,KAAMC,M,EAEPM,KAAM,CACLP,KAAMQ,I,EAEPC,IAAK,CACJT,KAAMU,M,EAEPC,OAAQ,CACPX,KAAMU,M,GAQR,SAASE,uBACR,IACOC,EADHhB,uBAAAiB,iBAAmBjB,uBAAAiB,gBAAgBC,UAAS,GAAMpB,gBAAAqB,mBAC/CH,EAAQlB,gBAAAqB,kBAAkBC,OAAwB,CACvDC,eAAgB,eAChBpB,OAAQA,OACRqB,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,CAClBC,WAAY,CACXC,UAAW,OACXC,YAAa,UACbC,UAAW,U,EAEZC,mBAAoB,M,EAErBC,UAAW,CAAA,EACXC,cAAe,CAAA,C,CACf,EACDC,QAAAC,YAAcrB,EAAMsB,gBACpBF,QAAAC,YAAYE,YAAY,CAAC/B,kBAAmB,EAAGE,KAAM,CAAC,CAAC,EACvD0B,QAAAC,YAAYE,YAAY,CAAC/B,kBAAmB,EAAGC,oBAAqB,EAAGC,KAAM,CAAC,CAAC,GAG/E8B,aAAa,WACZzB,qBAAoB,CACrB,CAAC,CAEH,CAnCWqB,QAAAC,YAAuD,KAElEtB,qBAAoB","file":"monitor-cpu.collection.js","sourcesContent":["/* eslint-disable @typescript-eslint/no-floating-promises */\nimport { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { MonitorCPUModel } from '../models/monitor-cpu.model';\nimport { ResolveIOServer } from '../resolveio-server-app';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\tmetadata: {\n\t\ttype: Object\n\t},\n\t'metadata.client': {\n\t\ttype: String\n\t},\n\t'metadata.instance': {\n\t\ttype: String\n\t},\n\tdate: {\n\t\ttype: Date\n\t},\n\tapp: {\n\t\ttype: Number\n\t},\n\tsystem: {\n\t\ttype: Number\n\t}\n};\n\nexport let MonitorCPUs: MongoManagerCollection<MonitorCPUModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB() && MongoManagerModel) {\n\t\tconst model = MongoManagerModel.create<MonitorCPUModel>({\n\t\t\tcollectionName: 'monitor-cpus',\n\t\t\tschema: schema,\n\t\t\tuseVersionCollection: false,\n\t\t\tuseReportBuilder: false,\n\t\t\treportBuilderLookupTables: [],\n\t\t\ttimestamps: false,\n\t\t\tcreateLogs: false,\n\t\t\tcheckSchema: false,\n\t\t\tcollectionOptions: {\n\t\t\t\ttimeseries: {\n\t\t\t\t\ttimeField: 'date',\n\t\t\t\t\tgranularity: 'seconds',\n\t\t\t\t\tmetaField: 'metadata'\n\t\t\t\t},\n\t\t\t\texpireAfterSeconds: 60 * 60 * 24 * 3\n\t\t\t},\n\t\t\tskipCache: true,\n\t\t\tbypassSession: true\n\t\t});\n\t\tMonitorCPUs = model.collection_main;\n\t\tMonitorCPUs.createIndex({'metadata.client': 1, date: 1});\n\t\tMonitorCPUs.createIndex({'metadata.client': 1, 'metadata.instance': 1, date: 1});\n\t}\n\telse {\n\t\tsetImmediate(() => {\n\t\t\tinitializeCollection();\n\t\t});\n\t}\n}"]}
1
+ {"version":3,"sources":["../../src/collections/monitor-cpu.collection.ts"],"names":["mongo_manager_1","require","resolveio_server_app_1","schema","_id","type","String","optional","metadata","Object","metadata.client","metadata.instance","date","Date","app","Number","system","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","create","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","timeseries","timeField","granularity","metaField","expireAfterSeconds","skipCache","bypassSession","exports","MonitorCPUs","collection_main","createIndex","setImmediate"],"mappings":"+FAAA,IAAAA,gBAAAC,QAAA,2BAAA,EAEAC,uBAAAD,QAAA,yBAAA,EAEIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,SAAU,CAAA,C,EAEXC,SAAU,CACTH,KAAMI,M,EAEPC,kBAAmB,CAClBL,KAAMC,M,EAEPK,oBAAqB,CACpBN,KAAMC,M,EAEPM,KAAM,CACLP,KAAMQ,I,EAEPC,IAAK,CACJT,KAAMU,M,EAEPC,OAAQ,CACPX,KAAMU,M,GAQR,SAASE,uBACR,IACOC,EADHhB,uBAAAiB,iBAAmBjB,uBAAAiB,gBAAgBC,UAAS,GAAMpB,gBAAAqB,mBAC/CH,EAAQlB,gBAAAqB,kBAAkBC,OAAwB,CACvDC,eAAgB,eAChBpB,OAAQA,OACRqB,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,CAClBC,WAAY,CACXC,UAAW,OACXC,YAAa,UACbC,UAAW,U,EAEZC,mBAAoB,M,EAErBC,UAAW,CAAA,EACXC,cAAe,CAAA,C,CACf,EACDC,QAAAC,YAAcrB,EAAMsB,gBACpBF,QAAAC,YAAYE,YAAY,CAAC/B,kBAAmB,EAAGE,KAAM,CAAC,CAAC,EACvD0B,QAAAC,YAAYE,YAAY,CAAC/B,kBAAmB,EAAGC,oBAAqB,EAAGC,KAAM,CAAC,CAAC,GAG/E8B,aAAa,WACZzB,qBAAoB,CACrB,CAAC,CAEH,CAnCWqB,QAAAC,YAAuD,KAElEtB,qBAAoB","file":"monitor-cpu.collection.js","sourcesContent":["import { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { MonitorCPUModel } from '../models/monitor-cpu.model';\nimport { ResolveIOServer } from '../resolveio-server-app';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\tmetadata: {\n\t\ttype: Object\n\t},\n\t'metadata.client': {\n\t\ttype: String\n\t},\n\t'metadata.instance': {\n\t\ttype: String\n\t},\n\tdate: {\n\t\ttype: Date\n\t},\n\tapp: {\n\t\ttype: Number\n\t},\n\tsystem: {\n\t\ttype: Number\n\t}\n};\n\nexport let MonitorCPUs: MongoManagerCollection<MonitorCPUModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB() && MongoManagerModel) {\n\t\tconst model = MongoManagerModel.create<MonitorCPUModel>({\n\t\t\tcollectionName: 'monitor-cpus',\n\t\t\tschema: schema,\n\t\t\tuseVersionCollection: false,\n\t\t\tuseReportBuilder: false,\n\t\t\treportBuilderLookupTables: [],\n\t\t\ttimestamps: false,\n\t\t\tcreateLogs: false,\n\t\t\tcheckSchema: false,\n\t\t\tcollectionOptions: {\n\t\t\t\ttimeseries: {\n\t\t\t\t\ttimeField: 'date',\n\t\t\t\t\tgranularity: 'seconds',\n\t\t\t\t\tmetaField: 'metadata'\n\t\t\t\t},\n\t\t\t\texpireAfterSeconds: 60 * 60 * 24 * 3\n\t\t\t},\n\t\t\tskipCache: true,\n\t\t\tbypassSession: true\n\t\t});\n\t\tMonitorCPUs = model.collection_main;\n\t\tMonitorCPUs.createIndex({'metadata.client': 1, date: 1});\n\t\tMonitorCPUs.createIndex({'metadata.client': 1, 'metadata.instance': 1, date: 1});\n\t}\n\telse {\n\t\tsetImmediate(() => {\n\t\t\tinitializeCollection();\n\t\t});\n\t}\n}"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/collections/monitor-function.collection.ts"],"names":["mongo_manager_1","require","resolveio_server_app_1","schema","_id","type","String","optional","metadata","Object","metadata.client","metadata.instance","date","Date","name","user","duration","Number","data","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","create","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","timeseries","timeField","granularity","metaField","expireAfterSeconds","skipCache","bypassSession","exports","MonitorFunctions","collection_main","createIndex","setImmediate"],"mappings":"oGACA,IAAAA,gBAAAC,QAAA,2BAAA,EAEAC,uBAAAD,QAAA,yBAAA,EAEIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,SAAU,CAAA,C,EAEXC,SAAU,CACTH,KAAMI,M,EAEPC,kBAAmB,CAClBL,KAAMC,M,EAEPK,oBAAqB,CACpBN,KAAMC,M,EAEPM,KAAM,CACLP,KAAMQ,I,EAEPR,KAAM,CACLA,KAAMC,M,EAEPQ,KAAM,CACLT,KAAMC,M,EAEPS,KAAM,CACLV,KAAMC,M,EAEPU,SAAU,CACTX,KAAMY,M,EAEPC,KAAM,CACLb,KAAMC,M,GAQR,SAASa,uBACR,IACOC,EADHlB,uBAAAmB,iBAAmBnB,uBAAAmB,gBAAgBC,UAAS,GAAMtB,gBAAAuB,mBAC/CH,EAAQpB,gBAAAuB,kBAAkBC,OAA6B,CAC5DC,eAAgB,oBAChBtB,OAAQA,OACRuB,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,CAClBC,WAAY,CACXC,UAAW,OACXC,YAAa,UACbC,UAAW,U,EAEZC,mBAAoB,M,EAErBC,UAAW,CAAA,EACXC,cAAe,CAAA,C,CACf,EACDC,QAAAC,iBAAmBrB,EAAMsB,gBACzBF,QAAAC,iBAAiBE,YAAY,CAACjC,kBAAmB,EAAGE,KAAM,CAAC,CAAC,EAC5D4B,QAAAC,iBAAiBE,YAAY,CAACjC,kBAAmB,EAAGC,oBAAqB,EAAGC,KAAM,CAAC,CAAC,GAGpFgC,aAAa,WACZzB,qBAAoB,CACrB,CAAC,CAEH,CAnCWqB,QAAAC,iBAAiE,KAE5EtB,qBAAoB","file":"monitor-function.collection.js","sourcesContent":["/* eslint-disable @typescript-eslint/no-floating-promises */\nimport { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { MonitorFunctionModel } from '../models/monitor-function.model';\nimport { ResolveIOServer } from '../resolveio-server-app';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\tmetadata: {\n\t\ttype: Object\n\t},\n\t'metadata.client': {\n\t\ttype: String\n\t},\n\t'metadata.instance': {\n\t\ttype: String\n\t},\n\tdate: {\n\t\ttype: Date\n\t},\n\ttype: {\n\t\ttype: String\n\t},\n\tname: {\n\t\ttype: String\n\t},\n\tuser: {\n\t\ttype: String\n\t},\n\tduration: {\n\t\ttype: Number\n\t},\n\tdata: {\n\t\ttype: String\n\t}\n};\n\nexport let MonitorFunctions: MongoManagerCollection<MonitorFunctionModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB() && MongoManagerModel) {\n\t\tconst model = MongoManagerModel.create<MonitorFunctionModel>({\n\t\t\tcollectionName: 'monitor-functions',\n\t\t\tschema: schema,\n\t\t\tuseVersionCollection: false,\n\t\t\tuseReportBuilder: false,\n\t\t\treportBuilderLookupTables: [],\n\t\t\ttimestamps: false,\n\t\t\tcreateLogs: false,\n\t\t\tcheckSchema: false,\n\t\t\tcollectionOptions: {\n\t\t\t\ttimeseries: {\n\t\t\t\t\ttimeField: 'date',\n\t\t\t\t\tgranularity: 'seconds',\n\t\t\t\t\tmetaField: 'metadata'\n\t\t\t\t},\n\t\t\t\texpireAfterSeconds: 60 * 60 * 24 * 3\n\t\t\t},\n\t\t\tskipCache: true,\n\t\t\tbypassSession: true\n\t\t});\n\t\tMonitorFunctions = model.collection_main;\n\t\tMonitorFunctions.createIndex({'metadata.client': 1, date: 1});\n\t\tMonitorFunctions.createIndex({'metadata.client': 1, 'metadata.instance': 1, date: 1});\n\t}\n\telse {\n\t\tsetImmediate(() => {\n\t\t\tinitializeCollection();\n\t\t});\n\t}\n}"]}
1
+ {"version":3,"sources":["../../src/collections/monitor-function.collection.ts"],"names":["mongo_manager_1","require","resolveio_server_app_1","schema","_id","type","String","optional","metadata","Object","metadata.client","metadata.instance","date","Date","name","user","duration","Number","data","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","create","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","timeseries","timeField","granularity","metaField","expireAfterSeconds","skipCache","bypassSession","exports","MonitorFunctions","collection_main","createIndex","setImmediate"],"mappings":"oGAAA,IAAAA,gBAAAC,QAAA,2BAAA,EAEAC,uBAAAD,QAAA,yBAAA,EAEIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,SAAU,CAAA,C,EAEXC,SAAU,CACTH,KAAMI,M,EAEPC,kBAAmB,CAClBL,KAAMC,M,EAEPK,oBAAqB,CACpBN,KAAMC,M,EAEPM,KAAM,CACLP,KAAMQ,I,EAEPR,KAAM,CACLA,KAAMC,M,EAEPQ,KAAM,CACLT,KAAMC,M,EAEPS,KAAM,CACLV,KAAMC,M,EAEPU,SAAU,CACTX,KAAMY,M,EAEPC,KAAM,CACLb,KAAMC,M,GAQR,SAASa,uBACR,IACOC,EADHlB,uBAAAmB,iBAAmBnB,uBAAAmB,gBAAgBC,UAAS,GAAMtB,gBAAAuB,mBAC/CH,EAAQpB,gBAAAuB,kBAAkBC,OAA6B,CAC5DC,eAAgB,oBAChBtB,OAAQA,OACRuB,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,CAClBC,WAAY,CACXC,UAAW,OACXC,YAAa,UACbC,UAAW,U,EAEZC,mBAAoB,M,EAErBC,UAAW,CAAA,EACXC,cAAe,CAAA,C,CACf,EACDC,QAAAC,iBAAmBrB,EAAMsB,gBACzBF,QAAAC,iBAAiBE,YAAY,CAACjC,kBAAmB,EAAGE,KAAM,CAAC,CAAC,EAC5D4B,QAAAC,iBAAiBE,YAAY,CAACjC,kBAAmB,EAAGC,oBAAqB,EAAGC,KAAM,CAAC,CAAC,GAGpFgC,aAAa,WACZzB,qBAAoB,CACrB,CAAC,CAEH,CAnCWqB,QAAAC,iBAAiE,KAE5EtB,qBAAoB","file":"monitor-function.collection.js","sourcesContent":["import { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { MonitorFunctionModel } from '../models/monitor-function.model';\nimport { ResolveIOServer } from '../resolveio-server-app';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\tmetadata: {\n\t\ttype: Object\n\t},\n\t'metadata.client': {\n\t\ttype: String\n\t},\n\t'metadata.instance': {\n\t\ttype: String\n\t},\n\tdate: {\n\t\ttype: Date\n\t},\n\ttype: {\n\t\ttype: String\n\t},\n\tname: {\n\t\ttype: String\n\t},\n\tuser: {\n\t\ttype: String\n\t},\n\tduration: {\n\t\ttype: Number\n\t},\n\tdata: {\n\t\ttype: String\n\t}\n};\n\nexport let MonitorFunctions: MongoManagerCollection<MonitorFunctionModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB() && MongoManagerModel) {\n\t\tconst model = MongoManagerModel.create<MonitorFunctionModel>({\n\t\t\tcollectionName: 'monitor-functions',\n\t\t\tschema: schema,\n\t\t\tuseVersionCollection: false,\n\t\t\tuseReportBuilder: false,\n\t\t\treportBuilderLookupTables: [],\n\t\t\ttimestamps: false,\n\t\t\tcreateLogs: false,\n\t\t\tcheckSchema: false,\n\t\t\tcollectionOptions: {\n\t\t\t\ttimeseries: {\n\t\t\t\t\ttimeField: 'date',\n\t\t\t\t\tgranularity: 'seconds',\n\t\t\t\t\tmetaField: 'metadata'\n\t\t\t\t},\n\t\t\t\texpireAfterSeconds: 60 * 60 * 24 * 3\n\t\t\t},\n\t\t\tskipCache: true,\n\t\t\tbypassSession: true\n\t\t});\n\t\tMonitorFunctions = model.collection_main;\n\t\tMonitorFunctions.createIndex({'metadata.client': 1, date: 1});\n\t\tMonitorFunctions.createIndex({'metadata.client': 1, 'metadata.instance': 1, date: 1});\n\t}\n\telse {\n\t\tsetImmediate(() => {\n\t\t\tinitializeCollection();\n\t\t});\n\t}\n}"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/collections/monitor-memory.collection.ts"],"names":["mongo_manager_1","require","resolveio_server_app_1","schema","_id","type","String","optional","metadata","Object","metadata.client","metadata.instance","date","Date","physical_total","Number","physical_used","physical_free","virtual","private","physical","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","create","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","timeseries","timeField","granularity","metaField","expireAfterSeconds","skipCache","bypassSession","exports","MonitorMemorys","collection_main","createIndex","setImmediate"],"mappings":"kGACA,IAAAA,gBAAAC,QAAA,2BAAA,EAEAC,uBAAAD,QAAA,yBAAA,EAEIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,SAAU,CAAA,C,EAEXC,SAAU,CACTH,KAAMI,M,EAEPC,kBAAmB,CAClBL,KAAMC,M,EAEPK,oBAAqB,CACpBN,KAAMC,M,EAEPM,KAAM,CACLP,KAAMQ,I,EAEPC,eAAgB,CACfT,KAAMU,M,EAEPC,cAAe,CACdX,KAAMU,M,EAEPE,cAAe,CACdZ,KAAMU,M,EAEPG,QAAS,CACRb,KAAMU,M,EAEPI,QAAS,CACRd,KAAMU,M,EAEPK,SAAU,CACTf,KAAMU,M,GAQR,SAASM,uBACR,IACOC,EADHpB,uBAAAqB,iBAAmBrB,uBAAAqB,gBAAgBC,UAAS,GAAMxB,gBAAAyB,mBAC/CH,EAAQtB,gBAAAyB,kBAAkBC,OAA2B,CAC1DC,eAAgB,kBAChBxB,OAAQA,OACRyB,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,CAClBC,WAAY,CACXC,UAAW,OACXC,YAAa,UACbC,UAAW,U,EAEZC,mBAAoB,M,EAErBC,UAAW,CAAA,EACXC,cAAe,CAAA,C,CACf,EACDC,QAAAC,eAAiBrB,EAAMsB,gBACvBF,QAAAC,eAAeE,YAAY,CAACnC,kBAAmB,EAAGE,KAAM,CAAC,CAAC,EAC1D8B,QAAAC,eAAeE,YAAY,CAACnC,kBAAmB,EAAGC,oBAAqB,EAAGC,KAAM,CAAC,CAAC,GAGlFkC,aAAa,WACZzB,qBAAoB,CACrB,CAAC,CAEH,CAnCWqB,QAAAC,eAA6D,KAExEtB,qBAAoB","file":"monitor-memory.collection.js","sourcesContent":["/* eslint-disable @typescript-eslint/no-floating-promises */\nimport { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { MonitorMemoryModel } from '../models/monitor-memory.model';\nimport { ResolveIOServer } from '../resolveio-server-app';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\tmetadata: {\n\t\ttype: Object\n\t},\n\t'metadata.client': {\n\t\ttype: String\n\t},\n\t'metadata.instance': {\n\t\ttype: String\n\t},\n\tdate: {\n\t\ttype: Date\n\t},\n\tphysical_total: {\n\t\ttype: Number\n\t},\n\tphysical_used: {\n\t\ttype: Number\n\t},\n\tphysical_free: {\n\t\ttype: Number\n\t},\n\tvirtual: {\n\t\ttype: Number\n\t},\n\tprivate: {\n\t\ttype: Number\n\t},\n\tphysical: {\n\t\ttype: Number\n\t}\n};\n\nexport let MonitorMemorys: MongoManagerCollection<MonitorMemoryModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB() && MongoManagerModel) {\n\t\tconst model = MongoManagerModel.create<MonitorMemoryModel>({\n\t\t\tcollectionName: 'monitor-memorys',\n\t\t\tschema: schema,\n\t\t\tuseVersionCollection: false,\n\t\t\tuseReportBuilder: false,\n\t\t\treportBuilderLookupTables: [],\n\t\t\ttimestamps: false,\n\t\t\tcreateLogs: false,\n\t\t\tcheckSchema: false,\n\t\t\tcollectionOptions: {\n\t\t\t\ttimeseries: {\n\t\t\t\t\ttimeField: 'date',\n\t\t\t\t\tgranularity: 'seconds',\n\t\t\t\t\tmetaField: 'metadata'\n\t\t\t\t},\n\t\t\t\texpireAfterSeconds: 60 * 60 * 24 * 3\n\t\t\t},\n\t\t\tskipCache: true,\n\t\t\tbypassSession: true\n\t\t});\n\t\tMonitorMemorys = model.collection_main;\n\t\tMonitorMemorys.createIndex({'metadata.client': 1, date: 1});\n\t\tMonitorMemorys.createIndex({'metadata.client': 1, 'metadata.instance': 1, date: 1});\n\t}\n\telse {\n\t\tsetImmediate(() => {\n\t\t\tinitializeCollection();\n\t\t});\n\t}\n}"]}
1
+ {"version":3,"sources":["../../src/collections/monitor-memory.collection.ts"],"names":["mongo_manager_1","require","resolveio_server_app_1","schema","_id","type","String","optional","metadata","Object","metadata.client","metadata.instance","date","Date","physical_total","Number","physical_used","physical_free","virtual","private","physical","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","create","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","timeseries","timeField","granularity","metaField","expireAfterSeconds","skipCache","bypassSession","exports","MonitorMemorys","collection_main","createIndex","setImmediate"],"mappings":"kGAAA,IAAAA,gBAAAC,QAAA,2BAAA,EAEAC,uBAAAD,QAAA,yBAAA,EAEIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,SAAU,CAAA,C,EAEXC,SAAU,CACTH,KAAMI,M,EAEPC,kBAAmB,CAClBL,KAAMC,M,EAEPK,oBAAqB,CACpBN,KAAMC,M,EAEPM,KAAM,CACLP,KAAMQ,I,EAEPC,eAAgB,CACfT,KAAMU,M,EAEPC,cAAe,CACdX,KAAMU,M,EAEPE,cAAe,CACdZ,KAAMU,M,EAEPG,QAAS,CACRb,KAAMU,M,EAEPI,QAAS,CACRd,KAAMU,M,EAEPK,SAAU,CACTf,KAAMU,M,GAQR,SAASM,uBACR,IACOC,EADHpB,uBAAAqB,iBAAmBrB,uBAAAqB,gBAAgBC,UAAS,GAAMxB,gBAAAyB,mBAC/CH,EAAQtB,gBAAAyB,kBAAkBC,OAA2B,CAC1DC,eAAgB,kBAChBxB,OAAQA,OACRyB,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,CAClBC,WAAY,CACXC,UAAW,OACXC,YAAa,UACbC,UAAW,U,EAEZC,mBAAoB,M,EAErBC,UAAW,CAAA,EACXC,cAAe,CAAA,C,CACf,EACDC,QAAAC,eAAiBrB,EAAMsB,gBACvBF,QAAAC,eAAeE,YAAY,CAACnC,kBAAmB,EAAGE,KAAM,CAAC,CAAC,EAC1D8B,QAAAC,eAAeE,YAAY,CAACnC,kBAAmB,EAAGC,oBAAqB,EAAGC,KAAM,CAAC,CAAC,GAGlFkC,aAAa,WACZzB,qBAAoB,CACrB,CAAC,CAEH,CAnCWqB,QAAAC,eAA6D,KAExEtB,qBAAoB","file":"monitor-memory.collection.js","sourcesContent":["import { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { MonitorMemoryModel } from '../models/monitor-memory.model';\nimport { ResolveIOServer } from '../resolveio-server-app';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\tmetadata: {\n\t\ttype: Object\n\t},\n\t'metadata.client': {\n\t\ttype: String\n\t},\n\t'metadata.instance': {\n\t\ttype: String\n\t},\n\tdate: {\n\t\ttype: Date\n\t},\n\tphysical_total: {\n\t\ttype: Number\n\t},\n\tphysical_used: {\n\t\ttype: Number\n\t},\n\tphysical_free: {\n\t\ttype: Number\n\t},\n\tvirtual: {\n\t\ttype: Number\n\t},\n\tprivate: {\n\t\ttype: Number\n\t},\n\tphysical: {\n\t\ttype: Number\n\t}\n};\n\nexport let MonitorMemorys: MongoManagerCollection<MonitorMemoryModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB() && MongoManagerModel) {\n\t\tconst model = MongoManagerModel.create<MonitorMemoryModel>({\n\t\t\tcollectionName: 'monitor-memorys',\n\t\t\tschema: schema,\n\t\t\tuseVersionCollection: false,\n\t\t\tuseReportBuilder: false,\n\t\t\treportBuilderLookupTables: [],\n\t\t\ttimestamps: false,\n\t\t\tcreateLogs: false,\n\t\t\tcheckSchema: false,\n\t\t\tcollectionOptions: {\n\t\t\t\ttimeseries: {\n\t\t\t\t\ttimeField: 'date',\n\t\t\t\t\tgranularity: 'seconds',\n\t\t\t\t\tmetaField: 'metadata'\n\t\t\t\t},\n\t\t\t\texpireAfterSeconds: 60 * 60 * 24 * 3\n\t\t\t},\n\t\t\tskipCache: true,\n\t\t\tbypassSession: true\n\t\t});\n\t\tMonitorMemorys = model.collection_main;\n\t\tMonitorMemorys.createIndex({'metadata.client': 1, date: 1});\n\t\tMonitorMemorys.createIndex({'metadata.client': 1, 'metadata.instance': 1, date: 1});\n\t}\n\telse {\n\t\tsetImmediate(() => {\n\t\t\tinitializeCollection();\n\t\t});\n\t}\n}"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/collections/monitor-mongo.collection.ts"],"names":["mongo_manager_1","require","resolveio_server_app_1","schema","_id","type","String","optional","metadata","Object","metadata.client","metadata.instance","date","Date","method","doc_collection","duration","Number","query","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","create","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","timeseries","timeField","granularity","metaField","expireAfterSeconds","skipCache","bypassSession","exports","MonitorMongos","collection_main","createIndex","setImmediate"],"mappings":"iGACA,IAAAA,gBAAAC,QAAA,2BAAA,EAEAC,uBAAAD,QAAA,yBAAA,EAEIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,SAAU,CAAA,C,EAEXC,SAAU,CACTH,KAAMI,M,EAEPC,kBAAmB,CAClBL,KAAMC,M,EAEPK,oBAAqB,CACpBN,KAAMC,M,EAEPM,KAAM,CACLP,KAAMQ,I,EAEPC,OAAQ,CACPT,KAAMC,M,EAEPS,eAAgB,CACfV,KAAMC,M,EAEPU,SAAU,CACTX,KAAMY,M,EAEPC,MAAO,CACNb,KAAMC,M,GAQR,SAASa,uBACR,IACOC,EADHlB,uBAAAmB,iBAAmBnB,uBAAAmB,gBAAgBC,UAAS,GAAMtB,gBAAAuB,mBAC/CH,EAAQpB,gBAAAuB,kBAAkBC,OAA0B,CACzDC,eAAgB,iBAChBtB,OAAQA,OACRuB,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,CAClBC,WAAY,CACXC,UAAW,OACXC,YAAa,UACbC,UAAW,U,EAEZC,mBAAoB,M,EAErBC,UAAW,CAAA,EACXC,cAAe,CAAA,C,CACf,EACDC,QAAAC,cAAgBrB,EAAMsB,gBACtBF,QAAAC,cAAcE,YAAY,CAACjC,kBAAmB,EAAGE,KAAM,CAAC,CAAC,EACzD4B,QAAAC,cAAcE,YAAY,CAACjC,kBAAmB,EAAGC,oBAAqB,EAAGC,KAAM,CAAC,CAAC,GAGjFgC,aAAa,WACZzB,qBAAoB,CACrB,CAAC,CAEH,CAnCWqB,QAAAC,cAA2D,KAEtEtB,qBAAoB","file":"monitor-mongo.collection.js","sourcesContent":["/* eslint-disable @typescript-eslint/no-floating-promises */\nimport { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { MonitorMongoModel } from '../models/monitor-mongo.model';\nimport { ResolveIOServer } from '../resolveio-server-app';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\tmetadata: {\n\t\ttype: Object\n\t},\n\t'metadata.client': {\n\t\ttype: String\n\t},\n\t'metadata.instance': {\n\t\ttype: String\n\t},\n\tdate: {\n\t\ttype: Date\n\t},\n\tmethod: {\n\t\ttype: String\n\t},\n\tdoc_collection: {\n\t\ttype: String\n\t},\n\tduration: {\n\t\ttype: Number\n\t},\n\tquery: {\n\t\ttype: String\n\t}\n};\n\nexport let MonitorMongos: MongoManagerCollection<MonitorMongoModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB() && MongoManagerModel) {\n\t\tconst model = MongoManagerModel.create<MonitorMongoModel>({\n\t\t\tcollectionName: 'monitor-mongos',\n\t\t\tschema: schema,\n\t\t\tuseVersionCollection: false,\n\t\t\tuseReportBuilder: false,\n\t\t\treportBuilderLookupTables: [],\n\t\t\ttimestamps: false,\n\t\t\tcreateLogs: false,\n\t\t\tcheckSchema: false,\n\t\t\tcollectionOptions: {\n\t\t\t\ttimeseries: {\n\t\t\t\t\ttimeField: 'date',\n\t\t\t\t\tgranularity: 'seconds',\n\t\t\t\t\tmetaField: 'metadata'\n\t\t\t\t},\n\t\t\t\texpireAfterSeconds: 60 * 60 * 24 * 3\n\t\t\t},\n\t\t\tskipCache: true,\n\t\t\tbypassSession: true\n\t\t});\n\t\tMonitorMongos = model.collection_main;\n\t\tMonitorMongos.createIndex({'metadata.client': 1, date: 1});\n\t\tMonitorMongos.createIndex({'metadata.client': 1, 'metadata.instance': 1, date: 1});\n\t}\n\telse {\n\t\tsetImmediate(() => {\n\t\t\tinitializeCollection();\n\t\t});\n\t}\n}"]}
1
+ {"version":3,"sources":["../../src/collections/monitor-mongo.collection.ts"],"names":["mongo_manager_1","require","resolveio_server_app_1","schema","_id","type","String","optional","metadata","Object","metadata.client","metadata.instance","date","Date","method","doc_collection","duration","Number","query","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","create","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","timeseries","timeField","granularity","metaField","expireAfterSeconds","skipCache","bypassSession","exports","MonitorMongos","collection_main","createIndex","setImmediate"],"mappings":"iGAAA,IAAAA,gBAAAC,QAAA,2BAAA,EAEAC,uBAAAD,QAAA,yBAAA,EAEIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,SAAU,CAAA,C,EAEXC,SAAU,CACTH,KAAMI,M,EAEPC,kBAAmB,CAClBL,KAAMC,M,EAEPK,oBAAqB,CACpBN,KAAMC,M,EAEPM,KAAM,CACLP,KAAMQ,I,EAEPC,OAAQ,CACPT,KAAMC,M,EAEPS,eAAgB,CACfV,KAAMC,M,EAEPU,SAAU,CACTX,KAAMY,M,EAEPC,MAAO,CACNb,KAAMC,M,GAQR,SAASa,uBACR,IACOC,EADHlB,uBAAAmB,iBAAmBnB,uBAAAmB,gBAAgBC,UAAS,GAAMtB,gBAAAuB,mBAC/CH,EAAQpB,gBAAAuB,kBAAkBC,OAA0B,CACzDC,eAAgB,iBAChBtB,OAAQA,OACRuB,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,CAClBC,WAAY,CACXC,UAAW,OACXC,YAAa,UACbC,UAAW,U,EAEZC,mBAAoB,M,EAErBC,UAAW,CAAA,EACXC,cAAe,CAAA,C,CACf,EACDC,QAAAC,cAAgBrB,EAAMsB,gBACtBF,QAAAC,cAAcE,YAAY,CAACjC,kBAAmB,EAAGE,KAAM,CAAC,CAAC,EACzD4B,QAAAC,cAAcE,YAAY,CAACjC,kBAAmB,EAAGC,oBAAqB,EAAGC,KAAM,CAAC,CAAC,GAGjFgC,aAAa,WACZzB,qBAAoB,CACrB,CAAC,CAEH,CAnCWqB,QAAAC,cAA2D,KAEtEtB,qBAAoB","file":"monitor-mongo.collection.js","sourcesContent":["import { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { MonitorMongoModel } from '../models/monitor-mongo.model';\nimport { ResolveIOServer } from '../resolveio-server-app';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\tmetadata: {\n\t\ttype: Object\n\t},\n\t'metadata.client': {\n\t\ttype: String\n\t},\n\t'metadata.instance': {\n\t\ttype: String\n\t},\n\tdate: {\n\t\ttype: Date\n\t},\n\tmethod: {\n\t\ttype: String\n\t},\n\tdoc_collection: {\n\t\ttype: String\n\t},\n\tduration: {\n\t\ttype: Number\n\t},\n\tquery: {\n\t\ttype: String\n\t}\n};\n\nexport let MonitorMongos: MongoManagerCollection<MonitorMongoModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB() && MongoManagerModel) {\n\t\tconst model = MongoManagerModel.create<MonitorMongoModel>({\n\t\t\tcollectionName: 'monitor-mongos',\n\t\t\tschema: schema,\n\t\t\tuseVersionCollection: false,\n\t\t\tuseReportBuilder: false,\n\t\t\treportBuilderLookupTables: [],\n\t\t\ttimestamps: false,\n\t\t\tcreateLogs: false,\n\t\t\tcheckSchema: false,\n\t\t\tcollectionOptions: {\n\t\t\t\ttimeseries: {\n\t\t\t\t\ttimeField: 'date',\n\t\t\t\t\tgranularity: 'seconds',\n\t\t\t\t\tmetaField: 'metadata'\n\t\t\t\t},\n\t\t\t\texpireAfterSeconds: 60 * 60 * 24 * 3\n\t\t\t},\n\t\t\tskipCache: true,\n\t\t\tbypassSession: true\n\t\t});\n\t\tMonitorMongos = model.collection_main;\n\t\tMonitorMongos.createIndex({'metadata.client': 1, date: 1});\n\t\tMonitorMongos.createIndex({'metadata.client': 1, 'metadata.instance': 1, date: 1});\n\t}\n\telse {\n\t\tsetImmediate(() => {\n\t\t\tinitializeCollection();\n\t\t});\n\t}\n}"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/collections/notification.collection.ts"],"names":["mongo_manager_1","require","resolveio_server_app_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","name","config","Object","blackbox","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","create","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","exports","Notifications","collection_main","createIndex","unique","setImmediate"],"mappings":"iGACA,IAAAA,gBAAAC,QAAA,2BAAA,EAEAC,uBAAAD,QAAA,yBAAA,EAEIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,SAAU,CAAA,C,EAEXC,IAAK,CACJH,KAAMI,OACNF,SAAU,CAAA,C,EAEXG,UAAW,CACVL,KAAMM,KACNJ,SAAU,CAAA,C,EAEXK,UAAW,CACVP,KAAMM,KACNJ,SAAU,CAAA,C,EAEXM,KAAM,CACLR,KAAMC,M,EAEPQ,OAAQ,CACPT,KAAMU,OACNC,SAAU,CAAA,EACVT,SAAU,CAAA,C,GAQZ,SAASU,uBACR,IACOC,EADHhB,uBAAAiB,iBAAmBjB,uBAAAiB,gBAAgBC,UAAS,GAAMpB,gBAAAqB,mBAC/CH,EAAQlB,gBAAAqB,kBAAkBC,OAA0B,CACzDC,eAAgB,gBAChBpB,OAAQA,OACRqB,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,I,CACnB,EACDC,QAAAC,cAAgBd,EAAMe,gBACtBF,QAAAC,cAAcE,YAAY,CAACrB,KAAM,CAAC,EAAG,CAACsB,OAAQ,CAAA,CAAI,CAAC,GAGnDC,aAAa,WACZnB,qBAAoB,CACrB,CAAC,CAEH,CAzBWc,QAAAC,cAA2D,KAEtEf,qBAAoB","file":"notification.collection.js","sourcesContent":["/* eslint-disable @typescript-eslint/no-floating-promises */\nimport { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { NotificationModel } from '../models/notification.model';\nimport { ResolveIOServer } from '../resolveio-server-app';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t__v: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tupdatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcreatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tname: {\n\t\ttype: String\n\t},\n\tconfig: {\n\t\ttype: Object,\n\t\tblackbox: true,\n\t\toptional: true\n\t}\n};\n\nexport let Notifications: MongoManagerCollection<NotificationModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB() && MongoManagerModel) {\n\t\tconst model = MongoManagerModel.create<NotificationModel>({\n\t\t\tcollectionName: 'notifications',\n\t\t\tschema: schema,\n\t\t\tuseVersionCollection: false,\n\t\t\tuseReportBuilder: false,\n\t\t\treportBuilderLookupTables: [],\n\t\t\ttimestamps: true,\n\t\t\tcreateLogs: false,\n\t\t\tcheckSchema: true,\n\t\t\tcollectionOptions: null\n\t\t});\n\t\tNotifications = model.collection_main;\n\t\tNotifications.createIndex({name: 1}, {unique: true});\n\t}\n\telse {\n\t\tsetImmediate(() => {\n\t\t\tinitializeCollection();\n\t\t});\n\t}\n}"]}
1
+ {"version":3,"sources":["../../src/collections/notification.collection.ts"],"names":["mongo_manager_1","require","resolveio_server_app_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","name","config","Object","blackbox","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","create","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","exports","Notifications","collection_main","createIndex","unique","setImmediate"],"mappings":"iGAAA,IAAAA,gBAAAC,QAAA,2BAAA,EAEAC,uBAAAD,QAAA,yBAAA,EAEIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,SAAU,CAAA,C,EAEXC,IAAK,CACJH,KAAMI,OACNF,SAAU,CAAA,C,EAEXG,UAAW,CACVL,KAAMM,KACNJ,SAAU,CAAA,C,EAEXK,UAAW,CACVP,KAAMM,KACNJ,SAAU,CAAA,C,EAEXM,KAAM,CACLR,KAAMC,M,EAEPQ,OAAQ,CACPT,KAAMU,OACNC,SAAU,CAAA,EACVT,SAAU,CAAA,C,GAQZ,SAASU,uBACR,IACOC,EADHhB,uBAAAiB,iBAAmBjB,uBAAAiB,gBAAgBC,UAAS,GAAMpB,gBAAAqB,mBAC/CH,EAAQlB,gBAAAqB,kBAAkBC,OAA0B,CACzDC,eAAgB,gBAChBpB,OAAQA,OACRqB,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,I,CACnB,EACDC,QAAAC,cAAgBd,EAAMe,gBACtBF,QAAAC,cAAcE,YAAY,CAACrB,KAAM,CAAC,EAAG,CAACsB,OAAQ,CAAA,CAAI,CAAC,GAGnDC,aAAa,WACZnB,qBAAoB,CACrB,CAAC,CAEH,CAzBWc,QAAAC,cAA2D,KAEtEf,qBAAoB","file":"notification.collection.js","sourcesContent":["import { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { NotificationModel } from '../models/notification.model';\nimport { ResolveIOServer } from '../resolveio-server-app';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t__v: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tupdatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcreatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tname: {\n\t\ttype: String\n\t},\n\tconfig: {\n\t\ttype: Object,\n\t\tblackbox: true,\n\t\toptional: true\n\t}\n};\n\nexport let Notifications: MongoManagerCollection<NotificationModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB() && MongoManagerModel) {\n\t\tconst model = MongoManagerModel.create<NotificationModel>({\n\t\t\tcollectionName: 'notifications',\n\t\t\tschema: schema,\n\t\t\tuseVersionCollection: false,\n\t\t\tuseReportBuilder: false,\n\t\t\treportBuilderLookupTables: [],\n\t\t\ttimestamps: true,\n\t\t\tcreateLogs: false,\n\t\t\tcheckSchema: true,\n\t\t\tcollectionOptions: null\n\t\t});\n\t\tNotifications = model.collection_main;\n\t\tNotifications.createIndex({name: 1}, {unique: true});\n\t}\n\telse {\n\t\tsetImmediate(() => {\n\t\t\tinitializeCollection();\n\t\t});\n\t}\n}"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/collections/report-builder-dashboard-builder.collection.ts"],"names":["mongo_manager_1","require","resolveio_server_app_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","name","date_created","id_user_created","user_created","num_rows","num_columns","report_rows","Array","report_rows.$","Object","report_rows.$.report_columns","report_rows.$.report_columns.$","report_rows.$.report_columns.$.id_report","report_rows.$.report_columns.$.report_name","report_rows.$.report_columns.$.report_type","report_rows.$.report_columns.$.display_type","report_rows.$.report_columns.$.display_values","report_rows.$.report_columns.$.display_values.$","report_rows.$.report_columns.$.display_text","report_rows.$.report_columns.$.display_value","other","blackbox","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","create","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","exports","ReportBuilderDashboardBuilders","collection_main","createIndex","setImmediate"],"mappings":"kHACA,IAAAA,gBAAAC,QAAA,2BAAA,EAEAC,uBAAAD,QAAA,yBAAA,EAEIE,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,aAAc,CACbT,KAAMM,I,EAEPI,gBAAiB,CAChBV,KAAMC,M,EAEPU,aAAc,CACbX,KAAMC,M,EAEPW,SAAU,CACTZ,KAAMI,M,EAEPS,YAAa,CACZb,KAAMI,M,EAEPU,YAAa,CACZd,KAAMe,K,EAEPC,gBAAiB,CAChBhB,KAAMiB,M,EAEPC,+BAAgC,CAC/BlB,KAAMe,K,EAEPI,iCAAkC,CACjCnB,KAAMiB,M,EAEPG,2CAA4C,CAC3CpB,KAAMC,M,EAEPoB,6CAA8C,CAC7CrB,KAAMC,M,EAEPqB,6CAA8C,CAC7CtB,KAAMC,M,EAEPsB,8CAA+C,CAC9CvB,KAAMC,M,EAEPuB,gDAAiD,CAChDxB,KAAMe,K,EAEPU,kDAAmD,CAClDzB,KAAMC,M,EAEPyB,8CAA+C,CAC9C1B,KAAMC,M,EAEP0B,+CAAgD,CAC/C3B,KAAMC,M,EAEP2B,MAAO,CACN5B,KAAMiB,OACNY,SAAU,CAAA,EACV3B,SAAU,CAAA,C,GAQZ,SAAS4B,uBACR,IACOC,EADHlC,uBAAAmC,iBAAmBnC,uBAAAmC,gBAAgBC,UAAS,GAAMtC,gBAAAuC,mBAC/CH,EAAQpC,gBAAAuC,kBAAkBC,OAA2C,CAC1EC,eAAgB,oCAChBtC,OAAQA,OACRuC,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,I,CACnB,EACDC,QAAAC,+BAAiCd,EAAMe,gBACvCF,QAAAC,+BAA+BE,YAAY,CAACvC,KAAM,CAAC,CAAC,EACpDoC,QAAAC,+BAA+BE,YAAY,CAACtC,aAAc,CAAC,CAAC,GAG5DuC,aAAa,WACZlB,qBAAoB,CACrB,CAAC,CAEH,CA1BWc,QAAAC,+BAA6F,KAExGf,qBAAoB","file":"report-builder-dashboard-builder.collection.js","sourcesContent":["/* eslint-disable @typescript-eslint/no-floating-promises */\nimport { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { ReportBuilderDashboardBuilderModel } from '../models/report-builder-dashboard-builder.model';\nimport { ResolveIOServer } from '../resolveio-server-app';\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\tdate_created: {\n\t\ttype: Date\n\t},\n\tid_user_created: {\n\t\ttype: String\n\t},\n\tuser_created: {\n\t\ttype: String\n\t},\n\tnum_rows: {\n\t\ttype: Number\n\t},\n\tnum_columns: {\n\t\ttype: Number\n\t},\n\treport_rows: {\n\t\ttype: Array\n\t},\n\t'report_rows.$': {\n\t\ttype: Object\n\t},\n\t'report_rows.$.report_columns': {\n\t\ttype: Array\n\t},\n\t'report_rows.$.report_columns.$': {\n\t\ttype: Object\n\t},\n\t'report_rows.$.report_columns.$.id_report': {\n\t\ttype: String\n\t},\n\t'report_rows.$.report_columns.$.report_name': {\n\t\ttype: String\n\t},\n\t'report_rows.$.report_columns.$.report_type': {\n\t\ttype: String\n\t},\n\t'report_rows.$.report_columns.$.display_type': {\n\t\ttype: String\n\t},\n\t'report_rows.$.report_columns.$.display_values': {\n\t\ttype: Array\n\t},\n\t'report_rows.$.report_columns.$.display_values.$': {\n\t\ttype: String\n\t},\n\t'report_rows.$.report_columns.$.display_text': {\n\t\ttype: String\n\t},\n\t'report_rows.$.report_columns.$.display_value': {\n\t\ttype: String\n\t},\n\tother: {\n\t\ttype: Object,\n\t\tblackbox: true,\n\t\toptional: true\n\t}\n};\n\nexport let ReportBuilderDashboardBuilders: MongoManagerCollection<ReportBuilderDashboardBuilderModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB() && MongoManagerModel) {\n\t\tconst model = MongoManagerModel.create<ReportBuilderDashboardBuilderModel>({\n\t\t\tcollectionName: 'report-builder-dashboard-builders',\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: true,\n\t\t\tcheckSchema: true,\n\t\t\tcollectionOptions: null\n\t\t});\n\t\tReportBuilderDashboardBuilders = model.collection_main;\n\t\tReportBuilderDashboardBuilders.createIndex({name: 1});\n\t\tReportBuilderDashboardBuilders.createIndex({date_created: 1});\n\t}\n\telse {\n\t\tsetImmediate(() => {\n\t\t\tinitializeCollection();\n\t\t});\n\t}\n}"]}
1
+ {"version":3,"sources":["../../src/collections/report-builder-dashboard-builder.collection.ts"],"names":["mongo_manager_1","require","resolveio_server_app_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","name","date_created","id_user_created","user_created","num_rows","num_columns","report_rows","Array","report_rows.$","Object","report_rows.$.report_columns","report_rows.$.report_columns.$","report_rows.$.report_columns.$.id_report","report_rows.$.report_columns.$.report_name","report_rows.$.report_columns.$.report_type","report_rows.$.report_columns.$.display_type","report_rows.$.report_columns.$.display_values","report_rows.$.report_columns.$.display_values.$","report_rows.$.report_columns.$.display_text","report_rows.$.report_columns.$.display_value","other","blackbox","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","create","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","exports","ReportBuilderDashboardBuilders","collection_main","createIndex","setImmediate"],"mappings":"kHAAA,IAAAA,gBAAAC,QAAA,2BAAA,EAEAC,uBAAAD,QAAA,yBAAA,EAEIE,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,aAAc,CACbT,KAAMM,I,EAEPI,gBAAiB,CAChBV,KAAMC,M,EAEPU,aAAc,CACbX,KAAMC,M,EAEPW,SAAU,CACTZ,KAAMI,M,EAEPS,YAAa,CACZb,KAAMI,M,EAEPU,YAAa,CACZd,KAAMe,K,EAEPC,gBAAiB,CAChBhB,KAAMiB,M,EAEPC,+BAAgC,CAC/BlB,KAAMe,K,EAEPI,iCAAkC,CACjCnB,KAAMiB,M,EAEPG,2CAA4C,CAC3CpB,KAAMC,M,EAEPoB,6CAA8C,CAC7CrB,KAAMC,M,EAEPqB,6CAA8C,CAC7CtB,KAAMC,M,EAEPsB,8CAA+C,CAC9CvB,KAAMC,M,EAEPuB,gDAAiD,CAChDxB,KAAMe,K,EAEPU,kDAAmD,CAClDzB,KAAMC,M,EAEPyB,8CAA+C,CAC9C1B,KAAMC,M,EAEP0B,+CAAgD,CAC/C3B,KAAMC,M,EAEP2B,MAAO,CACN5B,KAAMiB,OACNY,SAAU,CAAA,EACV3B,SAAU,CAAA,C,GAQZ,SAAS4B,uBACR,IACOC,EADHlC,uBAAAmC,iBAAmBnC,uBAAAmC,gBAAgBC,UAAS,GAAMtC,gBAAAuC,mBAC/CH,EAAQpC,gBAAAuC,kBAAkBC,OAA2C,CAC1EC,eAAgB,oCAChBtC,OAAQA,OACRuC,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,I,CACnB,EACDC,QAAAC,+BAAiCd,EAAMe,gBACvCF,QAAAC,+BAA+BE,YAAY,CAACvC,KAAM,CAAC,CAAC,EACpDoC,QAAAC,+BAA+BE,YAAY,CAACtC,aAAc,CAAC,CAAC,GAG5DuC,aAAa,WACZlB,qBAAoB,CACrB,CAAC,CAEH,CA1BWc,QAAAC,+BAA6F,KAExGf,qBAAoB","file":"report-builder-dashboard-builder.collection.js","sourcesContent":["import { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { ReportBuilderDashboardBuilderModel } from '../models/report-builder-dashboard-builder.model';\nimport { ResolveIOServer } from '../resolveio-server-app';\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\tdate_created: {\n\t\ttype: Date\n\t},\n\tid_user_created: {\n\t\ttype: String\n\t},\n\tuser_created: {\n\t\ttype: String\n\t},\n\tnum_rows: {\n\t\ttype: Number\n\t},\n\tnum_columns: {\n\t\ttype: Number\n\t},\n\treport_rows: {\n\t\ttype: Array\n\t},\n\t'report_rows.$': {\n\t\ttype: Object\n\t},\n\t'report_rows.$.report_columns': {\n\t\ttype: Array\n\t},\n\t'report_rows.$.report_columns.$': {\n\t\ttype: Object\n\t},\n\t'report_rows.$.report_columns.$.id_report': {\n\t\ttype: String\n\t},\n\t'report_rows.$.report_columns.$.report_name': {\n\t\ttype: String\n\t},\n\t'report_rows.$.report_columns.$.report_type': {\n\t\ttype: String\n\t},\n\t'report_rows.$.report_columns.$.display_type': {\n\t\ttype: String\n\t},\n\t'report_rows.$.report_columns.$.display_values': {\n\t\ttype: Array\n\t},\n\t'report_rows.$.report_columns.$.display_values.$': {\n\t\ttype: String\n\t},\n\t'report_rows.$.report_columns.$.display_text': {\n\t\ttype: String\n\t},\n\t'report_rows.$.report_columns.$.display_value': {\n\t\ttype: String\n\t},\n\tother: {\n\t\ttype: Object,\n\t\tblackbox: true,\n\t\toptional: true\n\t}\n};\n\nexport let ReportBuilderDashboardBuilders: MongoManagerCollection<ReportBuilderDashboardBuilderModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB() && MongoManagerModel) {\n\t\tconst model = MongoManagerModel.create<ReportBuilderDashboardBuilderModel>({\n\t\t\tcollectionName: 'report-builder-dashboard-builders',\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: true,\n\t\t\tcheckSchema: true,\n\t\t\tcollectionOptions: null\n\t\t});\n\t\tReportBuilderDashboardBuilders = model.collection_main;\n\t\tReportBuilderDashboardBuilders.createIndex({name: 1});\n\t\tReportBuilderDashboardBuilders.createIndex({date_created: 1});\n\t}\n\telse {\n\t\tsetImmediate(() => {\n\t\t\tinitializeCollection();\n\t\t});\n\t}\n}"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/collections/report-builder-library.collection.ts"],"names":["mongo_manager_1","require","resolveio_server_app_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","name","id_user_create","user_create","date","reports","Array","reports.$","Object","reports.$.id_report","reports.$.report","user_groups","user_groups.$","user_groups.$.id_user_group","user_groups.$.user_group","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","create","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","exports","ReportBuilderLibraries","collection_main","createIndex","user_groups.id_user_group","setImmediate"],"mappings":"0GACA,IAAAA,gBAAAC,QAAA,2BAAA,EAEAC,uBAAAD,QAAA,yBAAA,EAEIE,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,eAAgB,CACfT,KAAMC,M,EAEPS,YAAa,CACZV,KAAMC,M,EAEPU,KAAM,CACLX,KAAMM,I,EAEPM,QAAS,CACRZ,KAAMa,K,EAEPC,YAAa,CACZd,KAAMe,M,EAEPC,sBAAuB,CACtBhB,KAAMC,M,EAEPgB,mBAAoB,CACnBjB,KAAMC,M,EAEPiB,YAAa,CACZlB,KAAMa,K,EAEPM,gBAAiB,CAChBnB,KAAMe,M,EAEPK,8BAA+B,CAC9BpB,KAAMC,M,EAEPoB,2BAA4B,CAC3BrB,KAAMC,M,GAUR,SAASqB,uBACR,IACOC,EADH1B,uBAAA2B,iBAAmB3B,uBAAA2B,gBAAgBC,UAAS,GAAM9B,gBAAA+B,mBAC/CH,EAAQ5B,gBAAA+B,kBAAkBC,OAAkC,CACjEC,eAAgB,2BAChB9B,OAAQA,OACR+B,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,I,CACnB,EACDC,QAAAC,uBAAyBd,EAAMe,gBAC/BF,QAAAC,uBAAuBE,YAAY,CAAC/B,KAAM,CAAC,CAAC,EAC5C4B,QAAAC,uBAAuBE,YAAY,CAAC9B,eAAgB,CAAC,CAAC,EACtD2B,QAAAC,uBAAuBE,YAAY,CAACC,4BAA6B,CAAC,CAAC,GAGnEC,aAAa,WACZnB,qBAAoB,CACrB,CAAC,CAEH,CA3BWc,QAAAC,uBAA4E,KAEvFf,qBAAoB","file":"report-builder-library.collection.js","sourcesContent":["/* eslint-disable @typescript-eslint/no-floating-promises */\nimport { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { ReportBuilderLibraryModel } from '../models/report-builder-library.model';\nimport { ResolveIOServer } from '../resolveio-server-app';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t__v: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tupdatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcreatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tname: {\n\t\ttype: String\n\t},\n\tid_user_create: {\n\t\ttype: String\n\t},\n\tuser_create: {\n\t\ttype: String\n\t},\n\tdate: {\n\t\ttype: Date\n\t},\n\treports: {\n\t\ttype: Array\n\t},\n\t'reports.$': {\n\t\ttype: Object\n\t},\n\t'reports.$.id_report': {\n\t\ttype: String\n\t},\n\t'reports.$.report': {\n\t\ttype: String\n\t},\n\tuser_groups: {\n\t\ttype: Array\n\t},\n\t'user_groups.$': {\n\t\ttype: Object\n\t},\n\t'user_groups.$.id_user_group': {\n\t\ttype: String\n\t},\n\t'user_groups.$.user_group': {\n\t\ttype: String\n\t}\n};\n\n\n\nexport let ReportBuilderLibraries: MongoManagerCollection<ReportBuilderLibraryModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB() && MongoManagerModel) {\n\t\tconst model = MongoManagerModel.create<ReportBuilderLibraryModel>({\n\t\t\tcollectionName: 'report-builder-libraries',\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: true,\n\t\t\tcheckSchema: true,\n\t\t\tcollectionOptions: null\n\t\t});\n\t\tReportBuilderLibraries = model.collection_main;\n\t\tReportBuilderLibraries.createIndex({name: 1});\n\t\tReportBuilderLibraries.createIndex({id_user_create: 1});\n\t\tReportBuilderLibraries.createIndex({'user_groups.id_user_group': 1});\n\t}\n\telse {\n\t\tsetImmediate(() => {\n\t\t\tinitializeCollection();\n\t\t});\n\t}\n}"]}
1
+ {"version":3,"sources":["../../src/collections/report-builder-library.collection.ts"],"names":["mongo_manager_1","require","resolveio_server_app_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","name","id_user_create","user_create","date","reports","Array","reports.$","Object","reports.$.id_report","reports.$.report","user_groups","user_groups.$","user_groups.$.id_user_group","user_groups.$.user_group","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","create","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","exports","ReportBuilderLibraries","collection_main","createIndex","user_groups.id_user_group","setImmediate"],"mappings":"0GAAA,IAAAA,gBAAAC,QAAA,2BAAA,EAEAC,uBAAAD,QAAA,yBAAA,EAEIE,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,eAAgB,CACfT,KAAMC,M,EAEPS,YAAa,CACZV,KAAMC,M,EAEPU,KAAM,CACLX,KAAMM,I,EAEPM,QAAS,CACRZ,KAAMa,K,EAEPC,YAAa,CACZd,KAAMe,M,EAEPC,sBAAuB,CACtBhB,KAAMC,M,EAEPgB,mBAAoB,CACnBjB,KAAMC,M,EAEPiB,YAAa,CACZlB,KAAMa,K,EAEPM,gBAAiB,CAChBnB,KAAMe,M,EAEPK,8BAA+B,CAC9BpB,KAAMC,M,EAEPoB,2BAA4B,CAC3BrB,KAAMC,M,GAUR,SAASqB,uBACR,IACOC,EADH1B,uBAAA2B,iBAAmB3B,uBAAA2B,gBAAgBC,UAAS,GAAM9B,gBAAA+B,mBAC/CH,EAAQ5B,gBAAA+B,kBAAkBC,OAAkC,CACjEC,eAAgB,2BAChB9B,OAAQA,OACR+B,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,I,CACnB,EACDC,QAAAC,uBAAyBd,EAAMe,gBAC/BF,QAAAC,uBAAuBE,YAAY,CAAC/B,KAAM,CAAC,CAAC,EAC5C4B,QAAAC,uBAAuBE,YAAY,CAAC9B,eAAgB,CAAC,CAAC,EACtD2B,QAAAC,uBAAuBE,YAAY,CAACC,4BAA6B,CAAC,CAAC,GAGnEC,aAAa,WACZnB,qBAAoB,CACrB,CAAC,CAEH,CA3BWc,QAAAC,uBAA4E,KAEvFf,qBAAoB","file":"report-builder-library.collection.js","sourcesContent":["import { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { ReportBuilderLibraryModel } from '../models/report-builder-library.model';\nimport { ResolveIOServer } from '../resolveio-server-app';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t__v: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tupdatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcreatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tname: {\n\t\ttype: String\n\t},\n\tid_user_create: {\n\t\ttype: String\n\t},\n\tuser_create: {\n\t\ttype: String\n\t},\n\tdate: {\n\t\ttype: Date\n\t},\n\treports: {\n\t\ttype: Array\n\t},\n\t'reports.$': {\n\t\ttype: Object\n\t},\n\t'reports.$.id_report': {\n\t\ttype: String\n\t},\n\t'reports.$.report': {\n\t\ttype: String\n\t},\n\tuser_groups: {\n\t\ttype: Array\n\t},\n\t'user_groups.$': {\n\t\ttype: Object\n\t},\n\t'user_groups.$.id_user_group': {\n\t\ttype: String\n\t},\n\t'user_groups.$.user_group': {\n\t\ttype: String\n\t}\n};\n\n\n\nexport let ReportBuilderLibraries: MongoManagerCollection<ReportBuilderLibraryModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB() && MongoManagerModel) {\n\t\tconst model = MongoManagerModel.create<ReportBuilderLibraryModel>({\n\t\t\tcollectionName: 'report-builder-libraries',\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: true,\n\t\t\tcheckSchema: true,\n\t\t\tcollectionOptions: null\n\t\t});\n\t\tReportBuilderLibraries = model.collection_main;\n\t\tReportBuilderLibraries.createIndex({name: 1});\n\t\tReportBuilderLibraries.createIndex({id_user_create: 1});\n\t\tReportBuilderLibraries.createIndex({'user_groups.id_user_group': 1});\n\t}\n\telse {\n\t\tsetImmediate(() => {\n\t\t\tinitializeCollection();\n\t\t});\n\t}\n}"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/collections/report-builder-report.collection.ts"],"names":["mongo_manager_1","require","resolveio_server_app_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","collection_root","report_name","fields_sort","Array","fields_sort.$","Object","fields_sort.$.field","fields_sort.$.order","fields_filter","fields_filter.$","blackbox","fields_custom","fields_custom.$","fields_selected","fields_selected.$","fields_total","fields_total.$","fields_link","fields_link.$","id_user","user","date_created","shared_users","shared_users.$","groups_row","groups_row.$","groups_column","groups_column.$","group_type","id_date_field","date_interval","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","create","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","exports","ReportBuilderReports","collection_main","createIndex","ReportBuilderReportVersions","collection_version","setImmediate"],"mappings":"4IACA,IAAAA,gBAAAC,QAAA,2BAAA,EAEAC,uBAAAD,QAAA,yBAAA,EAEIE,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,gBAAiB,CAChBR,KAAMC,M,EAEPQ,YAAa,CACZT,KAAMC,M,EAEPS,YAAa,CACZV,KAAMW,K,EAEPC,gBAAiB,CAChBZ,KAAMa,M,EAEPC,sBAAuB,CACtBd,KAAMC,M,EAEPc,sBAAuB,CACtBf,KAAMC,M,EAEPe,cAAe,CACdhB,KAAMW,K,EAEPM,kBAAmB,CAClBjB,KAAMa,OACNK,SAAU,CAAA,C,EAEXC,cAAe,CACdnB,KAAMW,K,EAEPS,kBAAmB,CAClBpB,KAAMa,OACNK,SAAU,CAAA,C,EAEXG,gBAAiB,CAChBrB,KAAMW,K,EAEPW,oBAAqB,CACpBtB,KAAMa,OACNK,SAAU,CAAA,C,EAEXK,aAAc,CACbvB,KAAMW,K,EAEPa,iBAAkB,CACjBxB,KAAMa,OACNK,SAAU,CAAA,C,EAEXO,YAAa,CACZzB,KAAMW,K,EAEPe,gBAAiB,CAChB1B,KAAMa,OACNK,SAAU,CAAA,C,EAEXS,QAAS,CACR3B,KAAMC,M,EAEP2B,KAAM,CACL5B,KAAMC,M,EAEP4B,aAAc,CACb7B,KAAMM,I,EAEPwB,aAAc,CACb9B,KAAMW,K,EAEPoB,iBAAkB,CACjB/B,KAAMC,M,EAEPD,KAAM,CACLA,KAAMC,M,EAEP+B,WAAY,CACXhC,KAAMW,K,EAEPsB,eAAgB,CACfjC,KAAMa,OACNK,SAAU,CAAA,C,EAEXgB,cAAe,CACdlC,KAAMW,K,EAEPwB,kBAAmB,CAClBnC,KAAMa,OACNK,SAAU,CAAA,C,EAEXkB,WAAY,CACXpC,KAAMC,M,EAEPoC,cAAe,CACdrC,KAAMC,OACNC,SAAU,CAAA,C,EAEXoC,cAAe,CACdtC,KAAMC,OACNC,SAAU,CAAA,C,GASZ,SAASqC,uBACR,IACOC,EADH3C,uBAAA4C,iBAAmB5C,uBAAA4C,gBAAgBC,UAAS,GAAM/C,gBAAAgD,mBAC/CH,EAAQ7C,gBAAAgD,kBAAkBC,OAAiC,CAChEC,eAAgB,yBAChB/C,OAAQA,OACRgD,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,I,CACnB,EACDC,QAAAC,qBAAuBd,EAAMe,gBAC7BF,QAAAC,qBAAqBE,YAAY,CAAC7B,QAAS,CAAC,CAAC,EAC7C0B,QAAAC,qBAAqBE,YAAY,CAAC1B,aAAc,CAAC,CAAC,EAClDuB,QAAAC,qBAAqBE,YAAY,CAAC/C,YAAa,EAAGD,gBAAiB,CAAC,CAAC,EACrE6C,QAAAI,4BAA8BjB,EAAMkB,oBAGpCC,aAAa,WACZpB,qBAAoB,CACrB,CAAC,CAEH,CA7BWc,QAAAC,qBAAyE,KACzED,QAAAI,4BAAgF,KAE3FlB,qBAAoB","file":"report-builder-report.collection.js","sourcesContent":["/* eslint-disable @typescript-eslint/no-floating-promises */\nimport { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { ReportBuilderReportModel } from '../models/report-builder-report.model';\nimport { ResolveIOServer } from '../resolveio-server-app';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t__v: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tupdatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcreatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcollection_root: {\n\t\ttype: String\n\t},\n\treport_name: {\n\t\ttype: String\n\t},\n\tfields_sort: {\n\t\ttype: Array\n\t},\n\t'fields_sort.$': {\n\t\ttype: Object\n\t},\n\t'fields_sort.$.field': {\n\t\ttype: String\n\t},\n\t'fields_sort.$.order': {\n\t\ttype: String\n\t},\n\tfields_filter: {\n\t\ttype: Array\n\t},\n\t'fields_filter.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tfields_custom: {\n\t\ttype: Array\n\t},\n\t'fields_custom.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tfields_selected: {\n\t\ttype: Array\n\t},\n\t'fields_selected.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tfields_total: {\n\t\ttype: Array\n\t},\n\t'fields_total.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tfields_link: {\n\t\ttype: Array\n\t},\n\t'fields_link.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tid_user: {\n\t\ttype: String\n\t},\n\tuser: {\n\t\ttype: String\n\t},\n\tdate_created: {\n\t\ttype: Date\n\t},\n\tshared_users: {\n\t\ttype: Array\n\t},\n\t'shared_users.$': {\n\t\ttype: String\n\t},\n\ttype: {\n\t\ttype: String\n\t},\n\tgroups_row: {\n\t\ttype: Array\n\t},\n\t'groups_row.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tgroups_column: {\n\t\ttype: Array\n\t},\n\t'groups_column.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tgroup_type: {\n\t\ttype: String\n\t},\n\tid_date_field: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\tdate_interval: {\n\t\ttype: String,\n\t\toptional: true\n\t}\n};\n\nexport let ReportBuilderReports: MongoManagerCollection<ReportBuilderReportModel> = null;\nexport let ReportBuilderReportVersions: MongoManagerCollection<ReportBuilderReportModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB() && MongoManagerModel) {\n\t\tconst model = MongoManagerModel.create<ReportBuilderReportModel>({\n\t\t\tcollectionName: 'report-builder-reports',\n\t\t\tschema: schema,\n\t\t\tuseVersionCollection: true,\n\t\t\tuseReportBuilder: false,\n\t\t\treportBuilderLookupTables: [],\n\t\t\ttimestamps: true,\n\t\t\tcreateLogs: true,\n\t\t\tcheckSchema: true,\n\t\t\tcollectionOptions: null\n\t\t});\n\t\tReportBuilderReports = model.collection_main;\n\t\tReportBuilderReports.createIndex({id_user: 1});\n\t\tReportBuilderReports.createIndex({shared_users: 1});\n\t\tReportBuilderReports.createIndex({report_name: 1, collection_root: 1});\n\t\tReportBuilderReportVersions = model.collection_version;\n\t}\n\telse {\n\t\tsetImmediate(() => {\n\t\t\tinitializeCollection();\n\t\t});\n\t}\n}"]}
1
+ {"version":3,"sources":["../../src/collections/report-builder-report.collection.ts"],"names":["mongo_manager_1","require","resolveio_server_app_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","collection_root","report_name","fields_sort","Array","fields_sort.$","Object","fields_sort.$.field","fields_sort.$.order","fields_filter","fields_filter.$","blackbox","fields_custom","fields_custom.$","fields_selected","fields_selected.$","fields_total","fields_total.$","fields_link","fields_link.$","id_user","user","date_created","shared_users","shared_users.$","groups_row","groups_row.$","groups_column","groups_column.$","group_type","id_date_field","date_interval","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","create","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","exports","ReportBuilderReports","collection_main","createIndex","ReportBuilderReportVersions","collection_version","setImmediate"],"mappings":"4IAAA,IAAAA,gBAAAC,QAAA,2BAAA,EAEAC,uBAAAD,QAAA,yBAAA,EAEIE,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,gBAAiB,CAChBR,KAAMC,M,EAEPQ,YAAa,CACZT,KAAMC,M,EAEPS,YAAa,CACZV,KAAMW,K,EAEPC,gBAAiB,CAChBZ,KAAMa,M,EAEPC,sBAAuB,CACtBd,KAAMC,M,EAEPc,sBAAuB,CACtBf,KAAMC,M,EAEPe,cAAe,CACdhB,KAAMW,K,EAEPM,kBAAmB,CAClBjB,KAAMa,OACNK,SAAU,CAAA,C,EAEXC,cAAe,CACdnB,KAAMW,K,EAEPS,kBAAmB,CAClBpB,KAAMa,OACNK,SAAU,CAAA,C,EAEXG,gBAAiB,CAChBrB,KAAMW,K,EAEPW,oBAAqB,CACpBtB,KAAMa,OACNK,SAAU,CAAA,C,EAEXK,aAAc,CACbvB,KAAMW,K,EAEPa,iBAAkB,CACjBxB,KAAMa,OACNK,SAAU,CAAA,C,EAEXO,YAAa,CACZzB,KAAMW,K,EAEPe,gBAAiB,CAChB1B,KAAMa,OACNK,SAAU,CAAA,C,EAEXS,QAAS,CACR3B,KAAMC,M,EAEP2B,KAAM,CACL5B,KAAMC,M,EAEP4B,aAAc,CACb7B,KAAMM,I,EAEPwB,aAAc,CACb9B,KAAMW,K,EAEPoB,iBAAkB,CACjB/B,KAAMC,M,EAEPD,KAAM,CACLA,KAAMC,M,EAEP+B,WAAY,CACXhC,KAAMW,K,EAEPsB,eAAgB,CACfjC,KAAMa,OACNK,SAAU,CAAA,C,EAEXgB,cAAe,CACdlC,KAAMW,K,EAEPwB,kBAAmB,CAClBnC,KAAMa,OACNK,SAAU,CAAA,C,EAEXkB,WAAY,CACXpC,KAAMC,M,EAEPoC,cAAe,CACdrC,KAAMC,OACNC,SAAU,CAAA,C,EAEXoC,cAAe,CACdtC,KAAMC,OACNC,SAAU,CAAA,C,GASZ,SAASqC,uBACR,IACOC,EADH3C,uBAAA4C,iBAAmB5C,uBAAA4C,gBAAgBC,UAAS,GAAM/C,gBAAAgD,mBAC/CH,EAAQ7C,gBAAAgD,kBAAkBC,OAAiC,CAChEC,eAAgB,yBAChB/C,OAAQA,OACRgD,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,I,CACnB,EACDC,QAAAC,qBAAuBd,EAAMe,gBAC7BF,QAAAC,qBAAqBE,YAAY,CAAC7B,QAAS,CAAC,CAAC,EAC7C0B,QAAAC,qBAAqBE,YAAY,CAAC1B,aAAc,CAAC,CAAC,EAClDuB,QAAAC,qBAAqBE,YAAY,CAAC/C,YAAa,EAAGD,gBAAiB,CAAC,CAAC,EACrE6C,QAAAI,4BAA8BjB,EAAMkB,oBAGpCC,aAAa,WACZpB,qBAAoB,CACrB,CAAC,CAEH,CA7BWc,QAAAC,qBAAyE,KACzED,QAAAI,4BAAgF,KAE3FlB,qBAAoB","file":"report-builder-report.collection.js","sourcesContent":["import { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { ReportBuilderReportModel } from '../models/report-builder-report.model';\nimport { ResolveIOServer } from '../resolveio-server-app';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t__v: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tupdatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcreatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcollection_root: {\n\t\ttype: String\n\t},\n\treport_name: {\n\t\ttype: String\n\t},\n\tfields_sort: {\n\t\ttype: Array\n\t},\n\t'fields_sort.$': {\n\t\ttype: Object\n\t},\n\t'fields_sort.$.field': {\n\t\ttype: String\n\t},\n\t'fields_sort.$.order': {\n\t\ttype: String\n\t},\n\tfields_filter: {\n\t\ttype: Array\n\t},\n\t'fields_filter.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tfields_custom: {\n\t\ttype: Array\n\t},\n\t'fields_custom.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tfields_selected: {\n\t\ttype: Array\n\t},\n\t'fields_selected.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tfields_total: {\n\t\ttype: Array\n\t},\n\t'fields_total.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tfields_link: {\n\t\ttype: Array\n\t},\n\t'fields_link.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tid_user: {\n\t\ttype: String\n\t},\n\tuser: {\n\t\ttype: String\n\t},\n\tdate_created: {\n\t\ttype: Date\n\t},\n\tshared_users: {\n\t\ttype: Array\n\t},\n\t'shared_users.$': {\n\t\ttype: String\n\t},\n\ttype: {\n\t\ttype: String\n\t},\n\tgroups_row: {\n\t\ttype: Array\n\t},\n\t'groups_row.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tgroups_column: {\n\t\ttype: Array\n\t},\n\t'groups_column.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tgroup_type: {\n\t\ttype: String\n\t},\n\tid_date_field: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\tdate_interval: {\n\t\ttype: String,\n\t\toptional: true\n\t}\n};\n\nexport let ReportBuilderReports: MongoManagerCollection<ReportBuilderReportModel> = null;\nexport let ReportBuilderReportVersions: MongoManagerCollection<ReportBuilderReportModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB() && MongoManagerModel) {\n\t\tconst model = MongoManagerModel.create<ReportBuilderReportModel>({\n\t\t\tcollectionName: 'report-builder-reports',\n\t\t\tschema: schema,\n\t\t\tuseVersionCollection: true,\n\t\t\tuseReportBuilder: false,\n\t\t\treportBuilderLookupTables: [],\n\t\t\ttimestamps: true,\n\t\t\tcreateLogs: true,\n\t\t\tcheckSchema: true,\n\t\t\tcollectionOptions: null\n\t\t});\n\t\tReportBuilderReports = model.collection_main;\n\t\tReportBuilderReports.createIndex({id_user: 1});\n\t\tReportBuilderReports.createIndex({shared_users: 1});\n\t\tReportBuilderReports.createIndex({report_name: 1, collection_root: 1});\n\t\tReportBuilderReportVersions = model.collection_version;\n\t}\n\telse {\n\t\tsetImmediate(() => {\n\t\t\tinitializeCollection();\n\t\t});\n\t}\n}"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/collections/user-group.collection.ts"],"names":["mongo_manager_1","require","resolveio_server_app_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","name","landing_page","permissions","Array","permissions.$","Object","permissions.$.name","permissions.$.selected","Boolean","permissions.$.views","permissions.$.views.$","permissions.$.views.$.link","permissions.$.views.$.selected","notifications","notifications.$","blackbox","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","create","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","exports","UserGroups","collection_main","createIndex","UserGroupVersions","collection_version","setImmediate"],"mappings":"wHACA,IAAAA,gBAAAC,QAAA,2BAAA,EAEAC,uBAAAD,QAAA,yBAAA,EAEIE,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,aAAc,CACbT,KAAMC,OACNC,SAAU,CAAA,C,EAEXQ,YAAa,CACZV,KAAMW,K,EAEPC,gBAAiB,CAChBZ,KAAOa,M,EAERC,qBAAsB,CACrBd,KAAMC,M,EAEPc,yBAA0B,CACzBf,KAAMgB,O,EAEPC,sBAAuB,CACtBjB,KAAMW,K,EAEPO,wBAAyB,CACxBlB,KAAMa,M,EAEPM,6BAA8B,CAC7BnB,KAAMC,M,EAEPmB,iCAAkC,CACjCpB,KAAMgB,O,EAEPK,cAAe,CACdrB,KAAMW,K,EAEPW,kBAAmB,CAClBtB,KAAOa,OACPU,SAAU,CAAA,C,GASZ,SAASC,uBACR,IACOC,EADH5B,uBAAA6B,iBAAmB7B,uBAAA6B,gBAAgBC,UAAS,GAAMhC,gBAAAiC,mBAC/CH,EAAQ9B,gBAAAiC,kBAAkBC,OAAuB,CACtDC,eAAgB,cAChBhC,OAAQA,OACRiC,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,I,CACnB,EACDC,QAAAC,WAAad,EAAMe,gBACnBF,QAAAC,WAAWE,YAAY,CAACjC,KAAM,CAAC,CAAC,EAChC8B,QAAAI,kBAAoBjB,EAAMkB,oBAG1BC,aAAa,WACZpB,qBAAoB,CACrB,CAAC,CAEH,CA3BWc,QAAAC,WAAqD,KACrDD,QAAAI,kBAA4D,KAEvElB,qBAAoB","file":"user-group.collection.js","sourcesContent":["/* eslint-disable @typescript-eslint/no-floating-promises */\nimport { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { UserGroupModel } from '../models/user-group.model';\nimport { ResolveIOServer } from '../resolveio-server-app';\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\tlanding_page: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\tpermissions: {\n\t\ttype: Array\n\t},\n\t'permissions.$': {\n\t\ttype: Object\n\t},\n\t'permissions.$.name': {\n\t\ttype: String\n\t},\n\t'permissions.$.selected': {\n\t\ttype: Boolean\n\t},\n\t'permissions.$.views': {\n\t\ttype: Array\n\t},\n\t'permissions.$.views.$': {\n\t\ttype: Object\n\t},\n\t'permissions.$.views.$.link': {\n\t\ttype: String\n\t},\n\t'permissions.$.views.$.selected': {\n\t\ttype: Boolean\n\t},\n\tnotifications: {\n\t\ttype: Array\n\t},\n\t'notifications.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n};\n\nexport let UserGroups: MongoManagerCollection<UserGroupModel> = null;\nexport let UserGroupVersions: MongoManagerCollection<UserGroupModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB() && MongoManagerModel) {\n\t\tconst model = MongoManagerModel.create<UserGroupModel>({\n\t\t\tcollectionName: 'user-groups',\n\t\t\tschema: schema,\n\t\t\tuseVersionCollection: true,\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\tUserGroups = model.collection_main;\n\t\tUserGroups.createIndex({name: 1});\n\t\tUserGroupVersions = model.collection_version;\n\t}\n\telse {\n\t\tsetImmediate(() => {\n\t\t\tinitializeCollection();\n\t\t});\n\t}\n}"]}
1
+ {"version":3,"sources":["../../src/collections/user-group.collection.ts"],"names":["mongo_manager_1","require","resolveio_server_app_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","name","landing_page","permissions","Array","permissions.$","Object","permissions.$.name","permissions.$.selected","Boolean","permissions.$.views","permissions.$.views.$","permissions.$.views.$.link","permissions.$.views.$.selected","notifications","notifications.$","blackbox","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","create","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","exports","UserGroups","collection_main","createIndex","UserGroupVersions","collection_version","setImmediate"],"mappings":"wHAAA,IAAAA,gBAAAC,QAAA,2BAAA,EAEAC,uBAAAD,QAAA,yBAAA,EAEIE,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,aAAc,CACbT,KAAMC,OACNC,SAAU,CAAA,C,EAEXQ,YAAa,CACZV,KAAMW,K,EAEPC,gBAAiB,CAChBZ,KAAOa,M,EAERC,qBAAsB,CACrBd,KAAMC,M,EAEPc,yBAA0B,CACzBf,KAAMgB,O,EAEPC,sBAAuB,CACtBjB,KAAMW,K,EAEPO,wBAAyB,CACxBlB,KAAMa,M,EAEPM,6BAA8B,CAC7BnB,KAAMC,M,EAEPmB,iCAAkC,CACjCpB,KAAMgB,O,EAEPK,cAAe,CACdrB,KAAMW,K,EAEPW,kBAAmB,CAClBtB,KAAOa,OACPU,SAAU,CAAA,C,GASZ,SAASC,uBACR,IACOC,EADH5B,uBAAA6B,iBAAmB7B,uBAAA6B,gBAAgBC,UAAS,GAAMhC,gBAAAiC,mBAC/CH,EAAQ9B,gBAAAiC,kBAAkBC,OAAuB,CACtDC,eAAgB,cAChBhC,OAAQA,OACRiC,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,I,CACnB,EACDC,QAAAC,WAAad,EAAMe,gBACnBF,QAAAC,WAAWE,YAAY,CAACjC,KAAM,CAAC,CAAC,EAChC8B,QAAAI,kBAAoBjB,EAAMkB,oBAG1BC,aAAa,WACZpB,qBAAoB,CACrB,CAAC,CAEH,CA3BWc,QAAAC,WAAqD,KACrDD,QAAAI,kBAA4D,KAEvElB,qBAAoB","file":"user-group.collection.js","sourcesContent":["import { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';\nimport { UserGroupModel } from '../models/user-group.model';\nimport { ResolveIOServer } from '../resolveio-server-app';\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\tlanding_page: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\tpermissions: {\n\t\ttype: Array\n\t},\n\t'permissions.$': {\n\t\ttype: Object\n\t},\n\t'permissions.$.name': {\n\t\ttype: String\n\t},\n\t'permissions.$.selected': {\n\t\ttype: Boolean\n\t},\n\t'permissions.$.views': {\n\t\ttype: Array\n\t},\n\t'permissions.$.views.$': {\n\t\ttype: Object\n\t},\n\t'permissions.$.views.$.link': {\n\t\ttype: String\n\t},\n\t'permissions.$.views.$.selected': {\n\t\ttype: Boolean\n\t},\n\tnotifications: {\n\t\ttype: Array\n\t},\n\t'notifications.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n};\n\nexport let UserGroups: MongoManagerCollection<UserGroupModel> = null;\nexport let UserGroupVersions: MongoManagerCollection<UserGroupModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB() && MongoManagerModel) {\n\t\tconst model = MongoManagerModel.create<UserGroupModel>({\n\t\t\tcollectionName: 'user-groups',\n\t\t\tschema: schema,\n\t\t\tuseVersionCollection: true,\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\tUserGroups = model.collection_main;\n\t\tUserGroups.createIndex({name: 1});\n\t\tUserGroupVersions = model.collection_version;\n\t}\n\telse {\n\t\tsetImmediate(() => {\n\t\t\tinitializeCollection();\n\t\t});\n\t}\n}"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/collections/user.collection.ts"],"names":["mongo_manager_1","require","resolveio_server_app_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","roles","Object","roles.super_admin","Boolean","roles.approvals","Array","roles.approvals.$","roles.approvals.$.type","roles.approvals.$.key_1","roles.approvals.$.key_2","roles.approvals.$.key_3","roles.approvals.$.name","roles.groups","roles.groups.$","roles.groups.$.name","roles.groups.$.views","roles.groups.$.views.$","roles.groups.$.yards","roles.groups.$.yards.$","roles.notifications","roles.notifications.$","roles.miscs","roles.miscs.$","username","email","fullname","active","phonenumber","readonly","other","blackbox","settings","settings.table_color","settings.table_font_color","settings.secondary_table_color","settings.secondary_table_font_color","settings.tertiary_table_color","settings.tertiary_table_font_color","settings.font_size","settings.collapsable_menu","settings.entries_per_page","settings.warning_color","settings.warning_font_color","settings.warning_hover_color","settings.success_color","settings.success_font_color","settings.success_hover_color","settings.danger_color","settings.danger_font_color","settings.danger_hover_color","settings.info_color","settings.info_font_color","settings.info_hover_color","settings.primary_color","settings.primary_font_color","settings.primary_hover_color","settings.secondary_color","settings.secondary_font_color","settings.secondary_hover_color","settings.routing_preference","settings.opening_route","salt","hash","attempts","last","services","services.enrollment","services.forgot_password","services.reset_password","is_customer","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","create","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","exports","Users","collection_main","createIndex","UserVersions","collection_version","setImmediate"],"mappings":"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","file":"user.collection.js","sourcesContent":["/* eslint-disable @typescript-eslint/no-floating-promises */\nimport { MongoManagerModel, MongoManagerUserCollection } from '../managers/mongo.manager';\nimport { UserModel } from '../models/user.model';\nimport { ResolveIOServer } from '../resolveio-server-app';\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\troles: {\n\t\ttype: Object\n\t},\n\t'roles.super_admin': {\n\t\ttype: Boolean\n\t},\n\t'roles.approvals': {\n\t\ttype: Array\n\t},\n\t'roles.approvals.$': {\n\t\ttype: Object\n\t},\n\t'roles.approvals.$.type': {\n\t\ttype: String\n\t},\n\t'roles.approvals.$.key_1': {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t'roles.approvals.$.key_2': {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t'roles.approvals.$.key_3': {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t'roles.approvals.$.name': {\n\t\ttype: String\n\t},\n\t'roles.groups': {\n\t\ttype: Array\n\t},\n\t'roles.groups.$': {\n\t\ttype: Object\n\t},\n\t'roles.groups.$.name': {\n\t\ttype: String\n\t},\n\t'roles.groups.$.views': {\n\t\ttype: Array\n\t},\n\t'roles.groups.$.views.$': {\n\t\ttype: String\n\t},\n\t'roles.groups.$.yards': {\n\t\ttype: Array,\n\t\toptional: true\n\t},\n\t'roles.groups.$.yards.$': {\n\t\ttype: String\n\t},\n\t'roles.notifications': {\n\t\ttype: Array\n\t},\n\t'roles.notifications.$': {\n\t\ttype: String\n\t},\n\t'roles.miscs': {\n\t\ttype: Array\n\t},\n\t'roles.miscs.$': {\n\t\ttype: String\n\t},\n\tusername: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\temail: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\tfullname: {\n\t\ttype: String\n\t},\n\tactive: {\n\t\ttype: Boolean\n\t},\n\tphonenumber: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\treadonly: {\n\t\ttype: Boolean,\n\t\toptional: true\n\t},\n\tother: {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tsettings: {\n\t\ttype: Object,\n\t\toptional: true\n\t},\n\t'settings.table_color': {\n\t\ttype: String\n\t},\n\t'settings.table_font_color': {\n\t\ttype: String\n\t},\n\t'settings.secondary_table_color': {\n\t\ttype: String\n\t},\n\t'settings.secondary_table_font_color': {\n\t\ttype: String\n\t},\n\t'settings.tertiary_table_color': {\n\t\ttype: String\n\t},\n\t'settings.tertiary_table_font_color': {\n\t\ttype: String\n\t},\n\t'settings.font_size': {\n\t\ttype: Number\n\t},\n\t'settings.collapsable_menu': {\n\t\ttype: Boolean\n\t},\n\t'settings.entries_per_page': {\n\t\ttype: String\n\t},\n\t'settings.warning_color': {\n\t\ttype: String\n\t},\n\t'settings.warning_font_color': {\n\t\ttype: String\n\t},\n\t'settings.warning_hover_color': {\n\t\ttype: String\n\t},\n\t'settings.success_color': {\n\t\ttype: String\n\t},\n\t'settings.success_font_color': {\n\t\ttype: String\n\t},\n\t'settings.success_hover_color': {\n\t\ttype: String\n\t},\n\t'settings.danger_color': {\n\t\ttype: String\n\t},\n\t'settings.danger_font_color': {\n\t\ttype: String\n\t},\n\t'settings.danger_hover_color': {\n\t\ttype: String\n\t},\n\t'settings.info_color': {\n\t\ttype: String\n\t},\n\t'settings.info_font_color': {\n\t\ttype: String\n\t},\n\t'settings.info_hover_color': {\n\t\ttype: String\n\t},\n\t'settings.primary_color': {\n\t\ttype: String\n\t},\n\t'settings.primary_font_color': {\n\t\ttype: String\n\t},\n\t'settings.primary_hover_color': {\n\t\ttype: String\n\t},\n\t'settings.secondary_color': {\n\t\ttype: String\n\t},\n\t'settings.secondary_font_color': {\n\t\ttype: String\n\t},\n\t'settings.secondary_hover_color': {\n\t\ttype: String\n\t},\n\t'settings.routing_preference': {\n\t\ttype: String\n\t},\n\t'settings.opening_route': {\n\t\ttype: String\n\t},\n\tsalt: {\n\t\ttype: String\n\t},\n\thash: {\n\t\ttype: String\n\t},\n\tattempts: {\n\t\ttype: Number\n\t},\n\tlast: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tservices: {\n\t\ttype: Object,\n\t\toptional: true\n\t},\n\t'services.enrollment': {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t'services.forgot_password': {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t'services.reset_password': {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\tis_customer: {\n\t\ttype: Boolean,\n\t\toptional: true\n\t}\n};\n\nexport let Users: MongoManagerUserCollection<UserModel> = null;\nexport let UserVersions: MongoManagerUserCollection<UserModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB() && MongoManagerModel) {\n\t\tconst model = MongoManagerModel.create<UserModel>({\n\t\t\tcollectionName: 'users',\n\t\t\tschema: schema,\n\t\t\tuseVersionCollection: true,\n\t\t\tuseReportBuilder: true,\n\t\t\treportBuilderLookupTables: [],\n\t\t\ttimestamps: true,\n\t\t\tcreateLogs: true,\n\t\t\tcheckSchema: true,\n\t\t\tcollectionOptions: null\n\t\t});\n\t\tUsers = <MongoManagerUserCollection<UserModel>>model.collection_main;\n\t\tUsers.createIndex({fullname: 1});\n\t\tUsers.createIndex({active: 1});\n\t\tUserVersions = <MongoManagerUserCollection<UserModel>>model.collection_version;\n\t}\n\telse {\n\t\tsetImmediate(() => {\n\t\t\tinitializeCollection();\n\t\t});\n\t}\n}"]}
1
+ {"version":3,"sources":["../../src/collections/user.collection.ts"],"names":["mongo_manager_1","require","resolveio_server_app_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","roles","Object","roles.super_admin","Boolean","roles.approvals","Array","roles.approvals.$","roles.approvals.$.type","roles.approvals.$.key_1","roles.approvals.$.key_2","roles.approvals.$.key_3","roles.approvals.$.name","roles.groups","roles.groups.$","roles.groups.$.name","roles.groups.$.views","roles.groups.$.views.$","roles.groups.$.yards","roles.groups.$.yards.$","roles.notifications","roles.notifications.$","roles.miscs","roles.miscs.$","username","email","fullname","active","phonenumber","readonly","other","blackbox","settings","settings.table_color","settings.table_font_color","settings.secondary_table_color","settings.secondary_table_font_color","settings.tertiary_table_color","settings.tertiary_table_font_color","settings.font_size","settings.collapsable_menu","settings.entries_per_page","settings.warning_color","settings.warning_font_color","settings.warning_hover_color","settings.success_color","settings.success_font_color","settings.success_hover_color","settings.danger_color","settings.danger_font_color","settings.danger_hover_color","settings.info_color","settings.info_font_color","settings.info_hover_color","settings.primary_color","settings.primary_font_color","settings.primary_hover_color","settings.secondary_color","settings.secondary_font_color","settings.secondary_hover_color","settings.routing_preference","settings.opening_route","salt","hash","attempts","last","services","services.enrollment","services.forgot_password","services.reset_password","is_customer","initializeCollection","model","ResolveIOServer","getMainDB","MongoManagerModel","create","collectionName","useVersionCollection","useReportBuilder","reportBuilderLookupTables","timestamps","createLogs","checkSchema","collectionOptions","exports","Users","collection_main","createIndex","UserVersions","collection_version","setImmediate"],"mappings":"8GAAA,IAAAA,gBAAAC,QAAA,2BAAA,EAEAC,uBAAAD,QAAA,yBAAA,EAEIE,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,MAAO,CACNR,KAAMS,M,EAEPC,oBAAqB,CACpBV,KAAMW,O,EAEPC,kBAAmB,CAClBZ,KAAMa,K,EAEPC,oBAAqB,CACpBd,KAAMS,M,EAEPM,yBAA0B,CACzBf,KAAMC,M,EAEPe,0BAA2B,CAC1BhB,KAAMC,OACNC,SAAU,CAAA,C,EAEXe,0BAA2B,CAC1BjB,KAAMC,OACNC,SAAU,CAAA,C,EAEXgB,0BAA2B,CAC1BlB,KAAMC,OACNC,SAAU,CAAA,C,EAEXiB,yBAA0B,CACzBnB,KAAMC,M,EAEPmB,eAAgB,CACfpB,KAAMa,K,EAEPQ,iBAAkB,CACjBrB,KAAMS,M,EAEPa,sBAAuB,CACtBtB,KAAMC,M,EAEPsB,uBAAwB,CACvBvB,KAAMa,K,EAEPW,yBAA0B,CACzBxB,KAAMC,M,EAEPwB,uBAAwB,CACvBzB,KAAMa,MACNX,SAAU,CAAA,C,EAEXwB,yBAA0B,CACzB1B,KAAMC,M,EAEP0B,sBAAuB,CACtB3B,KAAMa,K,EAEPe,wBAAyB,CACxB5B,KAAMC,M,EAEP4B,cAAe,CACd7B,KAAMa,K,EAEPiB,gBAAiB,CAChB9B,KAAMC,M,EAEP8B,SAAU,CACT/B,KAAMC,OACNC,SAAU,CAAA,C,EAEX8B,MAAO,CACNhC,KAAMC,OACNC,SAAU,CAAA,C,EAEX+B,SAAU,CACTjC,KAAMC,M,EAEPiC,OAAQ,CACPlC,KAAMW,O,EAEPwB,YAAa,CACZnC,KAAMC,OACNC,SAAU,CAAA,C,EAEXkC,SAAU,CACTpC,KAAMW,QACNT,SAAU,CAAA,C,EAEXmC,MAAO,CACNrC,KAAMS,OACN6B,SAAU,CAAA,C,EAEXC,SAAU,CACTvC,KAAMS,OACNP,SAAU,CAAA,C,EAEXsC,uBAAwB,CACvBxC,KAAMC,M,EAEPwC,4BAA6B,CAC5BzC,KAAMC,M,EAEPyC,iCAAkC,CACjC1C,KAAMC,M,EAEP0C,sCAAuC,CACtC3C,KAAMC,M,EAEP2C,gCAAiC,CAChC5C,KAAMC,M,EAEP4C,qCAAsC,CACrC7C,KAAMC,M,EAEP6C,qBAAsB,CACrB9C,KAAMI,M,EAEP2C,4BAA6B,CAC5B/C,KAAMW,O,EAEPqC,4BAA6B,CAC5BhD,KAAMC,M,EAEPgD,yBAA0B,CACzBjD,KAAMC,M,EAEPiD,8BAA+B,CAC9BlD,KAAMC,M,EAEPkD,+BAAgC,CAC/BnD,KAAMC,M,EAEPmD,yBAA0B,CACzBpD,KAAMC,M,EAEPoD,8BAA+B,CAC9BrD,KAAMC,M,EAEPqD,+BAAgC,CAC/BtD,KAAMC,M,EAEPsD,wBAAyB,CACxBvD,KAAMC,M,EAEPuD,6BAA8B,CAC7BxD,KAAMC,M,EAEPwD,8BAA+B,CAC9BzD,KAAMC,M,EAEPyD,sBAAuB,CACtB1D,KAAMC,M,EAEP0D,2BAA4B,CAC3B3D,KAAMC,M,EAEP2D,4BAA6B,CAC5B5D,KAAMC,M,EAEP4D,yBAA0B,CACzB7D,KAAMC,M,EAEP6D,8BAA+B,CAC9B9D,KAAMC,M,EAEP8D,+BAAgC,CAC/B/D,KAAMC,M,EAEP+D,2BAA4B,CAC3BhE,KAAMC,M,EAEPgE,gCAAiC,CAChCjE,KAAMC,M,EAEPiE,iCAAkC,CACjClE,KAAMC,M,EAEPkE,8BAA+B,CAC9BnE,KAAMC,M,EAEPmE,yBAA0B,CACzBpE,KAAMC,M,EAEPoE,KAAM,CACLrE,KAAMC,M,EAEPqE,KAAM,CACLtE,KAAMC,M,EAEPsE,SAAU,CACTvE,KAAMI,M,EAEPoE,KAAM,CACLxE,KAAMM,KACNJ,SAAU,CAAA,C,EAEXuE,SAAU,CACTzE,KAAMS,OACNP,SAAU,CAAA,C,EAEXwE,sBAAuB,CACtB1E,KAAMC,OACNC,SAAU,CAAA,C,EAEXyE,2BAA4B,CAC3B3E,KAAMC,OACNC,SAAU,CAAA,C,EAEX0E,0BAA2B,CAC1B5E,KAAMC,OACNC,SAAU,CAAA,C,EAEX2E,YAAa,CACZ7E,KAAMW,QACNT,SAAU,CAAA,C,GASZ,SAAS4E,uBACR,IACOC,EADHlF,uBAAAmF,iBAAmBnF,uBAAAmF,gBAAgBC,UAAS,GAAMtF,gBAAAuF,mBAC/CH,EAAQpF,gBAAAuF,kBAAkBC,OAAkB,CACjDC,eAAgB,QAChBtF,OAAQA,OACRuF,qBAAsB,CAAA,EACtBC,iBAAkB,CAAA,EAClBC,0BAA2B,GAC3BC,WAAY,CAAA,EACZC,WAAY,CAAA,EACZC,YAAa,CAAA,EACbC,kBAAmB,I,CACnB,EAEDC,QAAAC,MAA+Cd,EAAMe,gBACrDF,QAAAC,MAAME,YAAY,CAAC9D,SAAU,CAAC,CAAC,EAC/B2D,QAAAC,MAAME,YAAY,CAAC7D,OAAQ,CAAC,CAAC,EAC7B0D,QAAAI,aAAsDjB,EAAMkB,oBAG5DC,aAAa,WACZpB,qBAAoB,CACrB,CAAC,CAEH,CA7BWc,QAAAC,MAA+C,KAC/CD,QAAAI,aAAsD,KAEjElB,qBAAoB","file":"user.collection.js","sourcesContent":["import { MongoManagerModel, MongoManagerUserCollection } from '../managers/mongo.manager';\nimport { UserModel } from '../models/user.model';\nimport { ResolveIOServer } from '../resolveio-server-app';\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\troles: {\n\t\ttype: Object\n\t},\n\t'roles.super_admin': {\n\t\ttype: Boolean\n\t},\n\t'roles.approvals': {\n\t\ttype: Array\n\t},\n\t'roles.approvals.$': {\n\t\ttype: Object\n\t},\n\t'roles.approvals.$.type': {\n\t\ttype: String\n\t},\n\t'roles.approvals.$.key_1': {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t'roles.approvals.$.key_2': {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t'roles.approvals.$.key_3': {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t'roles.approvals.$.name': {\n\t\ttype: String\n\t},\n\t'roles.groups': {\n\t\ttype: Array\n\t},\n\t'roles.groups.$': {\n\t\ttype: Object\n\t},\n\t'roles.groups.$.name': {\n\t\ttype: String\n\t},\n\t'roles.groups.$.views': {\n\t\ttype: Array\n\t},\n\t'roles.groups.$.views.$': {\n\t\ttype: String\n\t},\n\t'roles.groups.$.yards': {\n\t\ttype: Array,\n\t\toptional: true\n\t},\n\t'roles.groups.$.yards.$': {\n\t\ttype: String\n\t},\n\t'roles.notifications': {\n\t\ttype: Array\n\t},\n\t'roles.notifications.$': {\n\t\ttype: String\n\t},\n\t'roles.miscs': {\n\t\ttype: Array\n\t},\n\t'roles.miscs.$': {\n\t\ttype: String\n\t},\n\tusername: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\temail: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\tfullname: {\n\t\ttype: String\n\t},\n\tactive: {\n\t\ttype: Boolean\n\t},\n\tphonenumber: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\treadonly: {\n\t\ttype: Boolean,\n\t\toptional: true\n\t},\n\tother: {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tsettings: {\n\t\ttype: Object,\n\t\toptional: true\n\t},\n\t'settings.table_color': {\n\t\ttype: String\n\t},\n\t'settings.table_font_color': {\n\t\ttype: String\n\t},\n\t'settings.secondary_table_color': {\n\t\ttype: String\n\t},\n\t'settings.secondary_table_font_color': {\n\t\ttype: String\n\t},\n\t'settings.tertiary_table_color': {\n\t\ttype: String\n\t},\n\t'settings.tertiary_table_font_color': {\n\t\ttype: String\n\t},\n\t'settings.font_size': {\n\t\ttype: Number\n\t},\n\t'settings.collapsable_menu': {\n\t\ttype: Boolean\n\t},\n\t'settings.entries_per_page': {\n\t\ttype: String\n\t},\n\t'settings.warning_color': {\n\t\ttype: String\n\t},\n\t'settings.warning_font_color': {\n\t\ttype: String\n\t},\n\t'settings.warning_hover_color': {\n\t\ttype: String\n\t},\n\t'settings.success_color': {\n\t\ttype: String\n\t},\n\t'settings.success_font_color': {\n\t\ttype: String\n\t},\n\t'settings.success_hover_color': {\n\t\ttype: String\n\t},\n\t'settings.danger_color': {\n\t\ttype: String\n\t},\n\t'settings.danger_font_color': {\n\t\ttype: String\n\t},\n\t'settings.danger_hover_color': {\n\t\ttype: String\n\t},\n\t'settings.info_color': {\n\t\ttype: String\n\t},\n\t'settings.info_font_color': {\n\t\ttype: String\n\t},\n\t'settings.info_hover_color': {\n\t\ttype: String\n\t},\n\t'settings.primary_color': {\n\t\ttype: String\n\t},\n\t'settings.primary_font_color': {\n\t\ttype: String\n\t},\n\t'settings.primary_hover_color': {\n\t\ttype: String\n\t},\n\t'settings.secondary_color': {\n\t\ttype: String\n\t},\n\t'settings.secondary_font_color': {\n\t\ttype: String\n\t},\n\t'settings.secondary_hover_color': {\n\t\ttype: String\n\t},\n\t'settings.routing_preference': {\n\t\ttype: String\n\t},\n\t'settings.opening_route': {\n\t\ttype: String\n\t},\n\tsalt: {\n\t\ttype: String\n\t},\n\thash: {\n\t\ttype: String\n\t},\n\tattempts: {\n\t\ttype: Number\n\t},\n\tlast: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tservices: {\n\t\ttype: Object,\n\t\toptional: true\n\t},\n\t'services.enrollment': {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t'services.forgot_password': {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t'services.reset_password': {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\tis_customer: {\n\t\ttype: Boolean,\n\t\toptional: true\n\t}\n};\n\nexport let Users: MongoManagerUserCollection<UserModel> = null;\nexport let UserVersions: MongoManagerUserCollection<UserModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB() && MongoManagerModel) {\n\t\tconst model = MongoManagerModel.create<UserModel>({\n\t\t\tcollectionName: 'users',\n\t\t\tschema: schema,\n\t\t\tuseVersionCollection: true,\n\t\t\tuseReportBuilder: true,\n\t\t\treportBuilderLookupTables: [],\n\t\t\ttimestamps: true,\n\t\t\tcreateLogs: true,\n\t\t\tcheckSchema: true,\n\t\t\tcollectionOptions: null\n\t\t});\n\n\t\tUsers = <MongoManagerUserCollection<UserModel>>model.collection_main;\n\t\tUsers.createIndex({fullname: 1});\n\t\tUsers.createIndex({active: 1});\n\t\tUserVersions = <MongoManagerUserCollection<UserModel>>model.collection_version;\n\t}\n\telse {\n\t\tsetImmediate(() => {\n\t\t\tinitializeCollection();\n\t\t});\n\t}\n}"]}
package/cron/cron.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { CronJob, CronCommand, CronOnCompleteCommand, CronJobParams } from 'cron';
1
+ import { CronCommand, CronJob, CronJobParams, CronOnCompleteCommand } from 'cron';
2
2
  export declare class CronJobManager {
3
3
  private jobs;
4
4
  constructor(key?: string, tab?: string | Date, task?: CronCommand<any, boolean>, onComplete?: CronOnCompleteCommand, start?: boolean, timeZone?: string, context?: CronJobParams, runOnInit?: boolean);
package/cron/cron.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CronJobManager=void 0;var cron_1=require("cron"),CronJobManager=function(){function CronJobManager(o,t,n,r,e,s,a,c){this.jobs={},o&&t&&n&&this.add(o,t,n,r,e,s,a,c)}return CronJobManager.prototype.getJob=function(o){return this.jobs[o]},CronJobManager.prototype.getJobs=function(){return Object.keys(this.jobs)},CronJobManager.prototype.add=function(t,n,o,r,e,s,a,c){if(("string"==typeof n||n instanceof Date)&&"string"==typeof t&&o instanceof Function)try{this.jobs[t]&&(this.delete(t),console.warn("".concat(t," already existed and was deleted from the manager..."))),this.jobs[t]=new cron_1.CronJob(n,o,r,e,s,a,c)}catch(o){console.error("crontab: ".concat(n," possibly not valid, job ").concat(t," not started...").concat(o.message))}else console.warn("couldn't add: ".concat(t," improper arguments"))},CronJobManager.prototype.update=function(o,t,n,r,e,s,a,c){var i;this.jobs[o]?(i=this.jobs[o].running,this.jobs[o].stop(),t=new cron_1.CronJob(t,n,r,e||i,s,a,c),delete this.jobs[o],this.jobs[o]=t):console.warn("Job with key ".concat(o," does not exist."))},CronJobManager.prototype.delete=function(t){try{this.jobs[t].stop(),delete this.jobs[t]}catch(o){console.error(new Date,"error in trying to stop job: ".concat(t,": ").concat(o))}},CronJobManager.prototype.start=function(t){try{this.jobs[t].running?console.warn("".concat(t," job already running")):this.jobs[t].start()}catch(o){console.error("couldn't start job: ".concat(t,": ").concat(o))}},CronJobManager.prototype.stop=function(t){try{this.jobs[t].running?this.jobs[t].stop():console.warn("".concat(t," job already stopped"))}catch(o){console.error("couldn't stop job: ".concat(t,": ").concat(o))}},CronJobManager.prototype.stopAll=function(){for(var o in this.jobs)try{this.jobs[o].stop()}catch(o){}},CronJobManager.prototype.exists=function(o){return!!this.jobs[o]},CronJobManager}();exports.CronJobManager=CronJobManager;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CronJobManager=void 0;var cron_1=require("cron"),CronJobManager=function(){function CronJobManager(o,t,n,r,e,s,a,c){this.jobs={},o&&t&&n&&this.add(o,t,n,r,e,s,a,c)}return CronJobManager.prototype.getJob=function(o){return this.jobs[o]},CronJobManager.prototype.getJobs=function(){return Object.keys(this.jobs)},CronJobManager.prototype.add=function(t,n,o,r,e,s,a,c){if(("string"==typeof n||n instanceof Date)&&"string"==typeof t&&o instanceof Function)try{this.jobs[t]&&(this.delete(t),console.warn("".concat(t," already existed and was deleted from the manager..."))),this.jobs[t]=new cron_1.CronJob(n,o,r,e,s,a,c)}catch(o){console.error("crontab: ".concat(n," possibly not valid, job ").concat(t," not started...").concat(o.message))}else console.warn("couldn't add: ".concat(t," improper arguments"))},CronJobManager.prototype.update=function(o,t,n,r,e,s,a,c){var i;this.jobs[o]?(i=this.jobs[o].running,this.jobs[o].stop(),t=new cron_1.CronJob(t,n,r,e||i,s,a,c),delete this.jobs[o],this.jobs[o]=t):console.warn("Job with key ".concat(o," does not exist."))},CronJobManager.prototype.delete=function(t){try{this.jobs[t].stop(),delete this.jobs[t]}catch(o){console.error(new Date,"error in trying to stop job: ".concat(t,": ").concat(o))}},CronJobManager.prototype.start=function(t){try{this.jobs[t].running?console.warn("".concat(t," job already running")):this.jobs[t].start()}catch(o){console.error("couldn't start job: ".concat(t,": ").concat(o))}},CronJobManager.prototype.stop=function(t){try{this.jobs[t].running?this.jobs[t].stop():console.warn("".concat(t," job already stopped"))}catch(o){console.error("couldn't stop job: ".concat(t,": ").concat(o))}},CronJobManager.prototype.stopAll=function(){for(var o in this.jobs)this.jobs[o].stop()},CronJobManager.prototype.exists=function(o){return!!this.jobs[o]},CronJobManager}();exports.CronJobManager=CronJobManager;
2
2
  //# sourceMappingURL=cron.js.map
package/cron/cron.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/cron/cron.ts"],"names":["cron_1","require","CronJobManager","key","tab","task","onComplete","start","timeZone","context","runOnInit","this","jobs","add","prototype","getJob","getJobs","Object","keys","Date","Function","delete","console","warn","concat","CronJob","fooBaredByUser","error","message","update","wasRunning","running","stop","newJob","err","stopAll","jobKey","exists","exports"],"mappings":"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","file":"cron.js","sourcesContent":["import { CronJob, CronCommand, CronTime, CronOnCompleteCommand, CronJobParams } from 'cron';\n\nexport class CronJobManager {\n\tprivate jobs: { [key: string]: CronJob };\n\n constructor(key?: string, tab?: string | Date, task?: CronCommand<any, boolean>, onComplete?: CronOnCompleteCommand, start?: boolean, timeZone?: string, context?: CronJobParams, runOnInit?: boolean) {\n this.jobs = {};\n if (key && tab && task) {\n this.add(key, tab, task, onComplete, start, timeZone, context, runOnInit);\n }\n }\n\n getJob(key: string): CronJob {\n return this.jobs[key];\n }\n\n getJobs(): string[] {\n return Object.keys(this.jobs);\n }\n\n add(key: string, tab: string | Date, task: CronCommand<any, boolean>, onComplete?: CronOnCompleteCommand, start?: boolean, timeZone?: string, context?: CronJobParams, runOnInit?: boolean): void {\n\t\tif ((typeof tab === 'string' || tab instanceof Date) && typeof key === 'string' && task instanceof Function) {\n\t\t\ttry {\n\t\t\t\tif (this.jobs[key]) {\n\t\t\t\t\tthis.delete(key);\n\t\t\t\t\tconsole.warn(`${key} already existed and was deleted from the manager...`);\n\t\t\t\t}\n\t\t\t\tthis.jobs[key] = new CronJob(tab, task, onComplete, start, timeZone, context, runOnInit);\n\t\t\t} catch (fooBaredByUser) {\n\t\t\t\tconsole.error(`crontab: ${tab} possibly not valid, job ${key} not started...${fooBaredByUser.message}`);\n\t\t\t}\n\t\t} else {\n\t\t\tconsole.warn(`couldn't add: ${key} improper arguments`);\n\t\t}\n\t}\n\n\tupdate(key: string, tab: string | Date, task: CronCommand<any, boolean>, onComplete?: () => void, start?: boolean, timeZone?: string, context?: any, runOnInit?: boolean): void {\n\t\t// Check if the job exists\n\t\tif (!this.jobs[key]) {\n\t\t\tconsole.warn(`Job with key ${key} does not exist.`);\n\t\t\treturn;\n\t\t}\n\n\t\t// Store the running state\n\t\tconst wasRunning = this.jobs[key].running;\n\t\n\t\t// Stop the existing job\n\t\tthis.jobs[key].stop();\n\t\n\t\t// Create a new job instance with the updated properties\n\t\tconst newJob = new CronJob(\n\t\t\ttab,\n\t\t\ttask,\n\t\t\tonComplete,\n\t\t\tstart || wasRunning,\n\t\t\ttimeZone,\n\t\t\tcontext,\n\t\t\trunOnInit\n\t\t);\n\n\t\tdelete this.jobs[key];\n\t\n\t\t// Replace the old job with the new one\n\t\tthis.jobs[key] = newJob;\n\t}\n\t\n\t\n\tdelete(key: string) {\n\t\ttry {\n\t\t\tthis.jobs[key].stop();\n\t\t\tdelete this.jobs[key];\n\t\t}\n\t\tcatch (err) { \n\t\t\tconsole.error(new Date(), `error in trying to stop job: ${key}: ${err}`);\n\t\t}\n\t}\n\n\tstart(key: string) {\n\t\ttry {\n\t\t\tif (this.jobs[key].running) {\n\t\t\t\tconsole.warn(`${key} job already running`);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.jobs[key].start();\n\t\t\t}\n\t\t}\n\t\tcatch (err) {\n\t\t\tconsole.error(`couldn't start job: ${key}: ${err}`);\n\t\t}\n\t}\n\n\tstop(key: string) {\n\t\ttry {\n\t\t\tif (!this.jobs[key].running ) {\n\t\t\t\tconsole.warn(`${key} job already stopped`);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.jobs[key].stop();\n\t\t\t}\n\t\t}\n\t\tcatch (err) {\n\t\t\tconsole.error(`couldn't stop job: ${key}: ${err}`);\n\t\t}\n\t}\n\n\tstopAll() {\n\t\tfor (let jobKey in this.jobs) {\n\t\t\ttry {\n\t\t\t\tthis.jobs[jobKey].stop();\n\t\t\t}\n\t\t\tcatch (err) {\n\t\n\t\t\t}\n\t\t}\n\t}\n\n\texists(key: string) {\n\t\treturn !!this.jobs[key];\n\t}\n}"]}
1
+ {"version":3,"sources":["../../src/cron/cron.ts"],"names":["cron_1","require","CronJobManager","key","tab","task","onComplete","start","timeZone","context","runOnInit","this","jobs","add","prototype","getJob","getJobs","Object","keys","Date","Function","delete","console","warn","concat","CronJob","fooBaredByUser","error","message","update","wasRunning","running","stop","newJob","err","stopAll","jobKey","exists","exports"],"mappings":"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","file":"cron.js","sourcesContent":["import { CronCommand, CronJob, CronJobParams, CronOnCompleteCommand } from 'cron';\n\nexport class CronJobManager {\n\tprivate jobs: { [key: string]: CronJob };\n\n constructor(key?: string, tab?: string | Date, task?: CronCommand<any, boolean>, onComplete?: CronOnCompleteCommand, start?: boolean, timeZone?: string, context?: CronJobParams, runOnInit?: boolean) {\n this.jobs = {};\n if (key && tab && task) {\n this.add(key, tab, task, onComplete, start, timeZone, context, runOnInit);\n }\n }\n\n getJob(key: string): CronJob {\n return this.jobs[key];\n }\n\n getJobs(): string[] {\n return Object.keys(this.jobs);\n }\n\n add(key: string, tab: string | Date, task: CronCommand<any, boolean>, onComplete?: CronOnCompleteCommand, start?: boolean, timeZone?: string, context?: CronJobParams, runOnInit?: boolean): void {\n\t\tif ((typeof tab === 'string' || tab instanceof Date) && typeof key === 'string' && task instanceof Function) {\n\t\t\ttry {\n\t\t\t\tif (this.jobs[key]) {\n\t\t\t\t\tthis.delete(key);\n\t\t\t\t\tconsole.warn(`${key} already existed and was deleted from the manager...`);\n\t\t\t\t}\n\t\t\t\tthis.jobs[key] = new CronJob(tab, task, onComplete, start, timeZone, context, runOnInit);\n\t\t\t} catch (fooBaredByUser) {\n\t\t\t\tconsole.error(`crontab: ${tab} possibly not valid, job ${key} not started...${fooBaredByUser.message}`);\n\t\t\t}\n\t\t} else {\n\t\t\tconsole.warn(`couldn't add: ${key} improper arguments`);\n\t\t}\n\t}\n\n\tupdate(key: string, tab: string | Date, task: CronCommand<any, boolean>, onComplete?: () => void, start?: boolean, timeZone?: string, context?: any, runOnInit?: boolean): void {\n\t\t// Check if the job exists\n\t\tif (!this.jobs[key]) {\n\t\t\tconsole.warn(`Job with key ${key} does not exist.`);\n\t\t\treturn;\n\t\t}\n\n\t\t// Store the running state\n\t\tconst wasRunning = this.jobs[key].running;\n\t\n\t\t// Stop the existing job\n\t\tthis.jobs[key].stop();\n\t\n\t\t// Create a new job instance with the updated properties\n\t\tconst newJob = new CronJob(\n\t\t\ttab,\n\t\t\ttask,\n\t\t\tonComplete,\n\t\t\tstart || wasRunning,\n\t\t\ttimeZone,\n\t\t\tcontext,\n\t\t\trunOnInit\n\t\t);\n\n\t\tdelete this.jobs[key];\n\t\n\t\t// Replace the old job with the new one\n\t\tthis.jobs[key] = newJob;\n\t}\n\t\n\t\n\tdelete(key: string) {\n\t\ttry {\n\t\t\tthis.jobs[key].stop();\n\t\t\tdelete this.jobs[key];\n\t\t}\n\t\tcatch (err) { \n\t\t\tconsole.error(new Date(), `error in trying to stop job: ${key}: ${err}`);\n\t\t}\n\t}\n\n\tstart(key: string) {\n\t\ttry {\n\t\t\tif (this.jobs[key].running) {\n\t\t\t\tconsole.warn(`${key} job already running`);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.jobs[key].start();\n\t\t\t}\n\t\t}\n\t\tcatch (err) {\n\t\t\tconsole.error(`couldn't start job: ${key}: ${err}`);\n\t\t}\n\t}\n\n\tstop(key: string) {\n\t\ttry {\n\t\t\tif (!this.jobs[key].running ) {\n\t\t\t\tconsole.warn(`${key} job already stopped`);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.jobs[key].stop();\n\t\t\t}\n\t\t}\n\t\tcatch (err) {\n\t\t\tconsole.error(`couldn't stop job: ${key}: ${err}`);\n\t\t}\n\t}\n\n\tstopAll() {\n\t\tfor (let jobKey in this.jobs) {\n\t\t\tthis.jobs[jobKey].stop();\n\t\t}\n\t}\n\n\texists(key: string) {\n\t\treturn !!this.jobs[key];\n\t}\n}"]}