@resolveio/server-lib 9.2.19 → 9.2.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (221) hide show
  1. package/client-server-app.js +55 -1
  2. package/client-server-app.js.map +1 -1
  3. package/collections/app-status.collection.js +40 -1
  4. package/collections/app-status.collection.js.map +1 -1
  5. package/collections/app-version.collection.js +40 -1
  6. package/collections/app-version.collection.js.map +1 -1
  7. package/collections/counter.collection.js +43 -1
  8. package/collections/counter.collection.js.map +1 -1
  9. package/collections/cron-job-history.collection.js +71 -1
  10. package/collections/cron-job-history.collection.js.map +1 -1
  11. package/collections/cron-job.collection.js +74 -1
  12. package/collections/cron-job.collection.js.map +1 -1
  13. package/collections/email-history.collection.js +55 -1
  14. package/collections/email-history.collection.js.map +1 -1
  15. package/collections/email-verified.collection.js +50 -1
  16. package/collections/email-verified.collection.js.map +1 -1
  17. package/collections/file.collection.js +62 -1
  18. package/collections/file.collection.js.map +1 -1
  19. package/collections/flag.collection.js +44 -1
  20. package/collections/flag.collection.js.map +1 -1
  21. package/collections/log-method-latency.collection.js +53 -1
  22. package/collections/log-method-latency.collection.js.map +1 -1
  23. package/collections/log-subscription.collection.js +57 -1
  24. package/collections/log-subscription.collection.js.map +1 -1
  25. package/collections/log.collection.js +72 -1
  26. package/collections/log.collection.js.map +1 -1
  27. package/collections/logged-in-users.collection.js +58 -1
  28. package/collections/logged-in-users.collection.js.map +1 -1
  29. package/collections/method-call.collection.js +51 -1
  30. package/collections/method-call.collection.js.map +1 -1
  31. package/collections/method-response.collection.js +55 -1
  32. package/collections/method-response.collection.js.map +1 -1
  33. package/collections/monitor-cpu.collection.js +57 -1
  34. package/collections/monitor-cpu.collection.js.map +1 -1
  35. package/collections/monitor-https-inbound.collection.js +66 -1
  36. package/collections/monitor-https-inbound.collection.js.map +1 -1
  37. package/collections/monitor-https-outbound.collection.js +74 -1
  38. package/collections/monitor-https-outbound.collection.js.map +1 -1
  39. package/collections/monitor-memory.collection.js +68 -1
  40. package/collections/monitor-memory.collection.js.map +1 -1
  41. package/collections/monitor-mongo.collection.js +62 -1
  42. package/collections/monitor-mongo.collection.js.map +1 -1
  43. package/collections/notification.collection.js +40 -1
  44. package/collections/notification.collection.js.map +1 -1
  45. package/collections/report-builder-dashboard-builder.collection.js +93 -1
  46. package/collections/report-builder-dashboard-builder.collection.js.map +1 -1
  47. package/collections/report-builder-library.collection.js +76 -1
  48. package/collections/report-builder-library.collection.js.map +1 -1
  49. package/collections/report-builder-report.collection.js +138 -1
  50. package/collections/report-builder-report.collection.js.map +1 -1
  51. package/collections/user-group.collection.js +79 -1
  52. package/collections/user-group.collection.js.map +1 -1
  53. package/collections/user-guide.collection.js +46 -1
  54. package/collections/user-guide.collection.js.map +1 -1
  55. package/collections/user.collection.js +248 -1
  56. package/collections/user.collection.js.map +1 -1
  57. package/cron/cron.js +161 -1
  58. package/cron/cron.js.map +1 -1
  59. package/fixtures/cron-jobs.js +72 -1
  60. package/fixtures/cron-jobs.js.map +1 -1
  61. package/fixtures/init.js +62 -1
  62. package/fixtures/init.js.map +1 -1
  63. package/http/auth.js +697 -1
  64. package/http/auth.js.map +1 -1
  65. package/http/health.js +10 -1
  66. package/http/health.js.map +1 -1
  67. package/http/home.js +64 -1
  68. package/http/home.js.map +1 -1
  69. package/index.js +123 -1
  70. package/index.js.map +1 -1
  71. package/managers/cron.manager.js +205 -1
  72. package/managers/cron.manager.js.map +1 -1
  73. package/managers/method.manager.js +599 -1
  74. package/managers/method.manager.js.map +1 -1
  75. package/managers/mongo.manager.js +1682 -1
  76. package/managers/mongo.manager.js.map +1 -1
  77. package/managers/monitor.manager.js +334 -1
  78. package/managers/monitor.manager.js.map +1 -1
  79. package/managers/subscription.manager.js +867 -1
  80. package/managers/subscription.manager.js.map +1 -1
  81. package/managers/subscription.performance.js +100 -1
  82. package/managers/subscription.performance.js.map +1 -1
  83. package/methods/accounts.js +224 -1
  84. package/methods/accounts.js.map +1 -1
  85. package/methods/aws.js +449 -1
  86. package/methods/aws.js.map +1 -1
  87. package/methods/cloudconvert.js +214 -1
  88. package/methods/cloudconvert.js.map +1 -1
  89. package/methods/collections.js +526 -1
  90. package/methods/collections.js.map +1 -1
  91. package/methods/counters.js +121 -1
  92. package/methods/counters.js.map +1 -1
  93. package/methods/cron-jobs.js +1284 -1
  94. package/methods/cron-jobs.js.map +1 -1
  95. package/methods/flags.js +8 -1
  96. package/methods/flags.js.map +1 -1
  97. package/methods/logs.js +370 -1
  98. package/methods/logs.js.map +1 -1
  99. package/methods/monitor.js +384 -1
  100. package/methods/monitor.js.map +1 -1
  101. package/methods/pdf.js +685 -1
  102. package/methods/pdf.js.map +1 -1
  103. package/methods/report-builder.js +826 -1
  104. package/methods/report-builder.js.map +1 -1
  105. package/methods/support.js +263 -1
  106. package/methods/support.js.map +1 -1
  107. package/models/app-status.model.js +3 -1
  108. package/models/app-status.model.js.map +1 -1
  109. package/models/app-version.model.js +3 -1
  110. package/models/app-version.model.js.map +1 -1
  111. package/models/billing-logged-in-users.model.js +3 -1
  112. package/models/billing-logged-in-users.model.js.map +1 -1
  113. package/models/collection-document.model.js +3 -1
  114. package/models/collection-document.model.js.map +1 -1
  115. package/models/counter.model.js +3 -1
  116. package/models/counter.model.js.map +1 -1
  117. package/models/cron-job-history.model.js +3 -1
  118. package/models/cron-job-history.model.js.map +1 -1
  119. package/models/cron-job.model.js +3 -1
  120. package/models/cron-job.model.js.map +1 -1
  121. package/models/dialog.model.js +3 -1
  122. package/models/dialog.model.js.map +1 -1
  123. package/models/email-history.model.js +3 -1
  124. package/models/email-history.model.js.map +1 -1
  125. package/models/email-verified.model.js +3 -1
  126. package/models/email-verified.model.js.map +1 -1
  127. package/models/file.model.js +3 -1
  128. package/models/file.model.js.map +1 -1
  129. package/models/flag.model.js +3 -1
  130. package/models/flag.model.js.map +1 -1
  131. package/models/log-method-latency.model.js +3 -1
  132. package/models/log-method-latency.model.js.map +1 -1
  133. package/models/log-subscription.model.js +3 -1
  134. package/models/log-subscription.model.js.map +1 -1
  135. package/models/log.model.js +3 -1
  136. package/models/log.model.js.map +1 -1
  137. package/models/logged-in-users.model.js +3 -1
  138. package/models/logged-in-users.model.js.map +1 -1
  139. package/models/method-call.model.js +3 -1
  140. package/models/method-call.model.js.map +1 -1
  141. package/models/method-response.model.js +3 -1
  142. package/models/method-response.model.js.map +1 -1
  143. package/models/method.model.js +3 -1
  144. package/models/method.model.js.map +1 -1
  145. package/models/monitor-cpu.model.js +3 -1
  146. package/models/monitor-cpu.model.js.map +1 -1
  147. package/models/monitor-https-inbound.model.js +3 -1
  148. package/models/monitor-https-inbound.model.js.map +1 -1
  149. package/models/monitor-https-outbound.model.js +3 -1
  150. package/models/monitor-https-outbound.model.js.map +1 -1
  151. package/models/monitor-memory.model.js +3 -1
  152. package/models/monitor-memory.model.js.map +1 -1
  153. package/models/monitor-mongo.model.js +3 -1
  154. package/models/monitor-mongo.model.js.map +1 -1
  155. package/models/notification.model.js +3 -1
  156. package/models/notification.model.js.map +1 -1
  157. package/models/pagination.model.js +23 -1
  158. package/models/pagination.model.js.map +1 -1
  159. package/models/permission.model.js +3 -1
  160. package/models/permission.model.js.map +1 -1
  161. package/models/report-builder-dashboard-builder.model.js +3 -1
  162. package/models/report-builder-dashboard-builder.model.js.map +1 -1
  163. package/models/report-builder-library.model.js +3 -1
  164. package/models/report-builder-library.model.js.map +1 -1
  165. package/models/report-builder-report.model.js +3 -1
  166. package/models/report-builder-report.model.js.map +1 -1
  167. package/models/report-builder.model.js +3 -1
  168. package/models/report-builder.model.js.map +1 -1
  169. package/models/select-data-label.model.js +3 -1
  170. package/models/select-data-label.model.js.map +1 -1
  171. package/models/server-response.model.js +3 -1
  172. package/models/server-response.model.js.map +1 -1
  173. package/models/subscription.model.js +3 -1
  174. package/models/subscription.model.js.map +1 -1
  175. package/models/support-ticket.model.js +3 -1
  176. package/models/support-ticket.model.js.map +1 -1
  177. package/models/user-group.model.js +3 -1
  178. package/models/user-group.model.js.map +1 -1
  179. package/models/user-guide.model.js +3 -1
  180. package/models/user-guide.model.js.map +1 -1
  181. package/models/user.model.js +3 -1
  182. package/models/user.model.js.map +1 -1
  183. package/package.json +1 -2
  184. package/public_api.js +78 -1
  185. package/public_api.js.map +1 -1
  186. package/publications/app-status.js +16 -1
  187. package/publications/app-status.js.map +1 -1
  188. package/publications/app-version.js +16 -1
  189. package/publications/app-version.js.map +1 -1
  190. package/publications/cron-jobs.js +32 -1
  191. package/publications/cron-jobs.js.map +1 -1
  192. package/publications/files.js +36 -1
  193. package/publications/files.js.map +1 -1
  194. package/publications/flags.js +22 -1
  195. package/publications/flags.js.map +1 -1
  196. package/publications/logs.js +90 -1
  197. package/publications/logs.js.map +1 -1
  198. package/publications/method-calls.js +16 -1
  199. package/publications/method-calls.js.map +1 -1
  200. package/publications/method-responses.js +16 -1
  201. package/publications/method-responses.js.map +1 -1
  202. package/publications/notifications.js +16 -1
  203. package/publications/notifications.js.map +1 -1
  204. package/publications/report-builder-dashboard-builders.js +42 -1
  205. package/publications/report-builder-dashboard-builders.js.map +1 -1
  206. package/publications/report-builder-libraries.js +89 -1
  207. package/publications/report-builder-libraries.js.map +1 -1
  208. package/publications/report-builder-reports.js +50 -1
  209. package/publications/report-builder-reports.js.map +1 -1
  210. package/publications/super-admin.js +16 -1
  211. package/publications/super-admin.js.map +1 -1
  212. package/publications/user-groups.js +16 -1
  213. package/publications/user-groups.js.map +1 -1
  214. package/publications/user-guides.js +16 -1
  215. package/publications/user-guides.js.map +1 -1
  216. package/server-app.js +682 -1
  217. package/server-app.js.map +1 -1
  218. package/util/common.js +498 -1
  219. package/util/common.js.map +1 -1
  220. package/util/schema-report-builder.js +452 -1
  221. package/util/schema-report-builder.js.map +1 -1
@@ -1,2 +1,63 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Files=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},size:{type:Number},key:{type:String},type:{type:String},order:{type:Number},status:{type:String,optional:!0},default:{type:Boolean,optional:!0}};function initializeCollection(){if(index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()){var e=new mongo_manager_1.Model("files",schema,!1,!0,[],!0,!1);exports.Files=e.collection_main,exports.Files.createIndex({type:1,createdAt:1}),exports.Files.createIndex({key:1})}else setTimeout((function(){initializeCollection()}),1)}exports.Files=null,initializeCollection();
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Files = 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
+ size: {
27
+ type: Number
28
+ },
29
+ key: {
30
+ type: String
31
+ },
32
+ type: {
33
+ type: String
34
+ },
35
+ order: {
36
+ type: Number
37
+ },
38
+ status: {
39
+ type: String,
40
+ optional: true
41
+ },
42
+ default: {
43
+ type: Boolean,
44
+ optional: true
45
+ }
46
+ };
47
+ exports.Files = null;
48
+ initializeCollection();
49
+ function initializeCollection() {
50
+ if (index_1.ResolveIOServer && index_1.ResolveIOServer.getMainDB()) {
51
+ var model = new mongo_manager_1.Model('files', schema, false, true, [], true, false);
52
+ exports.Files = model.collection_main;
53
+ exports.Files.createIndex({ type: 1, createdAt: 1 });
54
+ exports.Files.createIndex({ key: 1 });
55
+ }
56
+ else {
57
+ setTimeout(function () {
58
+ initializeCollection();
59
+ }, 1);
60
+ }
61
+ }
62
+
2
63
  //# sourceMappingURL=file.collection.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/collections/file.collection.ts"],"names":["index_1","require","mongo_manager_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","name","size","key","order","status","default","Boolean","initializeCollection","ResolveIOServer","getMainDB","model","Model","exports","Files","collection_main","createIndex","setTimeout"],"mappings":"yFAAA,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,KAAM,CACLT,KAAMI,QAEPM,IAAK,CACJV,KAAMC,QAEPD,KAAM,CACLA,KAAMC,QAEPU,MAAO,CACNX,KAAMI,QAEPQ,OAAQ,CACPZ,KAAMC,OACNC,UAAU,GAEXW,QAAS,CACRb,KAAMc,QACNZ,UAAU,IAQZ,SAASa,uBACR,GAAIpB,QAAAqB,iBAAmBrB,QAAAqB,gBAAgBC,YAAa,CACnD,IAAMC,EAAQ,IAAIrB,gBAAAsB,MAAiB,QAASrB,QAAQ,GAAO,EAAM,IAAI,GAAM,GAC3EsB,QAAAC,MAAQH,EAAMI,gBACdF,QAAAC,MAAME,YAAY,CAACvB,KAAM,EAAGO,UAAW,IACvCa,QAAAC,MAAME,YAAY,CAACb,IAAK,SAGxBc,YAAW,WACVT,yBACE,GAdMK,QAAAC,MAA+B,KAE1CN","file":"file.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } from '../managers/mongo.manager';\nimport { FileModel } from '../models/file.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\tsize: {\n\t\ttype: Number\n\t},\n\tkey: {\n\t\ttype: String\n\t},\n\ttype: {\n\t\ttype: String\n\t},\n\torder: {\n\t\ttype: Number\n\t},\n\tstatus: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\tdefault: {\n\t\ttype: Boolean,\n\t\toptional: true\n\t}\n};\n\nexport let Files: Collection<FileModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<FileModel>('files', schema, false, true, [], true, false);\n\t\tFiles = model.collection_main;\n\t\tFiles.createIndex({type: 1, createdAt: 1});\n\t\tFiles.createIndex({key: 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/file.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,IAAI,EAAE;QACL,IAAI,EAAE,MAAM;KACZ;IACD,GAAG,EAAE;QACJ,IAAI,EAAE,MAAM;KACZ;IACD,IAAI,EAAE;QACL,IAAI,EAAE,MAAM;KACZ;IACD,KAAK,EAAE;QACN,IAAI,EAAE,MAAM;KACZ;IACD,MAAM,EAAE;QACP,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,OAAO,EAAE;QACR,IAAI,EAAE,OAAO;QACb,QAAQ,EAAE,IAAI;KACd;CACD,CAAC;AAES,QAAA,KAAK,GAA0B,IAAI,CAAC;AAE/C,oBAAoB,EAAE,CAAC;AAEvB,SAAS,oBAAoB;IAC5B,IAAI,uBAAe,IAAI,uBAAe,CAAC,SAAS,EAAE,EAAE;QACnD,IAAM,KAAK,GAAG,IAAI,qBAAK,CAAY,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;QAClF,aAAK,GAAG,KAAK,CAAC,eAAe,CAAC;QAC9B,aAAK,CAAC,WAAW,CAAC,EAAC,IAAI,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAC,CAAC,CAAC;QAC3C,aAAK,CAAC,WAAW,CAAC,EAAC,GAAG,EAAE,CAAC,EAAC,CAAC,CAAC;KAC5B;SACI;QACJ,UAAU,CAAC;YACV,oBAAoB,EAAE,CAAC;QACxB,CAAC,EAAE,CAAC,CAAC,CAAC;KACN;AACF,CAAC","file":"file.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } from '../managers/mongo.manager';\nimport { FileModel } from '../models/file.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\tsize: {\n\t\ttype: Number\n\t},\n\tkey: {\n\t\ttype: String\n\t},\n\ttype: {\n\t\ttype: String\n\t},\n\torder: {\n\t\ttype: Number\n\t},\n\tstatus: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\tdefault: {\n\t\ttype: Boolean,\n\t\toptional: true\n\t}\n};\n\nexport let Files: Collection<FileModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<FileModel>('files', schema, false, true, [], true, false);\n\t\tFiles = model.collection_main;\n\t\tFiles.createIndex({type: 1, createdAt: 1});\n\t\tFiles.createIndex({key: 1});\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 1);\n\t}\n}"]}
@@ -1,2 +1,45 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Flags=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},type:{type:String},value:{type:Boolean,optional:!0}};function initializeCollection(){if(index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()){var e=new mongo_manager_1.Model("flags",schema,!1,!1,[],!0,!1);exports.Flags=e.collection_main}else setTimeout((function(){initializeCollection()}),0)}exports.Flags=null,initializeCollection();
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Flags = 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
+ type: {
24
+ type: String
25
+ },
26
+ value: {
27
+ type: Boolean,
28
+ optional: true
29
+ }
30
+ };
31
+ exports.Flags = null;
32
+ initializeCollection();
33
+ function initializeCollection() {
34
+ if (index_1.ResolveIOServer && index_1.ResolveIOServer.getMainDB()) {
35
+ var model = new mongo_manager_1.Model('flags', schema, false, false, [], true, false);
36
+ exports.Flags = model.collection_main;
37
+ }
38
+ else {
39
+ setTimeout(function () {
40
+ initializeCollection();
41
+ }, 0);
42
+ }
43
+ }
44
+
2
45
  //# sourceMappingURL=flag.collection.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/collections/flag.collection.ts"],"names":["index_1","require","mongo_manager_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","value","Boolean","initializeCollection","ResolveIOServer","getMainDB","model","Model","exports","Flags","collection_main","setTimeout"],"mappings":"yFAAA,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,GAEXF,KAAM,CACLA,KAAMC,QAEPO,MAAO,CACNR,KAAMS,QACNP,UAAU,IAQZ,SAASQ,uBACR,GAAIf,QAAAgB,iBAAmBhB,QAAAgB,gBAAgBC,YAAa,CACnD,IAAMC,EAAQ,IAAIhB,gBAAAiB,MAAiB,QAAShB,QAAQ,GAAO,EAAO,IAAI,GAAM,GAC5EiB,QAAAC,MAAQH,EAAMI,qBAGdC,YAAW,WACVR,yBACE,GAZMK,QAAAC,MAA+B,KAE1CN","file":"flag.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } from '../managers/mongo.manager';\nimport { FlagModel } from '../models/flag.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\ttype: {\n\t\ttype: String\n\t},\n\tvalue: {\n\t\ttype: Boolean,\n\t\toptional: true\n\t}\n};\n\nexport let Flags: Collection<FlagModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<FlagModel>('flags', schema, false, false, [], true, false);\n\t\tFlags = model.collection_main;\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 0);\n\t}\n}"]}
1
+ {"version":3,"sources":["../../src/collections/flag.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,OAAO;QACb,QAAQ,EAAE,IAAI;KACd;CACD,CAAC;AAES,QAAA,KAAK,GAA0B,IAAI,CAAC;AAE/C,oBAAoB,EAAE,CAAC;AAEvB,SAAS,oBAAoB;IAC5B,IAAI,uBAAe,IAAI,uBAAe,CAAC,SAAS,EAAE,EAAE;QACnD,IAAM,KAAK,GAAG,IAAI,qBAAK,CAAY,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;QACnF,aAAK,GAAG,KAAK,CAAC,eAAe,CAAC;KAC9B;SACI;QACJ,UAAU,CAAC;YACV,oBAAoB,EAAE,CAAC;QACxB,CAAC,EAAE,CAAC,CAAC,CAAC;KACN;AACF,CAAC","file":"flag.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } from '../managers/mongo.manager';\nimport { FlagModel } from '../models/flag.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\ttype: {\n\t\ttype: String\n\t},\n\tvalue: {\n\t\ttype: Boolean,\n\t\toptional: true\n\t}\n};\n\nexport let Flags: Collection<FlagModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<FlagModel>('flags', schema, false, false, [], true, false);\n\t\tFlags = model.collection_main;\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 0);\n\t}\n}"]}
@@ -1,2 +1,54 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LogMethodLatencies=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},date_start:{type:Date},date_end:{type:Date,optional:!0},latency_ms:{type:Number},method:{type:String}};function initializeCollection(){if(index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()){var e=new mongo_manager_1.Model("log-method-latencies",schema,!1,!1,[],!0,!1);exports.LogMethodLatencies=e.collection_main,exports.LogMethodLatencies.createIndex({createdAt:1},{expireAfterSeconds:2592e3}),exports.LogMethodLatencies.createIndex({latency_ms:1}),exports.LogMethodLatencies.createIndex({method:1})}else setTimeout((function(){initializeCollection()}),1)}exports.LogMethodLatencies=null,initializeCollection();
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LogMethodLatencies = 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
+ date_start: {
24
+ type: Date
25
+ },
26
+ date_end: {
27
+ type: Date,
28
+ optional: true
29
+ },
30
+ latency_ms: {
31
+ type: Number
32
+ },
33
+ method: {
34
+ type: String
35
+ }
36
+ };
37
+ exports.LogMethodLatencies = null;
38
+ initializeCollection();
39
+ function initializeCollection() {
40
+ if (index_1.ResolveIOServer && index_1.ResolveIOServer.getMainDB()) {
41
+ var model = new mongo_manager_1.Model('log-method-latencies', schema, false, false, [], true, false);
42
+ exports.LogMethodLatencies = model.collection_main;
43
+ exports.LogMethodLatencies.createIndex({ createdAt: 1 }, { expireAfterSeconds: 60 * 60 * 24 * 30 });
44
+ exports.LogMethodLatencies.createIndex({ latency_ms: 1 });
45
+ exports.LogMethodLatencies.createIndex({ method: 1 });
46
+ }
47
+ else {
48
+ setTimeout(function () {
49
+ initializeCollection();
50
+ }, 1);
51
+ }
52
+ }
53
+
2
54
  //# sourceMappingURL=log-method-latency.collection.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/collections/log-method-latency.collection.ts"],"names":["index_1","require","mongo_manager_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","date_start","date_end","latency_ms","method","initializeCollection","ResolveIOServer","getMainDB","model","Model","exports","LogMethodLatencies","collection_main","createIndex","expireAfterSeconds","setTimeout"],"mappings":"sGAAA,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,WAAY,CACXR,KAAMM,MAEPG,SAAU,CACTT,KAAMM,KACNJ,UAAU,GAEXQ,WAAY,CACXV,KAAMI,QAEPO,OAAQ,CACPX,KAAMC,SAQR,SAASW,uBACR,GAAIjB,QAAAkB,iBAAmBlB,QAAAkB,gBAAgBC,YAAa,CACnD,IAAMC,EAAQ,IAAIlB,gBAAAmB,MAA6B,uBAAwBlB,QAAQ,GAAO,EAAO,IAAI,GAAM,GACvGmB,QAAAC,mBAAqBH,EAAMI,gBAC3BF,QAAAC,mBAAmBE,YAAY,CAACb,UAAW,GAAI,CAACc,mBAAoB,SACpEJ,QAAAC,mBAAmBE,YAAY,CAACV,WAAY,IAC5CO,QAAAC,mBAAmBE,YAAY,CAACT,OAAQ,SAGxCW,YAAW,WACVV,yBACE,GAfMK,QAAAC,mBAAwD,KAEnEN","file":"log-method-latency.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } from '../managers/mongo.manager';\nimport { LogMethodLatencyModel } from '../models/log-method-latency.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\tdate_start: {\n\t\ttype: Date\n\t},\n\tdate_end: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tlatency_ms: {\n\t\ttype: Number\n\t},\n\tmethod: {\n\t\ttype: String\n\t}\n};\n\nexport let LogMethodLatencies: Collection<LogMethodLatencyModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<LogMethodLatencyModel>('log-method-latencies', schema, false, false, [], true, false);\n\t\tLogMethodLatencies = model.collection_main;\n\t\tLogMethodLatencies.createIndex({createdAt: 1}, {expireAfterSeconds: 60 * 60 * 24 * 30});\n\t\tLogMethodLatencies.createIndex({latency_ms: 1});\n\t\tLogMethodLatencies.createIndex({method: 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/log-method-latency.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,UAAU,EAAE;QACX,IAAI,EAAE,IAAI;KACV;IACD,QAAQ,EAAE;QACT,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;KACd;IACD,UAAU,EAAE;QACX,IAAI,EAAE,MAAM;KACZ;IACD,MAAM,EAAE;QACP,IAAI,EAAE,MAAM;KACZ;CACD,CAAC;AAES,QAAA,kBAAkB,GAAsC,IAAI,CAAC;AAExE,oBAAoB,EAAE,CAAC;AAEvB,SAAS,oBAAoB;IAC5B,IAAI,uBAAe,IAAI,uBAAe,CAAC,SAAS,EAAE,EAAE;QACnD,IAAM,KAAK,GAAG,IAAI,qBAAK,CAAwB,sBAAsB,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;QAC9G,0BAAkB,GAAG,KAAK,CAAC,eAAe,CAAC;QAC3C,0BAAkB,CAAC,WAAW,CAAC,EAAC,SAAS,EAAE,CAAC,EAAC,EAAE,EAAC,kBAAkB,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAC,CAAC,CAAC;QACxF,0BAAkB,CAAC,WAAW,CAAC,EAAC,UAAU,EAAE,CAAC,EAAC,CAAC,CAAC;QAChD,0BAAkB,CAAC,WAAW,CAAC,EAAC,MAAM,EAAE,CAAC,EAAC,CAAC,CAAC;KAC5C;SACI;QACJ,UAAU,CAAC;YACV,oBAAoB,EAAE,CAAC;QACxB,CAAC,EAAE,CAAC,CAAC,CAAC;KACN;AACF,CAAC","file":"log-method-latency.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } from '../managers/mongo.manager';\nimport { LogMethodLatencyModel } from '../models/log-method-latency.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\tdate_start: {\n\t\ttype: Date\n\t},\n\tdate_end: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tlatency_ms: {\n\t\ttype: Number\n\t},\n\tmethod: {\n\t\ttype: String\n\t}\n};\n\nexport let LogMethodLatencies: Collection<LogMethodLatencyModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<LogMethodLatencyModel>('log-method-latencies', schema, false, false, [], true, false);\n\t\tLogMethodLatencies = model.collection_main;\n\t\tLogMethodLatencies.createIndex({createdAt: 1}, {expireAfterSeconds: 60 * 60 * 24 * 30});\n\t\tLogMethodLatencies.createIndex({latency_ms: 1});\n\t\tLogMethodLatencies.createIndex({method: 1});\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 1);\n\t}\n}"]}
@@ -1,2 +1,58 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LogSubscriptions=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},date:{type:Date},type:{type:String},subscription:{type:String},collection_name:{type:String},subData:{type:String}};function initializeCollection(){if(index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()){var e=new mongo_manager_1.Model("log-subscriptions",schema,!1,!1,[],!0,!1);exports.LogSubscriptions=e.collection_main,exports.LogSubscriptions.createIndex({date:1},{expireAfterSeconds:2592e3}),exports.LogSubscriptions.createIndex({type:1}),exports.LogSubscriptions.createIndex({collection_name:1}),exports.LogSubscriptions.createIndex({date:1,type:1}),exports.LogSubscriptions.createIndex({createdAt:1})}else setTimeout((function(){initializeCollection()}),1)}exports.LogSubscriptions=null,initializeCollection();
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LogSubscriptions = 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
+ date: {
24
+ type: Date
25
+ },
26
+ type: {
27
+ type: String
28
+ },
29
+ subscription: {
30
+ type: String
31
+ },
32
+ collection_name: {
33
+ type: String
34
+ },
35
+ subData: {
36
+ type: String
37
+ }
38
+ };
39
+ exports.LogSubscriptions = null;
40
+ initializeCollection();
41
+ function initializeCollection() {
42
+ if (index_1.ResolveIOServer && index_1.ResolveIOServer.getMainDB()) {
43
+ var model = new mongo_manager_1.Model('log-subscriptions', schema, false, false, [], true, false);
44
+ exports.LogSubscriptions = model.collection_main;
45
+ exports.LogSubscriptions.createIndex({ date: 1 }, { expireAfterSeconds: 60 * 60 * 24 * 30 });
46
+ exports.LogSubscriptions.createIndex({ type: 1 });
47
+ exports.LogSubscriptions.createIndex({ collection_name: 1 });
48
+ exports.LogSubscriptions.createIndex({ date: 1, type: 1 });
49
+ exports.LogSubscriptions.createIndex({ createdAt: 1 });
50
+ }
51
+ else {
52
+ setTimeout(function () {
53
+ initializeCollection();
54
+ }, 1);
55
+ }
56
+ }
57
+
2
58
  //# sourceMappingURL=log-subscription.collection.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/collections/log-subscription.collection.ts"],"names":["index_1","require","mongo_manager_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","date","subscription","collection_name","subData","initializeCollection","ResolveIOServer","getMainDB","model","Model","exports","LogSubscriptions","collection_main","createIndex","expireAfterSeconds","setTimeout"],"mappings":"oGAAA,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,KAAMM,MAEPN,KAAM,CACLA,KAAMC,QAEPQ,aAAc,CACbT,KAAMC,QAEPS,gBAAiB,CAChBV,KAAMC,QAEPU,QAAS,CACRX,KAAMC,SAQR,SAASW,uBACR,GAAIjB,QAAAkB,iBAAmBlB,QAAAkB,gBAAgBC,YAAa,CACnD,IAAMC,EAAQ,IAAIlB,gBAAAmB,MAA4B,oBAAqBlB,QAAQ,GAAO,EAAO,IAAI,GAAM,GACnGmB,QAAAC,iBAAmBH,EAAMI,gBACzBF,QAAAC,iBAAiBE,YAAY,CAACZ,KAAM,GAAI,CAACa,mBAAoB,SAC7DJ,QAAAC,iBAAiBE,YAAY,CAACpB,KAAM,IACpCiB,QAAAC,iBAAiBE,YAAY,CAACV,gBAAiB,IAC/CO,QAAAC,iBAAiBE,YAAY,CAACZ,KAAM,EAAGR,KAAM,IAC7CiB,QAAAC,iBAAiBE,YAAY,CAACb,UAAW,SAGzCe,YAAW,WACVV,yBACE,GAjBMK,QAAAC,iBAAqD,KAEhEN","file":"log-subscription.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } from '../managers/mongo.manager';\nimport { LogSubscriptionModel } from '../models/log-subscription.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\tdate: {\n\t\ttype: Date\n\t},\n\ttype: {\n\t\ttype: String\n\t},\n\tsubscription: {\n\t\ttype: String\n\t},\n\tcollection_name: {\n\t\ttype: String\n\t},\n\tsubData: {\n\t\ttype: String\t\n\t}\n};\n\nexport let LogSubscriptions: Collection<LogSubscriptionModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<LogSubscriptionModel>('log-subscriptions', schema, false, false, [], true, false);\n\t\tLogSubscriptions = model.collection_main;\n\t\tLogSubscriptions.createIndex({date: 1}, {expireAfterSeconds: 60 * 60 * 24 * 30});\n\t\tLogSubscriptions.createIndex({type: 1});\n\t\tLogSubscriptions.createIndex({collection_name: 1});\n\t\tLogSubscriptions.createIndex({date: 1, type: 1});\n\t\tLogSubscriptions.createIndex({createdAt: 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/log-subscription.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,IAAI;KACV;IACD,IAAI,EAAE;QACL,IAAI,EAAE,MAAM;KACZ;IACD,YAAY,EAAE;QACb,IAAI,EAAE,MAAM;KACZ;IACD,eAAe,EAAE;QAChB,IAAI,EAAE,MAAM;KACZ;IACD,OAAO,EAAE;QACR,IAAI,EAAE,MAAM;KACZ;CACD,CAAC;AAES,QAAA,gBAAgB,GAAqC,IAAI,CAAC;AAErE,oBAAoB,EAAE,CAAC;AAEvB,SAAS,oBAAoB;IAC5B,IAAI,uBAAe,IAAI,uBAAe,CAAC,SAAS,EAAE,EAAE;QACnD,IAAM,KAAK,GAAG,IAAI,qBAAK,CAAuB,mBAAmB,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;QAC1G,wBAAgB,GAAG,KAAK,CAAC,eAAe,CAAC;QACzC,wBAAgB,CAAC,WAAW,CAAC,EAAC,IAAI,EAAE,CAAC,EAAC,EAAE,EAAC,kBAAkB,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAC,CAAC,CAAC;QACjF,wBAAgB,CAAC,WAAW,CAAC,EAAC,IAAI,EAAE,CAAC,EAAC,CAAC,CAAC;QACxC,wBAAgB,CAAC,WAAW,CAAC,EAAC,eAAe,EAAE,CAAC,EAAC,CAAC,CAAC;QACnD,wBAAgB,CAAC,WAAW,CAAC,EAAC,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAC,CAAC,CAAC;QACjD,wBAAgB,CAAC,WAAW,CAAC,EAAC,SAAS,EAAE,CAAC,EAAC,CAAC,CAAC;KAC7C;SACI;QACJ,UAAU,CAAC;YACV,oBAAoB,EAAE,CAAC;QACxB,CAAC,EAAE,CAAC,CAAC,CAAC;KACN;AACF,CAAC","file":"log-subscription.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } from '../managers/mongo.manager';\nimport { LogSubscriptionModel } from '../models/log-subscription.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\tdate: {\n\t\ttype: Date\n\t},\n\ttype: {\n\t\ttype: String\n\t},\n\tsubscription: {\n\t\ttype: String\n\t},\n\tcollection_name: {\n\t\ttype: String\n\t},\n\tsubData: {\n\t\ttype: String\t\n\t}\n};\n\nexport let LogSubscriptions: Collection<LogSubscriptionModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<LogSubscriptionModel>('log-subscriptions', schema, false, false, [], true, false);\n\t\tLogSubscriptions = model.collection_main;\n\t\tLogSubscriptions.createIndex({date: 1}, {expireAfterSeconds: 60 * 60 * 24 * 30});\n\t\tLogSubscriptions.createIndex({type: 1});\n\t\tLogSubscriptions.createIndex({collection_name: 1});\n\t\tLogSubscriptions.createIndex({date: 1, type: 1});\n\t\tLogSubscriptions.createIndex({createdAt: 1});\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 1);\n\t}\n}"]}
@@ -1,2 +1,73 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Logs=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},type:{type:String},collection:{type:String},id_document:{type:String},payload:{type:String},method:{type:String},id_user:{type:String},user:{type:String},messageId:{type:Number},route:{type:String}};function initializeCollection(){if(index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()){var e=new mongo_manager_1.Model("logs",schema,!1,!1,[],!0,!1);exports.Logs=e.collection_main,exports.Logs.createIndex({createdAt:1},{expireAfterSeconds:7776e3}),exports.Logs.createIndex({createdAt:-1,type:1,id_document:1}),exports.Logs.createIndex({createdAt:-1,type:1,user:1}),exports.Logs.createIndex({createdAt:-1,type:1,method:1}),exports.Logs.createIndex({createdAt:-1,type:1,route:1}),exports.Logs.createIndex({createdAt:-1,type:1,collection:1,id_document:1}),exports.Logs.createIndex({createdAt:-1,type:1,collection:1,method:1,route:1}),exports.Logs.createIndex({createdAt:-1,type:1,collection:1,route:1})}else setTimeout((function(){initializeCollection()}),1)}exports.Logs=null,initializeCollection();
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Logs = 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
+ type: {
24
+ type: String
25
+ },
26
+ collection: {
27
+ type: String
28
+ },
29
+ id_document: {
30
+ type: String
31
+ },
32
+ payload: {
33
+ type: String
34
+ },
35
+ method: {
36
+ type: String
37
+ },
38
+ id_user: {
39
+ type: String
40
+ },
41
+ user: {
42
+ type: String
43
+ },
44
+ messageId: {
45
+ type: Number
46
+ },
47
+ route: {
48
+ type: String
49
+ }
50
+ };
51
+ exports.Logs = null;
52
+ initializeCollection();
53
+ function initializeCollection() {
54
+ if (index_1.ResolveIOServer && index_1.ResolveIOServer.getMainDB()) {
55
+ var model = new mongo_manager_1.Model('logs', schema, false, false, [], true, false);
56
+ exports.Logs = model.collection_main;
57
+ exports.Logs.createIndex({ createdAt: 1 }, { expireAfterSeconds: 60 * 60 * 24 * 90 });
58
+ exports.Logs.createIndex({ createdAt: -1, type: 1, id_document: 1 });
59
+ exports.Logs.createIndex({ createdAt: -1, type: 1, user: 1 });
60
+ exports.Logs.createIndex({ createdAt: -1, type: 1, method: 1 });
61
+ exports.Logs.createIndex({ createdAt: -1, type: 1, route: 1 });
62
+ exports.Logs.createIndex({ createdAt: -1, type: 1, collection: 1, id_document: 1 });
63
+ exports.Logs.createIndex({ createdAt: -1, type: 1, collection: 1, method: 1, route: 1 });
64
+ exports.Logs.createIndex({ createdAt: -1, type: 1, collection: 1, route: 1 });
65
+ }
66
+ else {
67
+ setTimeout(function () {
68
+ initializeCollection();
69
+ }, 1);
70
+ }
71
+ }
72
+
2
73
  //# sourceMappingURL=log.collection.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/collections/log.collection.ts"],"names":["index_1","require","mongo_manager_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","collection","id_document","payload","method","id_user","user","messageId","route","initializeCollection","ResolveIOServer","getMainDB","model","Model","exports","Logs","collection_main","createIndex","expireAfterSeconds","setTimeout"],"mappings":"wFAAA,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,GAEXF,KAAM,CACLA,KAAMC,QAEPO,WAAY,CACXR,KAAMC,QAEPQ,YAAa,CACZT,KAAMC,QAEPS,QAAS,CACRV,KAAMC,QAEPU,OAAQ,CACPX,KAAMC,QAEPW,QAAS,CACRZ,KAAMC,QAEPY,KAAM,CACLb,KAAMC,QAEPa,UAAW,CACVd,KAAMI,QAEPW,MAAO,CACNf,KAAMC,SAQR,SAASe,uBACR,GAAIrB,QAAAsB,iBAAmBtB,QAAAsB,gBAAgBC,YAAa,CACnD,IAAMC,EAAQ,IAAItB,gBAAAuB,MAAgB,OAAQtB,QAAQ,GAAO,EAAO,IAAI,GAAM,GAC1EuB,QAAAC,KAAOH,EAAMI,gBACbF,QAAAC,KAAKE,YAAY,CAACjB,UAAW,GAAI,CAACkB,mBAAoB,SACtDJ,QAAAC,KAAKE,YAAY,CAACjB,WAAY,EAAGP,KAAM,EAAGS,YAAa,IACvDY,QAAAC,KAAKE,YAAY,CAACjB,WAAY,EAAGP,KAAM,EAAGa,KAAM,IAChDQ,QAAAC,KAAKE,YAAY,CAACjB,WAAY,EAAGP,KAAM,EAAGW,OAAQ,IAClDU,QAAAC,KAAKE,YAAY,CAACjB,WAAY,EAAGP,KAAM,EAAGe,MAAO,IACjDM,QAAAC,KAAKE,YAAY,CAACjB,WAAY,EAAGP,KAAM,EAAGQ,WAAY,EAAGC,YAAa,IACtEY,QAAAC,KAAKE,YAAY,CAACjB,WAAY,EAAGP,KAAM,EAAGQ,WAAY,EAAGG,OAAQ,EAAGI,MAAO,IAC3EM,QAAAC,KAAKE,YAAY,CAACjB,WAAY,EAAGP,KAAM,EAAGQ,WAAY,EAAGO,MAAO,SAGhEW,YAAW,WACVV,yBACE,GApBMK,QAAAC,KAA6B,KAExCN","file":"log.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } from '../managers/mongo.manager';\nimport { LogModel } from '../models/log.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\ttype: {\n\t\ttype: String\n\t},\n\tcollection: {\n\t\ttype: String\n\t},\n\tid_document: {\n\t\ttype: String\n\t},\n\tpayload: {\n\t\ttype: String\n\t},\n\tmethod: {\n\t\ttype: String\n\t},\n\tid_user: {\n\t\ttype: String\n\t},\n\tuser: {\n\t\ttype: String\n\t},\n\tmessageId: {\n\t\ttype: Number\n\t},\n\troute: {\n\t\ttype: String\n\t}\n};\n\nexport let Logs: Collection<LogModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<LogModel>('logs', schema, false, false, [], true, false);\n\t\tLogs = model.collection_main;\n\t\tLogs.createIndex({createdAt: 1}, {expireAfterSeconds: 60 * 60 * 24 * 90});\n\t\tLogs.createIndex({createdAt: -1, type: 1, id_document: 1});\n\t\tLogs.createIndex({createdAt: -1, type: 1, user: 1});\n\t\tLogs.createIndex({createdAt: -1, type: 1, method: 1});\n\t\tLogs.createIndex({createdAt: -1, type: 1, route: 1});\n\t\tLogs.createIndex({createdAt: -1, type: 1, collection: 1, id_document: 1});\n\t\tLogs.createIndex({createdAt: -1, type: 1, collection: 1, method: 1, route: 1});\n\t\tLogs.createIndex({createdAt: -1, type: 1, collection: 1, route: 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/log.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,UAAU,EAAE;QACX,IAAI,EAAE,MAAM;KACZ;IACD,WAAW,EAAE;QACZ,IAAI,EAAE,MAAM;KACZ;IACD,OAAO,EAAE;QACR,IAAI,EAAE,MAAM;KACZ;IACD,MAAM,EAAE;QACP,IAAI,EAAE,MAAM;KACZ;IACD,OAAO,EAAE;QACR,IAAI,EAAE,MAAM;KACZ;IACD,IAAI,EAAE;QACL,IAAI,EAAE,MAAM;KACZ;IACD,SAAS,EAAE;QACV,IAAI,EAAE,MAAM;KACZ;IACD,KAAK,EAAE;QACN,IAAI,EAAE,MAAM;KACZ;CACD,CAAC;AAES,QAAA,IAAI,GAAyB,IAAI,CAAC;AAE7C,oBAAoB,EAAE,CAAC;AAEvB,SAAS,oBAAoB;IAC5B,IAAI,uBAAe,IAAI,uBAAe,CAAC,SAAS,EAAE,EAAE;QACnD,IAAM,KAAK,GAAG,IAAI,qBAAK,CAAW,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;QACjF,YAAI,GAAG,KAAK,CAAC,eAAe,CAAC;QAC7B,YAAI,CAAC,WAAW,CAAC,EAAC,SAAS,EAAE,CAAC,EAAC,EAAE,EAAC,kBAAkB,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,EAAC,CAAC,CAAC;QAC1E,YAAI,CAAC,WAAW,CAAC,EAAC,SAAS,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,WAAW,EAAE,CAAC,EAAC,CAAC,CAAC;QAC3D,YAAI,CAAC,WAAW,CAAC,EAAC,SAAS,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAC,CAAC,CAAC;QACpD,YAAI,CAAC,WAAW,CAAC,EAAC,SAAS,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAC,CAAC,CAAC;QACtD,YAAI,CAAC,WAAW,CAAC,EAAC,SAAS,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAC,CAAC,CAAC;QACrD,YAAI,CAAC,WAAW,CAAC,EAAC,SAAS,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,WAAW,EAAE,CAAC,EAAC,CAAC,CAAC;QAC1E,YAAI,CAAC,WAAW,CAAC,EAAC,SAAS,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAC,CAAC,CAAC;QAC/E,YAAI,CAAC,WAAW,CAAC,EAAC,SAAS,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAC,CAAC,CAAC;KACpE;SACI;QACJ,UAAU,CAAC;YACV,oBAAoB,EAAE,CAAC;QACxB,CAAC,EAAE,CAAC,CAAC,CAAC;KACN;AACF,CAAC","file":"log.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } from '../managers/mongo.manager';\nimport { LogModel } from '../models/log.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\ttype: {\n\t\ttype: String\n\t},\n\tcollection: {\n\t\ttype: String\n\t},\n\tid_document: {\n\t\ttype: String\n\t},\n\tpayload: {\n\t\ttype: String\n\t},\n\tmethod: {\n\t\ttype: String\n\t},\n\tid_user: {\n\t\ttype: String\n\t},\n\tuser: {\n\t\ttype: String\n\t},\n\tmessageId: {\n\t\ttype: Number\n\t},\n\troute: {\n\t\ttype: String\n\t}\n};\n\nexport let Logs: Collection<LogModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<LogModel>('logs', schema, false, false, [], true, false);\n\t\tLogs = model.collection_main;\n\t\tLogs.createIndex({createdAt: 1}, {expireAfterSeconds: 60 * 60 * 24 * 90});\n\t\tLogs.createIndex({createdAt: -1, type: 1, id_document: 1});\n\t\tLogs.createIndex({createdAt: -1, type: 1, user: 1});\n\t\tLogs.createIndex({createdAt: -1, type: 1, method: 1});\n\t\tLogs.createIndex({createdAt: -1, type: 1, route: 1});\n\t\tLogs.createIndex({createdAt: -1, type: 1, collection: 1, id_document: 1});\n\t\tLogs.createIndex({createdAt: -1, type: 1, collection: 1, method: 1, route: 1});\n\t\tLogs.createIndex({createdAt: -1, type: 1, collection: 1, route: 1});\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 1);\n\t}\n}"]}
@@ -1,2 +1,59 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LoggedInUsers=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},date:{type:Date},id_user:{type:String},user:{type:String},id_ws:{type:String},app_version:{type:Number,optional:!0},latency:{type:Number,optional:!0}};function initializeCollection(){if(index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()){var e=new mongo_manager_1.Model("logged-in-users",schema,!1,!1,[],!0,!1);exports.LoggedInUsers=e.collection_main,exports.LoggedInUsers.createIndex({id_ws:1})}else setTimeout((function(){initializeCollection()}),1)}exports.LoggedInUsers=null,initializeCollection();
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LoggedInUsers = 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
+ date: {
24
+ type: Date
25
+ },
26
+ id_user: {
27
+ type: String
28
+ },
29
+ user: {
30
+ type: String
31
+ },
32
+ id_ws: {
33
+ type: String
34
+ },
35
+ app_version: {
36
+ type: Number,
37
+ optional: true
38
+ },
39
+ latency: {
40
+ type: Number,
41
+ optional: true
42
+ }
43
+ };
44
+ exports.LoggedInUsers = null;
45
+ initializeCollection();
46
+ function initializeCollection() {
47
+ if (index_1.ResolveIOServer && index_1.ResolveIOServer.getMainDB()) {
48
+ var model = new mongo_manager_1.Model('logged-in-users', schema, false, false, [], true, false);
49
+ exports.LoggedInUsers = model.collection_main;
50
+ exports.LoggedInUsers.createIndex({ id_ws: 1 });
51
+ }
52
+ else {
53
+ setTimeout(function () {
54
+ initializeCollection();
55
+ }, 1);
56
+ }
57
+ }
58
+
2
59
  //# sourceMappingURL=logged-in-users.collection.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/collections/logged-in-users.collection.ts"],"names":["index_1","require","mongo_manager_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","date","id_user","user","id_ws","app_version","latency","initializeCollection","ResolveIOServer","getMainDB","model","Model","exports","LoggedInUsers","collection_main","createIndex","setTimeout"],"mappings":"iGAAA,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,KAAMM,MAEPG,QAAS,CACRT,KAAMC,QAEPS,KAAM,CACLV,KAAMC,QAEPU,MAAO,CACNX,KAAMC,QAEPW,YAAa,CACZZ,KAAMI,OACNF,UAAU,GAEXW,QAAS,CACRb,KAAMI,OACNF,UAAU,IAQZ,SAASY,uBACR,GAAInB,QAAAoB,iBAAmBpB,QAAAoB,gBAAgBC,YAAa,CACnD,IAAMC,EAAQ,IAAIpB,gBAAAqB,MAAyB,kBAAmBpB,QAAQ,GAAO,EAAO,IAAI,GAAM,GAC9FqB,QAAAC,cAAgBH,EAAMI,gBACtBF,QAAAC,cAAcE,YAAY,CAACX,MAAO,SAGlCY,YAAW,WACVT,yBACE,GAbMK,QAAAC,cAA+C,KAE1DN","file":"logged-in-users.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } from '../managers/mongo.manager';\nimport { LoggedInUserModel } from '../models/logged-in-users.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\tdate: {\n\t\ttype: Date\n\t},\n\tid_user: {\n\t\ttype: String\n\t},\n\tuser: {\n\t\ttype: String\n\t},\n\tid_ws: {\n\t\ttype: String\n\t},\n\tapp_version: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tlatency: {\n\t\ttype: Number,\n\t\toptional: true\n\t}\n};\n\nexport let LoggedInUsers: Collection<LoggedInUserModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<LoggedInUserModel>('logged-in-users', schema, false, false, [], true, false);\n\t\tLoggedInUsers = model.collection_main;\n\t\tLoggedInUsers.createIndex({id_ws: 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/logged-in-users.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,IAAI;KACV;IACD,OAAO,EAAE;QACR,IAAI,EAAE,MAAM;KACZ;IACD,IAAI,EAAE;QACL,IAAI,EAAE,MAAM;KACZ;IACD,KAAK,EAAE;QACN,IAAI,EAAE,MAAM;KACZ;IACD,WAAW,EAAE;QACZ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,OAAO,EAAE;QACR,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;CACD,CAAC;AAES,QAAA,aAAa,GAAkC,IAAI,CAAC;AAE/D,oBAAoB,EAAE,CAAC;AAEvB,SAAS,oBAAoB;IAC5B,IAAI,uBAAe,IAAI,uBAAe,CAAC,SAAS,EAAE,EAAE;QACnD,IAAM,KAAK,GAAG,IAAI,qBAAK,CAAoB,iBAAiB,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;QACrG,qBAAa,GAAG,KAAK,CAAC,eAAe,CAAC;QACtC,qBAAa,CAAC,WAAW,CAAC,EAAC,KAAK,EAAE,CAAC,EAAC,CAAC,CAAC;KACtC;SACI;QACJ,UAAU,CAAC;YACV,oBAAoB,EAAE,CAAC;QACxB,CAAC,EAAE,CAAC,CAAC,CAAC;KACN;AACF,CAAC","file":"logged-in-users.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } from '../managers/mongo.manager';\nimport { LoggedInUserModel } from '../models/logged-in-users.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\tdate: {\n\t\ttype: Date\n\t},\n\tid_user: {\n\t\ttype: String\n\t},\n\tuser: {\n\t\ttype: String\n\t},\n\tid_ws: {\n\t\ttype: String\n\t},\n\tapp_version: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tlatency: {\n\t\ttype: Number,\n\t\toptional: true\n\t}\n};\n\nexport let LoggedInUsers: Collection<LoggedInUserModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<LoggedInUserModel>('logged-in-users', schema, false, false, [], true, false);\n\t\tLoggedInUsers = model.collection_main;\n\t\tLoggedInUsers.createIndex({id_ws: 1});\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 1);\n\t}\n}"]}
@@ -1,2 +1,52 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MethodCalls=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},id_user:{type:String},message_id:{type:Number},method:{type:String},date:{type:Date}};function initializeCollection(){if(index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()){var e=new mongo_manager_1.Model("method-calls",schema,!1,!1,[],!0,!1);exports.MethodCalls=e.collection_main,exports.MethodCalls.createIndex({id_user:1,message_id:1}),exports.MethodCalls.createIndex({createdAt:1},{expireAfterSeconds:86400})}else setTimeout((function(){initializeCollection()}),1)}exports.MethodCalls=null,initializeCollection();
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MethodCalls = 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
+ id_user: {
24
+ type: String
25
+ },
26
+ message_id: {
27
+ type: Number
28
+ },
29
+ method: {
30
+ type: String
31
+ },
32
+ date: {
33
+ type: Date
34
+ }
35
+ };
36
+ exports.MethodCalls = null;
37
+ initializeCollection();
38
+ function initializeCollection() {
39
+ if (index_1.ResolveIOServer && index_1.ResolveIOServer.getMainDB()) {
40
+ var model = new mongo_manager_1.Model('method-calls', schema, false, false, [], true, false);
41
+ exports.MethodCalls = model.collection_main;
42
+ exports.MethodCalls.createIndex({ id_user: 1, message_id: 1 });
43
+ exports.MethodCalls.createIndex({ createdAt: 1 }, { expireAfterSeconds: 86400 });
44
+ }
45
+ else {
46
+ setTimeout(function () {
47
+ initializeCollection();
48
+ }, 1);
49
+ }
50
+ }
51
+
2
52
  //# sourceMappingURL=method-call.collection.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/collections/method-call.collection.ts"],"names":["index_1","require","mongo_manager_1","schema","_id","type","String","optional","__v","Number","updatedAt","Date","createdAt","id_user","message_id","method","date","initializeCollection","ResolveIOServer","getMainDB","model","Model","exports","MethodCalls","collection_main","createIndex","expireAfterSeconds","setTimeout"],"mappings":"+FAAA,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,QAAS,CACRR,KAAMC,QAEPQ,WAAY,CACXT,KAAMI,QAEPM,OAAQ,CACPV,KAAMC,QAEPU,KAAM,CACLX,KAAMM,OAQR,SAASM,uBACR,GAAIjB,QAAAkB,iBAAmBlB,QAAAkB,gBAAgBC,YAAa,CACnD,IAAMC,EAAQ,IAAIlB,gBAAAmB,MAAuB,eAAgBlB,QAAQ,GAAO,EAAO,IAAI,GAAM,GACzFmB,QAAAC,YAAcH,EAAMI,gBACpBF,QAAAC,YAAYE,YAAY,CAACZ,QAAS,EAAGC,WAAY,IACjDQ,QAAAC,YAAYE,YAAY,CAACb,UAAW,GAAI,CAACc,mBAAoB,aAG7DC,YAAW,WACVV,yBACE,GAdMK,QAAAC,YAA2C,KAEtDN","file":"method-call.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } from '../managers/mongo.manager';\nimport { MethodCallModel } from '../models/method-call.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\tid_user: {\n\t\ttype: String\n\t},\n\tmessage_id: {\n\t\ttype: Number\n\t},\n\tmethod: {\n\t\ttype: String\n\t},\n\tdate: {\n\t\ttype: Date\n\t}\n};\n\nexport let MethodCalls: Collection<MethodCallModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<MethodCallModel>('method-calls', schema, false, false, [], true, false);\n\t\tMethodCalls = model.collection_main;\n\t\tMethodCalls.createIndex({id_user: 1, message_id: 1});\n\t\tMethodCalls.createIndex({createdAt: 1}, {expireAfterSeconds: 86400});\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 1);\n\t}\n}"]}
1
+ {"version":3,"sources":["../../src/collections/method-call.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,OAAO,EAAE;QACR,IAAI,EAAE,MAAM;KACZ;IACD,UAAU,EAAE;QACX,IAAI,EAAE,MAAM;KACZ;IACD,MAAM,EAAE;QACP,IAAI,EAAE,MAAM;KACZ;IACD,IAAI,EAAE;QACL,IAAI,EAAE,IAAI;KACV;CACD,CAAC;AAES,QAAA,WAAW,GAAgC,IAAI,CAAC;AAE3D,oBAAoB,EAAE,CAAC;AAEvB,SAAS,oBAAoB;IAC5B,IAAI,uBAAe,IAAI,uBAAe,CAAC,SAAS,EAAE,EAAE;QACnD,IAAM,KAAK,GAAG,IAAI,qBAAK,CAAkB,cAAc,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;QAChG,mBAAW,GAAG,KAAK,CAAC,eAAe,CAAC;QACpC,mBAAW,CAAC,WAAW,CAAC,EAAC,OAAO,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAC,CAAC,CAAC;QACrD,mBAAW,CAAC,WAAW,CAAC,EAAC,SAAS,EAAE,CAAC,EAAC,EAAE,EAAC,kBAAkB,EAAE,KAAK,EAAC,CAAC,CAAC;KACrE;SACI;QACJ,UAAU,CAAC;YACV,oBAAoB,EAAE,CAAC;QACxB,CAAC,EAAE,CAAC,CAAC,CAAC;KACN;AACF,CAAC","file":"method-call.collection.js","sourcesContent":["import { ResolveIOServer } from '../index';\nimport { Collection, Model } from '../managers/mongo.manager';\nimport { MethodCallModel } from '../models/method-call.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\tid_user: {\n\t\ttype: String\n\t},\n\tmessage_id: {\n\t\ttype: Number\n\t},\n\tmethod: {\n\t\ttype: String\n\t},\n\tdate: {\n\t\ttype: Date\n\t}\n};\n\nexport let MethodCalls: Collection<MethodCallModel> = null;\n\ninitializeCollection();\n\nfunction initializeCollection() {\n\tif (ResolveIOServer && ResolveIOServer.getMainDB()) {\n\t\tconst model = new Model<MethodCallModel>('method-calls', schema, false, false, [], true, false);\n\t\tMethodCalls = model.collection_main;\n\t\tMethodCalls.createIndex({id_user: 1, message_id: 1});\n\t\tMethodCalls.createIndex({createdAt: 1}, {expireAfterSeconds: 86400});\n\t}\n\telse {\n\t\tsetTimeout(() => {\n\t\t\tinitializeCollection();\n\t\t}, 1);\n\t}\n}"]}
@@ -1,2 +1,56 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MethodResponses=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},id_user:{type:String},message_id:{type:Number},method:{type:String},response:{type:Object,blackbox:!0},date:{type:Date}};function initializeCollection(){if(index_1.ResolveIOServer&&index_1.ResolveIOServer.getMainDB()){var e=new mongo_manager_1.Model("method-responses",schema,!1,!1,[],!0,!1);exports.MethodResponses=e.collection_main,exports.MethodResponses.createIndex({id_user:1,message_id:1}),exports.MethodResponses.createIndex({createdAt:1},{expireAfterSeconds:86400})}else setTimeout((function(){initializeCollection()}),1)}exports.MethodResponses=null,initializeCollection();
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MethodResponses = 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
+ id_user: {
24
+ type: String
25
+ },
26
+ message_id: {
27
+ type: Number
28
+ },
29
+ method: {
30
+ type: String
31
+ },
32
+ response: {
33
+ type: Object,
34
+ blackbox: true
35
+ },
36
+ date: {
37
+ type: Date
38
+ }
39
+ };
40
+ exports.MethodResponses = null;
41
+ initializeCollection();
42
+ function initializeCollection() {
43
+ if (index_1.ResolveIOServer && index_1.ResolveIOServer.getMainDB()) {
44
+ var model = new mongo_manager_1.Model('method-responses', schema, false, false, [], true, false);
45
+ exports.MethodResponses = model.collection_main;
46
+ exports.MethodResponses.createIndex({ id_user: 1, message_id: 1 });
47
+ exports.MethodResponses.createIndex({ createdAt: 1 }, { expireAfterSeconds: 86400 });
48
+ }
49
+ else {
50
+ setTimeout(function () {
51
+ initializeCollection();
52
+ }, 1);
53
+ }
54
+ }
55
+
2
56
  //# sourceMappingURL=method-response.collection.js.map