nuxeo-development-framework 2.0.5 → 2.0.6
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 +15 -9
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/documents/services/documents.service.js +16 -8
- package/fesm2015/nuxeo-development-framework.js +15 -7
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/documents/services/documents.service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -11145,7 +11145,6 @@
|
|
|
11145
11145
|
}));
|
|
11146
11146
|
};
|
|
11147
11147
|
DocumentsService.prototype.lockDocument = function (docId, mode) {
|
|
11148
|
-
var _this = this;
|
|
11149
11148
|
return rxjs.from(this.nuxeoService.nuxeoClient
|
|
11150
11149
|
.operation(DocumentsConstants.operations.lock)
|
|
11151
11150
|
.input(docId)
|
|
@@ -11154,32 +11153,39 @@
|
|
|
11154
11153
|
})
|
|
11155
11154
|
.execute({
|
|
11156
11155
|
headers: Object.assign(Object.assign({}, DocumentsConstants.pageProvider.committee.headers), { 'X-NXfetch-document': 'lock,dc:creator,corr:owner,cts_common:department', 'X-NXenrichers-document': 'tags' }),
|
|
11157
|
-
})).pipe(operators.map(function (item) {
|
|
11156
|
+
})).pipe(operators.map(function (item) {
|
|
11157
|
+
return item;
|
|
11158
|
+
//remove adapte since it is cousing conflicts when emiting out side and readapting again outside
|
|
11159
|
+
// this.documentsAdapter.adaptIn(item, DocumentsConstants.fields)
|
|
11160
|
+
}), operators.catchError(function (err) {
|
|
11158
11161
|
console.log(err);
|
|
11159
11162
|
throw err;
|
|
11160
11163
|
}));
|
|
11161
11164
|
};
|
|
11162
|
-
DocumentsService.prototype.
|
|
11165
|
+
DocumentsService.prototype.unlockDocument = function (docId) {
|
|
11163
11166
|
return rxjs.from(this.nuxeoService.nuxeoClient
|
|
11164
|
-
.operation(DocumentsConstants.operations.
|
|
11167
|
+
.operation(DocumentsConstants.operations.unlock)
|
|
11165
11168
|
.input(docId)
|
|
11166
11169
|
.params()
|
|
11167
11170
|
.execute({
|
|
11168
11171
|
headers: Object.assign(Object.assign({}, DocumentsConstants.pageProvider.committee.headers), { 'X-NXfetch-document': 'lock,dc:creator', 'X-NXenrichers-document': 'tags' }),
|
|
11169
|
-
})).pipe(operators.map(function (item) {
|
|
11172
|
+
})).pipe(operators.map(function (item) {
|
|
11173
|
+
return item;
|
|
11174
|
+
//remove adapte since it is cousing conflicts when emiting out side and readapting again outside
|
|
11175
|
+
// this.documentsAdapter.adaptIn(item, DocumentsConstants.fields)
|
|
11176
|
+
}), operators.catchError(function (err) {
|
|
11170
11177
|
console.log(err);
|
|
11171
11178
|
throw err;
|
|
11172
11179
|
}));
|
|
11173
11180
|
};
|
|
11174
|
-
DocumentsService.prototype.
|
|
11175
|
-
var _this = this;
|
|
11181
|
+
DocumentsService.prototype.lockMemoDocument = function (docId) {
|
|
11176
11182
|
return rxjs.from(this.nuxeoService.nuxeoClient
|
|
11177
|
-
.operation(DocumentsConstants.operations.
|
|
11183
|
+
.operation(DocumentsConstants.operations.lockMemo)
|
|
11178
11184
|
.input(docId)
|
|
11179
11185
|
.params()
|
|
11180
11186
|
.execute({
|
|
11181
11187
|
headers: Object.assign(Object.assign({}, DocumentsConstants.pageProvider.committee.headers), { 'X-NXfetch-document': 'lock,dc:creator', 'X-NXenrichers-document': 'tags' }),
|
|
11182
|
-
})).pipe(operators.map(function (item) { return
|
|
11188
|
+
})).pipe(operators.map(function (item) { return item; }), operators.catchError(function (err) {
|
|
11183
11189
|
console.log(err);
|
|
11184
11190
|
throw err;
|
|
11185
11191
|
}));
|