@resolveio/server-lib 20.7.120 → 20.7.121
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client-server-app.js +51 -1
- package/client-server-app.js.map +1 -1
- package/collections/app-status.collection.js +51 -1
- package/collections/app-status.collection.js.map +1 -1
- package/collections/counter.collection.js +55 -1
- package/collections/counter.collection.js.map +1 -1
- package/collections/cron-job-history.collection.js +136 -1
- package/collections/cron-job-history.collection.js.map +1 -1
- package/collections/cron-job.collection.js +87 -1
- package/collections/cron-job.collection.js.map +1 -1
- package/collections/email-history.collection.js +98 -1
- package/collections/email-history.collection.js.map +1 -1
- package/collections/email-verified.collection.js +60 -1
- package/collections/email-verified.collection.js.map +1 -1
- package/collections/file.collection.js +73 -1
- package/collections/file.collection.js.map +1 -1
- package/collections/flag-update.collection.js +56 -1
- package/collections/flag-update.collection.js.map +1 -1
- package/collections/flag.collection.js +56 -1
- package/collections/flag.collection.js.map +1 -1
- package/collections/log-method-latency.collection.js +72 -1
- package/collections/log-method-latency.collection.js.map +1 -1
- package/collections/log-subscription.collection.js +75 -1
- package/collections/log-subscription.collection.js.map +1 -1
- package/collections/log.collection.js +87 -1
- package/collections/log.collection.js.map +1 -1
- package/collections/logged-in-users.collection.js +66 -1
- package/collections/logged-in-users.collection.js.map +1 -1
- package/collections/monitor-cpu.collection.js +64 -1
- package/collections/monitor-cpu.collection.js.map +1 -1
- package/collections/monitor-function.collection.js +73 -1
- package/collections/monitor-function.collection.js.map +1 -1
- package/collections/monitor-memory.collection.js +76 -1
- package/collections/monitor-memory.collection.js.map +1 -1
- package/collections/monitor-mongo.collection.js +70 -1
- package/collections/monitor-mongo.collection.js.map +1 -1
- package/collections/notification.collection.js +56 -1
- package/collections/notification.collection.js.map +1 -1
- package/collections/report-builder-dashboard-builder.collection.js +108 -1
- package/collections/report-builder-dashboard-builder.collection.js.map +1 -1
- package/collections/report-builder-library.collection.js +86 -1
- package/collections/report-builder-library.collection.js.map +1 -1
- package/collections/report-builder-report.collection.js +148 -1
- package/collections/report-builder-report.collection.js.map +1 -1
- package/collections/user-group.collection.js +88 -1
- package/collections/user-group.collection.js.map +1 -1
- package/collections/user-guide.collection.js +56 -1
- package/collections/user-guide.collection.js.map +1 -1
- package/collections/user.collection.js +265 -1
- package/collections/user.collection.js.map +1 -1
- package/cron/cron.js +97 -1
- package/cron/cron.js.map +1 -1
- package/fixtures/cron-jobs.js +95 -1
- package/fixtures/cron-jobs.js.map +1 -1
- package/fixtures/init.js +78 -1
- package/fixtures/init.js.map +1 -1
- package/http/auth.js +869 -1
- package/http/auth.js.map +1 -1
- package/http/health.js +11 -1
- package/http/health.js.map +1 -1
- package/http/home.js +114 -1
- package/http/home.js.map +1 -1
- package/index.js +18 -1
- package/index.js.map +1 -1
- package/managers/cron.manager.js +461 -1
- package/managers/cron.manager.js.map +1 -1
- package/managers/local-log.manager.js +79 -1
- package/managers/local-log.manager.js.map +1 -1
- package/managers/method.manager.js +1023 -1
- package/managers/method.manager.js.map +1 -1
- package/managers/mongo.manager.js +4223 -1
- package/managers/mongo.manager.js.map +1 -1
- package/managers/monitor.manager.js +534 -1
- package/managers/monitor.manager.js.map +1 -1
- package/managers/subscription.manager.js +1292 -1
- package/managers/subscription.manager.js.map +1 -1
- package/managers/websocket.manager.js +165 -1
- package/managers/websocket.manager.js.map +1 -1
- package/managers/worker-dispatcher.manager.js +335 -1
- package/managers/worker-dispatcher.manager.js.map +1 -1
- package/managers/worker-server.manager.js +292 -1
- package/managers/worker-server.manager.js.map +1 -1
- package/methods/accounts.js +302 -1
- package/methods/accounts.js.map +1 -1
- package/methods/aws.js +748 -1
- package/methods/aws.js.map +1 -1
- package/methods/collections.js +542 -1
- package/methods/collections.js.map +1 -1
- package/methods/counters.js +111 -1
- package/methods/counters.js.map +1 -1
- package/methods/cron-jobs.js +1476 -1
- package/methods/cron-jobs.js.map +1 -1
- package/methods/flag-updates.js +8 -1
- package/methods/flag-updates.js.map +1 -1
- package/methods/flags.js +8 -1
- package/methods/flags.js.map +1 -1
- package/methods/logs.js +417 -1
- package/methods/logs.js.map +1 -1
- package/methods/monitor.js +543 -1
- package/methods/monitor.js.map +1 -1
- package/methods/pdf.js +742 -1
- package/methods/pdf.js.map +1 -1
- package/methods/report-builder.js +840 -1
- package/methods/report-builder.js.map +1 -1
- package/methods/support.js +232 -1
- package/methods/support.js.map +1 -1
- package/models/app-status.model.js +3 -1
- package/models/app-status.model.js.map +1 -1
- package/models/billing-logged-in-users.model.js +3 -1
- package/models/billing-logged-in-users.model.js.map +1 -1
- package/models/collection-document.model.js +3 -1
- package/models/collection-document.model.js.map +1 -1
- package/models/counter.model.js +3 -1
- package/models/counter.model.js.map +1 -1
- package/models/cron-job-history.model.js +3 -1
- package/models/cron-job-history.model.js.map +1 -1
- package/models/cron-job.model.js +3 -1
- package/models/cron-job.model.js.map +1 -1
- package/models/dialog.model.js +3 -1
- package/models/dialog.model.js.map +1 -1
- package/models/email-history.model.js +15 -1
- package/models/email-history.model.js.map +1 -1
- package/models/email-verified.model.js +3 -1
- package/models/email-verified.model.js.map +1 -1
- package/models/file.model.js +3 -1
- package/models/file.model.js.map +1 -1
- package/models/flag-update.model.js +3 -1
- package/models/flag-update.model.js.map +1 -1
- package/models/flag.model.js +3 -1
- package/models/flag.model.js.map +1 -1
- package/models/log-method-latency.model.js +3 -1
- package/models/log-method-latency.model.js.map +1 -1
- package/models/log-subscription.model.js +3 -1
- package/models/log-subscription.model.js.map +1 -1
- package/models/log.model.js +3 -1
- package/models/log.model.js.map +1 -1
- package/models/logged-in-users.model.js +3 -1
- package/models/logged-in-users.model.js.map +1 -1
- package/models/method-response.model.js +3 -1
- package/models/method-response.model.js.map +1 -1
- package/models/method.model.d.ts +0 -1
- package/models/method.model.js +3 -1
- package/models/method.model.js.map +1 -1
- package/models/monitor-cpu.model.js +3 -1
- package/models/monitor-cpu.model.js.map +1 -1
- package/models/monitor-function.model.js +3 -1
- package/models/monitor-function.model.js.map +1 -1
- package/models/monitor-memory.model.js +3 -1
- package/models/monitor-memory.model.js.map +1 -1
- package/models/monitor-mongo.model.js +3 -1
- package/models/monitor-mongo.model.js.map +1 -1
- package/models/notification.model.js +3 -1
- package/models/notification.model.js.map +1 -1
- package/models/pagination.model.js +23 -1
- package/models/pagination.model.js.map +1 -1
- package/models/permission.model.js +3 -1
- package/models/permission.model.js.map +1 -1
- package/models/report-builder-dashboard-builder.model.js +3 -1
- package/models/report-builder-dashboard-builder.model.js.map +1 -1
- package/models/report-builder-library.model.js +3 -1
- package/models/report-builder-library.model.js.map +1 -1
- package/models/report-builder-report.model.js +3 -1
- package/models/report-builder-report.model.js.map +1 -1
- package/models/report-builder.model.js +3 -1
- package/models/report-builder.model.js.map +1 -1
- package/models/select-data-label.model.js +3 -1
- package/models/select-data-label.model.js.map +1 -1
- package/models/server-message.model.js +3 -1
- package/models/server-message.model.js.map +1 -1
- package/models/subscription.model.js +3 -1
- package/models/subscription.model.js.map +1 -1
- package/models/support-ticket.model.js +3 -1
- package/models/support-ticket.model.js.map +1 -1
- package/models/user-group.model.js +3 -1
- package/models/user-group.model.js.map +1 -1
- package/models/user-guide.model.js +3 -1
- package/models/user-guide.model.js.map +1 -1
- package/models/user.model.js +3 -1
- package/models/user.model.js.map +1 -1
- package/package.json +1 -1
- package/public_api.js +77 -1
- package/public_api.js.map +1 -1
- package/publications/app-status.js +16 -1
- package/publications/app-status.js.map +1 -1
- package/publications/cron-jobs.js +32 -1
- package/publications/cron-jobs.js.map +1 -1
- package/publications/files.js +36 -1
- package/publications/files.js.map +1 -1
- package/publications/flags-update.js +22 -1
- package/publications/flags-update.js.map +1 -1
- package/publications/flags.js +22 -1
- package/publications/flags.js.map +1 -1
- package/publications/logs.js +164 -1
- package/publications/logs.js.map +1 -1
- package/publications/notifications.js +16 -1
- package/publications/notifications.js.map +1 -1
- package/publications/report-builder-dashboard-builders.js +42 -1
- package/publications/report-builder-dashboard-builders.js.map +1 -1
- package/publications/report-builder-libraries.js +90 -1
- package/publications/report-builder-libraries.js.map +1 -1
- package/publications/report-builder-reports.js +50 -1
- package/publications/report-builder-reports.js.map +1 -1
- package/publications/super-admin.js +16 -1
- package/publications/super-admin.js.map +1 -1
- package/publications/user-groups.js +16 -1
- package/publications/user-groups.js.map +1 -1
- package/publications/user-guides.js +16 -1
- package/publications/user-guides.js.map +1 -1
- package/resolveio-server-app.js +176 -1
- package/resolveio-server-app.js.map +1 -1
- package/server-app.js +1159 -1
- package/server-app.js.map +1 -1
- package/util/common.js +632 -1
- package/util/common.js.map +1 -1
- package/util/schema-report-builder.js +454 -1
- package/util/schema-report-builder.js.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../src/models/monitor-memory.model.ts"],"names":[],"mappings":"","file":"monitor-memory.model.js","sourcesContent":["import { CollectionDocument } from './collection-document.model';\n\nexport interface MonitorMemoryModel extends CollectionDocument {\n\tmetadata: MonitorMemoryMetadataModel;\n\tdate: Date;\n\tphysical_total: number;\n\tphysical_used: number;\n\tphysical_free: number;\n\tvirtual: number;\n\tprivate: number;\n\tphysical: number;\n}\n\nexport interface MonitorMemoryMetadataModel {\n\tclient: string;\n\tinstance: string;\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../src/models/monitor-mongo.model.ts"],"names":[],"mappings":"","file":"monitor-mongo.model.js","sourcesContent":["import { CollectionDocument } from './collection-document.model';\n\nexport interface MonitorMongoModel extends CollectionDocument {\n\tmetadata: MonitorMongoMetadataModel;\n\tdate: Date;\n\tmethod: string;\n\tdoc_collection: string;\n\tduration: number;\n\tquery: string;\n}\n\nexport interface MonitorMongoMetadataModel {\n\tclient: string;\n\tinstance: string;\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../src/models/notification.model.ts"],"names":[],"mappings":"","file":"notification.model.js","sourcesContent":["import { CollectionDocument } from './collection-document.model';\n\nexport interface NotificationModel extends CollectionDocument {\n\tname: string;\n\tconfig?: NotificationConfigModel;\n}\n\nexport interface NotificationConfigModel {\n\t[key: string]: any;\n}"]}
|
|
@@ -1,2 +1,24 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaginationOptionsSchema = void 0;
|
|
4
|
+
var simpl_schema_1 = require("simpl-schema");
|
|
5
|
+
exports.PaginationOptionsSchema = new simpl_schema_1.default({
|
|
6
|
+
limit: {
|
|
7
|
+
type: Number
|
|
8
|
+
},
|
|
9
|
+
skip: {
|
|
10
|
+
type: Number
|
|
11
|
+
},
|
|
12
|
+
sort: {
|
|
13
|
+
type: Object,
|
|
14
|
+
blackbox: true,
|
|
15
|
+
optional: true
|
|
16
|
+
},
|
|
17
|
+
fields: {
|
|
18
|
+
type: Object,
|
|
19
|
+
optional: true,
|
|
20
|
+
blackbox: true
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
|
|
2
24
|
//# sourceMappingURL=pagination.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/models/pagination.model.ts"],"names":[
|
|
1
|
+
{"version":3,"sources":["../../src/models/pagination.model.ts"],"names":[],"mappings":";;;AAAA,6CAAwC;AAY3B,QAAA,uBAAuB,GAAG,IAAI,sBAAY,CAAE;IACxD,KAAK,EAAE;QACN,IAAI,EAAE,MAAM;KACZ;IACD,IAAI,EAAE;QACL,IAAI,EAAE,MAAM;KACZ;IACD,IAAI,EAAE;QACL,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,IAAI;KACd;IACD,MAAM,EAAE;QACP,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,IAAI;KACd;CACD,CAAC,CAAC","file":"pagination.model.js","sourcesContent":["import SimpleSchema from 'simpl-schema';\nimport { Sort } from 'mongodb';\n\nexport interface PaginationOptions {\n\tlimit?: number;\n\tskip?: number;\n\tsort?: Sort;\n\tfields?: {\n\t\t[key: string]: number;\n\t};\n}\n\nexport const PaginationOptionsSchema = new SimpleSchema ({\n\tlimit: {\n\t\ttype: Number\n\t},\n\tskip: {\n\t\ttype: Number\n\t},\n\tsort: {\n\t\ttype: Object,\n\t\tblackbox: true,\n\t\toptional: true\n\t},\n\tfields: {\n\t\ttype: Object,\n\t\toptional: true,\n\t\tblackbox: true\n\t}\n});"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../src/models/permission.model.ts"],"names":[],"mappings":"","file":"permission.model.js","sourcesContent":["export interface ModulePermissionModel {\n\tname: string;\n\tviews: ModulePermissionViewModel[];\n\tapproval?: ModulePermissionApprovalModel;\n}\n\nexport interface ModulePermissionViewModel {\n\tlink: string;\n\tlabel: string;\n}\n\nexport interface ModulePermissionApprovalModel {\n\ttype: string;\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../src/models/report-builder-dashboard-builder.model.ts"],"names":[],"mappings":"","file":"report-builder-dashboard-builder.model.js","sourcesContent":["import { CollectionDocument } from './collection-document.model';\nimport { ReportBuilderReportType } from './report-builder-report.model';\n\nexport interface ReportBuilderDashboardBuilderModel extends CollectionDocument {\n\tname: string;\n\tdate_created: Date;\n\tid_user_created: string;\n\tuser_created: string;\n\tnum_rows: number;\n\tnum_columns: number;\n\treport_rows: ReportBuilderDashboardBuilderReportRowModel[];\n\tother?: object;\n}\n\nexport interface ReportBuilderDashboardBuilderReportRowModel {\n\treport_columns: ReportBuilderDashboardBuilderReportModel[];\n}\n\nexport interface ReportBuilderDashboardBuilderReportModel {\n\tid_report: string;\n\treport_name: string;\n\treport_type: ReportBuilderReportType;\n\tdisplay_type: ReportBuilderDashboardBuilderReportDisplayType;\n\tdisplay_values: string[];\n\tdisplay_text: string;\n\tdisplay_value: string;\n}\n\nexport type ReportBuilderDashboardBuilderReportDisplayType = 'Data' | 'Bar' | 'Line' | 'Pie';"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../src/models/report-builder-library.model.ts"],"names":[],"mappings":"","file":"report-builder-library.model.js","sourcesContent":["import { CollectionDocument } from './collection-document.model';\n\nexport interface ReportBuilderLibraryModel extends CollectionDocument {\n\tname: string;\n\tid_user_create: string;\n\tuser_create: string;\n\tdate: Date;\n\treports: ReportBuilderLibraryReportModel[];\n\tuser_groups: ReportBuilderLibraryUserGroupModel[];\n}\n\nexport interface ReportBuilderLibraryReportModel {\n\tid_report: string;\n\treport: string;\n}\n\nexport interface ReportBuilderLibraryUserGroupModel {\n\tid_user_group: string;\n\tuser_group: string;\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../src/models/report-builder-report.model.ts"],"names":[],"mappings":"","file":"report-builder-report.model.js","sourcesContent":["import { CollectionDocument } from '../models/collection-document.model';\n\nexport interface ReportBuilderReportModel extends CollectionDocument {\n\tcollection_root: string;\n\treport_name: string;\n\tfields_sort: ReportBuilderReportFieldsSort[];\n\tfields_filter: ReportBuilderReportFieldsFilterOrs[];\n\tfields_custom?: ReportBuilderReportCustomField[];\n\tfields_selected: ReportBuilderReportFieldsSelected[];\n\tfields_total: ReportBuilderReportFieldsTotal[];\n\tfields_link: ReportBuilderReportFieldsLink[];\n\tid_user: string;\n\tuser: string;\n\tdate_created: Date;\n\tshared_users: string[];\n\ttype: ReportBuilderReportType;\n\tgroup_type: string;\n\tgroups_row: ReportBuilderGroupsRow[];\n\tgroups_column: ReportBuilderGroupsRow[];\n\tid_date_field?: string;\n\tdate_interval?: string;\n}\n\nexport interface ReportBuilderReportFieldsLink {\n\tfield_first: string;\n\tfield_second: string;\n\tid: number;\n}\n\nexport interface ReportBuilderReportFieldsTotal {\n\ttype: string;\n\tfields: string[];\n\tid: number;\n}\n\nexport interface ReportBuilderGroupsRow {\n\tfield: string;\n\tfieldPathName: string;\n\tid: string;\n\tcolumnName: string;\n\tfill_color?: string;\n\tfont_color?: string;\n\ttreeItem?: any;\n}\n\nexport type ReportBuilderReportType = 'List' | 'Group' | 'Dated';\n\nexport interface ReportBuilderReportFieldsSort { \n\tfield: string;\n\torder: string;\n}\n\nexport interface ReportBuilderReportFieldsFilterOrs {\n\tors: ReportBuilderReportFieldsFilter[];\n}\n\nexport interface ReportBuilderReportFieldsFilter {\n\tfield: string;\n\tfieldType: string;\n\tcondition: string;\n\tvalue: any;\n\thighValue: any;\n\tdateValue: any;\n\thighDateValue: any;\n\tbooleanValue: string;\n\tis_rolling: boolean;\n\trolling_interval: string;\n}\n\nexport interface ReportBuilderReportFieldsSelected {\n\tcollection_name: string;\n\tcolumnName: string;\n\tfieldName: string;\n\tfieldType: string;\n\tdistinctFieldValues: string[];\n\tfieldPath: string;\n\tlookup_collection: string;\n\tlookup_local_key: string;\n\tlookup_foreign_key: string;\n\tlookup_as: string;\n\ttext: string;\n\tvalue: string;\n\tisLeaf: boolean;\n\tisActive: boolean;\n\tisSelected: boolean;\n\tdepth: number;\n\tleafValueType: string;\n\tleafValueTypes: string[];\n\tleafFormatType: string;\n\tleafFormatTypes: string[];\n\tid?: string;\n\tshow: boolean;\n}\n\nexport interface ReportBuilderReportCustomField {\n\tid: string;\n\tcolumnName: string;\n\tselFieldId: string;\n\tleafValueType: string;\n\toperations: ReportBuilderReportCustomOp[];\n}\n\nexport interface ReportBuilderReportCustomOp {\n\tfields: ReportBuilderReportCustomOpField[];\n\toperation: string;\n}\n\nexport interface ReportBuilderReportCustomOpField {\n\tfield: string;\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../src/models/report-builder.model.ts"],"names":[],"mappings":"","file":"report-builder.model.js","sourcesContent":["export interface ReportBuilderQueryOptionsModel {\n\trootCollection: string;\n\tsearchString: string;\n\tentriesPerPage: string;\n\tpageNum: number;\n\tsortColumn: string;\n\tsortOrder: string; \n\tfilters?: Object;\n}\n\nexport interface CollectionTree { \n\tcollection_name: string;\n\ttree: any;\n\tis_root: boolean; \n}\n\nexport interface LookupTables {\n\tlookup: string;\n\tlocal_key: string; // MUST be type: String\n}\n\nexport interface TreeItemLeafType {\n\ttext: string;\n\tvalue: any;\n}\n\nexport interface TreeItem {\n\ttext: string;\n\tisLeaf: boolean;\n\tchildren?: TreeItem[];\n\tparent?: TreeItem;\n\tisSelected?: boolean;\n\tisActive?: boolean;\n\tisVisible: boolean;\n\tvalue: string;\n\tdepth?: number;\n\trowNumber?: number;\n\tdisabled?: boolean;\n\tlayers?: any[];\n\tleafFieldTypeValue?: string;\n\tleafValueTypeValue?: string;\n}\n\nexport interface ReportTableColumn {\n\tcollection: string;\n\tcollectionAlias?: string;\n\tlookupIsRootNode?: boolean;\n\tcolumnName: string;\n\tfieldPath: String;\n\tlocalKey?: string;\n\tlookupKey?: string;\n}\n\nexport interface ReportTableModel {\n\trootCollection: string;\n\tsearchString: string;\n\tentriesPerPage: string;\n\tpageNum: number;\n\tsortColumn: string;\n\tsortOrder: string; \n\tfilters?: Object;\n}\n\nexport interface UnwindPaths {\n\tcollectionName: string;\n\tcollectionNameAlias?: string;\n\tpaths: string[];\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../src/models/select-data-label.model.ts"],"names":[],"mappings":"","file":"select-data-label.model.js","sourcesContent":["export interface SelectDataLabelModel {\n\tdata: string;\n\tlabel: string;\n\tselected: boolean;\n\ttype: string;\n\tsubData: string;\n\tsubtype: string;\n\tsubLabel: string;\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../src/models/server-message.model.ts"],"names":[],"mappings":"","file":"server-message.model.js","sourcesContent":["export interface ServerResponseModel {\n\tmessageId: number;\n\thasError: boolean;\n\tdata: any;\n}\n\ninterface Task {\n\ttaskId: string;\n\tmessageId: number;\n}\n\nexport interface TaskQueueItem extends Task {\n\tmethod: string;\n\tparams: any[];\n\tuserContext: { id_user?: string; user?: string; id_ws?: string };\n}\n\nexport interface TaskPayload extends TaskQueueItem {\n type: 'task';\n}\n\nexport interface TaskResponse extends Task {\n\ttype: 'taskComplete';\n\terror: boolean;\n\tresult: any;\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../src/models/subscription.model.ts"],"names":[],"mappings":"","file":"subscription.model.js","sourcesContent":["import SimpleSchema from 'simpl-schema';\n\n\nexport interface SubscriptionModel {\n\t[key: string]: SubscriptionPubModel;\n}\n\nexport interface SubscriptionPubModel {\n\t/* \n\t\tName: check\n\t\tType: SimpleSchema\n\t\tInputs: N/A\n\t\tOutputs: N/A\n\t\tReason: Define schema - Checks publication parameters to make sure all are valid\n\t\tRequired: Only if function has publication parameters\n\t*/\n\tcheck?: SimpleSchema;\n\n\t/* \n\t\tName: function\n\t\tType: Function\n\t\tInputs: 0 or more publication parameters (ie: id_bulktank: string)\n\t\tOutputs: Promise<any | any[]>\n\t\tReason: Runs publication query to get data to send to client\n\t\tRequired: Always\n\t*/\n\t// eslint-disable-next-line no-unused-vars\n\tfunction: (...parameters: any[]) => Promise<any | any[]>;\n\n\t/* \n\t\tName: collections\n\t\tType: Array\n\t\tInputs: N/A\n\t\tOutputs: N/A\n\t\tReason: All collections which will be watching oplog to re-run this pub\n\t\tRequired: Always\n\t*/\n\tcollections: string[];\n\n\t/* \n\t\tName: user_specific\n\t\tType: Boolean\n\t\tInputs: N/A\n\t\tOutputs: N/A\n\t\tReason: Use if user is needed (ie 'users' publication, only send 'Admin' if 'super-admin' role)\n\t\tRequired: Only if function has parameter/s\n\t\t- Low performance as if runs pub for each user, only use if needed\n\t*/\n\tuser_specific?: boolean;\n}\n\nexport interface ActiveSubscriptionModel {\n\tpublication: string;\n\tsubscriptionData: any[];\n\tcollections: string[];\n\tclients: ActiveSubscriptionClientModel[];\n\tcacheId: number;\n\trunning: boolean;\n\trunAgain: boolean;\n}\n\nexport interface ActiveSubscriptionClientModel {\n\tid_user: string;\n\tmessageId: number;\n\tid_socket: string;\n\tmessageRoute: string;\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../src/models/support-ticket.model.ts"],"names":[],"mappings":"","file":"support-ticket.model.js","sourcesContent":["import { CollectionDocument } from './collection-document.model';\n\nexport interface SupportTicketModel extends CollectionDocument {\n\ttype: SupportTicketType;\n\tpriority: SupportTicketPriority;\n\tissue: string;\n\tsupport_ticket_number: number;\n\tsupport_ticket_number_string: string;\n\tstatus: SupportTicketStatus;\n\tsubstatus: SupportTicketSubstatus;\n\tclient: string;\n\tid_client: string;\n\tmessages: SupportTicketMessageModel[];\n\tdate_created: Date;\n\tdate_created_string: string;\n\tid_user_created: string;\n\tuser_created: string;\n\tbillable: boolean;\n\tdate_investigation?: Date;\n\tdate_closed?: Date;\n\tfiles: string[];\n\tcurrent_watchers: SupportTicketWatchersModel[];\n\tclient_user: SupportTicketClientUserModel;\n\tusers_assigned: SupportTicketUserAssignedModel[];\n\testimated_billable_hours?: number;\n\tbillable_hours?: number;\n\tbill_description: string;\n\ttasks: SupportTicketTaskModel[];\n\tnotes: SupportTicketNoteModel[];\n\tdifficulty: number;\n}\n\nexport interface SupportTicketClientUserModel {\n\tid_user: string;\n\tuser: string;\n\temail: string;\n}\n\nexport type SupportTicketPriority = 'High' | 'Low';\n\nexport type SupportTicketSubstatus = 'New' | 'Work In Progress' | 'Idle' | 'Awaiting Customer Interaction';\nexport type SupportTicketType = 'System Impairment' | 'Request New Feature' | 'General Inquery';\ntype SupportTicketStatus = 'Opened' | 'Resolved';\n\nexport interface SupportTicketMessageModel {\n\tmessage: string;\n\tid_user: string;\n\tuser: string;\n\tdate: Date;\n\ttype: SupportTicketMessageType;\n}\n\ntype SupportTicketMessageType = 'ResolveIO' | 'Client';\n\nexport interface SupportTicketWatchersModel {\n\tuser: string;\n\tid_user: string;\n\temail: string;\n}\n\nexport interface SupportTicketTaskModel {\n\tdescription: string;\n\tcompleted: boolean;\n\tid_user?: string;\n\tuser?: string;\n\tdate_created: Date;\n\tdate_completed?: Date;\n}\n\nexport interface SupportTicketNoteModel {\n\tdescription: string;\n\tid_user: string;\n\tuser: string;\n\tdate_created: Date;\n}\n\nexport interface SupportTicketUserAssignedModel {\n\tid_user: string;\n\tuser: string;\n\tdate_created: Date;\n} "]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../src/models/user-group.model.ts"],"names":[],"mappings":"","file":"user-group.model.js","sourcesContent":["import { CollectionDocument } from './collection-document.model';\n\nexport interface UserGroupModel extends CollectionDocument {\n\tname: string;\n\tlanding_page?: string;\n\tpermissions: UserGroupPermissionModel[];\n\tnotifications: UserGroupNotificationModel[];\n}\n\nexport interface UserGroupNotificationModel {\n\tname: string;\n\tselected: boolean;\n}\n\nexport interface UserGroupPermissionModel {\n\tname: string;\n\tselected: boolean;\n\tviews: UserGroupViewModel[];\n}\n\nexport interface UserGroupViewModel {\n\tlink: string;\n\tselected: boolean;\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../src/models/user-guide.model.ts"],"names":[],"mappings":"","file":"user-guide.model.js","sourcesContent":["import { CollectionDocument } from './collection-document.model';\n\nexport interface UserGuideModel extends CollectionDocument {\n\tlink: string;\n\tlabel: string;\n\tmessage: string;\n}"]}
|
package/models/user.model.js
CHANGED
package/models/user.model.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../src/models/user.model.ts"],"names":[],"mappings":"","file":"user.model.js","sourcesContent":["import { CollectionDocument } from './collection-document.model';\n\nexport interface UserModel extends CollectionDocument {\n\troles: UserRoleModel;\n\tusername: string;\n\temail: string;\n\tfullname: string;\n\tactive: boolean;\n\tphonenumber: string;\n\treadonly: boolean;\n\tother: OtherObject;\n\n\t//security\n\tattempts: number;\n\tsalt: string;\n\thash: string;\n\n\tlast?: Date;\n\tsettings?: UserSettingsModel;\n\tservices?: Object;\n\n\tis_customer?: boolean;\n}\n\nexport interface UserSettingsModel {\n\ttable_color: string;\n\ttable_font_color: string;\n\tsecondary_table_color: string;\n\tsecondary_table_font_color: string;\n\ttertiary_table_color: string;\n\ttertiary_table_font_color: string;\n\tfont_size: number;\n\tcollapsable_menu: boolean;\n\tentries_per_page: string\n\twarning_color: string;\n\twarning_font_color: string;\n\twarning_hover_color: string;\n\tsuccess_color: string;\n\tsuccess_font_color: string;\n\tsuccess_hover_color: string;\n\tdanger_color: string;\n\tdanger_font_color: string;\n\tdanger_hover_color: string;\n\tinfo_color: string;\n\tinfo_font_color: string;\n\tinfo_hover_color: string;\n\tprimary_color: string;\n\tprimary_font_color: string;\n\tprimary_hover_color: string;\n\tsecondary_color: string;\n\tsecondary_font_color: string;\n\tsecondary_hover_color: string;\n\trouting_preference: string;\n\topening_route: string;\n}\n\nexport interface UserRoleModel {\n\tsuper_admin: boolean;\n\tapprovals: UserRoleApprovalModel[];\n\tgroups: UserRoleGroupModel[];\n\tnotifications: string[];\n\tmiscs: string[];\n}\n\nexport interface UserRoleApprovalModel {\n\ttype: string; // po or afe or chemical\n\tkey_1?: string; // department or accounting code\n\tkey_2?: string; // order type\n\tkey_3?: string; // other/additional\n\tname: string; // approval name\n}\n\nexport interface UserRoleGroupModel {\n\tname: string;\n\tviews: string[];\n\tyards?: string[];\n}\n\nexport interface OtherObject {\n [key: string]: any;\n}"]}
|
package/package.json
CHANGED
package/public_api.js
CHANGED
|
@@ -1,2 +1,78 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./collections/app-status.collection"), exports);
|
|
18
|
+
__exportStar(require("./collections/counter.collection"), exports);
|
|
19
|
+
__exportStar(require("./collections/cron-job-history.collection"), exports);
|
|
20
|
+
__exportStar(require("./collections/cron-job.collection"), exports);
|
|
21
|
+
__exportStar(require("./collections/email-history.collection"), exports);
|
|
22
|
+
__exportStar(require("./collections/email-verified.collection"), exports);
|
|
23
|
+
__exportStar(require("./collections/file.collection"), exports);
|
|
24
|
+
__exportStar(require("./collections/flag-update.collection"), exports);
|
|
25
|
+
__exportStar(require("./collections/flag.collection"), exports);
|
|
26
|
+
__exportStar(require("./collections/log-method-latency.collection"), exports);
|
|
27
|
+
__exportStar(require("./collections/log-subscription.collection"), exports);
|
|
28
|
+
__exportStar(require("./collections/log.collection"), exports);
|
|
29
|
+
__exportStar(require("./collections/logged-in-users.collection"), exports);
|
|
30
|
+
__exportStar(require("./collections/monitor-cpu.collection"), exports);
|
|
31
|
+
__exportStar(require("./collections/monitor-function.collection"), exports);
|
|
32
|
+
__exportStar(require("./collections/monitor-memory.collection"), exports);
|
|
33
|
+
__exportStar(require("./collections/monitor-mongo.collection"), exports);
|
|
34
|
+
__exportStar(require("./collections/notification.collection"), exports);
|
|
35
|
+
__exportStar(require("./collections/report-builder-library.collection"), exports);
|
|
36
|
+
__exportStar(require("./collections/report-builder-report.collection"), exports);
|
|
37
|
+
__exportStar(require("./collections/user-group.collection"), exports);
|
|
38
|
+
__exportStar(require("./collections/user-guide.collection"), exports);
|
|
39
|
+
__exportStar(require("./collections/user.collection"), exports);
|
|
40
|
+
__exportStar(require("./managers/mongo.manager"), exports);
|
|
41
|
+
__exportStar(require("./models/app-status.model"), exports);
|
|
42
|
+
__exportStar(require("./models/billing-logged-in-users.model"), exports);
|
|
43
|
+
__exportStar(require("./models/collection-document.model"), exports);
|
|
44
|
+
__exportStar(require("./models/counter.model"), exports);
|
|
45
|
+
__exportStar(require("./models/cron-job-history.model"), exports);
|
|
46
|
+
__exportStar(require("./models/cron-job.model"), exports);
|
|
47
|
+
__exportStar(require("./models/dialog.model"), exports);
|
|
48
|
+
__exportStar(require("./models/email-history.model"), exports);
|
|
49
|
+
__exportStar(require("./models/email-verified.model"), exports);
|
|
50
|
+
__exportStar(require("./models/file.model"), exports);
|
|
51
|
+
__exportStar(require("./models/flag-update.model"), exports);
|
|
52
|
+
__exportStar(require("./models/flag.model"), exports);
|
|
53
|
+
__exportStar(require("./models/log-method-latency.model"), exports);
|
|
54
|
+
__exportStar(require("./models/log-subscription.model"), exports);
|
|
55
|
+
__exportStar(require("./models/log.model"), exports);
|
|
56
|
+
__exportStar(require("./models/logged-in-users.model"), exports);
|
|
57
|
+
__exportStar(require("./models/method-response.model"), exports);
|
|
58
|
+
__exportStar(require("./models/method.model"), exports);
|
|
59
|
+
__exportStar(require("./models/monitor-cpu.model"), exports);
|
|
60
|
+
__exportStar(require("./models/monitor-memory.model"), exports);
|
|
61
|
+
__exportStar(require("./models/monitor-mongo.model"), exports);
|
|
62
|
+
__exportStar(require("./models/notification.model"), exports);
|
|
63
|
+
__exportStar(require("./models/pagination.model"), exports);
|
|
64
|
+
__exportStar(require("./models/permission.model"), exports);
|
|
65
|
+
__exportStar(require("./models/report-builder-library.model"), exports);
|
|
66
|
+
__exportStar(require("./models/report-builder-report.model"), exports);
|
|
67
|
+
__exportStar(require("./models/report-builder.model"), exports);
|
|
68
|
+
__exportStar(require("./models/select-data-label.model"), exports);
|
|
69
|
+
__exportStar(require("./models/server-message.model"), exports);
|
|
70
|
+
__exportStar(require("./models/subscription.model"), exports);
|
|
71
|
+
__exportStar(require("./models/support-ticket.model"), exports);
|
|
72
|
+
__exportStar(require("./models/user-group.model"), exports);
|
|
73
|
+
__exportStar(require("./models/user-guide.model"), exports);
|
|
74
|
+
__exportStar(require("./models/user.model"), exports);
|
|
75
|
+
__exportStar(require("./resolveio-server-app"), exports);
|
|
76
|
+
__exportStar(require("./util/common"), exports);
|
|
77
|
+
|
|
2
78
|
//# sourceMappingURL=public_api.js.map
|
package/public_api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/public_api.ts"],"names":[
|
|
1
|
+
{"version":3,"sources":["../../src/public_api.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sEAAoD;AACpD,mEAAiD;AACjD,4EAA0D;AAC1D,oEAAkD;AAClD,yEAAuD;AACvD,0EAAwD;AACxD,gEAA8C;AAC9C,uEAAqD;AACrD,gEAA8C;AAC9C,8EAA4D;AAC5D,4EAA0D;AAC1D,+DAA6C;AAC7C,2EAAyD;AACzD,uEAAqD;AACrD,4EAA0D;AAC1D,0EAAwD;AACxD,yEAAuD;AACvD,wEAAsD;AACtD,kFAAgE;AAChE,iFAA+D;AAC/D,sEAAoD;AACpD,sEAAoD;AACpD,gEAA8C;AAC9C,2DAAyC;AACzC,4DAA0C;AAC1C,yEAAuD;AACvD,qEAAmD;AACnD,yDAAuC;AACvC,kEAAgD;AAChD,0DAAwC;AACxC,wDAAsC;AACtC,+DAA6C;AAC7C,gEAA8C;AAC9C,sDAAoC;AACpC,6DAA2C;AAC3C,sDAAoC;AACpC,oEAAkD;AAClD,kEAAgD;AAChD,qDAAmC;AACnC,iEAA+C;AAC/C,iEAA+C;AAC/C,wDAAsC;AACtC,6DAA2C;AAC3C,gEAA8C;AAC9C,+DAA6C;AAC7C,8DAA4C;AAC5C,4DAA0C;AAC1C,4DAA0C;AAC1C,wEAAsD;AACtD,uEAAqD;AACrD,gEAA8C;AAC9C,mEAAiD;AACjD,gEAA8C;AAC9C,8DAA4C;AAC5C,gEAA8C;AAC9C,4DAA0C;AAC1C,4DAA0C;AAC1C,sDAAoC;AACpC,yDAAuC;AACvC,gDAA8B","file":"public_api.js","sourcesContent":["export * from './collections/app-status.collection';\nexport * from './collections/counter.collection';\nexport * from './collections/cron-job-history.collection';\nexport * from './collections/cron-job.collection';\nexport * from './collections/email-history.collection';\nexport * from './collections/email-verified.collection';\nexport * from './collections/file.collection';\nexport * from './collections/flag-update.collection';\nexport * from './collections/flag.collection';\nexport * from './collections/log-method-latency.collection';\nexport * from './collections/log-subscription.collection';\nexport * from './collections/log.collection';\nexport * from './collections/logged-in-users.collection';\nexport * from './collections/monitor-cpu.collection';\nexport * from './collections/monitor-function.collection';\nexport * from './collections/monitor-memory.collection';\nexport * from './collections/monitor-mongo.collection';\nexport * from './collections/notification.collection';\nexport * from './collections/report-builder-library.collection';\nexport * from './collections/report-builder-report.collection';\nexport * from './collections/user-group.collection';\nexport * from './collections/user-guide.collection';\nexport * from './collections/user.collection';\nexport * from './managers/mongo.manager';\nexport * from './models/app-status.model';\nexport * from './models/billing-logged-in-users.model';\nexport * from './models/collection-document.model';\nexport * from './models/counter.model';\nexport * from './models/cron-job-history.model';\nexport * from './models/cron-job.model';\nexport * from './models/dialog.model';\nexport * from './models/email-history.model';\nexport * from './models/email-verified.model';\nexport * from './models/file.model';\nexport * from './models/flag-update.model';\nexport * from './models/flag.model';\nexport * from './models/log-method-latency.model';\nexport * from './models/log-subscription.model';\nexport * from './models/log.model';\nexport * from './models/logged-in-users.model';\nexport * from './models/method-response.model';\nexport * from './models/method.model';\nexport * from './models/monitor-cpu.model';\nexport * from './models/monitor-memory.model';\nexport * from './models/monitor-mongo.model';\nexport * from './models/notification.model';\nexport * from './models/pagination.model';\nexport * from './models/permission.model';\nexport * from './models/report-builder-library.model';\nexport * from './models/report-builder-report.model';\nexport * from './models/report-builder.model';\nexport * from './models/select-data-label.model';\nexport * from './models/server-message.model';\nexport * from './models/subscription.model';\nexport * from './models/support-ticket.model';\nexport * from './models/user-group.model';\nexport * from './models/user-guide.model';\nexport * from './models/user.model';\nexport * from './resolveio-server-app';\nexport * from './util/common';\n\n"]}
|
|
@@ -1,2 +1,17 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.loadAppStatusPublications = void 0;
|
|
4
|
+
var app_status_collection_1 = require("../collections/app-status.collection");
|
|
5
|
+
function loadAppStatusPublications(subscriptionManager) {
|
|
6
|
+
subscriptionManager.publications({
|
|
7
|
+
appstatus: {
|
|
8
|
+
function: function () {
|
|
9
|
+
return app_status_collection_1.AppStatus.findOne();
|
|
10
|
+
},
|
|
11
|
+
collections: ['app-statuses']
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
exports.loadAppStatusPublications = loadAppStatusPublications;
|
|
16
|
+
|
|
2
17
|
//# sourceMappingURL=app-status.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/publications/app-status.ts"],"names":[
|
|
1
|
+
{"version":3,"sources":["../../src/publications/app-status.ts"],"names":[],"mappings":";;;AACA,8EAAiE;AAEjE,SAAgB,yBAAyB,CAAC,mBAAwC;IACjF,mBAAmB,CAAC,YAAY,CAAC;QAChC,SAAS,EAAE;YACV,QAAQ,EAAE;gBACT,OAAO,iCAAS,CAAC,OAAO,EAAE,CAAC;YAC5B,CAAC;YACD,WAAW,EAAE,CAAC,cAAc,CAAC;SAC7B;KACD,CAAC,CAAC;AACJ,CAAC;AATD,8DASC","file":"app-status.js","sourcesContent":["import { SubscriptionManager } from '../managers/subscription.manager';\nimport { AppStatus } from '../collections/app-status.collection';\n\nexport function loadAppStatusPublications(subscriptionManager: SubscriptionManager) {\n\tsubscriptionManager.publications({\n\t\tappstatus: {\n\t\t\tfunction: function() {\n\t\t\t\treturn AppStatus.findOne();\n\t\t\t},\n\t\t\tcollections: ['app-statuses']\n\t\t}\n\t});\n}"]}
|
|
@@ -1,2 +1,33 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.loadCronJobPublications = void 0;
|
|
4
|
+
var simpl_schema_1 = require("simpl-schema");
|
|
5
|
+
var cron_job_collection_1 = require("../collections/cron-job.collection");
|
|
6
|
+
function loadCronJobPublications(subscriptionManager) {
|
|
7
|
+
subscriptionManager.publications({
|
|
8
|
+
cronjobs: {
|
|
9
|
+
function: function () {
|
|
10
|
+
return cron_job_collection_1.CronJobs.find({}, { sort: { name: 1 } });
|
|
11
|
+
},
|
|
12
|
+
collections: ['cron-jobs']
|
|
13
|
+
},
|
|
14
|
+
cronjobsReportBuilderWithIdUser: {
|
|
15
|
+
function: function (id_user) {
|
|
16
|
+
return cron_job_collection_1.CronJobs.find({ $and: [
|
|
17
|
+
{ method_run_data: { $exists: 1 } },
|
|
18
|
+
{ 'method_run_data.id_user': id_user },
|
|
19
|
+
{ 'method_run_data.type': 'Report Builder Scheduled Job' }
|
|
20
|
+
] });
|
|
21
|
+
},
|
|
22
|
+
check: new simpl_schema_1.default({
|
|
23
|
+
id_user: {
|
|
24
|
+
type: String
|
|
25
|
+
}
|
|
26
|
+
}),
|
|
27
|
+
collections: ['cron-jobs']
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
exports.loadCronJobPublications = loadCronJobPublications;
|
|
32
|
+
|
|
2
33
|
//# sourceMappingURL=cron-jobs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/publications/cron-jobs.ts"],"names":[
|
|
1
|
+
{"version":3,"sources":["../../src/publications/cron-jobs.ts"],"names":[],"mappings":";;;AAAA,6CAAwC;AACxC,0EAA8D;AAG9D,SAAgB,uBAAuB,CAAC,mBAAwC;IAC/E,mBAAmB,CAAC,YAAY,CAAC;QAChC,QAAQ,EAAE;YACT,QAAQ,EAAE;gBACT,OAAO,8BAAQ,CAAC,IAAI,CAAC,EAAE,EAAE,EAAC,IAAI,EAAE,EAAC,IAAI,EAAE,CAAC,EAAC,EAAC,CAAC,CAAC;YAC7C,CAAC;YACD,WAAW,EAAE,CAAC,WAAW,CAAC;SAC1B;QACD,+BAA+B,EAAE;YAChC,QAAQ,EAAE,UAAS,OAAe;gBACjC,OAAO,8BAAQ,CAAC,IAAI,CAAC,EAAC,IAAI,EAAE;wBAC3B,EAAC,eAAe,EAAE,EAAC,OAAO,EAAE,CAAC,EAAC,EAAC;wBAC/B,EAAC,yBAAyB,EAAE,OAAO,EAAC;wBACpC,EAAC,sBAAsB,EAAE,8BAA8B,EAAC;qBACxD,EAAC,CAAC,CAAC;YACL,CAAC;YACD,KAAK,EAAE,IAAI,sBAAY,CAAC;gBACvB,OAAO,EAAE;oBACR,IAAI,EAAE,MAAM;iBACZ;aACD,CAAC;YACF,WAAW,EAAE,CAAC,WAAW,CAAC;SAC1B;KACD,CAAC,CAAC;AACJ,CAAC;AAxBD,0DAwBC","file":"cron-jobs.js","sourcesContent":["import SimpleSchema from 'simpl-schema';\nimport { CronJobs } from '../collections/cron-job.collection';\nimport { SubscriptionManager } from '../managers/subscription.manager';\n\nexport function loadCronJobPublications(subscriptionManager: SubscriptionManager) {\n\tsubscriptionManager.publications({\n\t\tcronjobs: {\n\t\t\tfunction: function() {\n\t\t\t\treturn CronJobs.find({}, {sort: {name: 1}});\n\t\t\t},\n\t\t\tcollections: ['cron-jobs']\n\t\t},\n\t\tcronjobsReportBuilderWithIdUser: {\n\t\t\tfunction: function(id_user: string) {\n\t\t\t\treturn CronJobs.find({$and: [\n\t\t\t\t\t{method_run_data: {$exists: 1}},\n\t\t\t\t\t{'method_run_data.id_user': id_user},\n\t\t\t\t\t{'method_run_data.type': 'Report Builder Scheduled Job'}\n\t\t\t\t]});\n\t\t\t},\n\t\t\tcheck: new SimpleSchema({\n\t\t\t\tid_user: {\n\t\t\t\t\ttype: String\n\t\t\t\t}\n\t\t\t}),\n\t\t\tcollections: ['cron-jobs']\n\t\t}\n\t});\n}"]}
|
package/publications/files.js
CHANGED
|
@@ -1,2 +1,37 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.loadFilePublications = void 0;
|
|
4
|
+
var simpl_schema_1 = require("simpl-schema");
|
|
5
|
+
var file_collection_1 = require("../collections/file.collection");
|
|
6
|
+
function loadFilePublications(subscriptionManager) {
|
|
7
|
+
subscriptionManager.publications({
|
|
8
|
+
fileWithId: {
|
|
9
|
+
function: function (id_file) {
|
|
10
|
+
return file_collection_1.Files.findById(id_file);
|
|
11
|
+
},
|
|
12
|
+
check: new simpl_schema_1.default({
|
|
13
|
+
id_file: {
|
|
14
|
+
type: String
|
|
15
|
+
}
|
|
16
|
+
}),
|
|
17
|
+
collections: ['files']
|
|
18
|
+
},
|
|
19
|
+
filesIn: {
|
|
20
|
+
function: function (id_files) {
|
|
21
|
+
return file_collection_1.Files.find({ _id: { $in: id_files } }, { sort: { name: 1 } });
|
|
22
|
+
},
|
|
23
|
+
check: new simpl_schema_1.default({
|
|
24
|
+
id_files: {
|
|
25
|
+
type: Array
|
|
26
|
+
},
|
|
27
|
+
'id_files.$': {
|
|
28
|
+
type: String
|
|
29
|
+
}
|
|
30
|
+
}),
|
|
31
|
+
collections: ['files']
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
exports.loadFilePublications = loadFilePublications;
|
|
36
|
+
|
|
2
37
|
//# sourceMappingURL=files.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/publications/files.ts"],"names":[
|
|
1
|
+
{"version":3,"sources":["../../src/publications/files.ts"],"names":[],"mappings":";;;AAAA,6CAAwC;AACxC,kEAAuD;AAGvD,SAAgB,oBAAoB,CAAC,mBAAwC;IAC5E,mBAAmB,CAAC,YAAY,CAAC;QAChC,UAAU,EAAE;YACX,QAAQ,EAAE,UAAS,OAAe;gBACjC,OAAO,uBAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;YAChC,CAAC;YACD,KAAK,EAAE,IAAI,sBAAY,CAAC;gBACvB,OAAO,EAAE;oBACR,IAAI,EAAE,MAAM;iBACZ;aACD,CAAC;YACF,WAAW,EAAE,CAAC,OAAO,CAAC;SACtB;QACD,OAAO,EAAE;YACR,QAAQ,EAAE,UAAS,QAAkB;gBACpC,OAAO,uBAAK,CAAC,IAAI,CAAC,EAAC,GAAG,EAAE,EAAC,GAAG,EAAE,QAAQ,EAAC,EAAC,EAAE,EAAC,IAAI,EAAE,EAAC,IAAI,EAAE,CAAC,EAAC,EAAC,CAAC,CAAC;YAC9D,CAAC;YACD,KAAK,EAAE,IAAI,sBAAY,CAAC;gBACvB,QAAQ,EAAE;oBACT,IAAI,EAAE,KAAK;iBACX;gBACD,YAAY,EAAE;oBACb,IAAI,EAAE,MAAM;iBACZ;aACD,CAAC;YACF,WAAW,EAAE,CAAC,OAAO,CAAC;SACtB;KACD,CAAC,CAAC;AACJ,CAAC;AA5BD,oDA4BC","file":"files.js","sourcesContent":["import SimpleSchema from 'simpl-schema';\nimport { Files } from '../collections/file.collection';\nimport { SubscriptionManager } from '../managers/subscription.manager';\n\nexport function loadFilePublications(subscriptionManager: SubscriptionManager) {\n\tsubscriptionManager.publications({\n\t\tfileWithId: {\n\t\t\tfunction: function(id_file: string) {\n\t\t\t\treturn Files.findById(id_file);\n\t\t\t},\n\t\t\tcheck: new SimpleSchema({\n\t\t\t\tid_file: {\n\t\t\t\t\ttype: String\n\t\t\t\t}\n\t\t\t}),\n\t\t\tcollections: ['files']\n\t\t},\n\t\tfilesIn: {\n\t\t\tfunction: function(id_files: string[]) {\n\t\t\t\treturn Files.find({_id: {$in: id_files}}, {sort: {name: 1}});\n\t\t\t},\n\t\t\tcheck: new SimpleSchema({\n\t\t\t\tid_files: {\n\t\t\t\t\ttype: Array\n\t\t\t\t},\n\t\t\t\t'id_files.$': {\n\t\t\t\t\ttype: String\n\t\t\t\t}\n\t\t\t}),\n\t\t\tcollections: ['files']\n\t\t}\n\t});\n}"]}
|
|
@@ -1,2 +1,23 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.loadFlagsUpdatePublications = void 0;
|
|
4
|
+
var simpl_schema_1 = require("simpl-schema");
|
|
5
|
+
var flag_update_collection_1 = require("../collections/flag-update.collection");
|
|
6
|
+
function loadFlagsUpdatePublications(subscriptionManager) {
|
|
7
|
+
subscriptionManager.publications({
|
|
8
|
+
flagUpdateWithType: {
|
|
9
|
+
function: function (flagType) {
|
|
10
|
+
return flag_update_collection_1.FlagUpdates.findOne({ type: flagType });
|
|
11
|
+
},
|
|
12
|
+
check: new simpl_schema_1.default({
|
|
13
|
+
flagType: {
|
|
14
|
+
type: String
|
|
15
|
+
}
|
|
16
|
+
}),
|
|
17
|
+
collections: ['flag-updates']
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
exports.loadFlagsUpdatePublications = loadFlagsUpdatePublications;
|
|
22
|
+
|
|
2
23
|
//# sourceMappingURL=flags-update.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/publications/flags-update.ts"],"names":[
|
|
1
|
+
{"version":3,"sources":["../../src/publications/flags-update.ts"],"names":[],"mappings":";;;AAAA,6CAAwC;AAExC,gFAAoE;AAEpE,SAAgB,2BAA2B,CAAC,mBAAwC;IACnF,mBAAmB,CAAC,YAAY,CAAC;QAChC,kBAAkB,EAAE;YACnB,QAAQ,EAAE,UAAS,QAAgB;gBAClC,OAAO,oCAAW,CAAC,OAAO,CAAC,EAAC,IAAI,EAAE,QAAQ,EAAC,CAAC,CAAC;YAC9C,CAAC;YACD,KAAK,EAAE,IAAI,sBAAY,CAAC;gBACvB,QAAQ,EAAE;oBACT,IAAI,EAAE,MAAM;iBACZ;aACD,CAAC;YACF,WAAW,EAAE,CAAC,cAAc,CAAC;SAC7B;KACD,CAAC,CAAC;AACJ,CAAC;AAdD,kEAcC","file":"flags-update.js","sourcesContent":["import SimpleSchema from 'simpl-schema';\nimport { SubscriptionManager } from '../managers/subscription.manager';\nimport { FlagUpdates } from '../collections/flag-update.collection';\n\nexport function loadFlagsUpdatePublications(subscriptionManager: SubscriptionManager) {\n\tsubscriptionManager.publications({\n\t\tflagUpdateWithType: {\n\t\t\tfunction: function(flagType: string) {\n\t\t\t\treturn FlagUpdates.findOne({type: flagType});\n\t\t\t},\n\t\t\tcheck: new SimpleSchema({\n\t\t\t\tflagType: {\n\t\t\t\t\ttype: String\n\t\t\t\t}\n\t\t\t}),\n\t\t\tcollections: ['flag-updates']\n\t\t}\n\t});\n}"]}
|