@bizdoc/core 1.11.0-next.4 → 1.11.0-next.5

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.
@@ -1262,8 +1262,8 @@ class MailboxService {
1262
1262
  reportProgress: true
1263
1263
  });
1264
1264
  }
1265
- removeattachment(id, fileId) {
1266
- return this._http.delete(`/api/attachments/${id}/${fileId}`);
1265
+ removeattachment(recipientId, fileId) {
1266
+ return this._http.delete(`/api/attachments/${recipientId}/${fileId}`);
1267
1267
  }
1268
1268
  read(id, read, folderId, received) {
1269
1269
  return this._http.put(`/api/mailbox/read/${id}`, undefined, { params: { read } }).pipe(tap(() => folderId && this._updateunreadcounter(received, folderId, read ? 1 : -1)));
@@ -1293,13 +1293,13 @@ class MailboxService {
1293
1293
  });
1294
1294
  }));
1295
1295
  }
1296
- checkOut(documentId, version, attachmentId) {
1297
- return this._http.put(`/api/attachments/${documentId}/${attachmentId}/checkout`, null, { params: { version } });
1296
+ checkOut(recipientId, version, attachmentId) {
1297
+ return this._http.put(`/api/attachments/${recipientId}/${attachmentId}/checkout`, null, { params: { version } });
1298
1298
  }
1299
- checkIn(documentId, version, attachmentId, file) {
1299
+ checkIn(recipientId, version, attachmentId, file) {
1300
1300
  const fd = new FormData();
1301
1301
  fd.append(file.name, file);
1302
- const req = new HttpRequest('PUT', `/api/attachments/${documentId}/${attachmentId}/checkin?version=${version}`, fd, {
1302
+ const req = new HttpRequest('PUT', `/api/attachments/${recipientId}/${attachmentId}/checkin?version=${version}`, fd, {
1303
1303
  reportProgress: true,
1304
1304
  });
1305
1305
  //const initialState: UploadEvent = { state: 'PENDING', progress: 0 }
@@ -25772,7 +25772,7 @@ class FileInput {
25772
25772
  // this._sb.error(this._translate.get('CheckInMatchErr', item.fileName));
25773
25773
  // return;
25774
25774
  //}
25775
- this._mailbox.checkIn(this._model.documentId, this._model.version, item.id, files[0]).subscribe(a => {
25775
+ this._mailbox.checkIn(this._model.id, this._model.version, item.id, files[0]).subscribe(a => {
25776
25776
  //if (a instanceof UploadEvent) {
25777
25777
  // Object.assign(item, {
25778
25778
  // progress: a.loaded / a.total
@@ -25785,7 +25785,7 @@ class FileInput {
25785
25785
  });
25786
25786
  }
25787
25787
  checkOut(item) {
25788
- this._mailbox.checkOut(this._model.documentId, this._model.version, item.id).
25788
+ this._mailbox.checkOut(this._model.id, this._model.version, item.id).
25789
25789
  subscribe(() => {
25790
25790
  item.checkedOut = new Date();
25791
25791
  this.download(item);
@@ -25842,7 +25842,7 @@ class FileInput {
25842
25842
  for (let item of checkedOut) {
25843
25843
  let file = files.find(f => f.name.startsWith(item.fileName));
25844
25844
  if (file) {
25845
- let observable = this._mailbox.checkIn(this._model.documentId, this._model.version, item.id, file).pipe(tap$1(e => {
25845
+ let observable = this._mailbox.checkIn(this._model.id, this._model.version, item.id, file).pipe(tap$1(e => {
25846
25846
  //Object.assign(item, a, { progress: null });
25847
25847
  }));
25848
25848
  observables.push(observable);