@resolveio/server-lib 5.2.33 → 5.2.34-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,
|
|
@@ -659,7 +659,7 @@ var SubscriptionManager = /** @class */ (function () {
|
|
|
659
659
|
return [3 /*break*/, 3];
|
|
660
660
|
case 2:
|
|
661
661
|
sub['oplog'] = oplog;
|
|
662
|
-
uniquePubs.push(sub);
|
|
662
|
+
uniquePubs.push(common_1.deepCopy(sub));
|
|
663
663
|
_b.label = 3;
|
|
664
664
|
case 3:
|
|
665
665
|
if (this_1._subCache.findIndex(function (a) { return a.publication === sub.publication && JSON.stringify(a.subscriptionData) === JSON.stringify(sub.subscriptionData); }) >= 0) {
|
|
@@ -688,7 +688,7 @@ var SubscriptionManager = /** @class */ (function () {
|
|
|
688
688
|
case 7:
|
|
689
689
|
if (!uniquePubs.filter(function (a) { return a.publication === sub.publication && JSON.stringify(a.subscriptionData) === JSON.stringify(sub.subscriptionData) && JSON.stringify(oplog) === JSON.stringify(a.oplog); }).length) {
|
|
690
690
|
sub['oplog'] = oplog;
|
|
691
|
-
uniquePubs.push(sub);
|
|
691
|
+
uniquePubs.push(common_1.deepCopy(sub));
|
|
692
692
|
}
|
|
693
693
|
_b.label = 8;
|
|
694
694
|
case 8: return [3 /*break*/, 16];
|
|
@@ -713,7 +713,7 @@ var SubscriptionManager = /** @class */ (function () {
|
|
|
713
713
|
return [3 /*break*/, 12];
|
|
714
714
|
case 11:
|
|
715
715
|
sub['oplog'] = oplog;
|
|
716
|
-
uniquePubs.push(sub);
|
|
716
|
+
uniquePubs.push(common_1.deepCopy(sub));
|
|
717
717
|
_b.label = 12;
|
|
718
718
|
case 12: return [3 /*break*/, 16];
|
|
719
719
|
case 13:
|
|
@@ -735,7 +735,7 @@ var SubscriptionManager = /** @class */ (function () {
|
|
|
735
735
|
return [3 /*break*/, 16];
|
|
736
736
|
case 15:
|
|
737
737
|
sub['oplog'] = oplog;
|
|
738
|
-
uniquePubs.push(sub);
|
|
738
|
+
uniquePubs.push(common_1.deepCopy(sub));
|
|
739
739
|
_b.label = 16;
|
|
740
740
|
case 16: return [2 /*return*/];
|
|
741
741
|
}
|