nuxeo-development-framework 3.9.8 → 4.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.
- package/bundles/nuxeo-development-framework.umd.js +18 -12
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/latest-activity/constants/activitylog.js +2 -2
- package/esm2015/lib/components/notifications/services/notifications.service.js +9 -8
- package/esm2015/lib/components/notifications/services/socket.service.js +12 -7
- package/fesm2015/nuxeo-development-framework.js +18 -12
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/latest-activity/constants/activitylog.d.ts +1 -0
- package/package.json +1 -1
|
@@ -26352,7 +26352,7 @@
|
|
|
26352
26352
|
ActivityLogConstants.pageProvider = {
|
|
26353
26353
|
buisnesslog: {
|
|
26354
26354
|
name: 'PP_BusinessLog',
|
|
26355
|
-
headers: { 'X-NXproperties': '*', 'X-NXfetch-document': 'dc:creator,bl:person' },
|
|
26355
|
+
headers: { 'X-NXproperties': '*', 'X-NXfetch-document': 'dc:creator,bl:person', 'exclude-user-info': 'group' },
|
|
26356
26356
|
},
|
|
26357
26357
|
};
|
|
26358
26358
|
ActivityLogConstants.quickFilters = {
|
|
@@ -29095,12 +29095,17 @@
|
|
|
29095
29095
|
SocketService.prototype._prepareConnection = function () {
|
|
29096
29096
|
var _this = this;
|
|
29097
29097
|
var _a;
|
|
29098
|
-
|
|
29099
|
-
|
|
29100
|
-
|
|
29101
|
-
|
|
29102
|
-
|
|
29103
|
-
|
|
29098
|
+
try {
|
|
29099
|
+
var socket = new WebSocket((_a = this._environment) === null || _a === void 0 ? void 0 : _a.socketUrl);
|
|
29100
|
+
socket.onopen = function (event) { return _this._handleSocketConnection(true, event); };
|
|
29101
|
+
socket.onclose = function (event) { return _this._handleSocketConnection(false, event); };
|
|
29102
|
+
socket.onerror = function (event) { return _this._handleSocketError(event); };
|
|
29103
|
+
socket.onmessage = function (event) { return _this._handleSocketMessage(event); };
|
|
29104
|
+
this._socket = socket;
|
|
29105
|
+
}
|
|
29106
|
+
catch (error) {
|
|
29107
|
+
this._handleSocketError(error);
|
|
29108
|
+
}
|
|
29104
29109
|
};
|
|
29105
29110
|
SocketService.prototype.ngOnDestroy = function () {
|
|
29106
29111
|
this._destroy$.next();
|
|
@@ -29143,23 +29148,24 @@
|
|
|
29143
29148
|
*/
|
|
29144
29149
|
function NotificationsService(_environment, _nuxeoService, _callApi, _http) {
|
|
29145
29150
|
var _this = this;
|
|
29146
|
-
var _a, _b;
|
|
29151
|
+
var _a, _b, _c;
|
|
29147
29152
|
_this = _super.call(this, _environment, _nuxeoService) || this;
|
|
29148
29153
|
_this._environment = _environment;
|
|
29149
29154
|
_this._nuxeoService = _nuxeoService;
|
|
29150
29155
|
_this._callApi = _callApi;
|
|
29151
29156
|
_this._http = _http;
|
|
29152
29157
|
_this.listenerObserver = new rxjs.Subject();
|
|
29153
|
-
|
|
29154
|
-
if ((_b = (_a = _this._nuxeoService.nuxeoClient) === null || _a === void 0 ? void 0 : _a.user) === null || _b === void 0 ? void 0 : _b.id) {
|
|
29158
|
+
if (((_b = (_a = _this._nuxeoService.nuxeoClient) === null || _a === void 0 ? void 0 : _a.user) === null || _b === void 0 ? void 0 : _b.id) && ((_c = _this._environment) === null || _c === void 0 ? void 0 : _c.socketUrl)) {
|
|
29155
29159
|
_this.socketConnect()
|
|
29156
|
-
.pipe(operators.switchMap(function () { return _this.onMessage$; }), operators.
|
|
29160
|
+
.pipe(operators.switchMap(function () { return _this.onMessage$; }), operators.catchError(function (error) {
|
|
29161
|
+
console.log(error);
|
|
29162
|
+
return rxjs.throwError(function () { return error; });
|
|
29163
|
+
}), operators.takeUntil(_this._destroy$))
|
|
29157
29164
|
.subscribe(function (res) {
|
|
29158
29165
|
_this.listenerObserver.next(res);
|
|
29159
29166
|
});
|
|
29160
29167
|
}
|
|
29161
29168
|
return _this;
|
|
29162
|
-
// });
|
|
29163
29169
|
}
|
|
29164
29170
|
Object.defineProperty(NotificationsService.prototype, "_tenantId", {
|
|
29165
29171
|
get: function () {
|