@resolveio/server-lib 5.1.7 → 5.1.8-newrole
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.
|
@@ -22,13 +22,6 @@ var schema = {
|
|
|
22
22
|
type: Date,
|
|
23
23
|
optional: true
|
|
24
24
|
},
|
|
25
|
-
readonly: {
|
|
26
|
-
type: Boolean,
|
|
27
|
-
optional: true
|
|
28
|
-
},
|
|
29
|
-
active: {
|
|
30
|
-
type: Boolean
|
|
31
|
-
},
|
|
32
25
|
attempts: {
|
|
33
26
|
type: Number,
|
|
34
27
|
optional: true
|
|
@@ -65,53 +58,67 @@ var schema = {
|
|
|
65
58
|
type: String
|
|
66
59
|
},
|
|
67
60
|
roles: {
|
|
61
|
+
type: Object
|
|
62
|
+
},
|
|
63
|
+
'roles.super_admin': {
|
|
64
|
+
type: Boolean
|
|
65
|
+
},
|
|
66
|
+
'roles.approvals': {
|
|
68
67
|
type: Array
|
|
69
68
|
},
|
|
70
|
-
'roles.$': {
|
|
69
|
+
'roles.approvals.$': {
|
|
70
|
+
type: Object
|
|
71
|
+
},
|
|
72
|
+
'roles.approvals.$.name': {
|
|
71
73
|
type: String
|
|
72
74
|
},
|
|
73
|
-
|
|
74
|
-
type: String
|
|
75
|
-
optional: true
|
|
75
|
+
'roles.approvals.$.type': {
|
|
76
|
+
type: String
|
|
76
77
|
},
|
|
77
|
-
|
|
78
|
-
type:
|
|
79
|
-
blackbox: true,
|
|
80
|
-
optional: true
|
|
78
|
+
'roles.approvals.$.accounting_code': {
|
|
79
|
+
type: String
|
|
81
80
|
},
|
|
82
|
-
|
|
83
|
-
type: Array
|
|
84
|
-
optional: true
|
|
81
|
+
'roles.groups': {
|
|
82
|
+
type: Array
|
|
85
83
|
},
|
|
86
|
-
'
|
|
84
|
+
'roles.groups.$': {
|
|
87
85
|
type: Object
|
|
88
86
|
},
|
|
89
|
-
'
|
|
87
|
+
'roles.groups.$.name': {
|
|
90
88
|
type: String
|
|
91
89
|
},
|
|
92
|
-
'
|
|
93
|
-
type:
|
|
90
|
+
'roles.groups.$.views': {
|
|
91
|
+
type: Array
|
|
94
92
|
},
|
|
95
|
-
'
|
|
93
|
+
'roles.groups.$.views.$': {
|
|
96
94
|
type: String
|
|
97
95
|
},
|
|
98
|
-
'
|
|
99
|
-
type: String
|
|
96
|
+
'roles.groups.$.yard': {
|
|
97
|
+
type: String,
|
|
98
|
+
optional: true
|
|
99
|
+
},
|
|
100
|
+
'roles.notifications': {
|
|
101
|
+
type: Array
|
|
100
102
|
},
|
|
101
|
-
'
|
|
103
|
+
'roles.notifications.$': {
|
|
102
104
|
type: String
|
|
103
105
|
},
|
|
104
|
-
'
|
|
105
|
-
type:
|
|
106
|
+
'roles.miscs': {
|
|
107
|
+
type: Array
|
|
106
108
|
},
|
|
107
|
-
'
|
|
108
|
-
type:
|
|
109
|
-
optional: true
|
|
109
|
+
'roles.miscs.$': {
|
|
110
|
+
type: String
|
|
110
111
|
},
|
|
111
|
-
|
|
112
|
+
active: Boolean,
|
|
113
|
+
phonenumber: {
|
|
112
114
|
type: String,
|
|
113
115
|
optional: true
|
|
114
116
|
},
|
|
117
|
+
other: {
|
|
118
|
+
type: Object,
|
|
119
|
+
optional: true,
|
|
120
|
+
blackbox: true
|
|
121
|
+
},
|
|
115
122
|
customers: {
|
|
116
123
|
type: Array,
|
|
117
124
|
optional: true,
|
package/fixtures/init.js
CHANGED
|
@@ -37,8 +37,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
37
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
38
|
var app_version_collection_1 = require("../collections/app-version.collection");
|
|
39
39
|
var logged_in_users_collection_1 = require("../collections/logged-in-users.collection");
|
|
40
|
-
var active_subscription_collection_1 = require("../collections/active-subscription.collection");
|
|
41
40
|
var mongoose_1 = require("mongoose");
|
|
41
|
+
var active_subscription_collection_1 = require("../collections/active-subscription.collection");
|
|
42
42
|
function loadServerInit() {
|
|
43
43
|
return __awaiter(this, void 0, void 0, function () {
|
|
44
44
|
var appVersion;
|
|
@@ -90,9 +90,12 @@ var SubscriptionManager = /** @class */ (function () {
|
|
|
90
90
|
support_tickets_1.loadSupportTicketPublications(this);
|
|
91
91
|
this.tailOpLogSupport();
|
|
92
92
|
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
setInterval(function () {
|
|
94
|
+
console.log(new Date());
|
|
95
|
+
console.log('Sub Cache Length: ' + _this._subCache.length);
|
|
96
|
+
console.log('Sub Length: ' + _this._subscriptions.length);
|
|
97
|
+
console.log(_this._nodeCache.getStats().vsize);
|
|
98
|
+
}, 60000);
|
|
96
99
|
setInterval(function () {
|
|
97
100
|
if (!_this._runningQueue) {
|
|
98
101
|
if (_this._sendQueue.length) {
|
|
@@ -597,9 +600,6 @@ var SubscriptionManager = /** @class */ (function () {
|
|
|
597
600
|
sub['oplog'] = oplog;
|
|
598
601
|
uniquePubs.push(sub);
|
|
599
602
|
}
|
|
600
|
-
else {
|
|
601
|
-
uniqueOplog_1.splice(i, 1);
|
|
602
|
-
}
|
|
603
603
|
return [2 /*return*/, "continue"];
|
|
604
604
|
}
|
|
605
605
|
}
|
|
@@ -613,9 +613,6 @@ var SubscriptionManager = /** @class */ (function () {
|
|
|
613
613
|
sub['oplog'] = oplog;
|
|
614
614
|
uniquePubs.push(sub);
|
|
615
615
|
}
|
|
616
|
-
else {
|
|
617
|
-
uniqueOplog_1.splice(i, 1);
|
|
618
|
-
}
|
|
619
616
|
return [2 /*return*/, "continue"];
|
|
620
617
|
}
|
|
621
618
|
return [3 /*break*/, 3];
|
|
@@ -626,9 +623,6 @@ var SubscriptionManager = /** @class */ (function () {
|
|
|
626
623
|
sub['oplog'] = oplog;
|
|
627
624
|
uniquePubs.push(sub);
|
|
628
625
|
}
|
|
629
|
-
else {
|
|
630
|
-
uniqueOplog_1.splice(i, 1);
|
|
631
|
-
}
|
|
632
626
|
return [2 /*return*/, "continue"];
|
|
633
627
|
}
|
|
634
628
|
}
|
|
@@ -637,9 +631,6 @@ var SubscriptionManager = /** @class */ (function () {
|
|
|
637
631
|
sub['oplog'] = oplog;
|
|
638
632
|
uniquePubs.push(sub);
|
|
639
633
|
}
|
|
640
|
-
else {
|
|
641
|
-
uniqueOplog_1.splice(i, 1);
|
|
642
|
-
}
|
|
643
634
|
return [2 /*return*/, "continue"];
|
|
644
635
|
}
|
|
645
636
|
_c.label = 3;
|