@resolveio/server-lib 1.0.0-rc8 → 1.0.0

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 (39) hide show
  1. package/collections/active-subscription.collection.js +2 -2
  2. package/collections/app-status.collection.js +2 -2
  3. package/collections/app-version.collection.js +2 -2
  4. package/collections/counter.collection.js +8 -8
  5. package/collections/cron-job-history.collection.js +2 -2
  6. package/collections/cron-job.collection.js +2 -2
  7. package/collections/file.collection.js +8 -8
  8. package/collections/flag.collection.js +2 -2
  9. package/collections/log.collection.js +2 -2
  10. package/collections/logged-in-users.collection.js +2 -2
  11. package/collections/method-call.collection.js +1 -1
  12. package/collections/method-response.collection.js +1 -1
  13. package/collections/queue-flag.collection.js +2 -2
  14. package/collections/queue-method.collection.js +2 -2
  15. package/collections/queue-response.collection.js +2 -2
  16. package/collections/support-ticket.collection.js +5 -5
  17. package/collections/user.collection.js +2 -2
  18. package/http/auth.d.ts +1 -1
  19. package/http/auth.js +3 -3
  20. package/index.d.ts +6 -44
  21. package/index.js +61 -60
  22. package/managers/method.manager.d.ts +3 -2
  23. package/managers/method.manager.js +50 -19
  24. package/managers/subscription.manager.js +8 -8
  25. package/managers/support.manager.d.ts +1 -1
  26. package/managers/support.manager.js +1 -1
  27. package/methods/accounts.js +2 -2
  28. package/methods/aws.js +23 -1
  29. package/methods/collections.js +41 -41
  30. package/methods/counters.js +2 -299
  31. package/methods/logs.js +1 -1
  32. package/models/notification.model.d.ts +5 -0
  33. package/models/notification.model.js +2 -0
  34. package/package.json +2 -2
  35. package/publications/support-tickets.js +2 -2
  36. package/server-app.d.ts +3 -2
  37. package/server-app.js +46 -3
  38. package/support-methods/collections.js +25 -25
  39. package/support-methods/counters.js +3 -3
@@ -86,7 +86,7 @@ function loadCounterMethods(supportManager) {
86
86
  }
87
87
  }),
88
88
  function: function (collectionType, query) {
89
- return __1.default.getSupportDB().model(collectionType).collection.countDocuments(query);
89
+ return __1.ResolveIOServer.getSupportDB().model(collectionType).collection.countDocuments(query);
90
90
  }
91
91
  },
92
92
  countQuery: {
@@ -171,7 +171,7 @@ function loadCounterMethods(supportManager) {
171
171
  }
172
172
  }
173
173
  }
174
- return __1.default.getSupportDB().model(collectionType).collection.countDocuments(query);
174
+ return __1.ResolveIOServer.getSupportDB().model(collectionType).collection.countDocuments(query);
175
175
  }
176
176
  },
177
177
  countCollection: {
@@ -181,7 +181,7 @@ function loadCounterMethods(supportManager) {
181
181
  }
182
182
  }),
183
183
  function: function (collectionType) {
184
- return __1.default.getSupportDB().model(collectionType).collection.countDocuments();
184
+ return __1.ResolveIOServer.getSupportDB().model(collectionType).collection.countDocuments();
185
185
  }
186
186
  }
187
187
  });