@resolveio/server-lib 1.0.0-rc11 → 1.0.0-rc13

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.
package/index.d.ts CHANGED
@@ -5,7 +5,7 @@ export declare class ResolveIOServer {
5
5
  private static _mainServer;
6
6
  private static _client;
7
7
  constructor(serverConfig: any, client: string);
8
- static connectAndRun(serverConfig: any): Promise<void>;
8
+ static connectAndRun(): Promise<void>;
9
9
  static getClientName(): string;
10
10
  static getMainServer(): any;
11
11
  static getMainDB(): any;
package/index.js CHANGED
@@ -43,16 +43,16 @@ var ResolveIOServer = /** @class */ (function () {
43
43
  ResolveIOServer._serverConfig = serverConfig;
44
44
  ResolveIOServer._client = client;
45
45
  }
46
- ResolveIOServer.connectAndRun = function (serverConfig) {
46
+ ResolveIOServer.connectAndRun = function () {
47
47
  return __awaiter(this, void 0, void 0, function () {
48
48
  var _this = this;
49
49
  return __generator(this, function (_a) {
50
- if (serverConfig['ROOT_URL'] !== 'http://localhost:4200') {
51
- mongoose.createConnection(serverConfig['RESOLVEIO_SUPPORT_MONGO_URL'], { useNewUrlParser: true }).then(function (db) { return __awaiter(_this, void 0, void 0, function () {
50
+ if (ResolveIOServer._serverConfig['ROOT_URL'] !== 'http://localhost:4200') {
51
+ mongoose.createConnection(ResolveIOServer._serverConfig['RESOLVEIO_SUPPORT_MONGO_URL'], { useNewUrlParser: true }).then(function (db) { return __awaiter(_this, void 0, void 0, function () {
52
52
  var _this = this;
53
53
  return __generator(this, function (_a) {
54
54
  ResolveIOServer._supportDB = db;
55
- mongoose.createConnection(serverConfig['MONGO_URL'], { useNewUrlParser: true }).then(function (dbMain) { return __awaiter(_this, void 0, void 0, function () {
55
+ mongoose.createConnection(ResolveIOServer._serverConfig['MONGO_URL'], { useNewUrlParser: true }).then(function (dbMain) { return __awaiter(_this, void 0, void 0, function () {
56
56
  var serverApp;
57
57
  return __generator(this, function (_a) {
58
58
  switch (_a.label) {
@@ -76,7 +76,7 @@ var ResolveIOServer = /** @class */ (function () {
76
76
  }
77
77
  else {
78
78
  ResolveIOServer._supportDB = null;
79
- mongoose.createConnection(serverConfig['MONGO_URL'], { useNewUrlParser: true }).then(function (dbMain) { return __awaiter(_this, void 0, void 0, function () {
79
+ mongoose.createConnection(ResolveIOServer._serverConfig['MONGO_URL'], { useNewUrlParser: true }).then(function (dbMain) { return __awaiter(_this, void 0, void 0, function () {
80
80
  var serverApp;
81
81
  return __generator(this, function (_a) {
82
82
  switch (_a.label) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resolveio/server-lib",
3
- "version": "1.0.0-rc11",
3
+ "version": "1.0.0-rc13",
4
4
  "description": "",
5
5
  "main": "index.ts",
6
6
  "scripts": {
package/server-app.d.ts CHANGED
@@ -30,4 +30,45 @@ export default class ResolveIOMainServer {
30
30
  private listen;
31
31
  unsubscribeWS(ws: WebSocket): void;
32
32
  }
33
+ export * from './collections/active-subscription.collection';
34
+ export * from './collections/app-status.collection';
35
+ export * from './collections/app-version.collection';
36
+ export * from './collections/counter.collection';
37
+ export * from './collections/cron-job-history.collection';
38
+ export * from './collections/cron-job.collection';
39
+ export * from './collections/file.collection';
40
+ export * from './collections/flag.collection';
41
+ export * from './collections/log.collection';
42
+ export * from './collections/logged-in-users.collection';
43
+ export * from './collections/method-call.collection';
44
+ export * from './collections/method-response.collection';
45
+ export * from './collections/queue-flag.collection';
46
+ export * from './collections/queue-method.collection';
47
+ export * from './collections/queue-response.collection';
48
+ export * from './collections/support-ticket.collection';
49
+ export * from './collections/user.collection';
50
+ export * from './managers/cron.manager';
51
+ export * from './managers/method.manager';
52
+ export * from './managers/queue-method.manager';
53
+ export * from './managers/subscription.manager';
54
+ export * from './managers/support.manager';
55
+ export * from './models/active-subscription.model';
56
+ export * from './models/app-status.model';
57
+ export * from './models/app-version.model';
58
+ export * from './models/collection-document.model';
59
+ export * from './models/counter.model';
60
+ export * from './models/cron-job.model';
61
+ export * from './models/dialog.model';
62
+ export * from './models/file.model';
63
+ export * from './models/flag.model';
64
+ export * from './models/log.model';
65
+ export * from './models/method.model';
66
+ export * from './models/pagination.model';
67
+ export * from './models/permission.model';
68
+ export * from './models/select-data-label.model';
69
+ export * from './models/server-response.model';
70
+ export * from './models/support-method.model';
71
+ export * from './models/support-ticket.model';
72
+ export * from './models/user.model';
73
+ export * from './util/common';
33
74
  //# sourceMappingURL=server-app.d.ts.map
package/server-app.js CHANGED
@@ -34,6 +34,9 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
34
34
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
35
  }
36
36
  };
37
+ function __export(m) {
38
+ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
39
+ }
37
40
  Object.defineProperty(exports, "__esModule", { value: true });
38
41
  var http_1 = require("http");
39
42
  var express = require("express");
@@ -596,45 +599,27 @@ var ResolveIOMainServer = /** @class */ (function () {
596
599
  return ResolveIOMainServer;
597
600
  }());
598
601
  exports.default = ResolveIOMainServer;
599
- // export * from './collections/active-subscription.collection';
600
- // export * from './collections/app-status.collection';
601
- // export * from './collections/app-version.collection';
602
- // export * from './collections/counter.collection';
603
- // export * from './collections/cron-job-history.collection';
604
- // export * from './collections/cron-job.collection';
605
- // export * from './collections/file.collection';
606
- // export * from './collections/flag.collection';
607
- // export * from './collections/log.collection';
608
- // export * from './collections/logged-in-users.collection';
609
- // export * from './collections/method-call.collection';
610
- // export * from './collections/method-response.collection';
611
- // export * from './collections/queue-flag.collection';
612
- // export * from './collections/queue-method.collection';
613
- // export * from './collections/queue-response.collection';
614
- // export * from './collections/support-ticket.collection';
615
- // export * from './collections/user.collection';
616
- // export * from './managers/cron.manager';
617
- // export * from './managers/method.manager';
618
- // export * from './managers/queue-method.manager';
619
- // export * from './managers/subscription.manager';
620
- // export * from './managers/support.manager';
621
- // export * from './models/active-subscription.model';
622
- // export * from './models/app-status.model';
623
- // export * from './models/app-version.model';
624
- // export * from './models/collection-document.model';
625
- // export * from './models/counter.model';
626
- // // export * from './models/cron-job-history.model';
627
- // export * from './models/cron-job.model';
628
- // export * from './models/dialog.model';
629
- // export * from './models/file.model';
630
- // export * from './models/flag.model';
631
- // export * from './models/log.model';
632
- // export * from './models/method.model';
633
- // export * from './models/pagination.model';
634
- // export * from './models/permission.model';
635
- // export * from './models/select-data-label.model';
636
- // export * from './models/server-response.model';
637
- // export * from './models/support-method.model';
638
- // export * from './models/support-ticket.model';
639
- // export * from './models/user.model';
640
- // export * from './util/common';
602
+ __export(require("./collections/active-subscription.collection"));
603
+ __export(require("./collections/app-status.collection"));
604
+ __export(require("./collections/app-version.collection"));
605
+ __export(require("./collections/counter.collection"));
606
+ __export(require("./collections/cron-job-history.collection"));
607
+ __export(require("./collections/cron-job.collection"));
608
+ __export(require("./collections/file.collection"));
609
+ __export(require("./collections/flag.collection"));
610
+ __export(require("./collections/log.collection"));
611
+ __export(require("./collections/logged-in-users.collection"));
612
+ __export(require("./collections/method-call.collection"));
613
+ __export(require("./collections/method-response.collection"));
614
+ __export(require("./collections/queue-flag.collection"));
615
+ __export(require("./collections/queue-method.collection"));
616
+ __export(require("./collections/queue-response.collection"));
617
+ __export(require("./collections/support-ticket.collection"));
618
+ __export(require("./collections/user.collection"));
619
+ __export(require("./managers/cron.manager"));
620
+ __export(require("./managers/method.manager"));
621
+ __export(require("./managers/queue-method.manager"));
622
+ __export(require("./managers/subscription.manager"));
623
+ __export(require("./managers/support.manager"));
624
+ __export(require("./models/pagination.model"));
625
+ __export(require("./util/common"));