@resolveio/server-lib 12.5.54 → 12.5.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client-server-app.d.ts +1 -0
- package/client-server-app.js +48 -0
- package/client-server-app.js.map +1 -0
- package/collections/app-status.collection.d.ts +3 -0
- package/collections/app-status.collection.js +51 -0
- package/collections/app-status.collection.js.map +1 -0
- package/collections/counter.collection.d.ts +3 -0
- package/collections/counter.collection.js +54 -0
- package/collections/counter.collection.js.map +1 -0
- package/collections/cron-job-history.collection.d.ts +3 -0
- package/collections/cron-job-history.collection.js +82 -0
- package/collections/cron-job-history.collection.js.map +1 -0
- package/collections/cron-job.collection.d.ts +3 -0
- package/collections/cron-job.collection.js +85 -0
- package/collections/cron-job.collection.js.map +1 -0
- package/collections/email-history.collection.d.ts +3 -0
- package/collections/email-history.collection.js +66 -0
- package/collections/email-history.collection.js.map +1 -0
- package/collections/email-verified.collection.d.ts +3 -0
- package/collections/email-verified.collection.js +61 -0
- package/collections/email-verified.collection.js.map +1 -0
- package/collections/file.collection.d.ts +3 -0
- package/collections/file.collection.js +73 -0
- package/collections/file.collection.js.map +1 -0
- package/collections/flag.collection.d.ts +3 -0
- package/collections/flag.collection.js +56 -0
- package/collections/flag.collection.js.map +1 -0
- package/collections/log-method-latency.collection.d.ts +3 -0
- package/collections/log-method-latency.collection.js +64 -0
- package/collections/log-method-latency.collection.js.map +1 -0
- package/collections/log-subscription.collection.d.ts +3 -0
- package/collections/log-subscription.collection.js +68 -0
- package/collections/log-subscription.collection.js.map +1 -0
- package/collections/log-ts.collection.d.ts +3 -0
- package/collections/log-ts.collection.js +78 -0
- package/collections/log-ts.collection.js.map +1 -0
- package/collections/log.collection.d.ts +3 -0
- package/collections/log.collection.js +77 -0
- package/collections/log.collection.js.map +1 -0
- package/collections/logged-in-users.collection.d.ts +3 -0
- package/collections/logged-in-users.collection.js +65 -0
- package/collections/logged-in-users.collection.js.map +1 -0
- package/collections/method-response.collection.d.ts +3 -0
- package/collections/method-response.collection.js +66 -0
- package/collections/method-response.collection.js.map +1 -0
- package/collections/monitor-cpu.collection.d.ts +3 -0
- package/collections/monitor-cpu.collection.js +63 -0
- package/collections/monitor-cpu.collection.js.map +1 -0
- package/collections/monitor-memory.collection.d.ts +3 -0
- package/collections/monitor-memory.collection.js +75 -0
- package/collections/monitor-memory.collection.js.map +1 -0
- package/collections/monitor-mongo.collection.d.ts +3 -0
- package/collections/monitor-mongo.collection.js +69 -0
- package/collections/monitor-mongo.collection.js.map +1 -0
- package/collections/notification.collection.d.ts +3 -0
- package/collections/notification.collection.js +51 -0
- package/collections/notification.collection.js.map +1 -0
- package/collections/report-builder-dashboard-builder.collection.d.ts +3 -0
- package/collections/report-builder-dashboard-builder.collection.js +109 -0
- package/collections/report-builder-dashboard-builder.collection.js.map +1 -0
- package/collections/report-builder-library.collection.d.ts +3 -0
- package/collections/report-builder-library.collection.js +87 -0
- package/collections/report-builder-library.collection.js.map +1 -0
- package/collections/report-builder-report.collection.d.ts +4 -0
- package/collections/report-builder-report.collection.js +149 -0
- package/collections/report-builder-report.collection.js.map +1 -0
- package/collections/user-group.collection.d.ts +4 -0
- package/collections/user-group.collection.js +90 -0
- package/collections/user-group.collection.js.map +1 -0
- package/collections/user-guide.collection.d.ts +3 -0
- package/collections/user-guide.collection.js +57 -0
- package/collections/user-guide.collection.js.map +1 -0
- package/collections/user.collection.d.ts +4 -0
- package/collections/user.collection.js +259 -0
- package/collections/user.collection.js.map +1 -0
- package/cron/cron.d.ts +5 -0
- package/cron/cron.js +162 -0
- package/cron/cron.js.map +1 -0
- package/fixtures/cron-jobs.d.ts +1 -0
- package/fixtures/cron-jobs.js +73 -0
- package/fixtures/cron-jobs.js.map +1 -0
- package/fixtures/init.d.ts +1 -0
- package/fixtures/init.js +59 -0
- package/fixtures/init.js.map +1 -0
- package/http/auth.d.ts +2 -0
- package/http/auth.js +763 -0
- package/http/auth.js.map +1 -0
- package/http/health.d.ts +1 -0
- package/http/health.js +12 -0
- package/http/health.js.map +1 -0
- package/http/home.d.ts +2 -0
- package/http/home.js +66 -0
- package/http/home.js.map +1 -0
- package/index.d.ts +23 -0
- package/index.js +127 -0
- package/index.js.map +1 -0
- package/managers/cron.manager.d.ts +17 -0
- package/managers/cron.manager.js +242 -0
- package/managers/cron.manager.js.map +1 -0
- package/managers/method.manager.d.ts +38 -0
- package/managers/method.manager.js +595 -0
- package/managers/method.manager.js.map +1 -0
- package/managers/mongo.manager.d.ts +178 -0
- package/managers/mongo.manager.js +2221 -0
- package/managers/mongo.manager.js.map +1 -0
- package/managers/monitor.manager.d.ts +59 -0
- package/managers/monitor.manager.js +351 -0
- package/managers/monitor.manager.js.map +1 -0
- package/managers/subscription.manager.d.ts +50 -0
- package/managers/subscription.manager.js +1091 -0
- package/managers/subscription.manager.js.map +1 -0
- package/managers/subscription.performance.d.ts +1 -0
- package/{src/managers/subscription.performance.ts → managers/subscription.performance.js} +33 -68
- package/managers/subscription.performance.js.map +1 -0
- package/methods/accounts.d.ts +2 -0
- package/methods/accounts.js +274 -0
- package/methods/accounts.js.map +1 -0
- package/methods/aws.d.ts +2 -0
- package/methods/aws.js +617 -0
- package/methods/aws.js.map +1 -0
- package/methods/collections.d.ts +2 -0
- package/methods/collections.js +499 -0
- package/methods/collections.js.map +1 -0
- package/methods/counters.d.ts +2 -0
- package/methods/counters.js +122 -0
- package/methods/counters.js.map +1 -0
- package/methods/cron-jobs.d.ts +2 -0
- package/methods/cron-jobs.js +1315 -0
- package/methods/cron-jobs.js.map +1 -0
- package/methods/flags.d.ts +2 -0
- package/methods/flags.js +9 -0
- package/methods/flags.js.map +1 -0
- package/methods/logs.d.ts +2 -0
- package/methods/logs.js +371 -0
- package/methods/logs.js.map +1 -0
- package/methods/monitor.d.ts +2 -0
- package/methods/monitor.js +565 -0
- package/methods/monitor.js.map +1 -0
- package/methods/pdf.d.ts +2 -0
- package/methods/pdf.js +468 -0
- package/methods/pdf.js.map +1 -0
- package/methods/report-builder.d.ts +2 -0
- package/methods/report-builder.js +858 -0
- package/methods/report-builder.js.map +1 -0
- package/methods/support.d.ts +2 -0
- package/methods/support.js +246 -0
- package/methods/support.js.map +1 -0
- package/{src/models/app-status.model.ts → models/app-status.model.d.ts} +2 -3
- package/models/app-status.model.js +4 -0
- package/models/app-status.model.js.map +1 -0
- package/{src/models/billing-logged-in-users.model.ts → models/billing-logged-in-users.model.d.ts} +4 -5
- package/models/billing-logged-in-users.model.js +4 -0
- package/models/billing-logged-in-users.model.js.map +1 -0
- package/models/collection-document.model.d.ts +19 -0
- package/models/collection-document.model.js +4 -0
- package/models/collection-document.model.js.map +1 -0
- package/{src/models/counter.model.ts → models/counter.model.d.ts} +3 -4
- package/models/counter.model.js +4 -0
- package/models/counter.model.js.map +1 -0
- package/models/cron-job-history.model.d.ts +12 -0
- package/models/cron-job-history.model.js +4 -0
- package/models/cron-job-history.model.js.map +1 -0
- package/models/cron-job.model.d.ts +13 -0
- package/models/cron-job.model.js +4 -0
- package/models/cron-job.model.js.map +1 -0
- package/models/dialog.model.d.ts +23 -0
- package/models/dialog.model.js +4 -0
- package/models/dialog.model.js.map +1 -0
- package/{src/models/email-history.model.ts → models/email-history.model.d.ts} +7 -8
- package/models/email-history.model.js +4 -0
- package/models/email-history.model.js.map +1 -0
- package/{src/models/email-verified.model.ts → models/email-verified.model.d.ts} +5 -6
- package/models/email-verified.model.js +4 -0
- package/models/email-verified.model.js.map +1 -0
- package/{src/models/file.model.ts → models/file.model.d.ts} +7 -8
- package/models/file.model.js +4 -0
- package/models/file.model.js.map +1 -0
- package/{src/models/flag.model.ts → models/flag.model.d.ts} +3 -4
- package/models/flag.model.js +4 -0
- package/models/flag.model.js.map +1 -0
- package/{src/models/log-method-latency.model.ts → models/log-method-latency.model.d.ts} +4 -5
- package/models/log-method-latency.model.js +4 -0
- package/models/log-method-latency.model.js.map +1 -0
- package/{src/models/log-subscription.model.ts → models/log-subscription.model.d.ts} +6 -8
- package/models/log-subscription.model.js +4 -0
- package/models/log-subscription.model.js.map +1 -0
- package/{src/models/log.model.ts → models/log.model.d.ts} +10 -12
- package/models/log.model.js +4 -0
- package/models/log.model.js.map +1 -0
- package/{src/models/logged-in-users.model.ts → models/logged-in-users.model.d.ts} +5 -6
- package/models/logged-in-users.model.js +4 -0
- package/models/logged-in-users.model.js.map +1 -0
- package/{src/models/method-response.model.ts → models/method-response.model.d.ts} +6 -7
- package/models/method-response.model.js +4 -0
- package/models/method-response.model.js.map +1 -0
- package/models/method.model.d.ts +9 -0
- package/models/method.model.js +4 -0
- package/models/method.model.js.map +1 -0
- package/{src/models/monitor-cpu.model.ts → models/monitor-cpu.model.d.ts} +7 -9
- package/models/monitor-cpu.model.js +4 -0
- package/models/monitor-cpu.model.js.map +1 -0
- package/models/monitor-memory.model.d.ts +15 -0
- package/models/monitor-memory.model.js +4 -0
- package/models/monitor-memory.model.js.map +1 -0
- package/models/monitor-mongo.model.d.ts +13 -0
- package/models/monitor-mongo.model.js +4 -0
- package/models/monitor-mongo.model.js.map +1 -0
- package/{src/models/notification.model.ts → models/notification.model.d.ts} +2 -3
- package/models/notification.model.js +4 -0
- package/models/notification.model.js.map +1 -0
- package/models/pagination.model.d.ts +10 -0
- package/models/pagination.model.js +24 -0
- package/models/pagination.model.js.map +1 -0
- package/models/permission.model.d.ts +12 -0
- package/models/permission.model.js +4 -0
- package/models/permission.model.js.map +1 -0
- package/models/report-builder-dashboard-builder.model.d.ts +25 -0
- package/models/report-builder-dashboard-builder.model.js +4 -0
- package/models/report-builder-dashboard-builder.model.js.map +1 -0
- package/models/report-builder-library.model.d.ts +17 -0
- package/models/report-builder-library.model.js +4 -0
- package/models/report-builder-library.model.js.map +1 -0
- package/models/report-builder-report.model.d.ts +98 -0
- package/models/report-builder-report.model.js +4 -0
- package/models/report-builder-report.model.js.map +1 -0
- package/models/report-builder.model.d.ts +61 -0
- package/models/report-builder.model.js +4 -0
- package/models/report-builder.model.js.map +1 -0
- package/models/select-data-label.model.d.ts +9 -0
- package/models/select-data-label.model.js +4 -0
- package/models/select-data-label.model.js.map +1 -0
- package/models/server-response.model.d.ts +5 -0
- package/models/server-response.model.js +4 -0
- package/models/server-response.model.js.map +1 -0
- package/models/subscription.model.d.ts +23 -0
- package/models/subscription.model.js +4 -0
- package/models/subscription.model.js.map +1 -0
- package/models/support-ticket.model.d.ts +72 -0
- package/models/support-ticket.model.js +4 -0
- package/models/support-ticket.model.js.map +1 -0
- package/models/user-group.model.d.ts +19 -0
- package/models/user-group.model.js +4 -0
- package/models/user-group.model.js.map +1 -0
- package/{src/models/user-guide.model.ts → models/user-guide.model.d.ts} +4 -5
- package/models/user-guide.model.js +4 -0
- package/models/user-guide.model.js.map +1 -0
- package/models/user.model.d.ts +70 -0
- package/models/user.model.js +4 -0
- package/models/user.model.js.map +1 -0
- package/package.json +1 -1
- package/{src/public_api.ts → public_api.d.ts} +1 -1
- package/public_api.js +75 -0
- package/public_api.js.map +1 -0
- package/publications/app-status.d.ts +2 -0
- package/publications/app-status.js +17 -0
- package/publications/app-status.js.map +1 -0
- package/publications/cron-jobs.d.ts +2 -0
- package/publications/cron-jobs.js +33 -0
- package/publications/cron-jobs.js.map +1 -0
- package/publications/files.d.ts +2 -0
- package/publications/files.js +37 -0
- package/publications/files.js.map +1 -0
- package/publications/flags.d.ts +2 -0
- package/publications/flags.js +23 -0
- package/publications/flags.js.map +1 -0
- package/publications/logs.d.ts +2 -0
- package/publications/logs.js +165 -0
- package/publications/logs.js.map +1 -0
- package/publications/method-responses.d.ts +2 -0
- package/publications/method-responses.js +17 -0
- package/publications/method-responses.js.map +1 -0
- package/publications/notifications.d.ts +2 -0
- package/publications/notifications.js +17 -0
- package/publications/notifications.js.map +1 -0
- package/publications/report-builder-dashboard-builders.d.ts +2 -0
- package/publications/report-builder-dashboard-builders.js +43 -0
- package/publications/report-builder-dashboard-builders.js.map +1 -0
- package/publications/report-builder-libraries.d.ts +2 -0
- package/publications/report-builder-libraries.js +90 -0
- package/publications/report-builder-libraries.js.map +1 -0
- package/publications/report-builder-reports.d.ts +2 -0
- package/publications/report-builder-reports.js +51 -0
- package/publications/report-builder-reports.js.map +1 -0
- package/publications/super-admin.d.ts +2 -0
- package/publications/super-admin.js +17 -0
- package/publications/super-admin.js.map +1 -0
- package/publications/user-groups.d.ts +1 -0
- package/publications/user-groups.js +17 -0
- package/publications/user-groups.js.map +1 -0
- package/publications/user-guides.d.ts +1 -0
- package/publications/user-guides.js +17 -0
- package/publications/user-guides.js.map +1 -0
- package/server-app.d.ts +52 -0
- package/server-app.js +739 -0
- package/server-app.js.map +1 -0
- package/util/common.d.ts +24 -0
- package/util/common.js +511 -0
- package/util/common.js.map +1 -0
- package/util/schema-report-builder.d.ts +6 -0
- package/util/schema-report-builder.js +453 -0
- package/util/schema-report-builder.js.map +1 -0
- package/.nodemon.json +0 -5
- package/.vscode/settings.json +0 -3
- package/README.md +0 -22
- package/compileDTS.pl +0 -64
- package/gulpfile.js +0 -127
- package/mongodbensurers.js +0 -2
- package/mongostop.js +0 -3
- package/settings.development.json +0 -13
- package/src/client-server-app.ts +0 -7
- package/src/collections/app-status.collection.ts +0 -51
- package/src/collections/counter.collection.ts +0 -54
- package/src/collections/cron-job-history.collection.ts +0 -82
- package/src/collections/cron-job.collection.ts +0 -85
- package/src/collections/email-history.collection.ts +0 -66
- package/src/collections/email-verified.collection.ts +0 -61
- package/src/collections/file.collection.ts +0 -73
- package/src/collections/flag.collection.ts +0 -56
- package/src/collections/log-method-latency.collection.ts +0 -64
- package/src/collections/log-subscription.collection.ts +0 -68
- package/src/collections/log-ts.collection.ts +0 -78
- package/src/collections/log.collection.ts +0 -77
- package/src/collections/logged-in-users.collection.ts +0 -65
- package/src/collections/method-response.collection.ts +0 -66
- package/src/collections/monitor-cpu.collection.ts +0 -63
- package/src/collections/monitor-memory.collection.ts +0 -75
- package/src/collections/monitor-mongo.collection.ts +0 -69
- package/src/collections/notification.collection.ts +0 -51
- package/src/collections/report-builder-dashboard-builder.collection.ts +0 -109
- package/src/collections/report-builder-library.collection.ts +0 -89
- package/src/collections/report-builder-report.collection.ts +0 -149
- package/src/collections/user-group.collection.ts +0 -90
- package/src/collections/user-guide.collection.ts +0 -57
- package/src/collections/user.collection.ts +0 -259
- package/src/cron/cron.ts +0 -188
- package/src/fixtures/cron-jobs.ts +0 -25
- package/src/fixtures/init.ts +0 -10
- package/src/http/auth.ts +0 -732
- package/src/http/health.ts +0 -7
- package/src/http/home.ts +0 -71
- package/src/index.ts +0 -71
- package/src/managers/cron.manager.ts +0 -208
- package/src/managers/method.manager.ts +0 -607
- package/src/managers/mongo.manager.ts +0 -2282
- package/src/managers/monitor.manager.ts +0 -323
- package/src/managers/subscription.manager.ts +0 -1196
- package/src/methods/accounts.ts +0 -202
- package/src/methods/aws.ts +0 -507
- package/src/methods/collections.ts +0 -512
- package/src/methods/counters.ts +0 -75
- package/src/methods/cron-jobs.ts +0 -1454
- package/src/methods/flags.ts +0 -7
- package/src/methods/logs.ts +0 -327
- package/src/methods/monitor.ts +0 -548
- package/src/methods/pdf.ts +0 -615
- package/src/methods/report-builder.ts +0 -876
- package/src/methods/support.ts +0 -146
- package/src/models/collection-document.model.ts +0 -22
- package/src/models/cron-job-history.model.ts +0 -13
- package/src/models/cron-job.model.ts +0 -14
- package/src/models/dialog.model.ts +0 -25
- package/src/models/method.model.ts +0 -11
- package/src/models/monitor-memory.model.ts +0 -17
- package/src/models/monitor-mongo.model.ts +0 -15
- package/src/models/pagination.model.ts +0 -30
- package/src/models/permission.model.ts +0 -14
- package/src/models/report-builder-dashboard-builder.model.ts +0 -29
- package/src/models/report-builder-library.model.ts +0 -20
- package/src/models/report-builder-report.model.ts +0 -110
- package/src/models/report-builder.model.ts +0 -68
- package/src/models/select-data-label.model.ts +0 -9
- package/src/models/server-response.model.ts +0 -5
- package/src/models/subscription.model.ts +0 -64
- package/src/models/support-ticket.model.ts +0 -81
- package/src/models/user-group.model.ts +0 -23
- package/src/models/user.model.ts +0 -79
- package/src/publications/app-status.ts +0 -13
- package/src/publications/cron-jobs.ts +0 -30
- package/src/publications/files.ts +0 -34
- package/src/publications/flags.ts +0 -20
- package/src/publications/logs.ts +0 -164
- package/src/publications/method-responses.ts +0 -13
- package/src/publications/notifications.ts +0 -13
- package/src/publications/report-builder-dashboard-builders.ts +0 -39
- package/src/publications/report-builder-libraries.ts +0 -41
- package/src/publications/report-builder-reports.ts +0 -48
- package/src/publications/super-admin.ts +0 -13
- package/src/publications/user-groups.ts +0 -12
- package/src/publications/user-guides.ts +0 -12
- package/src/server-app.ts +0 -769
- package/src/util/common.ts +0 -519
- package/src/util/schema-report-builder.ts +0 -413
- package/tsconfig.json +0 -30
- package/tslint.json +0 -143
- /package/{src/private → private}/email-templates/enrollment.html +0 -0
- /package/{src/private → private}/email-templates/forgot-password.html +0 -0
- /package/{src/private → private}/email-templates/support-ticket-deleted.html +0 -0
- /package/{src/private → private}/email-templates/support-ticket-modified.html +0 -0
- /package/{src/private → private}/email-templates/support-ticket.html +0 -0
- /package/{src/private → private}/images/ResolveIO.png +0 -0
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { ResolveIOServer } from '../index';
|
|
2
|
-
import { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';
|
|
3
|
-
import { NotificationModel } from '../models/notification.model';
|
|
4
|
-
|
|
5
|
-
let schema: any = {
|
|
6
|
-
_id: {
|
|
7
|
-
type: String,
|
|
8
|
-
optional: true
|
|
9
|
-
},
|
|
10
|
-
__v: {
|
|
11
|
-
type: Number,
|
|
12
|
-
optional: true
|
|
13
|
-
},
|
|
14
|
-
updatedAt: {
|
|
15
|
-
type: Date,
|
|
16
|
-
optional: true
|
|
17
|
-
},
|
|
18
|
-
createdAt: {
|
|
19
|
-
type: Date,
|
|
20
|
-
optional: true
|
|
21
|
-
},
|
|
22
|
-
name: {
|
|
23
|
-
type: String
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export let Notifications: MongoManagerCollection<NotificationModel> = null;
|
|
28
|
-
|
|
29
|
-
initializeCollection();
|
|
30
|
-
|
|
31
|
-
function initializeCollection() {
|
|
32
|
-
if (ResolveIOServer && ResolveIOServer.getMainDB()) {
|
|
33
|
-
const model = new MongoManagerModel<NotificationModel>({
|
|
34
|
-
collectionName: 'notifications',
|
|
35
|
-
schema: schema,
|
|
36
|
-
useVersionCollection: false,
|
|
37
|
-
useReportBuilder: false,
|
|
38
|
-
reportBuilderLookupTables: [],
|
|
39
|
-
timestamps: true,
|
|
40
|
-
createLogs: false,
|
|
41
|
-
checkSchema: true,
|
|
42
|
-
collectionOptions: null
|
|
43
|
-
});
|
|
44
|
-
Notifications = model.collection_main;
|
|
45
|
-
}
|
|
46
|
-
else {
|
|
47
|
-
setTimeout(() => {
|
|
48
|
-
initializeCollection();
|
|
49
|
-
}, 1);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { ResolveIOServer } from '../index';
|
|
2
|
-
import { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';
|
|
3
|
-
import { ReportBuilderDashboardBuilderModel } from '../models/report-builder-dashboard-builder.model';
|
|
4
|
-
|
|
5
|
-
let schema: any = {
|
|
6
|
-
_id: {
|
|
7
|
-
type: String,
|
|
8
|
-
optional: true
|
|
9
|
-
},
|
|
10
|
-
__v: {
|
|
11
|
-
type: Number,
|
|
12
|
-
optional: true
|
|
13
|
-
},
|
|
14
|
-
updatedAt: {
|
|
15
|
-
type: Date,
|
|
16
|
-
optional: true
|
|
17
|
-
},
|
|
18
|
-
createdAt: {
|
|
19
|
-
type: Date,
|
|
20
|
-
optional: true
|
|
21
|
-
},
|
|
22
|
-
name: {
|
|
23
|
-
type: String
|
|
24
|
-
},
|
|
25
|
-
date_created: {
|
|
26
|
-
type: Date
|
|
27
|
-
},
|
|
28
|
-
id_user_created: {
|
|
29
|
-
type: String
|
|
30
|
-
},
|
|
31
|
-
user_created: {
|
|
32
|
-
type: String
|
|
33
|
-
},
|
|
34
|
-
num_rows: {
|
|
35
|
-
type: Number
|
|
36
|
-
},
|
|
37
|
-
num_columns: {
|
|
38
|
-
type: Number
|
|
39
|
-
},
|
|
40
|
-
report_rows: {
|
|
41
|
-
type: Array
|
|
42
|
-
},
|
|
43
|
-
'report_rows.$': {
|
|
44
|
-
type: Object
|
|
45
|
-
},
|
|
46
|
-
'report_rows.$.report_columns': {
|
|
47
|
-
type: Array
|
|
48
|
-
},
|
|
49
|
-
'report_rows.$.report_columns.$': {
|
|
50
|
-
type: Object
|
|
51
|
-
},
|
|
52
|
-
'report_rows.$.report_columns.$.id_report': {
|
|
53
|
-
type: String
|
|
54
|
-
},
|
|
55
|
-
'report_rows.$.report_columns.$.report_name': {
|
|
56
|
-
type: String
|
|
57
|
-
},
|
|
58
|
-
'report_rows.$.report_columns.$.report_type': {
|
|
59
|
-
type: String
|
|
60
|
-
},
|
|
61
|
-
'report_rows.$.report_columns.$.display_type': {
|
|
62
|
-
type: String
|
|
63
|
-
},
|
|
64
|
-
'report_rows.$.report_columns.$.display_values': {
|
|
65
|
-
type: Array
|
|
66
|
-
},
|
|
67
|
-
'report_rows.$.report_columns.$.display_values.$': {
|
|
68
|
-
type: String
|
|
69
|
-
},
|
|
70
|
-
'report_rows.$.report_columns.$.display_text': {
|
|
71
|
-
type: String
|
|
72
|
-
},
|
|
73
|
-
'report_rows.$.report_columns.$.display_value': {
|
|
74
|
-
type: String
|
|
75
|
-
},
|
|
76
|
-
other: {
|
|
77
|
-
type: Object,
|
|
78
|
-
blackbox: true,
|
|
79
|
-
optional: true
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
export let ReportBuilderDashboardBuilders: MongoManagerCollection<ReportBuilderDashboardBuilderModel> = null;
|
|
84
|
-
|
|
85
|
-
initializeCollection();
|
|
86
|
-
|
|
87
|
-
function initializeCollection() {
|
|
88
|
-
if (ResolveIOServer && ResolveIOServer.getMainDB()) {
|
|
89
|
-
const model = new MongoManagerModel<ReportBuilderDashboardBuilderModel>({
|
|
90
|
-
collectionName: 'report-builder-dashboard-builders',
|
|
91
|
-
schema: schema,
|
|
92
|
-
useVersionCollection: false,
|
|
93
|
-
useReportBuilder: false,
|
|
94
|
-
reportBuilderLookupTables: [],
|
|
95
|
-
timestamps: true,
|
|
96
|
-
createLogs: true,
|
|
97
|
-
checkSchema: true,
|
|
98
|
-
collectionOptions: null
|
|
99
|
-
});
|
|
100
|
-
ReportBuilderDashboardBuilders = model.collection_main;
|
|
101
|
-
ReportBuilderDashboardBuilders.createIndex({name: 1});
|
|
102
|
-
ReportBuilderDashboardBuilders.createIndex({date_created: 1});
|
|
103
|
-
}
|
|
104
|
-
else {
|
|
105
|
-
setTimeout(() => {
|
|
106
|
-
initializeCollection();
|
|
107
|
-
}, 1);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { ResolveIOServer } from '../index';
|
|
2
|
-
import { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';
|
|
3
|
-
import { ReportBuilderLibraryModel } from '../models/report-builder-library.model';
|
|
4
|
-
|
|
5
|
-
let schema: any = {
|
|
6
|
-
_id: {
|
|
7
|
-
type: String,
|
|
8
|
-
optional: true
|
|
9
|
-
},
|
|
10
|
-
__v: {
|
|
11
|
-
type: Number,
|
|
12
|
-
optional: true
|
|
13
|
-
},
|
|
14
|
-
updatedAt: {
|
|
15
|
-
type: Date,
|
|
16
|
-
optional: true
|
|
17
|
-
},
|
|
18
|
-
createdAt: {
|
|
19
|
-
type: Date,
|
|
20
|
-
optional: true
|
|
21
|
-
},
|
|
22
|
-
name: {
|
|
23
|
-
type: String
|
|
24
|
-
},
|
|
25
|
-
id_user_create: {
|
|
26
|
-
type: String
|
|
27
|
-
},
|
|
28
|
-
user_create: {
|
|
29
|
-
type: String
|
|
30
|
-
},
|
|
31
|
-
date: {
|
|
32
|
-
type: Date
|
|
33
|
-
},
|
|
34
|
-
reports: {
|
|
35
|
-
type: Array
|
|
36
|
-
},
|
|
37
|
-
'reports.$': {
|
|
38
|
-
type: Object
|
|
39
|
-
},
|
|
40
|
-
'reports.$.id_report': {
|
|
41
|
-
type: String
|
|
42
|
-
},
|
|
43
|
-
'reports.$.report': {
|
|
44
|
-
type: String
|
|
45
|
-
},
|
|
46
|
-
user_groups: {
|
|
47
|
-
type: Array
|
|
48
|
-
},
|
|
49
|
-
'user_groups.$': {
|
|
50
|
-
type: Object
|
|
51
|
-
},
|
|
52
|
-
'user_groups.$.id_user_group': {
|
|
53
|
-
type: String
|
|
54
|
-
},
|
|
55
|
-
'user_groups.$.user_group': {
|
|
56
|
-
type: String
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
export let ReportBuilderLibraries: MongoManagerCollection<ReportBuilderLibraryModel> = null;
|
|
63
|
-
|
|
64
|
-
initializeCollection();
|
|
65
|
-
|
|
66
|
-
function initializeCollection() {
|
|
67
|
-
if (ResolveIOServer && ResolveIOServer.getMainDB()) {
|
|
68
|
-
const model = new MongoManagerModel<ReportBuilderLibraryModel>({
|
|
69
|
-
collectionName: 'report-builder-libraries',
|
|
70
|
-
schema: schema,
|
|
71
|
-
useVersionCollection: false,
|
|
72
|
-
useReportBuilder: false,
|
|
73
|
-
reportBuilderLookupTables: [],
|
|
74
|
-
timestamps: true,
|
|
75
|
-
createLogs: true,
|
|
76
|
-
checkSchema: true,
|
|
77
|
-
collectionOptions: null
|
|
78
|
-
});
|
|
79
|
-
ReportBuilderLibraries = model.collection_main;
|
|
80
|
-
ReportBuilderLibraries.createIndex({name: 1});
|
|
81
|
-
ReportBuilderLibraries.createIndex({id_user_create: 1});
|
|
82
|
-
ReportBuilderLibraries.createIndex({'user_groups.id_user_group': 1});
|
|
83
|
-
}
|
|
84
|
-
else {
|
|
85
|
-
setTimeout(() => {
|
|
86
|
-
initializeCollection();
|
|
87
|
-
}, 1);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
import { ResolveIOServer } from '../index';
|
|
2
|
-
import { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';
|
|
3
|
-
import { ReportBuilderReportModel } from '../models/report-builder-report.model';
|
|
4
|
-
|
|
5
|
-
let schema: any = {
|
|
6
|
-
_id: {
|
|
7
|
-
type: String,
|
|
8
|
-
optional: true
|
|
9
|
-
},
|
|
10
|
-
__v: {
|
|
11
|
-
type: Number,
|
|
12
|
-
optional: true
|
|
13
|
-
},
|
|
14
|
-
updatedAt: {
|
|
15
|
-
type: Date,
|
|
16
|
-
optional: true
|
|
17
|
-
},
|
|
18
|
-
createdAt: {
|
|
19
|
-
type: Date,
|
|
20
|
-
optional: true
|
|
21
|
-
},
|
|
22
|
-
collection_root: {
|
|
23
|
-
type: String
|
|
24
|
-
},
|
|
25
|
-
report_name: {
|
|
26
|
-
type: String
|
|
27
|
-
},
|
|
28
|
-
fields_sort: {
|
|
29
|
-
type: Array
|
|
30
|
-
},
|
|
31
|
-
'fields_sort.$': {
|
|
32
|
-
type: Object
|
|
33
|
-
},
|
|
34
|
-
'fields_sort.$.field': {
|
|
35
|
-
type: String
|
|
36
|
-
},
|
|
37
|
-
'fields_sort.$.order': {
|
|
38
|
-
type: String
|
|
39
|
-
},
|
|
40
|
-
fields_filter: {
|
|
41
|
-
type: Array
|
|
42
|
-
},
|
|
43
|
-
'fields_filter.$': {
|
|
44
|
-
type: Object,
|
|
45
|
-
blackbox: true
|
|
46
|
-
},
|
|
47
|
-
fields_custom: {
|
|
48
|
-
type: Array
|
|
49
|
-
},
|
|
50
|
-
'fields_custom.$': {
|
|
51
|
-
type: Object,
|
|
52
|
-
blackbox: true
|
|
53
|
-
},
|
|
54
|
-
fields_selected: {
|
|
55
|
-
type: Array
|
|
56
|
-
},
|
|
57
|
-
'fields_selected.$': {
|
|
58
|
-
type: Object,
|
|
59
|
-
blackbox: true
|
|
60
|
-
},
|
|
61
|
-
fields_total: {
|
|
62
|
-
type: Array
|
|
63
|
-
},
|
|
64
|
-
'fields_total.$': {
|
|
65
|
-
type: Object,
|
|
66
|
-
blackbox: true
|
|
67
|
-
},
|
|
68
|
-
fields_link: {
|
|
69
|
-
type: Array
|
|
70
|
-
},
|
|
71
|
-
'fields_link.$': {
|
|
72
|
-
type: Object,
|
|
73
|
-
blackbox: true
|
|
74
|
-
},
|
|
75
|
-
id_user: {
|
|
76
|
-
type: String
|
|
77
|
-
},
|
|
78
|
-
user: {
|
|
79
|
-
type: String
|
|
80
|
-
},
|
|
81
|
-
date_created: {
|
|
82
|
-
type: Date
|
|
83
|
-
},
|
|
84
|
-
shared_users: {
|
|
85
|
-
type: Array
|
|
86
|
-
},
|
|
87
|
-
'shared_users.$': {
|
|
88
|
-
type: String
|
|
89
|
-
},
|
|
90
|
-
type: {
|
|
91
|
-
type: String
|
|
92
|
-
},
|
|
93
|
-
groups_row: {
|
|
94
|
-
type: Array
|
|
95
|
-
},
|
|
96
|
-
'groups_row.$': {
|
|
97
|
-
type: Object,
|
|
98
|
-
blackbox: true
|
|
99
|
-
},
|
|
100
|
-
groups_column: {
|
|
101
|
-
type: Array
|
|
102
|
-
},
|
|
103
|
-
'groups_column.$': {
|
|
104
|
-
type: Object,
|
|
105
|
-
blackbox: true
|
|
106
|
-
},
|
|
107
|
-
group_type: {
|
|
108
|
-
type: String
|
|
109
|
-
},
|
|
110
|
-
id_date_field: {
|
|
111
|
-
type: String,
|
|
112
|
-
optional: true
|
|
113
|
-
},
|
|
114
|
-
date_interval: {
|
|
115
|
-
type: String,
|
|
116
|
-
optional: true
|
|
117
|
-
}
|
|
118
|
-
};
|
|
119
|
-
|
|
120
|
-
export let ReportBuilderReports: MongoManagerCollection<ReportBuilderReportModel> = null;
|
|
121
|
-
export let ReportBuilderReportVersions: MongoManagerCollection<ReportBuilderReportModel> = null;
|
|
122
|
-
|
|
123
|
-
initializeCollection();
|
|
124
|
-
|
|
125
|
-
function initializeCollection() {
|
|
126
|
-
if (ResolveIOServer && ResolveIOServer.getMainDB()) {
|
|
127
|
-
const model = new MongoManagerModel<ReportBuilderReportModel>({
|
|
128
|
-
collectionName: 'report-builder-reports',
|
|
129
|
-
schema: schema,
|
|
130
|
-
useVersionCollection: true,
|
|
131
|
-
useReportBuilder: false,
|
|
132
|
-
reportBuilderLookupTables: [],
|
|
133
|
-
timestamps: true,
|
|
134
|
-
createLogs: true,
|
|
135
|
-
checkSchema: true,
|
|
136
|
-
collectionOptions: null
|
|
137
|
-
});
|
|
138
|
-
ReportBuilderReports = model.collection_main;
|
|
139
|
-
ReportBuilderReports.createIndex({id_user: 1});
|
|
140
|
-
ReportBuilderReports.createIndex({shared_users: 1});
|
|
141
|
-
ReportBuilderReports.createIndex({report_name: 1, collection_root: 1});
|
|
142
|
-
ReportBuilderReportVersions = model.collection_version;
|
|
143
|
-
}
|
|
144
|
-
else {
|
|
145
|
-
setTimeout(() => {
|
|
146
|
-
initializeCollection();
|
|
147
|
-
}, 1);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { ResolveIOServer } from '../index';
|
|
2
|
-
import { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';
|
|
3
|
-
import { UserGroupModel } from '../models/user-group.model';
|
|
4
|
-
|
|
5
|
-
let schema: any = {
|
|
6
|
-
_id: {
|
|
7
|
-
type: String,
|
|
8
|
-
optional: true
|
|
9
|
-
},
|
|
10
|
-
__v: {
|
|
11
|
-
type: Number,
|
|
12
|
-
optional: true
|
|
13
|
-
},
|
|
14
|
-
updatedAt: {
|
|
15
|
-
type: Date,
|
|
16
|
-
optional: true
|
|
17
|
-
},
|
|
18
|
-
createdAt: {
|
|
19
|
-
type: Date,
|
|
20
|
-
optional: true
|
|
21
|
-
},
|
|
22
|
-
name: {
|
|
23
|
-
type: String
|
|
24
|
-
},
|
|
25
|
-
permissions: {
|
|
26
|
-
type: Array
|
|
27
|
-
},
|
|
28
|
-
'permissions.$': {
|
|
29
|
-
type: Object
|
|
30
|
-
},
|
|
31
|
-
'permissions.$.name': {
|
|
32
|
-
type: String
|
|
33
|
-
},
|
|
34
|
-
'permissions.$.selected': {
|
|
35
|
-
type: Boolean
|
|
36
|
-
},
|
|
37
|
-
'permissions.$.views': {
|
|
38
|
-
type: Array
|
|
39
|
-
},
|
|
40
|
-
'permissions.$.views.$': {
|
|
41
|
-
type: Object
|
|
42
|
-
},
|
|
43
|
-
'permissions.$.views.$.link': {
|
|
44
|
-
type: String
|
|
45
|
-
},
|
|
46
|
-
'permissions.$.views.$.selected': {
|
|
47
|
-
type: Boolean
|
|
48
|
-
},
|
|
49
|
-
notifications: {
|
|
50
|
-
type: Array
|
|
51
|
-
},
|
|
52
|
-
'notifications.$': {
|
|
53
|
-
type: Object
|
|
54
|
-
},
|
|
55
|
-
'notifications.$.name': {
|
|
56
|
-
type: String
|
|
57
|
-
},
|
|
58
|
-
'notifications.$.selected': {
|
|
59
|
-
type: Boolean
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
export let UserGroups: MongoManagerCollection<UserGroupModel> = null;
|
|
64
|
-
export let UserGroupVersions: MongoManagerCollection<UserGroupModel> = null;
|
|
65
|
-
|
|
66
|
-
initializeCollection();
|
|
67
|
-
|
|
68
|
-
function initializeCollection() {
|
|
69
|
-
if (ResolveIOServer && ResolveIOServer.getMainDB()) {
|
|
70
|
-
const model = new MongoManagerModel<UserGroupModel>({
|
|
71
|
-
collectionName: 'user-groups',
|
|
72
|
-
schema: schema,
|
|
73
|
-
useVersionCollection: true,
|
|
74
|
-
useReportBuilder: true,
|
|
75
|
-
reportBuilderLookupTables: [],
|
|
76
|
-
timestamps: true,
|
|
77
|
-
createLogs: false,
|
|
78
|
-
checkSchema: true,
|
|
79
|
-
collectionOptions: null
|
|
80
|
-
});
|
|
81
|
-
UserGroups = model.collection_main;
|
|
82
|
-
UserGroups.createIndex({name: 1});
|
|
83
|
-
UserGroupVersions = model.collection_version;
|
|
84
|
-
}
|
|
85
|
-
else {
|
|
86
|
-
setTimeout(() => {
|
|
87
|
-
initializeCollection();
|
|
88
|
-
}, 1);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { ResolveIOServer } from '../index';
|
|
2
|
-
import { MongoManagerCollection, MongoManagerModel } from '../managers/mongo.manager';
|
|
3
|
-
import { UserGuideModel } from '../models/user-guide.model';
|
|
4
|
-
|
|
5
|
-
let schema: any = {
|
|
6
|
-
_id: {
|
|
7
|
-
type: String,
|
|
8
|
-
optional: true
|
|
9
|
-
},
|
|
10
|
-
__v: {
|
|
11
|
-
type: Number,
|
|
12
|
-
optional: true
|
|
13
|
-
},
|
|
14
|
-
updatedAt: {
|
|
15
|
-
type: Date,
|
|
16
|
-
optional: true
|
|
17
|
-
},
|
|
18
|
-
createdAt: {
|
|
19
|
-
type: Date,
|
|
20
|
-
optional: true
|
|
21
|
-
},
|
|
22
|
-
link: {
|
|
23
|
-
type: String
|
|
24
|
-
},
|
|
25
|
-
label: {
|
|
26
|
-
type: String
|
|
27
|
-
},
|
|
28
|
-
message: {
|
|
29
|
-
type: String
|
|
30
|
-
},
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export let UserGuides: MongoManagerCollection<UserGuideModel> = null;
|
|
34
|
-
|
|
35
|
-
initializeCollection();
|
|
36
|
-
|
|
37
|
-
function initializeCollection() {
|
|
38
|
-
if (ResolveIOServer && ResolveIOServer.getMainDB()) {
|
|
39
|
-
const model = new MongoManagerModel<UserGuideModel>({
|
|
40
|
-
collectionName: 'user-guides',
|
|
41
|
-
schema: schema,
|
|
42
|
-
useVersionCollection: false,
|
|
43
|
-
useReportBuilder: false,
|
|
44
|
-
reportBuilderLookupTables: [],
|
|
45
|
-
timestamps: true,
|
|
46
|
-
createLogs: false,
|
|
47
|
-
checkSchema: true,
|
|
48
|
-
collectionOptions: null
|
|
49
|
-
});
|
|
50
|
-
UserGuides = model.collection_main;
|
|
51
|
-
}
|
|
52
|
-
else {
|
|
53
|
-
setTimeout(() => {
|
|
54
|
-
initializeCollection();
|
|
55
|
-
}, 1);
|
|
56
|
-
}
|
|
57
|
-
}
|