@resolveio/server-lib 20.0.27 → 20.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (201) hide show
  1. package/client-server-app.js +1 -47
  2. package/client-server-app.js.map +1 -1
  3. package/collections/app-status.collection.js +1 -50
  4. package/collections/app-status.collection.js.map +1 -1
  5. package/collections/counter.collection.js +1 -53
  6. package/collections/counter.collection.js.map +1 -1
  7. package/collections/cron-job-history.collection.js +1 -88
  8. package/collections/cron-job-history.collection.js.map +1 -1
  9. package/collections/cron-job.collection.js +1 -84
  10. package/collections/cron-job.collection.js.map +1 -1
  11. package/collections/email-history.collection.js +1 -65
  12. package/collections/email-history.collection.js.map +1 -1
  13. package/collections/email-verified.collection.js +1 -60
  14. package/collections/email-verified.collection.js.map +1 -1
  15. package/collections/file.collection.js +1 -72
  16. package/collections/file.collection.js.map +1 -1
  17. package/collections/flag.collection.js +1 -55
  18. package/collections/flag.collection.js.map +1 -1
  19. package/collections/log-method-latency.collection.js +1 -63
  20. package/collections/log-method-latency.collection.js.map +1 -1
  21. package/collections/log-subscription.collection.js +1 -67
  22. package/collections/log-subscription.collection.js.map +1 -1
  23. package/collections/log-ts.collection.js +1 -77
  24. package/collections/log-ts.collection.js.map +1 -1
  25. package/collections/log.collection.js +1 -76
  26. package/collections/log.collection.js.map +1 -1
  27. package/collections/logged-in-users.collection.js +1 -64
  28. package/collections/logged-in-users.collection.js.map +1 -1
  29. package/collections/method-response.collection.js +1 -65
  30. package/collections/method-response.collection.js.map +1 -1
  31. package/collections/monitor-cpu.collection.js +1 -62
  32. package/collections/monitor-cpu.collection.js.map +1 -1
  33. package/collections/monitor-memory.collection.js +1 -74
  34. package/collections/monitor-memory.collection.js.map +1 -1
  35. package/collections/monitor-mongo.collection.js +1 -68
  36. package/collections/monitor-mongo.collection.js.map +1 -1
  37. package/collections/notification.collection.js +1 -55
  38. package/collections/notification.collection.js.map +1 -1
  39. package/collections/report-builder-dashboard-builder.collection.js +1 -108
  40. package/collections/report-builder-dashboard-builder.collection.js.map +1 -1
  41. package/collections/report-builder-library.collection.js +1 -86
  42. package/collections/report-builder-library.collection.js.map +1 -1
  43. package/collections/report-builder-report.collection.js +1 -148
  44. package/collections/report-builder-report.collection.js.map +1 -1
  45. package/collections/user-group.collection.js +1 -93
  46. package/collections/user-group.collection.js.map +1 -1
  47. package/collections/user-guide.collection.js +1 -56
  48. package/collections/user-guide.collection.js.map +1 -1
  49. package/collections/user.collection.js +1 -265
  50. package/collections/user.collection.js.map +1 -1
  51. package/cron/cron.js +1 -101
  52. package/cron/cron.js.map +1 -1
  53. package/fixtures/cron-jobs.js +1 -87
  54. package/fixtures/cron-jobs.js.map +1 -1
  55. package/fixtures/init.js +1 -58
  56. package/fixtures/init.js.map +1 -1
  57. package/http/auth.js +1 -763
  58. package/http/auth.js.map +1 -1
  59. package/http/health.js +1 -11
  60. package/http/health.js.map +1 -1
  61. package/http/home.js +1 -65
  62. package/http/home.js.map +1 -1
  63. package/index.js +1 -126
  64. package/index.js.map +1 -1
  65. package/managers/cron.manager.js +1 -322
  66. package/managers/cron.manager.js.map +1 -1
  67. package/managers/method.manager.js +1 -593
  68. package/managers/method.manager.js.map +1 -1
  69. package/managers/mongo.manager.js +1 -2259
  70. package/managers/mongo.manager.js.map +1 -1
  71. package/managers/monitor.manager.js +1 -350
  72. package/managers/monitor.manager.js.map +1 -1
  73. package/managers/subscription.manager.js +1 -1110
  74. package/managers/subscription.manager.js.map +1 -1
  75. package/managers/subscription.performance.js +1 -102
  76. package/managers/subscription.performance.js.map +1 -1
  77. package/methods/accounts.js +1 -291
  78. package/methods/accounts.js.map +1 -1
  79. package/methods/aws.js +1 -634
  80. package/methods/aws.js.map +1 -1
  81. package/methods/collections.js +1 -499
  82. package/methods/collections.js.map +1 -1
  83. package/methods/counters.js +1 -121
  84. package/methods/counters.js.map +1 -1
  85. package/methods/cron-jobs.js +1 -1337
  86. package/methods/cron-jobs.js.map +1 -1
  87. package/methods/flags.js +1 -8
  88. package/methods/flags.js.map +1 -1
  89. package/methods/logs.js +1 -370
  90. package/methods/logs.js.map +1 -1
  91. package/methods/monitor.js +1 -564
  92. package/methods/monitor.js.map +1 -1
  93. package/methods/pdf.js +1 -731
  94. package/methods/pdf.js.map +1 -1
  95. package/methods/report-builder.js +1 -859
  96. package/methods/report-builder.js.map +1 -1
  97. package/methods/support.js +1 -245
  98. package/methods/support.js.map +1 -1
  99. package/models/app-status.model.js +1 -3
  100. package/models/app-status.model.js.map +1 -1
  101. package/models/billing-logged-in-users.model.js +1 -3
  102. package/models/billing-logged-in-users.model.js.map +1 -1
  103. package/models/collection-document.model.js +1 -3
  104. package/models/collection-document.model.js.map +1 -1
  105. package/models/counter.model.js +1 -3
  106. package/models/counter.model.js.map +1 -1
  107. package/models/cron-job-history.model.js +1 -3
  108. package/models/cron-job-history.model.js.map +1 -1
  109. package/models/cron-job.model.js +1 -3
  110. package/models/cron-job.model.js.map +1 -1
  111. package/models/dialog.model.js +1 -3
  112. package/models/dialog.model.js.map +1 -1
  113. package/models/email-history.model.js +1 -3
  114. package/models/email-history.model.js.map +1 -1
  115. package/models/email-verified.model.js +1 -3
  116. package/models/email-verified.model.js.map +1 -1
  117. package/models/file.model.js +1 -3
  118. package/models/file.model.js.map +1 -1
  119. package/models/flag.model.js +1 -3
  120. package/models/flag.model.js.map +1 -1
  121. package/models/log-method-latency.model.js +1 -3
  122. package/models/log-method-latency.model.js.map +1 -1
  123. package/models/log-subscription.model.js +1 -3
  124. package/models/log-subscription.model.js.map +1 -1
  125. package/models/log.model.js +1 -3
  126. package/models/log.model.js.map +1 -1
  127. package/models/logged-in-users.model.js +1 -3
  128. package/models/logged-in-users.model.js.map +1 -1
  129. package/models/method-response.model.js +1 -3
  130. package/models/method-response.model.js.map +1 -1
  131. package/models/method.model.js +1 -3
  132. package/models/method.model.js.map +1 -1
  133. package/models/monitor-cpu.model.js +1 -3
  134. package/models/monitor-cpu.model.js.map +1 -1
  135. package/models/monitor-memory.model.js +1 -3
  136. package/models/monitor-memory.model.js.map +1 -1
  137. package/models/monitor-mongo.model.js +1 -3
  138. package/models/monitor-mongo.model.js.map +1 -1
  139. package/models/notification.model.js +1 -3
  140. package/models/notification.model.js.map +1 -1
  141. package/models/pagination.model.js +1 -23
  142. package/models/pagination.model.js.map +1 -1
  143. package/models/permission.model.js +1 -3
  144. package/models/permission.model.js.map +1 -1
  145. package/models/report-builder-dashboard-builder.model.js +1 -3
  146. package/models/report-builder-dashboard-builder.model.js.map +1 -1
  147. package/models/report-builder-library.model.js +1 -3
  148. package/models/report-builder-library.model.js.map +1 -1
  149. package/models/report-builder-report.model.js +1 -3
  150. package/models/report-builder-report.model.js.map +1 -1
  151. package/models/report-builder.model.js +1 -3
  152. package/models/report-builder.model.js.map +1 -1
  153. package/models/select-data-label.model.js +1 -3
  154. package/models/select-data-label.model.js.map +1 -1
  155. package/models/server-response.model.js +1 -3
  156. package/models/server-response.model.js.map +1 -1
  157. package/models/subscription.model.js +1 -3
  158. package/models/subscription.model.js.map +1 -1
  159. package/models/support-ticket.model.js +1 -3
  160. package/models/support-ticket.model.js.map +1 -1
  161. package/models/user-group.model.js +1 -3
  162. package/models/user-group.model.js.map +1 -1
  163. package/models/user-guide.model.js +1 -3
  164. package/models/user-guide.model.js.map +1 -1
  165. package/models/user.model.js +1 -3
  166. package/models/user.model.js.map +1 -1
  167. package/package.json +6 -4
  168. package/public_api.js +1 -74
  169. package/public_api.js.map +1 -1
  170. package/publications/app-status.js +1 -16
  171. package/publications/app-status.js.map +1 -1
  172. package/publications/cron-jobs.js +1 -32
  173. package/publications/cron-jobs.js.map +1 -1
  174. package/publications/files.js +1 -36
  175. package/publications/files.js.map +1 -1
  176. package/publications/flags.js +1 -22
  177. package/publications/flags.js.map +1 -1
  178. package/publications/logs.js +1 -164
  179. package/publications/logs.js.map +1 -1
  180. package/publications/method-responses.js +1 -16
  181. package/publications/method-responses.js.map +1 -1
  182. package/publications/notifications.js +1 -16
  183. package/publications/notifications.js.map +1 -1
  184. package/publications/report-builder-dashboard-builders.js +1 -42
  185. package/publications/report-builder-dashboard-builders.js.map +1 -1
  186. package/publications/report-builder-libraries.js +1 -89
  187. package/publications/report-builder-libraries.js.map +1 -1
  188. package/publications/report-builder-reports.js +1 -50
  189. package/publications/report-builder-reports.js.map +1 -1
  190. package/publications/super-admin.js +1 -16
  191. package/publications/super-admin.js.map +1 -1
  192. package/publications/user-groups.js +1 -16
  193. package/publications/user-groups.js.map +1 -1
  194. package/publications/user-guides.js +1 -16
  195. package/publications/user-guides.js.map +1 -1
  196. package/server-app.js +1 -770
  197. package/server-app.js.map +1 -1
  198. package/util/common.js +1 -546
  199. package/util/common.js.map +1 -1
  200. package/util/schema-report-builder.js +1 -452
  201. package/util/schema-report-builder.js.map +1 -1
@@ -1 +1 @@
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
+ {"version":3,"file":"notification.model.js","sources":["models/notification.model.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n"],"names":["Object","defineProperty","exports","value"],"mappings":"AAAA,aACAA,OAAOC,eAAeC,QAAS,aAAc,CAAEC,MAAO,CAAA,CAAK,CAAC"}
@@ -1,24 +1,2 @@
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
-
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PaginationOptionsSchema=void 0;var simpl_schema_1=require("simpl-schema");exports.PaginationOptionsSchema=new simpl_schema_1.default({limit:{type:Number},skip:{type:Number},sort:{type:Object,blackbox:!0,optional:!0},fields:{type:Object,optional:!0,blackbox:!0}});
24
2
  //# sourceMappingURL=pagination.model.js.map
@@ -1 +1 @@
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
+ {"version":3,"sources":["../../src/models/pagination.model.ts"],"names":["simpl_schema_1","require","exports","PaginationOptionsSchema","default","limit","type","Number","skip","sort","Object","blackbox","optional","fields"],"mappings":"2GAAA,IAAAA,eAAAC,QAAA,cAAA,EAYaC,QAAAC,wBAA0B,IAAIH,eAAAI,QAAc,CACxDC,MAAO,CACNC,KAAMC,M,EAEPC,KAAM,CACLF,KAAMC,M,EAEPE,KAAM,CACLH,KAAMI,OACNC,SAAU,CAAA,EACVC,SAAU,CAAA,C,EAEXC,OAAQ,CACPP,KAAMI,OACNE,SAAU,CAAA,EACVD,SAAU,CAAA,C,EAEX","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,4 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
-
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});
4
2
  //# sourceMappingURL=permission.model.js.map
@@ -1 +1 @@
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
+ {"version":3,"file":"permission.model.js","sources":["models/permission.model.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n"],"names":["Object","defineProperty","exports","value"],"mappings":"AAAA,aACAA,OAAOC,eAAeC,QAAS,aAAc,CAAEC,MAAO,CAAA,CAAK,CAAC"}
@@ -1,4 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
-
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});
4
2
  //# sourceMappingURL=report-builder-dashboard-builder.model.js.map
@@ -1 +1 @@
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
+ {"version":3,"file":"report-builder-dashboard-builder.model.js","sources":["models/report-builder-dashboard-builder.model.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n"],"names":["Object","defineProperty","exports","value"],"mappings":"AAAA,aACAA,OAAOC,eAAeC,QAAS,aAAc,CAAEC,MAAO,CAAA,CAAK,CAAC"}
@@ -1,4 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
-
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});
4
2
  //# sourceMappingURL=report-builder-library.model.js.map
@@ -1 +1 @@
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
+ {"version":3,"file":"report-builder-library.model.js","sources":["models/report-builder-library.model.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n"],"names":["Object","defineProperty","exports","value"],"mappings":"AAAA,aACAA,OAAOC,eAAeC,QAAS,aAAc,CAAEC,MAAO,CAAA,CAAK,CAAC"}
@@ -1,4 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
-
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});
4
2
  //# sourceMappingURL=report-builder-report.model.js.map
@@ -1 +1 @@
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
+ {"version":3,"file":"report-builder-report.model.js","sources":["models/report-builder-report.model.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n"],"names":["Object","defineProperty","exports","value"],"mappings":"AAAA,aACAA,OAAOC,eAAeC,QAAS,aAAc,CAAEC,MAAO,CAAA,CAAK,CAAC"}
@@ -1,4 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
-
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});
4
2
  //# sourceMappingURL=report-builder.model.js.map
@@ -1 +1 @@
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
+ {"version":3,"file":"report-builder.model.js","sources":["models/report-builder.model.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n"],"names":["Object","defineProperty","exports","value"],"mappings":"AAAA,aACAA,OAAOC,eAAeC,QAAS,aAAc,CAAEC,MAAO,CAAA,CAAK,CAAC"}
@@ -1,4 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
-
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});
4
2
  //# sourceMappingURL=select-data-label.model.js.map
@@ -1 +1 @@
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
+ {"version":3,"file":"select-data-label.model.js","sources":["models/select-data-label.model.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n"],"names":["Object","defineProperty","exports","value"],"mappings":"AAAA,aACAA,OAAOC,eAAeC,QAAS,aAAc,CAAEC,MAAO,CAAA,CAAK,CAAC"}
@@ -1,4 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
-
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});
4
2
  //# sourceMappingURL=server-response.model.js.map
@@ -1 +1 @@
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
+ {"version":3,"file":"server-response.model.js","sources":["models/server-response.model.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n"],"names":["Object","defineProperty","exports","value"],"mappings":"AAAA,aACAA,OAAOC,eAAeC,QAAS,aAAc,CAAEC,MAAO,CAAA,CAAK,CAAC"}
@@ -1,4 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
-
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});
4
2
  //# sourceMappingURL=subscription.model.js.map
@@ -1 +1 @@
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: 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}\n\nexport interface ActiveSubscriptionClientModel {\n\tid_user: string;\n\tmessageId: number;\n\tid_socket: string;\n\tmessageRoute: string;\n}"]}
1
+ {"version":3,"file":"subscription.model.js","sources":["models/subscription.model.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n"],"names":["Object","defineProperty","exports","value"],"mappings":"AAAA,aACAA,OAAOC,eAAeC,QAAS,aAAc,CAAEC,MAAO,CAAA,CAAK,CAAC"}
@@ -1,4 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
-
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});
4
2
  //# sourceMappingURL=support-ticket.model.js.map
@@ -1 +1 @@
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
+ {"version":3,"file":"support-ticket.model.js","sources":["models/support-ticket.model.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n"],"names":["Object","defineProperty","exports","value"],"mappings":"AAAA,aACAA,OAAOC,eAAeC,QAAS,aAAc,CAAEC,MAAO,CAAA,CAAK,CAAC"}
@@ -1,4 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
-
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});
4
2
  //# sourceMappingURL=user-group.model.js.map
@@ -1 +1 @@
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
+ {"version":3,"file":"user-group.model.js","sources":["models/user-group.model.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n"],"names":["Object","defineProperty","exports","value"],"mappings":"AAAA,aACAA,OAAOC,eAAeC,QAAS,aAAc,CAAEC,MAAO,CAAA,CAAK,CAAC"}
@@ -1,4 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
-
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});
4
2
  //# sourceMappingURL=user-guide.model.js.map
@@ -1 +1 @@
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}"]}
1
+ {"version":3,"file":"user-guide.model.js","sources":["models/user-guide.model.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n"],"names":["Object","defineProperty","exports","value"],"mappings":"AAAA,aACAA,OAAOC,eAAeC,QAAS,aAAc,CAAEC,MAAO,CAAA,CAAK,CAAC"}
@@ -1,4 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
-
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});
4
2
  //# sourceMappingURL=user.model.js.map
@@ -1 +1 @@
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}"]}
1
+ {"version":3,"file":"user.model.js","sources":["models/user.model.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n"],"names":["Object","defineProperty","exports","value"],"mappings":"AAAA,aACAA,OAAOC,eAAeC,QAAS,aAAc,CAAEC,MAAO,CAAA,CAAK,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resolveio/server-lib",
3
- "version": "20.0.27",
3
+ "version": "20.0.28",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "package": "./build_package.sh",
@@ -30,7 +30,7 @@
30
30
  "jsonwebtoken": "8.5.1",
31
31
  "jwt-decode": "3.1.2",
32
32
  "moment-timezone": "0.5.43",
33
- "mongodb": "6.2.0",
33
+ "mongodb": "4.12.1",
34
34
  "node-cache": "5.1.2",
35
35
  "node-google-timezone": "0.1.1",
36
36
  "nodemailer": "6.9.7",
@@ -42,8 +42,8 @@
42
42
  "rus-diff": "1.1.0",
43
43
  "scmp": "2.1.0",
44
44
  "simpl-schema": "1.12.0",
45
- "string-similarity": "4.0.4",
46
45
  "string_score": "0.1.22",
46
+ "string-similarity": "4.0.4",
47
47
  "twilio": "3.83.3",
48
48
  "ws": "8.14.2",
49
49
  "xlsx": "0.16.8"
@@ -56,11 +56,13 @@
56
56
  "@types/ws": "8.5.3",
57
57
  "del": "3.0.0",
58
58
  "gulp": "4.0.2",
59
+ "gulp-if": "^3.0.0",
59
60
  "gulp-nodemon": "2.5.0",
60
61
  "gulp-rename": "2.0.0",
61
62
  "gulp-shell": "0.8.0",
62
63
  "gulp-sourcemaps": "2.6.5",
63
64
  "gulp-typescript": "6.0.0-alpha.1",
65
+ "gulp-uglify": "^3.0.2",
64
66
  "gulp-zip": "5.0.2",
65
67
  "merge2": "1.2.3",
66
68
  "mkdirs": "0.0.3",
@@ -97,8 +99,8 @@
97
99
  "rus-diff": "1.1.0",
98
100
  "scmp": "2.1.0",
99
101
  "simpl-schema": "1.12.0",
100
- "string-similarity": "4.0.4",
101
102
  "string_score": "0.1.22",
103
+ "string-similarity": "4.0.4",
102
104
  "twilio": "3.83.3",
103
105
  "ws": "8.14.2",
104
106
  "xlsx": "0.16.8"
package/public_api.js CHANGED
@@ -1,75 +1,2 @@
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.collection"), exports);
25
- __exportStar(require("./collections/log-method-latency.collection"), exports);
26
- __exportStar(require("./collections/log-subscription.collection"), exports);
27
- __exportStar(require("./collections/log.collection"), exports);
28
- __exportStar(require("./collections/logged-in-users.collection"), exports);
29
- __exportStar(require("./collections/method-response.collection"), exports);
30
- __exportStar(require("./collections/monitor-cpu.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/billing-logged-in-users.model"), exports);
41
- __exportStar(require("./models/collection-document.model"), exports);
42
- __exportStar(require("./models/counter.model"), exports);
43
- __exportStar(require("./models/cron-job-history.model"), exports);
44
- __exportStar(require("./models/cron-job.model"), exports);
45
- __exportStar(require("./models/dialog.model"), exports);
46
- __exportStar(require("./models/email-history.model"), exports);
47
- __exportStar(require("./models/email-verified.model"), exports);
48
- __exportStar(require("./models/file.model"), exports);
49
- __exportStar(require("./models/flag.model"), exports);
50
- __exportStar(require("./models/log-method-latency.model"), exports);
51
- __exportStar(require("./models/log-subscription.model"), exports);
52
- __exportStar(require("./models/log.model"), exports);
53
- __exportStar(require("./models/logged-in-users.model"), exports);
54
- __exportStar(require("./models/method-response.model"), exports);
55
- __exportStar(require("./models/method.model"), exports);
56
- __exportStar(require("./models/monitor-cpu.model"), exports);
57
- __exportStar(require("./models/monitor-memory.model"), exports);
58
- __exportStar(require("./models/monitor-mongo.model"), exports);
59
- __exportStar(require("./models/notification.model"), exports);
60
- __exportStar(require("./models/pagination.model"), exports);
61
- __exportStar(require("./models/permission.model"), exports);
62
- __exportStar(require("./models/report-builder-library.model"), exports);
63
- __exportStar(require("./models/report-builder-report.model"), exports);
64
- __exportStar(require("./models/report-builder.model"), exports);
65
- __exportStar(require("./models/select-data-label.model"), exports);
66
- __exportStar(require("./models/server-response.model"), exports);
67
- __exportStar(require("./models/subscription.model"), exports);
68
- __exportStar(require("./models/support-ticket.model"), exports);
69
- __exportStar(require("./models/user-group.model"), exports);
70
- __exportStar(require("./models/user-guide.model"), exports);
71
- __exportStar(require("./models/user.model"), exports);
72
- __exportStar(require("./util/common"), exports);
73
- __exportStar(require("./managers/mongo.manager"), exports);
74
-
1
+ "use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,r,o,t){void 0===t&&(t=o);var l=Object.getOwnPropertyDescriptor(r,o);l&&("get"in l?r.__esModule:!l.writable&&!l.configurable)||(l={enumerable:!0,get:function(){return r[o]}}),Object.defineProperty(e,t,l)}:function(e,r,o,t){e[t=void 0===t?o:t]=r[o]}),__exportStar=this&&this.__exportStar||function(e,r){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(r,o)||__createBinding(r,e,o)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(require("./collections/app-status.collection"),exports),__exportStar(require("./collections/counter.collection"),exports),__exportStar(require("./collections/cron-job-history.collection"),exports),__exportStar(require("./collections/cron-job.collection"),exports),__exportStar(require("./collections/email-history.collection"),exports),__exportStar(require("./collections/email-verified.collection"),exports),__exportStar(require("./collections/file.collection"),exports),__exportStar(require("./collections/flag.collection"),exports),__exportStar(require("./collections/log-method-latency.collection"),exports),__exportStar(require("./collections/log-subscription.collection"),exports),__exportStar(require("./collections/log.collection"),exports),__exportStar(require("./collections/logged-in-users.collection"),exports),__exportStar(require("./collections/method-response.collection"),exports),__exportStar(require("./collections/monitor-cpu.collection"),exports),__exportStar(require("./collections/monitor-memory.collection"),exports),__exportStar(require("./collections/monitor-mongo.collection"),exports),__exportStar(require("./collections/notification.collection"),exports),__exportStar(require("./collections/report-builder-library.collection"),exports),__exportStar(require("./collections/report-builder-report.collection"),exports),__exportStar(require("./collections/user-group.collection"),exports),__exportStar(require("./collections/user-guide.collection"),exports),__exportStar(require("./collections/user.collection"),exports),__exportStar(require("./models/app-status.model"),exports),__exportStar(require("./models/billing-logged-in-users.model"),exports),__exportStar(require("./models/collection-document.model"),exports),__exportStar(require("./models/counter.model"),exports),__exportStar(require("./models/cron-job-history.model"),exports),__exportStar(require("./models/cron-job.model"),exports),__exportStar(require("./models/dialog.model"),exports),__exportStar(require("./models/email-history.model"),exports),__exportStar(require("./models/email-verified.model"),exports),__exportStar(require("./models/file.model"),exports),__exportStar(require("./models/flag.model"),exports),__exportStar(require("./models/log-method-latency.model"),exports),__exportStar(require("./models/log-subscription.model"),exports),__exportStar(require("./models/log.model"),exports),__exportStar(require("./models/logged-in-users.model"),exports),__exportStar(require("./models/method-response.model"),exports),__exportStar(require("./models/method.model"),exports),__exportStar(require("./models/monitor-cpu.model"),exports),__exportStar(require("./models/monitor-memory.model"),exports),__exportStar(require("./models/monitor-mongo.model"),exports),__exportStar(require("./models/notification.model"),exports),__exportStar(require("./models/pagination.model"),exports),__exportStar(require("./models/permission.model"),exports),__exportStar(require("./models/report-builder-library.model"),exports),__exportStar(require("./models/report-builder-report.model"),exports),__exportStar(require("./models/report-builder.model"),exports),__exportStar(require("./models/select-data-label.model"),exports),__exportStar(require("./models/server-response.model"),exports),__exportStar(require("./models/subscription.model"),exports),__exportStar(require("./models/support-ticket.model"),exports),__exportStar(require("./models/user-group.model"),exports),__exportStar(require("./models/user-guide.model"),exports),__exportStar(require("./models/user.model"),exports),__exportStar(require("./util/common"),exports),__exportStar(require("./managers/mongo.manager"),exports);
75
2
  //# sourceMappingURL=public_api.js.map
package/public_api.js.map CHANGED
@@ -1 +1 @@
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,gEAA8C;AAC9C,8EAA4D;AAC5D,4EAA0D;AAC1D,+DAA6C;AAC7C,2EAAyD;AACzD,2EAAyD;AACzD,uEAAqD;AACrD,0EAAwD;AACxD,yEAAuD;AACvD,wEAAsD;AACtD,kFAAgE;AAChE,iFAA+D;AAC/D,sEAAoD;AACpD,sEAAoD;AACpD,gEAA8C;AAC9C,4DAA0C;AAC1C,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,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,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/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-response.collection';\nexport * from './collections/monitor-cpu.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/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-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-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
+ {"version":3,"sources":["../../src/public_api.ts"],"names":["__exportStar","require","exports"],"mappings":"4hBAAAA,aAAAC,QAAA,qCAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,kCAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,2CAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,mCAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,wCAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,yCAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,+BAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,+BAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,6CAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,2CAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,8BAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,0CAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,0CAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,sCAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,yCAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,wCAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,uCAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,iDAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,gDAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,qCAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,qCAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,+BAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,2BAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,wCAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,oCAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,wBAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,iCAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,yBAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,uBAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,8BAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,+BAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,qBAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,qBAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,mCAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,iCAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,oBAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,gCAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,gCAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,uBAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,4BAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,+BAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,8BAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,6BAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,2BAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,2BAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,uCAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,sCAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,+BAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,kCAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,gCAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,6BAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,+BAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,2BAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,2BAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,qBAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,eAAA,EAAAC,OAAA,EACAF,aAAAC,QAAA,0BAAA,EAAAC,OAAA","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.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-response.collection';\nexport * from './collections/monitor-cpu.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/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-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-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,17 +1,2 @@
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
-
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.loadAppStatusPublications=void 0;var app_status_collection_1=require("../collections/app-status.collection");function loadAppStatusPublications(t){t.publications({appstatus:{function:function(){return app_status_collection_1.AppStatus.findOne()},collections:["app-statuses"]}})}exports.loadAppStatusPublications=loadAppStatusPublications;
17
2
  //# sourceMappingURL=app-status.js.map
@@ -1 +1 @@
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
+ {"version":3,"sources":["../../src/publications/app-status.ts"],"names":["app_status_collection_1","require","loadAppStatusPublications","subscriptionManager","publications","appstatus","function","AppStatus","findOne","collections","exports"],"mappings":"6GACA,IAAAA,wBAAAC,QAAA,sCAAA,EAEA,SAAgBC,0BAA0BC,GACzCA,EAAoBC,aAAa,CAChCC,UAAW,CACVC,SAAU,WACT,OAAON,wBAAAO,UAAUC,QAAO,CACzB,EACAC,YAAa,CAAC,e,EAEf,CACF,CATAC,QAAAR,0BAAAA","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,33 +1,2 @@
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
-
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.loadCronJobPublications=void 0;var simpl_schema_1=require("simpl-schema"),cron_job_collection_1=require("../collections/cron-job.collection");function loadCronJobPublications(o){o.publications({cronjobs:{function:function(){return cron_job_collection_1.CronJobs.find({},{sort:{name:1}})},collections:["cron-jobs"]},cronjobsReportBuilderWithIdUser:{function:function(o){return cron_job_collection_1.CronJobs.find({$and:[{method_run_data:{$exists:1}},{"method_run_data.id_user":o},{"method_run_data.type":"Report Builder Scheduled Job"}]})},check:new simpl_schema_1.default({id_user:{type:String}}),collections:["cron-jobs"]}})}exports.loadCronJobPublications=loadCronJobPublications;
33
2
  //# sourceMappingURL=cron-jobs.js.map
@@ -1 +1 @@
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}"]}
1
+ {"version":3,"sources":["../../src/publications/cron-jobs.ts"],"names":["simpl_schema_1","require","cron_job_collection_1","loadCronJobPublications","subscriptionManager","publications","cronjobs","function","CronJobs","find","sort","name","collections","cronjobsReportBuilderWithIdUser","id_user","$and","method_run_data","$exists","method_run_data.id_user","method_run_data.type","check","default","type","String","exports"],"mappings":"2GAAA,IAAAA,eAAAC,QAAA,cAAA,EAEAC,sBAAAD,QAAA,oCAAA,EAGA,SAAgBE,wBAAwBC,GACvCA,EAAoBC,aAAa,CAChCC,SAAU,CACTC,SAAU,WACT,OAAOL,sBAAAM,SAASC,KAAK,GAAI,CAACC,KAAM,CAACC,KAAM,CAAC,CAAC,CAAC,CAC3C,EACAC,YAAa,CAAC,Y,EAEfC,gCAAiC,CAChCN,SAAU,SAACO,GACV,OAAOZ,sBAAAM,SAASC,KAAK,CAACM,KAAM,CAC3B,CAACC,gBAAiB,CAACC,QAAS,CAAC,CAAC,EAC9B,CAACC,0BAA2BJ,CAAO,EACnC,CAACK,uBAAwB,8BAA8B,EACvD,CAAC,CACH,EACAC,MAAO,IAAIpB,eAAAqB,QAAa,CACvBP,QAAS,CACRQ,KAAMC,M,EAEP,EACDX,YAAa,CAAC,Y,EAEf,CACF,CAxBAY,QAAArB,wBAAAA","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}"]}
@@ -1,37 +1,2 @@
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
-
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.loadFilePublications=void 0;var simpl_schema_1=require("simpl-schema"),file_collection_1=require("../collections/file.collection");function loadFilePublications(i){i.publications({fileWithId:{function:function(i){return file_collection_1.Files.findById(i)},check:new simpl_schema_1.default({id_file:{type:String}}),collections:["files"]},filesIn:{function:function(i){return file_collection_1.Files.find({_id:{$in:i}},{sort:{name:1}})},check:new simpl_schema_1.default({id_files:{type:Array},"id_files.$":{type:String}}),collections:["files"]}})}exports.loadFilePublications=loadFilePublications;
37
2
  //# sourceMappingURL=files.js.map
@@ -1 +1 @@
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}"]}
1
+ {"version":3,"sources":["../../src/publications/files.ts"],"names":["simpl_schema_1","require","file_collection_1","loadFilePublications","subscriptionManager","publications","fileWithId","function","id_file","Files","findById","check","default","type","String","collections","filesIn","id_files","find","_id","$in","sort","name","Array","id_files.$","exports"],"mappings":"wGAAA,IAAAA,eAAAC,QAAA,cAAA,EACAC,kBAAAD,QAAA,gCAAA,EAIA,SAAgBE,qBAAqBC,GACpCA,EAAoBC,aAAa,CAChCC,WAAY,CACXC,SAAU,SAACC,GACV,OAAON,kBAAAO,MAAMC,SAASF,CAAO,CAC9B,EACAG,MAAO,IAAIX,eAAAY,QAAa,CACvBJ,QAAS,CACRK,KAAMC,M,EAEP,EACDC,YAAa,CAAC,Q,EAEfC,QAAS,CACRT,SAAU,SAACU,GACV,OAAOf,kBAAAO,MAAMS,KAAK,CAACC,IAAK,CAACC,IAAKH,CAAQ,CAAC,EAAG,CAACI,KAAM,CAACC,KAAM,CAAC,CAAC,CAAC,CAC5D,EACAX,MAAO,IAAIX,eAAAY,QAAa,CACvBK,SAAU,CACTJ,KAAMU,K,EAEPC,aAAc,CACbX,KAAMC,M,EAEP,EACDC,YAAa,CAAC,Q,EAEf,CACF,CA5BAU,QAAAtB,qBAAAA","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}"]}
@@ -1,23 +1,2 @@
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
-
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.loadFlagsPublications=void 0;var simpl_schema_1=require("simpl-schema"),flag_collection_1=require("../collections/flag.collection");function loadFlagsPublications(l){l.publications({flagWithType:{function:function(l){return flag_collection_1.Flags.findOne({type:l})},check:new simpl_schema_1.default({flagType:{type:String}}),collections:["flags"]}})}exports.loadFlagsPublications=loadFlagsPublications;
23
2
  //# sourceMappingURL=flags.js.map
@@ -1 +1 @@
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}"]}
1
+ {"version":3,"sources":["../../src/publications/flags.ts"],"names":["simpl_schema_1","require","flag_collection_1","loadFlagsPublications","subscriptionManager","publications","flagWithType","function","flagType","Flags","findOne","type","check","default","String","collections","exports"],"mappings":"yGAAA,IAAAA,eAAAC,QAAA,cAAA,EAEAC,kBAAAD,QAAA,gCAAA,EAGA,SAAgBE,sBAAsBC,GACrCA,EAAoBC,aAAa,CAChCC,aAAc,CACbC,SAAU,SAACC,GACV,OAAON,kBAAAO,MAAMC,QAAQ,CAACC,KAAMH,CAAQ,CAAC,CACtC,EACAI,MAAO,IAAIZ,eAAAa,QAAa,CACvBL,SAAU,CACTG,KAAMG,M,EAEP,EACDC,YAAa,CAAC,Q,EAEf,CACF,CAdAC,QAAAb,sBAAAA","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}"]}