@topconsultnpm/sdk-ts 6.17.0-dev.1.1 → 6.17.0-test.2

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.
@@ -712,6 +712,37 @@ export class DossierEngine extends BaseEngine {
712
712
  FollowAddOrRemoveAsync(id, remove) {
713
713
  return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.dossierFollowAddOrRemove(id, remove ? 1 : 0)); });
714
714
  }
715
+ DetailAddNewAsync(id, tid) {
716
+ return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.dossierDetailAddNew(id, tid)); });
717
+ }
718
+ DetailAttachDcmtAsync(id, dsdid, tid, did, mode) {
719
+ return __awaiter(this, void 0, void 0, function* () { var _a; yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.dossierDetailAttachDcmt(id, dsdid, tid, did, mode)); });
720
+ }
721
+ DetailDetachAsync(id, dsdid) {
722
+ return __awaiter(this, void 0, void 0, function* () { var _a; yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.dossierDetailDetach(id, dsdid)); });
723
+ }
724
+ DetailDeleteAsync(id, dsdid) {
725
+ return __awaiter(this, void 0, void 0, function* () { var _a; yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.dossierDetailDelete(id, dsdid)); });
726
+ }
727
+ DetailApproverAddOrRemoveAsync(id, dsdid, userIDs, remove) {
728
+ return __awaiter(this, void 0, void 0, function* () { var _a; yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.dossierDetailApproverAddOrRemove(id, dsdid, remove, userIDs)); });
729
+ }
730
+ AttachAddAsync(id, name, description, file, signal, progressCallback) {
731
+ return __awaiter(this, void 0, void 0, function* () {
732
+ var _a;
733
+ let fd = yield new ArchiveEngineByID(this.TopMediaSession).FileNameToFileDescriptorAsync(this.TopMediaSession, file, false, signal, progressCallback);
734
+ return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.dossierAttachAdd(id, name, description, fd, signal));
735
+ });
736
+ }
737
+ AttachAddByIDAsync(id, name, description, tid, did) {
738
+ return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.dossierAttachAddByID(id, name, description, tid, did)); });
739
+ }
740
+ AttachRemoveAsync(id, attachDID) {
741
+ return __awaiter(this, void 0, void 0, function* () { var _a; yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.dossierAttachRemove(id, attachDID)); });
742
+ }
743
+ AttachRetrieveOneOrAllAsync(id_1, attachDID_1) {
744
+ return __awaiter(this, arguments, void 0, function* (id, attachDID, outputType = 6) { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.dossierAttachRetrieveOneOrAll(id, attachDID, outputType)); });
745
+ }
715
746
  ParticipantsRetrieveAllAsync(id) {
716
747
  return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.dossierParticipantsRetrieveAll(id)); });
717
748
  }
@@ -4017,14 +4048,14 @@ export class UpdateEngineByID extends BaseEngine {
4017
4048
  return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.updateByID(this.TID, this.DID, this.MetadataValues));
4018
4049
  });
4019
4050
  }
4020
- SubstituteFileAsync(file, operType, signal, progressCallback) {
4051
+ SubstituteFileAsync(file, operType, origFileHash, signal, progressCallback) {
4021
4052
  return __awaiter(this, void 0, void 0, function* () {
4022
4053
  var _a;
4023
4054
  this.Check_TID_DID();
4024
4055
  let fd = yield new ArchiveEngineByID(this.TopMediaSession).FileNameToFileDescriptorAsync(this.TopMediaSession, file, false, signal, progressCallback);
4025
4056
  if (!fd)
4026
4057
  return;
4027
- yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.substituteFile(this.TID, this.DID, operType, fd));
4058
+ yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.substituteFile(this.TID, this.DID, operType, origFileHash, fd));
4028
4059
  });
4029
4060
  }
4030
4061
  ConvertFileAsync(format) {
@@ -4033,8 +4064,8 @@ export class UpdateEngineByID extends BaseEngine {
4033
4064
  VerifySignAsync() {
4034
4065
  return __awaiter(this, void 0, void 0, function* () { var _a; this.Check_TID_DID(); return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.verifySign(this.TID, this.DID)); });
4035
4066
  }
4036
- SignFileAsync(sod) {
4037
- return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.signFile(this.TID, this.DID, sod)); });
4067
+ SignFileAsync(sod, origFileHash) {
4068
+ return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.signFile(this.TID, this.DID, origFileHash, sod)); });
4038
4069
  }
4039
4070
  GetSignersAsync() {
4040
4071
  return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.getSigners(this.TID, this.DID)); });