@resolveio/server-lib 9.2.18 → 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 -1
  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,94 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ReportBuilderDashboardBuilders = void 0;
4
- var index_1 = require("../index");
5
- var mongo_manager_1 = require("../managers/mongo.manager");
6
- var schema = {
7
- _id: {
8
- type: String,
9
- optional: true
10
- },
11
- __v: {
12
- type: Number,
13
- optional: true
14
- },
15
- updatedAt: {
16
- type: Date,
17
- optional: true
18
- },
19
- createdAt: {
20
- type: Date,
21
- optional: true
22
- },
23
- name: {
24
- type: String
25
- },
26
- date_created: {
27
- type: Date
28
- },
29
- id_user_created: {
30
- type: String
31
- },
32
- user_created: {
33
- type: String
34
- },
35
- num_rows: {
36
- type: Number
37
- },
38
- num_columns: {
39
- type: Number
40
- },
41
- report_rows: {
42
- type: Array
43
- },
44
- 'report_rows.$': {
45
- type: Object
46
- },
47
- 'report_rows.$.report_columns': {
48
- type: Array
49
- },
50
- 'report_rows.$.report_columns.$': {
51
- type: Object
52
- },
53
- 'report_rows.$.report_columns.$.id_report': {
54
- type: String
55
- },
56
- 'report_rows.$.report_columns.$.report_name': {
57
- type: String
58
- },
59
- 'report_rows.$.report_columns.$.report_type': {
60
- type: String
61
- },
62
- 'report_rows.$.report_columns.$.display_type': {
63
- type: String
64
- },
65
- 'report_rows.$.report_columns.$.display_values': {
66
- type: Array
67
- },
68
- 'report_rows.$.report_columns.$.display_values.$': {
69
- type: String
70
- },
71
- 'report_rows.$.report_columns.$.display_text': {
72
- type: String
73
- },
74
- 'report_rows.$.report_columns.$.display_value': {
75
- type: String
76
- },
77
- };
78
- exports.ReportBuilderDashboardBuilders = null;
79
- initializeCollection();
80
- function initializeCollection() {
81
- if (index_1.ResolveIOServer && index_1.ResolveIOServer.getMainDB()) {
82
- var model = new mongo_manager_1.Model('report-builder-dashboard-builders', schema, false, false);
83
- exports.ReportBuilderDashboardBuilders = model.collection_main;
84
- exports.ReportBuilderDashboardBuilders.createIndex({ name: 1 });
85
- exports.ReportBuilderDashboardBuilders.createIndex({ date_created: 1 });
86
- }
87
- else {
88
- setTimeout(function () {
89
- initializeCollection();
90
- }, 1);
91
- }
92
- }
93
-
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ReportBuilderDashboardBuilders=void 0;var index_1=require("../index"),mongo_manager_1=require("../managers/mongo.manager"),schema={_id:{type:String,optional:!0},__v:{type:Number,optional:!0},updatedAt:{type:Date,optional:!0},createdAt:{type:Date,optional:!0},name:{type:String},date_created:{type:Date},id_user_created:{type:String},user_created:{type:String},num_rows:{type:Number},num_columns:{type:Number},report_rows:{type:Array},"report_rows.$":{type:Object},"report_rows.$.report_columns":{type:Array},"report_rows.$.report_columns.$":{type:Object},"report_rows.$.report_columns.$.id_report":{type:String},"report_rows.$.report_columns.$.report_name":{type:String},"report_rows.$.report_columns.$.report_type":{type:String},"report_rows.$.report_columns.$.display_type":{type:String},"report_rows.$.report_columns.$.display_values":{type:Array},"report_rows.$.report_columns.$.display_values.$":{type:String},"report_rows.$.report_columns.$.display_text":{type:String},"report_rows.$.report_columns.$.display_value":{type:String}};function initializeCollection(){if(index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()){var e=new mongo_manager_1.Model("report-builder-dashboard-builders",schema,!1,!1);exports.ReportBuilderDashboardBuilders=e.collection_main,exports.ReportBuilderDashboardBuilders.createIndex({name:1}),exports.ReportBuilderDashboardBuilders.createIndex({date_created:1})}else setTimeout((function(){initializeCollection()}),1)}exports.ReportBuilderDashboardBuilders=null,initializeCollection();
94
2
  //# sourceMappingURL=report-builder-dashboard-builder.collection.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/collections/report-builder-dashboard-builder.collection.ts"],"names":[],"mappings":";;;AAAA,kCAA2C;AAC3C,2DAA8D;AAG9D,IAAI,MAAM,GAAQ;IACjB,GAAG,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,GAAG,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,SAAS,EAAE;QACV,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;KACd;IACD,SAAS,EAAE;QACV,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;KACd;IACD,IAAI,EAAE;QACL,IAAI,EAAE,MAAM;KACZ;IACD,YAAY,EAAE;QACb,IAAI,EAAE,IAAI;KACV;IACD,eAAe,EAAE;QAChB,IAAI,EAAE,MAAM;KACZ;IACD,YAAY,EAAE;QACb,IAAI,EAAE,MAAM;KACZ;IACD,QAAQ,EAAE;QACT,IAAI,EAAE,MAAM;KACZ;IACD,WAAW,EAAE;QACZ,IAAI,EAAE,MAAM;KACZ;IACD,WAAW,EAAE;QACZ,IAAI,EAAE,KAAK;KACX;IACD,eAAe,EAAE;QAChB,IAAI,EAAE,MAAM;KACZ;IACD,8BAA8B,EAAE;QAC/B,IAAI,EAAE,KAAK;KACX;IACD,gCAAgC,EAAE;QACjC,IAAI,EAAE,MAAM;KACZ;IACD,0CAA0C,EAAE;QAC3C,IAAI,EAAE,MAAM;KACZ;IACD,4CAA4C,EAAE;QAC7C,IAAI,EAAE,MAAM;KACZ;IACD,4CAA4C,EAAE;QAC7C,IAAI,EAAE,MAAM;KACZ;IACD,6CAA6C,EAAE;QAC9C,IAAI,EAAE,MAAM;KACZ;IACD,+CAA+C,EAAE;QAChD,IAAI,EAAE,KAAK;KACX;IACD,iDAAiD,EAAE;QAClD,IAAI,EAAE,MAAM;KACZ;IACD,6CAA6C,EAAE;QAC9C,IAAI,EAAE,MAAM;KACZ;IACD,8CAA8C,EAAE;QAC/C,IAAI,EAAE,MAAM;KACZ;CACD,CAAC;AAES,QAAA,8BAA8B,GAAmD,IAAI,CAAC;AAEjG,oBAAoB,EAAE,CAAC;AAEvB,SAAS,oBAAoB;IAC5B,IAAI,uBAAe,IAAI,uBAAe,CAAC,SAAS,EAAE,EAAE;QACnD,IAAM,KAAK,GAAG,IAAI,qBAAK,CAAqC,mCAAmC,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;QACvH,sCAA8B,GAAG,KAAK,CAAC,eAAe,CAAC;QACvD,sCAA8B,CAAC,WAAW,CAAC,EAAC,IAAI,EAAE,CAAC,EAAC,CAAC,CAAC;QACtD,sCAA8B,CAAC,WAAW,CAAC,EAAC,YAAY,EAAE,CAAC,EAAC,CAAC,CAAC;KAC9D;SACI;QACJ,UAAU,CAAC;YACV,oBAAoB,EAAE,CAAC;QACxB,CAAC,EAAE,CAAC,CAAC,CAAC;KACN;AACF,CAAC","file":"report-builder-dashboard-builder.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } from '../managers/mongo.manager';\nimport { ReportBuilderDashboardBuilderModel } from '../models/report-builder-dashboard-builder.model';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t__v: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tupdatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcreatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tname: {\n\t\ttype: String\n\t},\n\tdate_created: {\n\t\ttype: Date\n\t},\n\tid_user_created: {\n\t\ttype: String\n\t},\n\tuser_created: {\n\t\ttype: String\n\t},\n\tnum_rows: {\n\t\ttype: Number\n\t},\n\tnum_columns: {\n\t\ttype: Number\n\t},\n\treport_rows: {\n\t\ttype: Array\n\t},\n\t'report_rows.$': {\n\t\ttype: Object\n\t},\n\t'report_rows.$.report_columns': {\n\t\ttype: Array\n\t},\n\t'report_rows.$.report_columns.$': {\n\t\ttype: Object\n\t},\n\t'report_rows.$.report_columns.$.id_report': {\n\t\ttype: String\n\t},\n\t'report_rows.$.report_columns.$.report_name': {\n\t\ttype: String\n\t},\n\t'report_rows.$.report_columns.$.report_type': {\n\t\ttype: String\n\t},\n\t'report_rows.$.report_columns.$.display_type': {\n\t\ttype: String\n\t},\n\t'report_rows.$.report_columns.$.display_values': {\n\t\ttype: Array\n\t},\n\t'report_rows.$.report_columns.$.display_values.$': {\n\t\ttype: String\n\t},\n\t'report_rows.$.report_columns.$.display_text': {\n\t\ttype: String\n\t},\n\t'report_rows.$.report_columns.$.display_value': {\n\t\ttype: String\n\t},\n};\n\nexport let ReportBuilderDashboardBuilders: Collection<ReportBuilderDashboardBuilderModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<ReportBuilderDashboardBuilderModel>('report-builder-dashboard-builders', schema, false, false);\n\t\tReportBuilderDashboardBuilders = model.collection_main;\n\t\tReportBuilderDashboardBuilders.createIndex({name: 1});\n\t\tReportBuilderDashboardBuilders.createIndex({date_created: 1});\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 1);\n\t}\n}"]}
1
+ {"version":3,"sources":["../../src/collections/report-builder-dashboard-builder.collection.ts"],"names":["index_1","require","mongo_manager_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","name","date_created","id_user_created","user_created","num_rows","num_columns","report_rows","Array","report_rows.$","Object","report_rows.$.report_columns","report_rows.$.report_columns.$","report_rows.$.report_columns.$.id_report","report_rows.$.report_columns.$.report_name","report_rows.$.report_columns.$.report_type","report_rows.$.report_columns.$.display_type","report_rows.$.report_columns.$.display_values","report_rows.$.report_columns.$.display_values.$","report_rows.$.report_columns.$.display_text","report_rows.$.report_columns.$.display_value","initializeCollection","ResolveIOServer","getMainDB","model","Model","exports","ReportBuilderDashboardBuilders","collection_main","createIndex","setTimeout"],"mappings":"kHAAA,IAAAA,QAAAC,QAAA,YACAC,gBAAAD,QAAA,6BAGIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,UAAU,GAEXC,IAAK,CACJH,KAAMI,OACNF,UAAU,GAEXG,UAAW,CACVL,KAAMM,KACNJ,UAAU,GAEXK,UAAW,CACVP,KAAMM,KACNJ,UAAU,GAEXM,KAAM,CACLR,KAAMC,QAEPQ,aAAc,CACbT,KAAMM,MAEPI,gBAAiB,CAChBV,KAAMC,QAEPU,aAAc,CACbX,KAAMC,QAEPW,SAAU,CACTZ,KAAMI,QAEPS,YAAa,CACZb,KAAMI,QAEPU,YAAa,CACZd,KAAMe,OAEPC,gBAAiB,CAChBhB,KAAMiB,QAEPC,+BAAgC,CAC/BlB,KAAMe,OAEPI,iCAAkC,CACjCnB,KAAMiB,QAEPG,2CAA4C,CAC3CpB,KAAMC,QAEPoB,6CAA8C,CAC7CrB,KAAMC,QAEPqB,6CAA8C,CAC7CtB,KAAMC,QAEPsB,8CAA+C,CAC9CvB,KAAMC,QAEPuB,gDAAiD,CAChDxB,KAAMe,OAEPU,kDAAmD,CAClDzB,KAAMC,QAEPyB,8CAA+C,CAC9C1B,KAAMC,QAEP0B,+CAAgD,CAC/C3B,KAAMC,SAQR,SAAS2B,uBACR,GAAIjC,QAAAkC,iBAAmBlC,QAAAkC,gBAAgBC,YAAa,CACnD,IAAMC,EAAQ,IAAIlC,gBAAAmC,MAA0C,oCAAqClC,QAAQ,GAAO,GAChHmC,QAAAC,+BAAiCH,EAAMI,gBACvCF,QAAAC,+BAA+BE,YAAY,CAAC5B,KAAM,IAClDyB,QAAAC,+BAA+BE,YAAY,CAAC3B,aAAc,SAG1D4B,YAAW,WACVT,yBACE,GAdMK,QAAAC,+BAAiF,KAE5FN","file":"report-builder-dashboard-builder.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } from '../managers/mongo.manager';\nimport { ReportBuilderDashboardBuilderModel } from '../models/report-builder-dashboard-builder.model';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t__v: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tupdatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcreatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tname: {\n\t\ttype: String\n\t},\n\tdate_created: {\n\t\ttype: Date\n\t},\n\tid_user_created: {\n\t\ttype: String\n\t},\n\tuser_created: {\n\t\ttype: String\n\t},\n\tnum_rows: {\n\t\ttype: Number\n\t},\n\tnum_columns: {\n\t\ttype: Number\n\t},\n\treport_rows: {\n\t\ttype: Array\n\t},\n\t'report_rows.$': {\n\t\ttype: Object\n\t},\n\t'report_rows.$.report_columns': {\n\t\ttype: Array\n\t},\n\t'report_rows.$.report_columns.$': {\n\t\ttype: Object\n\t},\n\t'report_rows.$.report_columns.$.id_report': {\n\t\ttype: String\n\t},\n\t'report_rows.$.report_columns.$.report_name': {\n\t\ttype: String\n\t},\n\t'report_rows.$.report_columns.$.report_type': {\n\t\ttype: String\n\t},\n\t'report_rows.$.report_columns.$.display_type': {\n\t\ttype: String\n\t},\n\t'report_rows.$.report_columns.$.display_values': {\n\t\ttype: Array\n\t},\n\t'report_rows.$.report_columns.$.display_values.$': {\n\t\ttype: String\n\t},\n\t'report_rows.$.report_columns.$.display_text': {\n\t\ttype: String\n\t},\n\t'report_rows.$.report_columns.$.display_value': {\n\t\ttype: String\n\t},\n};\n\nexport let ReportBuilderDashboardBuilders: Collection<ReportBuilderDashboardBuilderModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<ReportBuilderDashboardBuilderModel>('report-builder-dashboard-builders', schema, false, false);\n\t\tReportBuilderDashboardBuilders = model.collection_main;\n\t\tReportBuilderDashboardBuilders.createIndex({name: 1});\n\t\tReportBuilderDashboardBuilders.createIndex({date_created: 1});\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 1);\n\t}\n}"]}
@@ -1,77 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ReportBuilderLibraries = void 0;
4
- var index_1 = require("../index");
5
- var mongo_manager_1 = require("../managers/mongo.manager");
6
- var schema = {
7
- _id: {
8
- type: String,
9
- optional: true
10
- },
11
- __v: {
12
- type: Number,
13
- optional: true
14
- },
15
- updatedAt: {
16
- type: Date,
17
- optional: true
18
- },
19
- createdAt: {
20
- type: Date,
21
- optional: true
22
- },
23
- name: {
24
- type: String
25
- },
26
- id_user_create: {
27
- type: String
28
- },
29
- user_create: {
30
- type: String
31
- },
32
- date: {
33
- type: Date
34
- },
35
- reports: {
36
- type: Array
37
- },
38
- 'reports.$': {
39
- type: Object
40
- },
41
- 'reports.$.id_report': {
42
- type: String
43
- },
44
- 'reports.$.report': {
45
- type: String
46
- },
47
- user_groups: {
48
- type: Array
49
- },
50
- 'user_groups.$': {
51
- type: Object
52
- },
53
- 'user_groups.$.id_user_group': {
54
- type: String
55
- },
56
- 'user_groups.$.user_group': {
57
- type: String
58
- }
59
- };
60
- exports.ReportBuilderLibraries = null;
61
- initializeCollection();
62
- function initializeCollection() {
63
- if (index_1.ResolveIOServer && index_1.ResolveIOServer.getMainDB()) {
64
- var model = new mongo_manager_1.Model('report-builder-libraries', schema, false, false);
65
- exports.ReportBuilderLibraries = model.collection_main;
66
- exports.ReportBuilderLibraries.createIndex({ name: 1 });
67
- exports.ReportBuilderLibraries.createIndex({ id_user_create: 1 });
68
- exports.ReportBuilderLibraries.createIndex({ 'user_groups.id_user_group': 1 });
69
- }
70
- else {
71
- setTimeout(function () {
72
- initializeCollection();
73
- }, 1);
74
- }
75
- }
76
-
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ReportBuilderLibraries=void 0;var index_1=require("../index"),mongo_manager_1=require("../managers/mongo.manager"),schema={_id:{type:String,optional:!0},__v:{type:Number,optional:!0},updatedAt:{type:Date,optional:!0},createdAt:{type:Date,optional:!0},name:{type:String},id_user_create:{type:String},user_create:{type:String},date:{type:Date},reports:{type:Array},"reports.$":{type:Object},"reports.$.id_report":{type:String},"reports.$.report":{type:String},user_groups:{type:Array},"user_groups.$":{type:Object},"user_groups.$.id_user_group":{type:String},"user_groups.$.user_group":{type:String}};function initializeCollection(){if(index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()){var e=new mongo_manager_1.Model("report-builder-libraries",schema,!1,!1);exports.ReportBuilderLibraries=e.collection_main,exports.ReportBuilderLibraries.createIndex({name:1}),exports.ReportBuilderLibraries.createIndex({id_user_create:1}),exports.ReportBuilderLibraries.createIndex({"user_groups.id_user_group":1})}else setTimeout((function(){initializeCollection()}),1)}exports.ReportBuilderLibraries=null,initializeCollection();
77
2
  //# sourceMappingURL=report-builder-library.collection.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/collections/report-builder-library.collection.ts"],"names":[],"mappings":";;;AAAA,kCAA2C;AAC3C,2DAA8D;AAG9D,IAAI,MAAM,GAAQ;IACjB,GAAG,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,GAAG,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,SAAS,EAAE;QACV,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;KACd;IACD,SAAS,EAAE;QACV,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;KACd;IACD,IAAI,EAAE;QACL,IAAI,EAAE,MAAM;KACZ;IACD,cAAc,EAAE;QACf,IAAI,EAAE,MAAM;KACZ;IACD,WAAW,EAAE;QACZ,IAAI,EAAE,MAAM;KACZ;IACD,IAAI,EAAE;QACL,IAAI,EAAE,IAAI;KACV;IACD,OAAO,EAAE;QACR,IAAI,EAAE,KAAK;KACX;IACD,WAAW,EAAE;QACZ,IAAI,EAAE,MAAM;KACZ;IACD,qBAAqB,EAAE;QACtB,IAAI,EAAE,MAAM;KACZ;IACD,kBAAkB,EAAE;QACnB,IAAI,EAAE,MAAM;KACZ;IACD,WAAW,EAAE;QACZ,IAAI,EAAE,KAAK;KACX;IACD,eAAe,EAAE;QAChB,IAAI,EAAE,MAAM;KACZ;IACD,6BAA6B,EAAE;QAC9B,IAAI,EAAE,MAAM;KACZ;IACD,0BAA0B,EAAE;QAC3B,IAAI,EAAE,MAAM;KACZ;CACD,CAAC;AAIS,QAAA,sBAAsB,GAA0C,IAAI,CAAC;AAEhF,oBAAoB,EAAE,CAAC;AAEvB,SAAS,oBAAoB;IAC5B,IAAI,uBAAe,IAAI,uBAAe,CAAC,SAAS,EAAE,EAAE;QACnD,IAAM,KAAK,GAAG,IAAI,qBAAK,CAA4B,0BAA0B,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;QACrG,8BAAsB,GAAG,KAAK,CAAC,eAAe,CAAC;QAC/C,8BAAsB,CAAC,WAAW,CAAC,EAAC,IAAI,EAAE,CAAC,EAAC,CAAC,CAAC;QAC9C,8BAAsB,CAAC,WAAW,CAAC,EAAC,cAAc,EAAE,CAAC,EAAC,CAAC,CAAC;QACxD,8BAAsB,CAAC,WAAW,CAAC,EAAC,2BAA2B,EAAE,CAAC,EAAC,CAAC,CAAC;KACrE;SACI;QACJ,UAAU,CAAC;YACV,oBAAoB,EAAE,CAAC;QACxB,CAAC,EAAE,CAAC,CAAC,CAAC;KACN;AACF,CAAC","file":"report-builder-library.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } from '../managers/mongo.manager';\nimport { ReportBuilderLibraryModel } from '../models/report-builder-library.model';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t__v: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tupdatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcreatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tname: {\n\t\ttype: String\n\t},\n\tid_user_create: {\n\t\ttype: String\n\t},\n\tuser_create: {\n\t\ttype: String\n\t},\n\tdate: {\n\t\ttype: Date\n\t},\n\treports: {\n\t\ttype: Array\n\t},\n\t'reports.$': {\n\t\ttype: Object\n\t},\n\t'reports.$.id_report': {\n\t\ttype: String\n\t},\n\t'reports.$.report': {\n\t\ttype: String\n\t},\n\tuser_groups: {\n\t\ttype: Array\n\t},\n\t'user_groups.$': {\n\t\ttype: Object\n\t},\n\t'user_groups.$.id_user_group': {\n\t\ttype: String\n\t},\n\t'user_groups.$.user_group': {\n\t\ttype: String\n\t}\n};\n\n\n\nexport let ReportBuilderLibraries: Collection<ReportBuilderLibraryModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<ReportBuilderLibraryModel>('report-builder-libraries', schema, false, false);\n\t\tReportBuilderLibraries = model.collection_main;\n\t\tReportBuilderLibraries.createIndex({name: 1});\n\t\tReportBuilderLibraries.createIndex({id_user_create: 1});\n\t\tReportBuilderLibraries.createIndex({'user_groups.id_user_group': 1});\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 1);\n\t}\n}"]}
1
+ {"version":3,"sources":["../../src/collections/report-builder-library.collection.ts"],"names":["index_1","require","mongo_manager_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","name","id_user_create","user_create","date","reports","Array","reports.$","Object","reports.$.id_report","reports.$.report","user_groups","user_groups.$","user_groups.$.id_user_group","user_groups.$.user_group","initializeCollection","ResolveIOServer","getMainDB","model","Model","exports","ReportBuilderLibraries","collection_main","createIndex","user_groups.id_user_group","setTimeout"],"mappings":"0GAAA,IAAAA,QAAAC,QAAA,YACAC,gBAAAD,QAAA,6BAGIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,UAAU,GAEXC,IAAK,CACJH,KAAMI,OACNF,UAAU,GAEXG,UAAW,CACVL,KAAMM,KACNJ,UAAU,GAEXK,UAAW,CACVP,KAAMM,KACNJ,UAAU,GAEXM,KAAM,CACLR,KAAMC,QAEPQ,eAAgB,CACfT,KAAMC,QAEPS,YAAa,CACZV,KAAMC,QAEPU,KAAM,CACLX,KAAMM,MAEPM,QAAS,CACRZ,KAAMa,OAEPC,YAAa,CACZd,KAAMe,QAEPC,sBAAuB,CACtBhB,KAAMC,QAEPgB,mBAAoB,CACnBjB,KAAMC,QAEPiB,YAAa,CACZlB,KAAMa,OAEPM,gBAAiB,CAChBnB,KAAMe,QAEPK,8BAA+B,CAC9BpB,KAAMC,QAEPoB,2BAA4B,CAC3BrB,KAAMC,SAUR,SAASqB,uBACR,GAAI3B,QAAA4B,iBAAmB5B,QAAA4B,gBAAgBC,YAAa,CACnD,IAAMC,EAAQ,IAAI5B,gBAAA6B,MAAiC,2BAA4B5B,QAAQ,GAAO,GAC9F6B,QAAAC,uBAAyBH,EAAMI,gBAC/BF,QAAAC,uBAAuBE,YAAY,CAACtB,KAAM,IAC1CmB,QAAAC,uBAAuBE,YAAY,CAACrB,eAAgB,IACpDkB,QAAAC,uBAAuBE,YAAY,CAACC,4BAA6B,SAGjEC,YAAW,WACVV,yBACE,GAfMK,QAAAC,uBAAgE,KAE3EN","file":"report-builder-library.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } from '../managers/mongo.manager';\nimport { ReportBuilderLibraryModel } from '../models/report-builder-library.model';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t__v: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tupdatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcreatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tname: {\n\t\ttype: String\n\t},\n\tid_user_create: {\n\t\ttype: String\n\t},\n\tuser_create: {\n\t\ttype: String\n\t},\n\tdate: {\n\t\ttype: Date\n\t},\n\treports: {\n\t\ttype: Array\n\t},\n\t'reports.$': {\n\t\ttype: Object\n\t},\n\t'reports.$.id_report': {\n\t\ttype: String\n\t},\n\t'reports.$.report': {\n\t\ttype: String\n\t},\n\tuser_groups: {\n\t\ttype: Array\n\t},\n\t'user_groups.$': {\n\t\ttype: Object\n\t},\n\t'user_groups.$.id_user_group': {\n\t\ttype: String\n\t},\n\t'user_groups.$.user_group': {\n\t\ttype: String\n\t}\n};\n\n\n\nexport let ReportBuilderLibraries: Collection<ReportBuilderLibraryModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<ReportBuilderLibraryModel>('report-builder-libraries', schema, false, false);\n\t\tReportBuilderLibraries = model.collection_main;\n\t\tReportBuilderLibraries.createIndex({name: 1});\n\t\tReportBuilderLibraries.createIndex({id_user_create: 1});\n\t\tReportBuilderLibraries.createIndex({'user_groups.id_user_group': 1});\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 1);\n\t}\n}"]}
@@ -1,139 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ReportBuilderReportVersions = exports.ReportBuilderReports = void 0;
4
- var index_1 = require("../index");
5
- var mongo_manager_1 = require("../managers/mongo.manager");
6
- var schema = {
7
- _id: {
8
- type: String,
9
- optional: true
10
- },
11
- __v: {
12
- type: Number,
13
- optional: true
14
- },
15
- updatedAt: {
16
- type: Date,
17
- optional: true
18
- },
19
- createdAt: {
20
- type: Date,
21
- optional: true
22
- },
23
- collection_root: {
24
- type: String
25
- },
26
- report_name: {
27
- type: String
28
- },
29
- fields_sort: {
30
- type: Array
31
- },
32
- 'fields_sort.$': {
33
- type: Object
34
- },
35
- 'fields_sort.$.field': {
36
- type: String
37
- },
38
- 'fields_sort.$.order': {
39
- type: String
40
- },
41
- fields_filter: {
42
- type: Array
43
- },
44
- 'fields_filter.$': {
45
- type: Object,
46
- blackbox: true
47
- },
48
- fields_custom: {
49
- type: Array
50
- },
51
- 'fields_custom.$': {
52
- type: Object,
53
- blackbox: true
54
- },
55
- fields_selected: {
56
- type: Array
57
- },
58
- 'fields_selected.$': {
59
- type: Object,
60
- blackbox: true
61
- },
62
- fields_total: {
63
- type: Array
64
- },
65
- 'fields_total.$': {
66
- type: Object,
67
- blackbox: true
68
- },
69
- fields_link: {
70
- type: Array
71
- },
72
- 'fields_link.$': {
73
- type: Object,
74
- blackbox: true
75
- },
76
- id_user: {
77
- type: String
78
- },
79
- user: {
80
- type: String
81
- },
82
- date_created: {
83
- type: Date
84
- },
85
- shared_users: {
86
- type: Array
87
- },
88
- 'shared_users.$': {
89
- type: String
90
- },
91
- type: {
92
- type: String
93
- },
94
- groups_row: {
95
- type: Array
96
- },
97
- 'groups_row.$': {
98
- type: Object,
99
- blackbox: true
100
- },
101
- groups_column: {
102
- type: Array
103
- },
104
- 'groups_column.$': {
105
- type: Object,
106
- blackbox: true
107
- },
108
- group_type: {
109
- type: String
110
- },
111
- id_date_field: {
112
- type: String,
113
- optional: true
114
- },
115
- date_interval: {
116
- type: String,
117
- optional: true
118
- }
119
- };
120
- exports.ReportBuilderReports = null;
121
- exports.ReportBuilderReportVersions = null;
122
- initializeCollection();
123
- function initializeCollection() {
124
- if (index_1.ResolveIOServer && index_1.ResolveIOServer.getMainDB()) {
125
- var model = new mongo_manager_1.Model('report-builder-reports', schema, true, false);
126
- exports.ReportBuilderReports = model.collection_main;
127
- exports.ReportBuilderReports.createIndex({ id_user: 1 });
128
- exports.ReportBuilderReports.createIndex({ shared_users: 1 });
129
- exports.ReportBuilderReports.createIndex({ report_name: 1, collection_root: 1 });
130
- exports.ReportBuilderReportVersions = model.collection_version;
131
- }
132
- else {
133
- setTimeout(function () {
134
- initializeCollection();
135
- }, 1);
136
- }
137
- }
138
-
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ReportBuilderReportVersions=exports.ReportBuilderReports=void 0;var index_1=require("../index"),mongo_manager_1=require("../managers/mongo.manager"),schema={_id:{type:String,optional:!0},__v:{type:Number,optional:!0},updatedAt:{type:Date,optional:!0},createdAt:{type:Date,optional:!0},collection_root:{type:String},report_name:{type:String},fields_sort:{type:Array},"fields_sort.$":{type:Object},"fields_sort.$.field":{type:String},"fields_sort.$.order":{type:String},fields_filter:{type:Array},"fields_filter.$":{type:Object,blackbox:!0},fields_custom:{type:Array},"fields_custom.$":{type:Object,blackbox:!0},fields_selected:{type:Array},"fields_selected.$":{type:Object,blackbox:!0},fields_total:{type:Array},"fields_total.$":{type:Object,blackbox:!0},fields_link:{type:Array},"fields_link.$":{type:Object,blackbox:!0},id_user:{type:String},user:{type:String},date_created:{type:Date},shared_users:{type:Array},"shared_users.$":{type:String},type:{type:String},groups_row:{type:Array},"groups_row.$":{type:Object,blackbox:!0},groups_column:{type:Array},"groups_column.$":{type:Object,blackbox:!0},group_type:{type:String},id_date_field:{type:String,optional:!0},date_interval:{type:String,optional:!0}};function initializeCollection(){if(index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()){var e=new mongo_manager_1.Model("report-builder-reports",schema,!0,!1);exports.ReportBuilderReports=e.collection_main,exports.ReportBuilderReports.createIndex({id_user:1}),exports.ReportBuilderReports.createIndex({shared_users:1}),exports.ReportBuilderReports.createIndex({report_name:1,collection_root:1}),exports.ReportBuilderReportVersions=e.collection_version}else setTimeout((function(){initializeCollection()}),1)}exports.ReportBuilderReports=null,exports.ReportBuilderReportVersions=null,initializeCollection();
139
2
  //# sourceMappingURL=report-builder-report.collection.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/collections/report-builder-report.collection.ts"],"names":[],"mappings":";;;AAAA,kCAA2C;AAC3C,2DAA8D;AAG9D,IAAI,MAAM,GAAQ;IACjB,GAAG,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,GAAG,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,SAAS,EAAE;QACV,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;KACd;IACD,SAAS,EAAE;QACV,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;KACd;IACD,eAAe,EAAE;QAChB,IAAI,EAAE,MAAM;KACZ;IACD,WAAW,EAAE;QACZ,IAAI,EAAE,MAAM;KACZ;IACD,WAAW,EAAE;QACZ,IAAI,EAAE,KAAK;KACX;IACD,eAAe,EAAE;QAChB,IAAI,EAAE,MAAM;KACZ;IACD,qBAAqB,EAAE;QACtB,IAAI,EAAE,MAAM;KACZ;IACD,qBAAqB,EAAE;QACtB,IAAI,EAAE,MAAM;KACZ;IACD,aAAa,EAAE;QACd,IAAI,EAAE,KAAK;KACX;IACD,iBAAiB,EAAE;QAClB,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,aAAa,EAAE;QACd,IAAI,EAAE,KAAK;KACX;IACD,iBAAiB,EAAE;QAClB,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,eAAe,EAAE;QAChB,IAAI,EAAE,KAAK;KACX;IACD,mBAAmB,EAAE;QACpB,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,YAAY,EAAE;QACb,IAAI,EAAE,KAAK;KACX;IACD,gBAAgB,EAAE;QACjB,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,WAAW,EAAE;QACZ,IAAI,EAAE,KAAK;KACX;IACD,eAAe,EAAE;QAChB,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,OAAO,EAAE;QACR,IAAI,EAAE,MAAM;KACZ;IACD,IAAI,EAAE;QACL,IAAI,EAAE,MAAM;KACZ;IACD,YAAY,EAAE;QACb,IAAI,EAAE,IAAI;KACV;IACD,YAAY,EAAE;QACb,IAAI,EAAE,KAAK;KACX;IACD,gBAAgB,EAAE;QACjB,IAAI,EAAE,MAAM;KACZ;IACD,IAAI,EAAE;QACL,IAAI,EAAE,MAAM;KACZ;IACD,UAAU,EAAE;QACX,IAAI,EAAE,KAAK;KACX;IACD,cAAc,EAAE;QACf,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,aAAa,EAAE;QACd,IAAI,EAAE,KAAK;KACX;IACD,iBAAiB,EAAE;QAClB,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,UAAU,EAAE;QACX,IAAI,EAAE,MAAM;KACZ;IACD,aAAa,EAAE;QACd,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,aAAa,EAAE;QACd,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;CACD,CAAC;AAES,QAAA,oBAAoB,GAAyC,IAAI,CAAC;AAClE,QAAA,2BAA2B,GAAyC,IAAI,CAAC;AAEpF,oBAAoB,EAAE,CAAC;AAEvB,SAAS,oBAAoB;IAC5B,IAAI,uBAAe,IAAI,uBAAe,CAAC,SAAS,EAAE,EAAE;QACnD,IAAM,KAAK,GAAG,IAAI,qBAAK,CAA2B,wBAAwB,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;QACjG,4BAAoB,GAAG,KAAK,CAAC,eAAe,CAAC;QAC7C,4BAAoB,CAAC,WAAW,CAAC,EAAC,OAAO,EAAE,CAAC,EAAC,CAAC,CAAC;QAC/C,4BAAoB,CAAC,WAAW,CAAC,EAAC,YAAY,EAAE,CAAC,EAAC,CAAC,CAAC;QACpD,4BAAoB,CAAC,WAAW,CAAC,EAAC,WAAW,EAAE,CAAC,EAAE,eAAe,EAAE,CAAC,EAAC,CAAC,CAAC;QACvE,mCAA2B,GAAG,KAAK,CAAC,kBAAkB,CAAC;KACvD;SACI;QACJ,UAAU,CAAC;YACV,oBAAoB,EAAE,CAAC;QACxB,CAAC,EAAE,CAAC,CAAC,CAAC;KACN;AACF,CAAC","file":"report-builder-report.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } from '../managers/mongo.manager';\nimport { ReportBuilderReportModel } from '../models/report-builder-report.model';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t__v: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tupdatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcreatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcollection_root: {\n\t\ttype: String\n\t},\n\treport_name: {\n\t\ttype: String\n\t},\n\tfields_sort: {\n\t\ttype: Array\n\t},\n\t'fields_sort.$': {\n\t\ttype: Object\n\t},\n\t'fields_sort.$.field': {\n\t\ttype: String\n\t},\n\t'fields_sort.$.order': {\n\t\ttype: String\n\t},\n\tfields_filter: {\n\t\ttype: Array\n\t},\n\t'fields_filter.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tfields_custom: {\n\t\ttype: Array\n\t},\n\t'fields_custom.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tfields_selected: {\n\t\ttype: Array\n\t},\n\t'fields_selected.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tfields_total: {\n\t\ttype: Array\n\t},\n\t'fields_total.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tfields_link: {\n\t\ttype: Array\n\t},\n\t'fields_link.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tid_user: {\n\t\ttype: String\n\t},\n\tuser: {\n\t\ttype: String\n\t},\n\tdate_created: {\n\t\ttype: Date\n\t},\n\tshared_users: {\n\t\ttype: Array\n\t},\n\t'shared_users.$': {\n\t\ttype: String\n\t},\n\ttype: {\n\t\ttype: String\n\t},\n\tgroups_row: {\n\t\ttype: Array\n\t},\n\t'groups_row.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tgroups_column: {\n\t\ttype: Array\n\t},\n\t'groups_column.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tgroup_type: {\n\t\ttype: String\n\t},\n\tid_date_field: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\tdate_interval: {\n\t\ttype: String,\n\t\toptional: true\n\t}\n};\n\nexport let ReportBuilderReports: Collection<ReportBuilderReportModel> = null;\nexport let ReportBuilderReportVersions: Collection<ReportBuilderReportModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<ReportBuilderReportModel>('report-builder-reports', schema, true, false);\n\t\tReportBuilderReports = model.collection_main;\n\t\tReportBuilderReports.createIndex({id_user: 1});\n\t\tReportBuilderReports.createIndex({shared_users: 1});\n\t\tReportBuilderReports.createIndex({report_name: 1, collection_root: 1});\n\t\tReportBuilderReportVersions = model.collection_version;\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 1);\n\t}\n}"]}
1
+ {"version":3,"sources":["../../src/collections/report-builder-report.collection.ts"],"names":["index_1","require","mongo_manager_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","collection_root","report_name","fields_sort","Array","fields_sort.$","Object","fields_sort.$.field","fields_sort.$.order","fields_filter","fields_filter.$","blackbox","fields_custom","fields_custom.$","fields_selected","fields_selected.$","fields_total","fields_total.$","fields_link","fields_link.$","id_user","user","date_created","shared_users","shared_users.$","groups_row","groups_row.$","groups_column","groups_column.$","group_type","id_date_field","date_interval","initializeCollection","ResolveIOServer","getMainDB","model","Model","exports","ReportBuilderReports","collection_main","createIndex","ReportBuilderReportVersions","collection_version","setTimeout"],"mappings":"4IAAA,IAAAA,QAAAC,QAAA,YACAC,gBAAAD,QAAA,6BAGIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,UAAU,GAEXC,IAAK,CACJH,KAAMI,OACNF,UAAU,GAEXG,UAAW,CACVL,KAAMM,KACNJ,UAAU,GAEXK,UAAW,CACVP,KAAMM,KACNJ,UAAU,GAEXM,gBAAiB,CAChBR,KAAMC,QAEPQ,YAAa,CACZT,KAAMC,QAEPS,YAAa,CACZV,KAAMW,OAEPC,gBAAiB,CAChBZ,KAAMa,QAEPC,sBAAuB,CACtBd,KAAMC,QAEPc,sBAAuB,CACtBf,KAAMC,QAEPe,cAAe,CACdhB,KAAMW,OAEPM,kBAAmB,CAClBjB,KAAMa,OACNK,UAAU,GAEXC,cAAe,CACdnB,KAAMW,OAEPS,kBAAmB,CAClBpB,KAAMa,OACNK,UAAU,GAEXG,gBAAiB,CAChBrB,KAAMW,OAEPW,oBAAqB,CACpBtB,KAAMa,OACNK,UAAU,GAEXK,aAAc,CACbvB,KAAMW,OAEPa,iBAAkB,CACjBxB,KAAMa,OACNK,UAAU,GAEXO,YAAa,CACZzB,KAAMW,OAEPe,gBAAiB,CAChB1B,KAAMa,OACNK,UAAU,GAEXS,QAAS,CACR3B,KAAMC,QAEP2B,KAAM,CACL5B,KAAMC,QAEP4B,aAAc,CACb7B,KAAMM,MAEPwB,aAAc,CACb9B,KAAMW,OAEPoB,iBAAkB,CACjB/B,KAAMC,QAEPD,KAAM,CACLA,KAAMC,QAEP+B,WAAY,CACXhC,KAAMW,OAEPsB,eAAgB,CACfjC,KAAMa,OACNK,UAAU,GAEXgB,cAAe,CACdlC,KAAMW,OAEPwB,kBAAmB,CAClBnC,KAAMa,OACNK,UAAU,GAEXkB,WAAY,CACXpC,KAAMC,QAEPoC,cAAe,CACdrC,KAAMC,OACNC,UAAU,GAEXoC,cAAe,CACdtC,KAAMC,OACNC,UAAU,IASZ,SAASqC,uBACR,GAAI5C,QAAA6C,iBAAmB7C,QAAA6C,gBAAgBC,YAAa,CACnD,IAAMC,EAAQ,IAAI7C,gBAAA8C,MAAgC,yBAA0B7C,QAAQ,GAAM,GAC1F8C,QAAAC,qBAAuBH,EAAMI,gBAC7BF,QAAAC,qBAAqBE,YAAY,CAACpB,QAAS,IAC3CiB,QAAAC,qBAAqBE,YAAY,CAACjB,aAAc,IAChDc,QAAAC,qBAAqBE,YAAY,CAACtC,YAAa,EAAGD,gBAAiB,IACnEoC,QAAAI,4BAA8BN,EAAMO,wBAGpCC,YAAW,WACVX,yBACE,GAjBMK,QAAAC,qBAA6D,KAC7DD,QAAAI,4BAAoE,KAE/ET","file":"report-builder-report.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } from '../managers/mongo.manager';\nimport { ReportBuilderReportModel } from '../models/report-builder-report.model';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t__v: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tupdatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcreatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcollection_root: {\n\t\ttype: String\n\t},\n\treport_name: {\n\t\ttype: String\n\t},\n\tfields_sort: {\n\t\ttype: Array\n\t},\n\t'fields_sort.$': {\n\t\ttype: Object\n\t},\n\t'fields_sort.$.field': {\n\t\ttype: String\n\t},\n\t'fields_sort.$.order': {\n\t\ttype: String\n\t},\n\tfields_filter: {\n\t\ttype: Array\n\t},\n\t'fields_filter.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tfields_custom: {\n\t\ttype: Array\n\t},\n\t'fields_custom.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tfields_selected: {\n\t\ttype: Array\n\t},\n\t'fields_selected.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tfields_total: {\n\t\ttype: Array\n\t},\n\t'fields_total.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tfields_link: {\n\t\ttype: Array\n\t},\n\t'fields_link.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tid_user: {\n\t\ttype: String\n\t},\n\tuser: {\n\t\ttype: String\n\t},\n\tdate_created: {\n\t\ttype: Date\n\t},\n\tshared_users: {\n\t\ttype: Array\n\t},\n\t'shared_users.$': {\n\t\ttype: String\n\t},\n\ttype: {\n\t\ttype: String\n\t},\n\tgroups_row: {\n\t\ttype: Array\n\t},\n\t'groups_row.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tgroups_column: {\n\t\ttype: Array\n\t},\n\t'groups_column.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tgroup_type: {\n\t\ttype: String\n\t},\n\tid_date_field: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\tdate_interval: {\n\t\ttype: String,\n\t\toptional: true\n\t}\n};\n\nexport let ReportBuilderReports: Collection<ReportBuilderReportModel> = null;\nexport let ReportBuilderReportVersions: Collection<ReportBuilderReportModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<ReportBuilderReportModel>('report-builder-reports', schema, true, false);\n\t\tReportBuilderReports = model.collection_main;\n\t\tReportBuilderReports.createIndex({id_user: 1});\n\t\tReportBuilderReports.createIndex({shared_users: 1});\n\t\tReportBuilderReports.createIndex({report_name: 1, collection_root: 1});\n\t\tReportBuilderReportVersions = model.collection_version;\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 1);\n\t}\n}"]}
@@ -1,80 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UserGroupVersions = exports.UserGroups = void 0;
4
- var index_1 = require("../index");
5
- var mongo_manager_1 = require("../managers/mongo.manager");
6
- var schema = {
7
- _id: {
8
- type: String,
9
- optional: true
10
- },
11
- __v: {
12
- type: Number,
13
- optional: true
14
- },
15
- updatedAt: {
16
- type: Date,
17
- optional: true
18
- },
19
- createdAt: {
20
- type: Date,
21
- optional: true
22
- },
23
- name: {
24
- type: String
25
- },
26
- permissions: {
27
- type: Array
28
- },
29
- 'permissions.$': {
30
- type: Object
31
- },
32
- 'permissions.$.name': {
33
- type: String
34
- },
35
- 'permissions.$.selected': {
36
- type: Boolean
37
- },
38
- 'permissions.$.views': {
39
- type: Array
40
- },
41
- 'permissions.$.views.$': {
42
- type: Object
43
- },
44
- 'permissions.$.views.$.link': {
45
- type: String
46
- },
47
- 'permissions.$.views.$.selected': {
48
- type: Boolean
49
- },
50
- notifications: {
51
- type: Array
52
- },
53
- 'notifications.$': {
54
- type: Object
55
- },
56
- 'notifications.$.name': {
57
- type: String
58
- },
59
- 'notifications.$.selected': {
60
- type: Boolean
61
- }
62
- };
63
- exports.UserGroups = null;
64
- exports.UserGroupVersions = null;
65
- initializeCollection();
66
- function initializeCollection() {
67
- if (index_1.ResolveIOServer && index_1.ResolveIOServer.getMainDB()) {
68
- var model = new mongo_manager_1.Model('user-groups', schema, true, true, [], true, false);
69
- exports.UserGroups = model.collection_main;
70
- exports.UserGroups.createIndex({ name: 1 });
71
- exports.UserGroupVersions = model.collection_version;
72
- }
73
- else {
74
- setTimeout(function () {
75
- initializeCollection();
76
- }, 1);
77
- }
78
- }
79
-
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.UserGroupVersions=exports.UserGroups=void 0;var index_1=require("../index"),mongo_manager_1=require("../managers/mongo.manager"),schema={_id:{type:String,optional:!0},__v:{type:Number,optional:!0},updatedAt:{type:Date,optional:!0},createdAt:{type:Date,optional:!0},name:{type:String},permissions:{type:Array},"permissions.$":{type:Object},"permissions.$.name":{type:String},"permissions.$.selected":{type:Boolean},"permissions.$.views":{type:Array},"permissions.$.views.$":{type:Object},"permissions.$.views.$.link":{type:String},"permissions.$.views.$.selected":{type:Boolean},notifications:{type:Array},"notifications.$":{type:Object},"notifications.$.name":{type:String},"notifications.$.selected":{type:Boolean}};function initializeCollection(){if(index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()){var e=new mongo_manager_1.Model("user-groups",schema,!0,!0,[],!0,!1);exports.UserGroups=e.collection_main,exports.UserGroups.createIndex({name:1}),exports.UserGroupVersions=e.collection_version}else setTimeout((function(){initializeCollection()}),1)}exports.UserGroups=null,exports.UserGroupVersions=null,initializeCollection();
80
2
  //# sourceMappingURL=user-group.collection.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/collections/user-group.collection.ts"],"names":[],"mappings":";;;AAAA,kCAA2C;AAC3C,2DAA8D;AAG9D,IAAI,MAAM,GAAQ;IACjB,GAAG,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,GAAG,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,SAAS,EAAE;QACV,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;KACd;IACD,SAAS,EAAE;QACV,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;KACd;IACD,IAAI,EAAE;QACL,IAAI,EAAE,MAAM;KACZ;IACD,WAAW,EAAE;QACZ,IAAI,EAAE,KAAK;KACX;IACD,eAAe,EAAE;QAChB,IAAI,EAAG,MAAM;KACb;IACD,oBAAoB,EAAE;QACrB,IAAI,EAAE,MAAM;KACZ;IACD,wBAAwB,EAAE;QACzB,IAAI,EAAE,OAAO;KACb;IACD,qBAAqB,EAAE;QACtB,IAAI,EAAE,KAAK;KACX;IACD,uBAAuB,EAAE;QACxB,IAAI,EAAE,MAAM;KACZ;IACD,4BAA4B,EAAE;QAC7B,IAAI,EAAE,MAAM;KACZ;IACD,gCAAgC,EAAE;QACjC,IAAI,EAAE,OAAO;KACb;IACD,aAAa,EAAE;QACd,IAAI,EAAE,KAAK;KACX;IACD,iBAAiB,EAAE;QAClB,IAAI,EAAG,MAAM;KACb;IACD,sBAAsB,EAAE;QACvB,IAAI,EAAE,MAAM;KACZ;IACD,0BAA0B,EAAE;QAC3B,IAAI,EAAE,OAAO;KACb;CACD,CAAC;AAES,QAAA,UAAU,GAA+B,IAAI,CAAC;AAC9C,QAAA,iBAAiB,GAA+B,IAAI,CAAC;AAEhE,oBAAoB,EAAE,CAAC;AAEvB,SAAS,oBAAoB;IAC5B,IAAI,uBAAe,IAAI,uBAAe,CAAC,SAAS,EAAE,EAAE;QACnD,IAAM,KAAK,GAAG,IAAI,qBAAK,CAAiB,aAAa,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;QAC5F,kBAAU,GAAG,KAAK,CAAC,eAAe,CAAC;QACnC,kBAAU,CAAC,WAAW,CAAC,EAAC,IAAI,EAAE,CAAC,EAAC,CAAC,CAAC;QAClC,yBAAiB,GAAG,KAAK,CAAC,kBAAkB,CAAC;KAC7C;SACI;QACJ,UAAU,CAAC;YACV,oBAAoB,EAAE,CAAC;QACxB,CAAC,EAAE,CAAC,CAAC,CAAC;KACN;AACF,CAAC","file":"user-group.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } from '../managers/mongo.manager';\nimport { UserGroupModel } from '../models/user-group.model';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t__v: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tupdatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcreatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tname: {\n\t\ttype: String\n\t},\n\tpermissions: {\n\t\ttype: Array\n\t},\n\t'permissions.$': {\n\t\ttype: Object\n\t},\n\t'permissions.$.name': {\n\t\ttype: String\n\t},\n\t'permissions.$.selected': {\n\t\ttype: Boolean\n\t},\n\t'permissions.$.views': {\n\t\ttype: Array\n\t},\n\t'permissions.$.views.$': {\n\t\ttype: Object\n\t},\n\t'permissions.$.views.$.link': {\n\t\ttype: String\n\t},\n\t'permissions.$.views.$.selected': {\n\t\ttype: Boolean\n\t},\n\tnotifications: {\n\t\ttype: Array\n\t},\n\t'notifications.$': {\n\t\ttype: Object\n\t},\n\t'notifications.$.name': {\n\t\ttype: String\n\t},\n\t'notifications.$.selected': {\n\t\ttype: Boolean\n\t}\n};\n\nexport let UserGroups: Collection<UserGroupModel> = null;\nexport let UserGroupVersions: Collection<UserGroupModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<UserGroupModel>('user-groups', schema, true, true, [], true, false);\n\t\tUserGroups = model.collection_main;\n\t\tUserGroups.createIndex({name: 1});\n\t\tUserGroupVersions = model.collection_version;\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 1);\n\t}\n}"]}
1
+ {"version":3,"sources":["../../src/collections/user-group.collection.ts"],"names":["index_1","require","mongo_manager_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","name","permissions","Array","permissions.$","Object","permissions.$.name","permissions.$.selected","Boolean","permissions.$.views","permissions.$.views.$","permissions.$.views.$.link","permissions.$.views.$.selected","notifications","notifications.$","notifications.$.name","notifications.$.selected","initializeCollection","ResolveIOServer","getMainDB","model","Model","exports","UserGroups","collection_main","createIndex","UserGroupVersions","collection_version","setTimeout"],"mappings":"wHAAA,IAAAA,QAAAC,QAAA,YACAC,gBAAAD,QAAA,6BAGIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,UAAU,GAEXC,IAAK,CACJH,KAAMI,OACNF,UAAU,GAEXG,UAAW,CACVL,KAAMM,KACNJ,UAAU,GAEXK,UAAW,CACVP,KAAMM,KACNJ,UAAU,GAEXM,KAAM,CACLR,KAAMC,QAEPQ,YAAa,CACZT,KAAMU,OAEPC,gBAAiB,CAChBX,KAAOY,QAERC,qBAAsB,CACrBb,KAAMC,QAEPa,yBAA0B,CACzBd,KAAMe,SAEPC,sBAAuB,CACtBhB,KAAMU,OAEPO,wBAAyB,CACxBjB,KAAMY,QAEPM,6BAA8B,CAC7BlB,KAAMC,QAEPkB,iCAAkC,CACjCnB,KAAMe,SAEPK,cAAe,CACdpB,KAAMU,OAEPW,kBAAmB,CAClBrB,KAAOY,QAERU,uBAAwB,CACvBtB,KAAMC,QAEPsB,2BAA4B,CAC3BvB,KAAMe,UASR,SAASS,uBACR,GAAI7B,QAAA8B,iBAAmB9B,QAAA8B,gBAAgBC,YAAa,CACnD,IAAMC,EAAQ,IAAI9B,gBAAA+B,MAAsB,cAAe9B,QAAQ,GAAM,EAAM,IAAI,GAAM,GACrF+B,QAAAC,WAAaH,EAAMI,gBACnBF,QAAAC,WAAWE,YAAY,CAACxB,KAAM,IAC9BqB,QAAAI,kBAAoBN,EAAMO,wBAG1BC,YAAW,WACVX,yBACE,GAfMK,QAAAC,WAAyC,KACzCD,QAAAI,kBAAgD,KAE3DT","file":"user-group.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } from '../managers/mongo.manager';\nimport { UserGroupModel } from '../models/user-group.model';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t__v: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tupdatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcreatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tname: {\n\t\ttype: String\n\t},\n\tpermissions: {\n\t\ttype: Array\n\t},\n\t'permissions.$': {\n\t\ttype: Object\n\t},\n\t'permissions.$.name': {\n\t\ttype: String\n\t},\n\t'permissions.$.selected': {\n\t\ttype: Boolean\n\t},\n\t'permissions.$.views': {\n\t\ttype: Array\n\t},\n\t'permissions.$.views.$': {\n\t\ttype: Object\n\t},\n\t'permissions.$.views.$.link': {\n\t\ttype: String\n\t},\n\t'permissions.$.views.$.selected': {\n\t\ttype: Boolean\n\t},\n\tnotifications: {\n\t\ttype: Array\n\t},\n\t'notifications.$': {\n\t\ttype: Object\n\t},\n\t'notifications.$.name': {\n\t\ttype: String\n\t},\n\t'notifications.$.selected': {\n\t\ttype: Boolean\n\t}\n};\n\nexport let UserGroups: Collection<UserGroupModel> = null;\nexport let UserGroupVersions: Collection<UserGroupModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<UserGroupModel>('user-groups', schema, true, true, [], true, false);\n\t\tUserGroups = model.collection_main;\n\t\tUserGroups.createIndex({name: 1});\n\t\tUserGroupVersions = model.collection_version;\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 1);\n\t}\n}"]}
@@ -1,47 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UserGuides = void 0;
4
- var index_1 = require("../index");
5
- var mongo_manager_1 = require("../managers/mongo.manager");
6
- var schema = {
7
- _id: {
8
- type: String,
9
- optional: true
10
- },
11
- __v: {
12
- type: Number,
13
- optional: true
14
- },
15
- updatedAt: {
16
- type: Date,
17
- optional: true
18
- },
19
- createdAt: {
20
- type: Date,
21
- optional: true
22
- },
23
- link: {
24
- type: String
25
- },
26
- label: {
27
- type: String
28
- },
29
- message: {
30
- type: String
31
- },
32
- };
33
- exports.UserGuides = null;
34
- initializeCollection();
35
- function initializeCollection() {
36
- if (index_1.ResolveIOServer && index_1.ResolveIOServer.getMainDB()) {
37
- var model = new mongo_manager_1.Model('user-guides', schema, false, false, [], true, false);
38
- exports.UserGuides = model.collection_main;
39
- }
40
- else {
41
- setTimeout(function () {
42
- initializeCollection();
43
- }, 1);
44
- }
45
- }
46
-
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.UserGuides=void 0;var index_1=require("../index"),mongo_manager_1=require("../managers/mongo.manager"),schema={_id:{type:String,optional:!0},__v:{type:Number,optional:!0},updatedAt:{type:Date,optional:!0},createdAt:{type:Date,optional:!0},link:{type:String},label:{type:String},message:{type:String}};function initializeCollection(){if(index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()){var e=new mongo_manager_1.Model("user-guides",schema,!1,!1,[],!0,!1);exports.UserGuides=e.collection_main}else setTimeout((function(){initializeCollection()}),1)}exports.UserGuides=null,initializeCollection();
47
2
  //# sourceMappingURL=user-guide.collection.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/collections/user-guide.collection.ts"],"names":[],"mappings":";;;AAAA,kCAA2C;AAC3C,2DAA8D;AAG9D,IAAI,MAAM,GAAQ;IACjB,GAAG,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,GAAG,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,SAAS,EAAE;QACV,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;KACd;IACD,SAAS,EAAE;QACV,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;KACd;IACD,IAAI,EAAE;QACL,IAAI,EAAE,MAAM;KACZ;IACD,KAAK,EAAE;QACN,IAAI,EAAE,MAAM;KACZ;IACD,OAAO,EAAE;QACR,IAAI,EAAE,MAAM;KACZ;CACD,CAAC;AAES,QAAA,UAAU,GAA+B,IAAI,CAAC;AAEzD,oBAAoB,EAAE,CAAC;AAEvB,SAAS,oBAAoB;IAC5B,IAAI,uBAAe,IAAI,uBAAe,CAAC,SAAS,EAAE,EAAE;QACnD,IAAM,KAAK,GAAG,IAAI,qBAAK,CAAiB,aAAa,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;QAC9F,kBAAU,GAAG,KAAK,CAAC,eAAe,CAAC;KACnC;SACI;QACJ,UAAU,CAAC;YACV,oBAAoB,EAAE,CAAC;QACxB,CAAC,EAAE,CAAC,CAAC,CAAC;KACN;AACF,CAAC","file":"user-guide.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } from '../managers/mongo.manager';\nimport { UserGuideModel } from '../models/user-guide.model';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t__v: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tupdatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcreatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tlink: {\n\t\ttype: String\n\t},\n\tlabel: {\n\t\ttype: String\n\t},\n\tmessage: {\n\t\ttype: String\n\t},\n};\n\nexport let UserGuides: Collection<UserGuideModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<UserGuideModel>('user-guides', schema, false, false, [], true, false);\n\t\tUserGuides = model.collection_main;\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 1);\n\t}\n}"]}
1
+ {"version":3,"sources":["../../src/collections/user-guide.collection.ts"],"names":["index_1","require","mongo_manager_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","link","label","message","initializeCollection","ResolveIOServer","getMainDB","model","Model","exports","UserGuides","collection_main","setTimeout"],"mappings":"8FAAA,IAAAA,QAAAC,QAAA,YACAC,gBAAAD,QAAA,6BAGIE,OAAc,CACjBC,IAAK,CACJC,KAAMC,OACNC,UAAU,GAEXC,IAAK,CACJH,KAAMI,OACNF,UAAU,GAEXG,UAAW,CACVL,KAAMM,KACNJ,UAAU,GAEXK,UAAW,CACVP,KAAMM,KACNJ,UAAU,GAEXM,KAAM,CACLR,KAAMC,QAEPQ,MAAO,CACNT,KAAMC,QAEPS,QAAS,CACRV,KAAMC,SAQR,SAASU,uBACR,GAAIhB,QAAAiB,iBAAmBjB,QAAAiB,gBAAgBC,YAAa,CACnD,IAAMC,EAAQ,IAAIjB,gBAAAkB,MAAsB,cAAejB,QAAQ,GAAO,EAAO,IAAI,GAAM,GACvFkB,QAAAC,WAAaH,EAAMI,qBAGnBC,YAAW,WACVR,yBACE,GAZMK,QAAAC,WAAyC,KAEpDN","file":"user-guide.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } from '../managers/mongo.manager';\nimport { UserGuideModel } from '../models/user-guide.model';\n\nlet schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t__v: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tupdatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcreatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tlink: {\n\t\ttype: String\n\t},\n\tlabel: {\n\t\ttype: String\n\t},\n\tmessage: {\n\t\ttype: String\n\t},\n};\n\nexport let UserGuides: Collection<UserGuideModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<UserGuideModel>('user-guides', schema, false, false, [], true, false);\n\t\tUserGuides = model.collection_main;\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 1);\n\t}\n}"]}