@resolveio/server-lib 9.2.19 → 9.2.20
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 +55 -1
- package/client-server-app.js.map +1 -1
- package/collections/app-status.collection.js +40 -1
- package/collections/app-status.collection.js.map +1 -1
- package/collections/app-version.collection.js +40 -1
- package/collections/app-version.collection.js.map +1 -1
- package/collections/counter.collection.js +43 -1
- package/collections/counter.collection.js.map +1 -1
- package/collections/cron-job-history.collection.js +71 -1
- package/collections/cron-job-history.collection.js.map +1 -1
- package/collections/cron-job.collection.js +74 -1
- package/collections/cron-job.collection.js.map +1 -1
- package/collections/email-history.collection.js +55 -1
- package/collections/email-history.collection.js.map +1 -1
- package/collections/email-verified.collection.js +50 -1
- package/collections/email-verified.collection.js.map +1 -1
- package/collections/file.collection.js +62 -1
- package/collections/file.collection.js.map +1 -1
- package/collections/flag.collection.js +44 -1
- package/collections/flag.collection.js.map +1 -1
- package/collections/log-method-latency.collection.js +53 -1
- package/collections/log-method-latency.collection.js.map +1 -1
- package/collections/log-subscription.collection.js +57 -1
- package/collections/log-subscription.collection.js.map +1 -1
- package/collections/log.collection.js +72 -1
- package/collections/log.collection.js.map +1 -1
- package/collections/logged-in-users.collection.js +58 -1
- package/collections/logged-in-users.collection.js.map +1 -1
- package/collections/method-call.collection.js +51 -1
- package/collections/method-call.collection.js.map +1 -1
- package/collections/method-response.collection.js +55 -1
- package/collections/method-response.collection.js.map +1 -1
- package/collections/monitor-cpu.collection.js +57 -1
- package/collections/monitor-cpu.collection.js.map +1 -1
- package/collections/monitor-https-inbound.collection.js +66 -1
- package/collections/monitor-https-inbound.collection.js.map +1 -1
- package/collections/monitor-https-outbound.collection.js +74 -1
- package/collections/monitor-https-outbound.collection.js.map +1 -1
- package/collections/monitor-memory.collection.js +68 -1
- package/collections/monitor-memory.collection.js.map +1 -1
- package/collections/monitor-mongo.collection.js +62 -1
- package/collections/monitor-mongo.collection.js.map +1 -1
- package/collections/notification.collection.js +40 -1
- package/collections/notification.collection.js.map +1 -1
- package/collections/report-builder-dashboard-builder.collection.js +93 -1
- package/collections/report-builder-dashboard-builder.collection.js.map +1 -1
- package/collections/report-builder-library.collection.js +76 -1
- package/collections/report-builder-library.collection.js.map +1 -1
- package/collections/report-builder-report.collection.js +138 -1
- package/collections/report-builder-report.collection.js.map +1 -1
- package/collections/user-group.collection.js +79 -1
- package/collections/user-group.collection.js.map +1 -1
- package/collections/user-guide.collection.js +46 -1
- package/collections/user-guide.collection.js.map +1 -1
- package/collections/user.collection.js +248 -1
- package/collections/user.collection.js.map +1 -1
- package/cron/cron.js +161 -1
- package/cron/cron.js.map +1 -1
- package/fixtures/cron-jobs.js +72 -1
- package/fixtures/cron-jobs.js.map +1 -1
- package/fixtures/init.js +62 -1
- package/fixtures/init.js.map +1 -1
- package/http/auth.js +697 -1
- package/http/auth.js.map +1 -1
- package/http/health.js +10 -1
- package/http/health.js.map +1 -1
- package/http/home.js +64 -1
- package/http/home.js.map +1 -1
- package/index.js +123 -1
- package/index.js.map +1 -1
- package/managers/cron.manager.js +205 -1
- package/managers/cron.manager.js.map +1 -1
- package/managers/method.manager.js +599 -1
- package/managers/method.manager.js.map +1 -1
- package/managers/mongo.manager.js +1682 -1
- package/managers/mongo.manager.js.map +1 -1
- package/managers/monitor.manager.js +334 -1
- package/managers/monitor.manager.js.map +1 -1
- package/managers/subscription.manager.js +867 -1
- package/managers/subscription.manager.js.map +1 -1
- package/managers/subscription.performance.js +100 -1
- package/managers/subscription.performance.js.map +1 -1
- package/methods/accounts.js +224 -1
- package/methods/accounts.js.map +1 -1
- package/methods/aws.js +449 -1
- package/methods/aws.js.map +1 -1
- package/methods/cloudconvert.js +214 -1
- package/methods/cloudconvert.js.map +1 -1
- package/methods/collections.js +526 -1
- package/methods/collections.js.map +1 -1
- package/methods/counters.js +121 -1
- package/methods/counters.js.map +1 -1
- package/methods/cron-jobs.js +1284 -1
- package/methods/cron-jobs.js.map +1 -1
- package/methods/flags.js +8 -1
- package/methods/flags.js.map +1 -1
- package/methods/logs.js +370 -1
- package/methods/logs.js.map +1 -1
- package/methods/monitor.js +384 -1
- package/methods/monitor.js.map +1 -1
- package/methods/pdf.js +685 -1
- package/methods/pdf.js.map +1 -1
- package/methods/report-builder.js +826 -1
- package/methods/report-builder.js.map +1 -1
- package/methods/support.js +263 -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/app-version.model.js +3 -1
- package/models/app-version.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 +3 -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.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-call.model.js +3 -1
- package/models/method-call.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.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-https-inbound.model.js +3 -1
- package/models/monitor-https-inbound.model.js.map +1 -1
- package/models/monitor-https-outbound.model.js +3 -1
- package/models/monitor-https-outbound.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-response.model.js +3 -1
- package/models/server-response.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 -2
- package/public_api.js +78 -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/app-version.js +16 -1
- package/publications/app-version.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.js +22 -1
- package/publications/flags.js.map +1 -1
- package/publications/logs.js +90 -1
- package/publications/logs.js.map +1 -1
- package/publications/method-calls.js +16 -1
- package/publications/method-calls.js.map +1 -1
- package/publications/method-responses.js +16 -1
- package/publications/method-responses.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 +89 -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/server-app.js +682 -1
- package/server-app.js.map +1 -1
- package/util/common.js +498 -1
- package/util/common.js.map +1 -1
- package/util/schema-report-builder.js +452 -1
- package/util/schema-report-builder.js.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"monitor-memory.model.js","sourcesContent":[]}
|
|
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\tinstance: string;\n\tclient: string;\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}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"monitor-mongo.model.js","sourcesContent":[]}
|
|
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\tinstance: string;\n\tclient: string;\n\tdate: Date;\n\tmethod: string;\n\tdoc_collection: string;\n\tduration: number;\n\tquery: string;\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"notification.model.js","sourcesContent":[]}
|
|
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}"]}
|
|
@@ -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;AAa3B,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';\n\nexport interface PaginationOptions {\n\tlimit: number;\n\tskip: number;\n\tsort: {\n\t\t[key: string]: number;\n\t};\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,"sources":[],"names":[],"mappings":"","file":"permission.model.js","sourcesContent":[]}
|
|
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,"sources":[],"names":[],"mappings":"","file":"report-builder-dashboard-builder.model.js","sourcesContent":[]}
|
|
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}\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,"sources":[],"names":[],"mappings":"","file":"report-builder-library.model.js","sourcesContent":[]}
|
|
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,"sources":[],"names":[],"mappings":"","file":"report-builder-report.model.js","sourcesContent":[]}
|
|
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\tname: string;\n\ttype: string;\n\tleaf_format_type: 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,"sources":[],"names":[],"mappings":"","file":"report-builder.model.js","sourcesContent":[]}
|
|
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,"sources":[],"names":[],"mappings":"","file":"select-data-label.model.js","sourcesContent":[]}
|
|
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,"sources":[],"names":[],"mappings":"","file":"server-response.model.js","sourcesContent":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/models/server-response.model.ts"],"names":[],"mappings":"","file":"server-response.model.js","sourcesContent":["export interface ServerResponseModel {\n\tmessageId: number;\n\thasError: boolean;\n\tdata: any;\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"subscription.model.js","sourcesContent":[]}
|
|
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\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: ws_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\tws_specific?: boolean;\n}\n\nexport interface ActiveSubscriptionModel {\n\tpublication: string;\n\tsubscriptionData: any[];\n\tcollections: string[];\n\tclients: ActiveSubscriptionClientModel[];\n\tcacheId: number;\n\tcacheValid: boolean;\n}\n\nexport interface ActiveSubscriptionClientModel {\n\tid_user: string;\n\tmessageId: number;\n\tid_socket: string;\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"support-ticket.model.js","sourcesContent":[]}
|
|
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,"sources":[],"names":[],"mappings":"","file":"user-group.model.js","sourcesContent":[]}
|
|
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\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,"sources":[],"names":[],"mappings":"","file":"user-guide.model.js","sourcesContent":[]}
|
|
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,"sources":[],"names":[],"mappings":"","file":"user.model.js","sourcesContent":[]}
|
|
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\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\tyard?: string;\n}\n\nexport interface OtherObject {\n [key: string]: any;\n}"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@resolveio/server-lib",
|
|
3
|
-
"version": "9.2.
|
|
3
|
+
"version": "9.2.20",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -69,7 +69,6 @@
|
|
|
69
69
|
"gulp-shell": "0.8.0",
|
|
70
70
|
"gulp-sourcemaps": "2.6.5",
|
|
71
71
|
"gulp-typescript": "6.0.0-alpha.1",
|
|
72
|
-
"gulp-uglify-es": "2.0.0",
|
|
73
72
|
"gulp-zip": "5.0.2",
|
|
74
73
|
"merge2": "1.2.3",
|
|
75
74
|
"mkdirs": "0.0.3",
|
package/public_api.js
CHANGED
|
@@ -1,2 +1,79 @@
|
|
|
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
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./collections/app-status.collection"), exports);
|
|
14
|
+
__exportStar(require("./collections/app-version.collection"), exports);
|
|
15
|
+
__exportStar(require("./collections/counter.collection"), exports);
|
|
16
|
+
__exportStar(require("./collections/cron-job-history.collection"), exports);
|
|
17
|
+
__exportStar(require("./collections/cron-job.collection"), exports);
|
|
18
|
+
__exportStar(require("./collections/email-history.collection"), exports);
|
|
19
|
+
__exportStar(require("./collections/email-verified.collection"), exports);
|
|
20
|
+
__exportStar(require("./collections/file.collection"), exports);
|
|
21
|
+
__exportStar(require("./collections/flag.collection"), exports);
|
|
22
|
+
__exportStar(require("./collections/log-method-latency.collection"), exports);
|
|
23
|
+
__exportStar(require("./collections/log-subscription.collection"), exports);
|
|
24
|
+
__exportStar(require("./collections/log.collection"), exports);
|
|
25
|
+
__exportStar(require("./collections/logged-in-users.collection"), exports);
|
|
26
|
+
__exportStar(require("./collections/method-call.collection"), exports);
|
|
27
|
+
__exportStar(require("./collections/method-response.collection"), exports);
|
|
28
|
+
__exportStar(require("./collections/monitor-cpu.collection"), exports);
|
|
29
|
+
__exportStar(require("./collections/monitor-https-inbound.collection"), exports);
|
|
30
|
+
__exportStar(require("./collections/monitor-https-outbound.collection"), exports);
|
|
31
|
+
__exportStar(require("./collections/monitor-memory.collection"), exports);
|
|
32
|
+
__exportStar(require("./collections/monitor-mongo.collection"), exports);
|
|
33
|
+
__exportStar(require("./collections/notification.collection"), exports);
|
|
34
|
+
__exportStar(require("./collections/report-builder-library.collection"), exports);
|
|
35
|
+
__exportStar(require("./collections/report-builder-report.collection"), exports);
|
|
36
|
+
__exportStar(require("./collections/user-group.collection"), exports);
|
|
37
|
+
__exportStar(require("./collections/user-guide.collection"), exports);
|
|
38
|
+
__exportStar(require("./collections/user.collection"), exports);
|
|
39
|
+
__exportStar(require("./models/app-status.model"), exports);
|
|
40
|
+
__exportStar(require("./models/app-version.model"), exports);
|
|
41
|
+
__exportStar(require("./models/billing-logged-in-users.model"), exports);
|
|
42
|
+
__exportStar(require("./models/collection-document.model"), exports);
|
|
43
|
+
__exportStar(require("./models/counter.model"), exports);
|
|
44
|
+
__exportStar(require("./models/cron-job-history.model"), exports);
|
|
45
|
+
__exportStar(require("./models/cron-job.model"), exports);
|
|
46
|
+
__exportStar(require("./models/dialog.model"), exports);
|
|
47
|
+
__exportStar(require("./models/email-history.model"), exports);
|
|
48
|
+
__exportStar(require("./models/email-verified.model"), exports);
|
|
49
|
+
__exportStar(require("./models/file.model"), exports);
|
|
50
|
+
__exportStar(require("./models/flag.model"), exports);
|
|
51
|
+
__exportStar(require("./models/log-method-latency.model"), exports);
|
|
52
|
+
__exportStar(require("./models/log-subscription.model"), exports);
|
|
53
|
+
__exportStar(require("./models/log.model"), exports);
|
|
54
|
+
__exportStar(require("./models/logged-in-users.model"), exports);
|
|
55
|
+
__exportStar(require("./models/method-call.model"), exports);
|
|
56
|
+
__exportStar(require("./models/method-response.model"), exports);
|
|
57
|
+
__exportStar(require("./models/method.model"), exports);
|
|
58
|
+
__exportStar(require("./models/monitor-cpu.model"), exports);
|
|
59
|
+
__exportStar(require("./models/monitor-https-inbound.model"), exports);
|
|
60
|
+
__exportStar(require("./models/monitor-https-outbound.model"), exports);
|
|
61
|
+
__exportStar(require("./models/monitor-memory.model"), exports);
|
|
62
|
+
__exportStar(require("./models/monitor-mongo.model"), exports);
|
|
63
|
+
__exportStar(require("./models/notification.model"), exports);
|
|
64
|
+
__exportStar(require("./models/pagination.model"), exports);
|
|
65
|
+
__exportStar(require("./models/permission.model"), exports);
|
|
66
|
+
__exportStar(require("./models/report-builder-library.model"), exports);
|
|
67
|
+
__exportStar(require("./models/report-builder-report.model"), exports);
|
|
68
|
+
__exportStar(require("./models/report-builder.model"), exports);
|
|
69
|
+
__exportStar(require("./models/select-data-label.model"), exports);
|
|
70
|
+
__exportStar(require("./models/server-response.model"), exports);
|
|
71
|
+
__exportStar(require("./models/subscription.model"), exports);
|
|
72
|
+
__exportStar(require("./models/support-ticket.model"), exports);
|
|
73
|
+
__exportStar(require("./models/user-group.model"), exports);
|
|
74
|
+
__exportStar(require("./models/user-guide.model"), exports);
|
|
75
|
+
__exportStar(require("./models/user.model"), exports);
|
|
76
|
+
__exportStar(require("./util/common"), exports);
|
|
77
|
+
__exportStar(require("./managers/mongo.manager"), exports);
|
|
78
|
+
|
|
2
79
|
//# 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,uEAAqD;AACrD,mEAAiD;AACjD,4EAA0D;AAC1D,oEAAkD;AAClD,yEAAuD;AACvD,0EAAwD;AACxD,gEAA8C;AAC9C,gEAA8C;AAC9C,8EAA4D;AAC5D,4EAA0D;AAC1D,+DAA6C;AAC7C,2EAAyD;AACzD,uEAAqD;AACrD,2EAAyD;AACzD,uEAAqD;AACrD,iFAA+D;AAC/D,kFAAgE;AAChE,0EAAwD;AACxD,yEAAuD;AACvD,wEAAsD;AACtD,kFAAgE;AAChE,iFAA+D;AAC/D,sEAAoD;AACpD,sEAAoD;AACpD,gEAA8C;AAC9C,4DAA0C;AAC1C,6DAA2C;AAC3C,yEAAuD;AACvD,qEAAmD;AACnD,yDAAuC;AACvC,kEAAgD;AAChD,0DAAwC;AACxC,wDAAsC;AACtC,+DAA6C;AAC7C,gEAA8C;AAC9C,sDAAoC;AACpC,sDAAoC;AACpC,oEAAkD;AAClD,kEAAgD;AAChD,qDAAmC;AACnC,iEAA+C;AAC/C,6DAA2C;AAC3C,iEAA+C;AAC/C,wDAAsC;AACtC,6DAA2C;AAC3C,uEAAqD;AACrD,wEAAsD;AACtD,gEAA8C;AAC9C,+DAA6C;AAC7C,8DAA4C;AAC5C,4DAA0C;AAC1C,4DAA0C;AAC1C,wEAAsD;AACtD,uEAAqD;AACrD,gEAA8C;AAC9C,mEAAiD;AACjD,iEAA+C;AAC/C,8DAA4C;AAC5C,gEAA8C;AAC9C,4DAA0C;AAC1C,4DAA0C;AAC1C,sDAAoC;AACpC,gDAA8B;AAC9B,2DAAyC","file":"public_api.js","sourcesContent":["export * from './collections/app-status.collection';\nexport * from './collections/app-version.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.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/method-call.collection';\nexport * from './collections/method-response.collection';\nexport * from './collections/monitor-cpu.collection';\nexport * from './collections/monitor-https-inbound.collection';\nexport * from './collections/monitor-https-outbound.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 './models/app-status.model';\nexport * from './models/app-version.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.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-call.model';\nexport * from './models/method-response.model';\nexport * from './models/method.model';\nexport * from './models/monitor-cpu.model';\nexport * from './models/monitor-https-inbound.model';\nexport * from './models/monitor-https-outbound.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-response.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 './util/common';\nexport * from './managers/mongo.manager';"]}
|
|
@@ -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: () => {\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,17 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.loadAppVersionPublications = void 0;
|
|
4
|
+
var app_version_collection_1 = require("../collections/app-version.collection");
|
|
5
|
+
function loadAppVersionPublications(subscriptionManager) {
|
|
6
|
+
subscriptionManager.publications({
|
|
7
|
+
appversion: {
|
|
8
|
+
function: function () {
|
|
9
|
+
return app_version_collection_1.AppVersions.findOne({});
|
|
10
|
+
},
|
|
11
|
+
collections: ['app-versions']
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
exports.loadAppVersionPublications = loadAppVersionPublications;
|
|
16
|
+
|
|
2
17
|
//# sourceMappingURL=app-version.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/publications/app-version.ts"],"names":[
|
|
1
|
+
{"version":3,"sources":["../../src/publications/app-version.ts"],"names":[],"mappings":";;;AACA,gFAAoE;AAEpE,SAAgB,0BAA0B,CAAC,mBAAwC;IAClF,mBAAmB,CAAC,YAAY,CAAC;QAChC,UAAU,EAAE;YACX,QAAQ,EAAE;gBACT,OAAO,oCAAW,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;YAChC,CAAC;YACD,WAAW,EAAE,CAAC,cAAc,CAAC;SAC7B;KACD,CAAC,CAAC;AACJ,CAAC;AATD,gEASC","file":"app-version.js","sourcesContent":["import { SubscriptionManager } from '../managers/subscription.manager';\nimport { AppVersions } from '../collections/app-version.collection';\n\nexport function loadAppVersionPublications(subscriptionManager: SubscriptionManager) {\n\tsubscriptionManager.publications({\n\t\tappversion: {\n\t\t\tfunction: () => {\n\t\t\t\treturn AppVersions.findOne({});\n\t\t\t},\n\t\t\tcollections: ['app-versions']\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;AAExC,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,UAAC,OAAe;gBACzB,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 { SubscriptionManager } from '../managers/subscription.manager';\nimport { CronJobs } from '../collections/cron-job.collection';\nimport { CollectionDocument } from '../models/collection-document.model';\n\nexport function loadCronJobPublications(subscriptionManager: SubscriptionManager) {\n\tsubscriptionManager.publications({\n\t\tcronjobs: {\n\t\t\tfunction: () => {\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: (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;AAIvD,SAAgB,oBAAoB,CAAC,mBAAwC;IAC5E,mBAAmB,CAAC,YAAY,CAAC;QAChC,UAAU,EAAE;YACX,QAAQ,EAAE,UAAC,OAAe;gBACzB,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,UAAC,QAAkB;gBAC5B,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';\nimport { CollectionDocument } from '../models/collection-document.model';\n\nexport function loadFilePublications(subscriptionManager: SubscriptionManager) {\n\tsubscriptionManager.publications({\n\t\tfileWithId: {\n\t\t\tfunction: (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: (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}"]}
|
package/publications/flags.js
CHANGED
|
@@ -1,2 +1,23 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.loadFlagsPublications = void 0;
|
|
4
|
+
var simpl_schema_1 = require("simpl-schema");
|
|
5
|
+
var flag_collection_1 = require("../collections/flag.collection");
|
|
6
|
+
function loadFlagsPublications(subscriptionManager) {
|
|
7
|
+
subscriptionManager.publications({
|
|
8
|
+
flagWithType: {
|
|
9
|
+
function: function (flagType) {
|
|
10
|
+
return flag_collection_1.Flags.findOne({ type: flagType });
|
|
11
|
+
},
|
|
12
|
+
check: new simpl_schema_1.default({
|
|
13
|
+
flagType: {
|
|
14
|
+
type: String
|
|
15
|
+
}
|
|
16
|
+
}),
|
|
17
|
+
collections: ['flags']
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
exports.loadFlagsPublications = loadFlagsPublications;
|
|
22
|
+
|
|
2
23
|
//# sourceMappingURL=flags.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/publications/flags.ts"],"names":[
|
|
1
|
+
{"version":3,"sources":["../../src/publications/flags.ts"],"names":[],"mappings":";;;AAAA,6CAAwC;AAExC,kEAAuD;AAGvD,SAAgB,qBAAqB,CAAC,mBAAwC;IAC7E,mBAAmB,CAAC,YAAY,CAAC;QAChC,YAAY,EAAE;YACb,QAAQ,EAAE,UAAC,QAAgB;gBAC1B,OAAO,uBAAK,CAAC,OAAO,CAAC,EAAC,IAAI,EAAE,QAAQ,EAAC,CAAC,CAAC;YACxC,CAAC;YACD,KAAK,EAAE,IAAI,sBAAY,CAAC;gBACvB,QAAQ,EAAE;oBACT,IAAI,EAAE,MAAM;iBACZ;aACD,CAAC;YACF,WAAW,EAAE,CAAC,OAAO,CAAC;SACtB;KACD,CAAC,CAAC;AACJ,CAAC;AAdD,sDAcC","file":"flags.js","sourcesContent":["import SimpleSchema from 'simpl-schema';\nimport { SubscriptionManager } from '../managers/subscription.manager';\nimport { Flags } from '../collections/flag.collection';\nimport { CollectionDocument } from '../models/collection-document.model';\n\nexport function loadFlagsPublications(subscriptionManager: SubscriptionManager) {\n\tsubscriptionManager.publications({\n\t\tflagWithType: {\n\t\t\tfunction: (flagType: string) => {\n\t\t\t\treturn Flags.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: ['flags']\n\t\t}\n\t});\n}"]}
|