@resolveio/server-lib 9.2.17 → 9.2.19

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 (221) hide show
  1. package/client-server-app.js +1 -55
  2. package/client-server-app.js.map +1 -1
  3. package/collections/app-status.collection.js +1 -40
  4. package/collections/app-status.collection.js.map +1 -1
  5. package/collections/app-version.collection.js +1 -40
  6. package/collections/app-version.collection.js.map +1 -1
  7. package/collections/counter.collection.js +1 -43
  8. package/collections/counter.collection.js.map +1 -1
  9. package/collections/cron-job-history.collection.js +1 -71
  10. package/collections/cron-job-history.collection.js.map +1 -1
  11. package/collections/cron-job.collection.js +1 -74
  12. package/collections/cron-job.collection.js.map +1 -1
  13. package/collections/email-history.collection.js +1 -55
  14. package/collections/email-history.collection.js.map +1 -1
  15. package/collections/email-verified.collection.js +1 -50
  16. package/collections/email-verified.collection.js.map +1 -1
  17. package/collections/file.collection.js +1 -62
  18. package/collections/file.collection.js.map +1 -1
  19. package/collections/flag.collection.js +1 -44
  20. package/collections/flag.collection.js.map +1 -1
  21. package/collections/log-method-latency.collection.js +1 -53
  22. package/collections/log-method-latency.collection.js.map +1 -1
  23. package/collections/log-subscription.collection.js +1 -57
  24. package/collections/log-subscription.collection.js.map +1 -1
  25. package/collections/log.collection.js +1 -72
  26. package/collections/log.collection.js.map +1 -1
  27. package/collections/logged-in-users.collection.js +1 -58
  28. package/collections/logged-in-users.collection.js.map +1 -1
  29. package/collections/method-call.collection.js +1 -51
  30. package/collections/method-call.collection.js.map +1 -1
  31. package/collections/method-response.collection.js +1 -55
  32. package/collections/method-response.collection.js.map +1 -1
  33. package/collections/monitor-cpu.collection.js +1 -57
  34. package/collections/monitor-cpu.collection.js.map +1 -1
  35. package/collections/monitor-https-inbound.collection.js +1 -66
  36. package/collections/monitor-https-inbound.collection.js.map +1 -1
  37. package/collections/monitor-https-outbound.collection.js +1 -74
  38. package/collections/monitor-https-outbound.collection.js.map +1 -1
  39. package/collections/monitor-memory.collection.js +1 -68
  40. package/collections/monitor-memory.collection.js.map +1 -1
  41. package/collections/monitor-mongo.collection.js +1 -62
  42. package/collections/monitor-mongo.collection.js.map +1 -1
  43. package/collections/notification.collection.js +1 -40
  44. package/collections/notification.collection.js.map +1 -1
  45. package/collections/report-builder-dashboard-builder.collection.js +1 -93
  46. package/collections/report-builder-dashboard-builder.collection.js.map +1 -1
  47. package/collections/report-builder-library.collection.js +1 -76
  48. package/collections/report-builder-library.collection.js.map +1 -1
  49. package/collections/report-builder-report.collection.js +1 -138
  50. package/collections/report-builder-report.collection.js.map +1 -1
  51. package/collections/user-group.collection.js +1 -79
  52. package/collections/user-group.collection.js.map +1 -1
  53. package/collections/user-guide.collection.js +1 -46
  54. package/collections/user-guide.collection.js.map +1 -1
  55. package/collections/user.collection.js +1 -248
  56. package/collections/user.collection.js.map +1 -1
  57. package/cron/cron.js +1 -161
  58. package/cron/cron.js.map +1 -1
  59. package/fixtures/cron-jobs.js +1 -72
  60. package/fixtures/cron-jobs.js.map +1 -1
  61. package/fixtures/init.js +1 -62
  62. package/fixtures/init.js.map +1 -1
  63. package/http/auth.js +1 -697
  64. package/http/auth.js.map +1 -1
  65. package/http/health.js +1 -10
  66. package/http/health.js.map +1 -1
  67. package/http/home.js +1 -64
  68. package/http/home.js.map +1 -1
  69. package/index.js +1 -123
  70. package/index.js.map +1 -1
  71. package/managers/cron.manager.js +1 -205
  72. package/managers/cron.manager.js.map +1 -1
  73. package/managers/method.manager.js +1 -599
  74. package/managers/method.manager.js.map +1 -1
  75. package/managers/mongo.manager.js +1 -1682
  76. package/managers/mongo.manager.js.map +1 -1
  77. package/managers/monitor.manager.js +1 -334
  78. package/managers/monitor.manager.js.map +1 -1
  79. package/managers/subscription.manager.js +1 -867
  80. package/managers/subscription.manager.js.map +1 -1
  81. package/managers/subscription.performance.js +1 -100
  82. package/managers/subscription.performance.js.map +1 -1
  83. package/methods/accounts.js +1 -224
  84. package/methods/accounts.js.map +1 -1
  85. package/methods/aws.js +1 -449
  86. package/methods/aws.js.map +1 -1
  87. package/methods/cloudconvert.js +1 -214
  88. package/methods/cloudconvert.js.map +1 -1
  89. package/methods/collections.js +1 -526
  90. package/methods/collections.js.map +1 -1
  91. package/methods/counters.js +1 -121
  92. package/methods/counters.js.map +1 -1
  93. package/methods/cron-jobs.js +1 -1284
  94. package/methods/cron-jobs.js.map +1 -1
  95. package/methods/flags.js +1 -8
  96. package/methods/flags.js.map +1 -1
  97. package/methods/logs.js +1 -370
  98. package/methods/logs.js.map +1 -1
  99. package/methods/monitor.js +1 -384
  100. package/methods/monitor.js.map +1 -1
  101. package/methods/pdf.js +1 -685
  102. package/methods/pdf.js.map +1 -1
  103. package/methods/report-builder.js +1 -826
  104. package/methods/report-builder.js.map +1 -1
  105. package/methods/support.js +1 -263
  106. package/methods/support.js.map +1 -1
  107. package/models/app-status.model.js +1 -3
  108. package/models/app-status.model.js.map +1 -1
  109. package/models/app-version.model.js +1 -3
  110. package/models/app-version.model.js.map +1 -1
  111. package/models/billing-logged-in-users.model.js +1 -3
  112. package/models/billing-logged-in-users.model.js.map +1 -1
  113. package/models/collection-document.model.js +1 -3
  114. package/models/collection-document.model.js.map +1 -1
  115. package/models/counter.model.js +1 -3
  116. package/models/counter.model.js.map +1 -1
  117. package/models/cron-job-history.model.js +1 -3
  118. package/models/cron-job-history.model.js.map +1 -1
  119. package/models/cron-job.model.js +1 -3
  120. package/models/cron-job.model.js.map +1 -1
  121. package/models/dialog.model.js +1 -3
  122. package/models/dialog.model.js.map +1 -1
  123. package/models/email-history.model.js +1 -3
  124. package/models/email-history.model.js.map +1 -1
  125. package/models/email-verified.model.js +1 -3
  126. package/models/email-verified.model.js.map +1 -1
  127. package/models/file.model.js +1 -3
  128. package/models/file.model.js.map +1 -1
  129. package/models/flag.model.js +1 -3
  130. package/models/flag.model.js.map +1 -1
  131. package/models/log-method-latency.model.js +1 -3
  132. package/models/log-method-latency.model.js.map +1 -1
  133. package/models/log-subscription.model.js +1 -3
  134. package/models/log-subscription.model.js.map +1 -1
  135. package/models/log.model.js +1 -3
  136. package/models/log.model.js.map +1 -1
  137. package/models/logged-in-users.model.js +1 -3
  138. package/models/logged-in-users.model.js.map +1 -1
  139. package/models/method-call.model.js +1 -3
  140. package/models/method-call.model.js.map +1 -1
  141. package/models/method-response.model.js +1 -3
  142. package/models/method-response.model.js.map +1 -1
  143. package/models/method.model.js +1 -3
  144. package/models/method.model.js.map +1 -1
  145. package/models/monitor-cpu.model.js +1 -3
  146. package/models/monitor-cpu.model.js.map +1 -1
  147. package/models/monitor-https-inbound.model.js +1 -3
  148. package/models/monitor-https-inbound.model.js.map +1 -1
  149. package/models/monitor-https-outbound.model.js +1 -3
  150. package/models/monitor-https-outbound.model.js.map +1 -1
  151. package/models/monitor-memory.model.js +1 -3
  152. package/models/monitor-memory.model.js.map +1 -1
  153. package/models/monitor-mongo.model.js +1 -3
  154. package/models/monitor-mongo.model.js.map +1 -1
  155. package/models/notification.model.js +1 -3
  156. package/models/notification.model.js.map +1 -1
  157. package/models/pagination.model.js +1 -23
  158. package/models/pagination.model.js.map +1 -1
  159. package/models/permission.model.js +1 -3
  160. package/models/permission.model.js.map +1 -1
  161. package/models/report-builder-dashboard-builder.model.js +1 -3
  162. package/models/report-builder-dashboard-builder.model.js.map +1 -1
  163. package/models/report-builder-library.model.js +1 -3
  164. package/models/report-builder-library.model.js.map +1 -1
  165. package/models/report-builder-report.model.js +1 -3
  166. package/models/report-builder-report.model.js.map +1 -1
  167. package/models/report-builder.model.js +1 -3
  168. package/models/report-builder.model.js.map +1 -1
  169. package/models/select-data-label.model.js +1 -3
  170. package/models/select-data-label.model.js.map +1 -1
  171. package/models/server-response.model.js +1 -3
  172. package/models/server-response.model.js.map +1 -1
  173. package/models/subscription.model.js +1 -3
  174. package/models/subscription.model.js.map +1 -1
  175. package/models/support-ticket.model.js +1 -3
  176. package/models/support-ticket.model.js.map +1 -1
  177. package/models/user-group.model.js +1 -3
  178. package/models/user-group.model.js.map +1 -1
  179. package/models/user-guide.model.js +1 -3
  180. package/models/user-guide.model.js.map +1 -1
  181. package/models/user.model.js +1 -3
  182. package/models/user.model.js.map +1 -1
  183. package/package.json +2 -2
  184. package/public_api.js +1 -78
  185. package/public_api.js.map +1 -1
  186. package/publications/app-status.js +1 -16
  187. package/publications/app-status.js.map +1 -1
  188. package/publications/app-version.js +1 -16
  189. package/publications/app-version.js.map +1 -1
  190. package/publications/cron-jobs.js +1 -32
  191. package/publications/cron-jobs.js.map +1 -1
  192. package/publications/files.js +1 -36
  193. package/publications/files.js.map +1 -1
  194. package/publications/flags.js +1 -22
  195. package/publications/flags.js.map +1 -1
  196. package/publications/logs.js +1 -90
  197. package/publications/logs.js.map +1 -1
  198. package/publications/method-calls.js +1 -16
  199. package/publications/method-calls.js.map +1 -1
  200. package/publications/method-responses.js +1 -16
  201. package/publications/method-responses.js.map +1 -1
  202. package/publications/notifications.js +1 -16
  203. package/publications/notifications.js.map +1 -1
  204. package/publications/report-builder-dashboard-builders.js +1 -42
  205. package/publications/report-builder-dashboard-builders.js.map +1 -1
  206. package/publications/report-builder-libraries.js +1 -89
  207. package/publications/report-builder-libraries.js.map +1 -1
  208. package/publications/report-builder-reports.js +1 -50
  209. package/publications/report-builder-reports.js.map +1 -1
  210. package/publications/super-admin.js +1 -16
  211. package/publications/super-admin.js.map +1 -1
  212. package/publications/user-groups.js +1 -16
  213. package/publications/user-groups.js.map +1 -1
  214. package/publications/user-guides.js +1 -16
  215. package/publications/user-guides.js.map +1 -1
  216. package/server-app.js +1 -682
  217. package/server-app.js.map +1 -1
  218. package/util/common.js +1 -498
  219. package/util/common.js.map +1 -1
  220. package/util/schema-report-builder.js +1 -452
  221. package/util/schema-report-builder.js.map +1 -1
@@ -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=monitor-memory.model.js.map
@@ -1 +1 @@
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
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"monitor-memory.model.js","sourcesContent":[]}
@@ -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=monitor-mongo.model.js.map
@@ -1 +1 @@
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
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"monitor-mongo.model.js","sourcesContent":[]}
@@ -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=notification.model.js.map
@@ -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}"]}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"notification.model.js","sourcesContent":[]}
@@ -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;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
+ {"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,gBAaaC,QAAAC,wBAA0B,IAAIH,eAAAI,QAAc,CACxDC,MAAO,CACNC,KAAMC,QAEPC,KAAM,CACLF,KAAMC,QAEPE,KAAM,CACLH,KAAMI,OACNC,UAAU,EACVC,UAAU,GAEXC,OAAQ,CACPP,KAAMI,OACNE,UAAU,EACVD,UAAU","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,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,"sources":[],"names":[],"mappings":"","file":"permission.model.js","sourcesContent":[]}
@@ -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}\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,"sources":[],"names":[],"mappings":"","file":"report-builder-dashboard-builder.model.js","sourcesContent":[]}
@@ -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,"sources":[],"names":[],"mappings":"","file":"report-builder-library.model.js","sourcesContent":[]}
@@ -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\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
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"report-builder-report.model.js","sourcesContent":[]}
@@ -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,"sources":[],"names":[],"mappings":"","file":"report-builder.model.js","sourcesContent":[]}
@@ -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,"sources":[],"names":[],"mappings":"","file":"select-data-label.model.js","sourcesContent":[]}
@@ -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,"sources":[],"names":[],"mappings":"","file":"server-response.model.js","sourcesContent":[]}
@@ -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: 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
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"subscription.model.js","sourcesContent":[]}
@@ -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,"sources":[],"names":[],"mappings":"","file":"support-ticket.model.js","sourcesContent":[]}
@@ -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\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,"sources":[],"names":[],"mappings":"","file":"user-group.model.js","sourcesContent":[]}
@@ -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,"sources":[],"names":[],"mappings":"","file":"user-guide.model.js","sourcesContent":[]}
@@ -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\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}"]}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"user.model.js","sourcesContent":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resolveio/server-lib",
3
- "version": "9.2.17",
3
+ "version": "9.2.19",
4
4
  "description": "",
5
5
  "main": "index.ts",
6
6
  "scripts": {
@@ -69,7 +69,7 @@
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": "3.0.2",
72
+ "gulp-uglify-es": "2.0.0",
73
73
  "gulp-zip": "5.0.2",
74
74
  "merge2": "1.2.3",
75
75
  "mkdirs": "0.0.3",
package/public_api.js CHANGED
@@ -1,79 +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
- 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
-
1
+ "use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,r,o,t){void 0===t&&(t=o),Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[o]}})}:function(e,r,o,t){void 0===t&&(t=o),e[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/app-version.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-call.collection"),exports),__exportStar(require("./collections/method-response.collection"),exports),__exportStar(require("./collections/monitor-cpu.collection"),exports),__exportStar(require("./collections/monitor-https-inbound.collection"),exports),__exportStar(require("./collections/monitor-https-outbound.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/app-version.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-call.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-https-inbound.model"),exports),__exportStar(require("./models/monitor-https-outbound.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);
79
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,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
+ {"version":3,"sources":["../../src/public_api.ts"],"names":["__exportStar","require","exports"],"mappings":"obAAAA,aAAAC,QAAA,uCAAAC,SACAF,aAAAC,QAAA,wCAAAC,SACAF,aAAAC,QAAA,oCAAAC,SACAF,aAAAC,QAAA,6CAAAC,SACAF,aAAAC,QAAA,qCAAAC,SACAF,aAAAC,QAAA,0CAAAC,SACAF,aAAAC,QAAA,2CAAAC,SACAF,aAAAC,QAAA,iCAAAC,SACAF,aAAAC,QAAA,iCAAAC,SACAF,aAAAC,QAAA,+CAAAC,SACAF,aAAAC,QAAA,6CAAAC,SACAF,aAAAC,QAAA,gCAAAC,SACAF,aAAAC,QAAA,4CAAAC,SACAF,aAAAC,QAAA,wCAAAC,SACAF,aAAAC,QAAA,4CAAAC,SACAF,aAAAC,QAAA,wCAAAC,SACAF,aAAAC,QAAA,kDAAAC,SACAF,aAAAC,QAAA,mDAAAC,SACAF,aAAAC,QAAA,2CAAAC,SACAF,aAAAC,QAAA,0CAAAC,SACAF,aAAAC,QAAA,yCAAAC,SACAF,aAAAC,QAAA,mDAAAC,SACAF,aAAAC,QAAA,kDAAAC,SACAF,aAAAC,QAAA,uCAAAC,SACAF,aAAAC,QAAA,uCAAAC,SACAF,aAAAC,QAAA,iCAAAC,SACAF,aAAAC,QAAA,6BAAAC,SACAF,aAAAC,QAAA,8BAAAC,SACAF,aAAAC,QAAA,0CAAAC,SACAF,aAAAC,QAAA,sCAAAC,SACAF,aAAAC,QAAA,0BAAAC,SACAF,aAAAC,QAAA,mCAAAC,SACAF,aAAAC,QAAA,2BAAAC,SACAF,aAAAC,QAAA,yBAAAC,SACAF,aAAAC,QAAA,gCAAAC,SACAF,aAAAC,QAAA,iCAAAC,SACAF,aAAAC,QAAA,uBAAAC,SACAF,aAAAC,QAAA,uBAAAC,SACAF,aAAAC,QAAA,qCAAAC,SACAF,aAAAC,QAAA,mCAAAC,SACAF,aAAAC,QAAA,sBAAAC,SACAF,aAAAC,QAAA,kCAAAC,SACAF,aAAAC,QAAA,8BAAAC,SACAF,aAAAC,QAAA,kCAAAC,SACAF,aAAAC,QAAA,yBAAAC,SACAF,aAAAC,QAAA,8BAAAC,SACAF,aAAAC,QAAA,wCAAAC,SACAF,aAAAC,QAAA,yCAAAC,SACAF,aAAAC,QAAA,iCAAAC,SACAF,aAAAC,QAAA,gCAAAC,SACAF,aAAAC,QAAA,+BAAAC,SACAF,aAAAC,QAAA,6BAAAC,SACAF,aAAAC,QAAA,6BAAAC,SACAF,aAAAC,QAAA,yCAAAC,SACAF,aAAAC,QAAA,wCAAAC,SACAF,aAAAC,QAAA,iCAAAC,SACAF,aAAAC,QAAA,oCAAAC,SACAF,aAAAC,QAAA,kCAAAC,SACAF,aAAAC,QAAA,+BAAAC,SACAF,aAAAC,QAAA,iCAAAC,SACAF,aAAAC,QAAA,6BAAAC,SACAF,aAAAC,QAAA,6BAAAC,SACAF,aAAAC,QAAA,uBAAAC,SACAF,aAAAC,QAAA,iBAAAC,SACAF,aAAAC,QAAA,4BAAAC","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,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,wCAEA,SAAgBC,0BAA0BC,GACzCA,EAAoBC,aAAa,CAChCC,UAAW,CACVC,SAAU,WACT,OAAON,wBAAAO,UAAUC,WAElBC,YAAa,CAAC,mBANjBC,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,17 +1,2 @@
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
-
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.loadAppVersionPublications=void 0;var app_version_collection_1=require("../collections/app-version.collection");function loadAppVersionPublications(o){o.publications({appversion:{function:function(){return app_version_collection_1.AppVersions.findOne({})},collections:["app-versions"]}})}exports.loadAppVersionPublications=loadAppVersionPublications;
17
2
  //# sourceMappingURL=app-version.js.map
@@ -1 +1 @@
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
+ {"version":3,"sources":["../../src/publications/app-version.ts"],"names":["app_version_collection_1","require","loadAppVersionPublications","subscriptionManager","publications","appversion","function","AppVersions","findOne","collections","exports"],"mappings":"8GACA,IAAAA,yBAAAC,QAAA,yCAEA,SAAgBC,2BAA2BC,GAC1CA,EAAoBC,aAAa,CAChCC,WAAY,CACXC,SAAU,WACT,OAAON,yBAAAO,YAAYC,QAAQ,KAE5BC,YAAa,CAAC,mBANjBC,QAAAR,2BAAAA","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,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,gBAEAC,sBAAAD,QAAA,sCAGA,SAAgBE,wBAAwBC,GACvCA,EAAoBC,aAAa,CAChCC,SAAU,CACTC,SAAU,WACT,OAAOL,sBAAAM,SAASC,KAAK,GAAI,CAACC,KAAM,CAACC,KAAM,MAExCC,YAAa,CAAC,cAEfC,gCAAiC,CAChCN,SAAU,SAACO,GACV,OAAOZ,sBAAAM,SAASC,KAAK,CAACM,KAAM,CAC3B,CAACC,gBAAiB,CAACC,QAAS,IAC5B,CAACC,0BAA2BJ,GAC5B,CAACK,uBAAwB,oCAG3BC,MAAO,IAAIpB,eAAAqB,QAAa,CACvBP,QAAS,CACRQ,KAAMC,UAGRX,YAAa,CAAC,gBArBjBY,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,gBACAC,kBAAAD,QAAA,kCAIA,SAAgBE,qBAAqBC,GACpCA,EAAoBC,aAAa,CAChCC,WAAY,CACXC,SAAU,SAACC,GACV,OAAON,kBAAAO,MAAMC,SAASF,IAEvBG,MAAO,IAAIX,eAAAY,QAAa,CACvBJ,QAAS,CACRK,KAAMC,UAGRC,YAAa,CAAC,UAEfC,QAAS,CACRT,SAAU,SAACU,GACV,OAAOf,kBAAAO,MAAMS,KAAK,CAACC,IAAK,CAACC,IAAKH,IAAY,CAACI,KAAM,CAACC,KAAM,MAEzDX,MAAO,IAAIX,eAAAY,QAAa,CACvBK,SAAU,CACTJ,KAAMU,OAEPC,aAAc,CACbX,KAAMC,UAGRC,YAAa,CAAC,YAzBjBU,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