@colijnit/transaction 256.1.101 → 256.1.102

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.
@@ -33,8 +33,8 @@
33
33
  function Version() {
34
34
  this.name = "@colijnit/transaction";
35
35
  this.description = "Colijn IT transaction package";
36
- this.symVer = "256.1.101";
37
- this.publishDate = "4-9-2025 18:21:42";
36
+ this.symVer = "256.1.102";
37
+ this.publishDate = "16-9-2025 17:46:43";
38
38
  }
39
39
  return Version;
40
40
  }());
@@ -15605,7 +15605,7 @@
15605
15605
  status = response.headerOperationStatuses[i];
15606
15606
  _a = success;
15607
15607
  if (!_a) return [3 /*break*/, 3];
15608
- return [4 /*yield*/, this._handleHeaderOperationStatus(status, response.transactionInfo)];
15608
+ return [4 /*yield*/, this._handleHeaderOperationStatus(status, response.transactionInfo, saveTransaction)];
15609
15609
  case 2:
15610
15610
  _a = (_b.sent());
15611
15611
  _b.label = 3;
@@ -15742,7 +15742,8 @@
15742
15742
  });
15743
15743
  });
15744
15744
  };
15745
- PendingReasonService.prototype._handleHeaderOperationStatus = function (operationStatus, transactionInfo) {
15745
+ PendingReasonService.prototype._handleHeaderOperationStatus = function (operationStatus, transactionInfo, saveTransaction) {
15746
+ if (saveTransaction === void 0) { saveTransaction = true; }
15746
15747
  return __awaiter(this, void 0, void 0, function () {
15747
15748
  var _a;
15748
15749
  return __generator(this, function (_b) {
@@ -15763,7 +15764,7 @@
15763
15764
  _b.sent();
15764
15765
  _b.label = 3;
15765
15766
  case 3: return [2 /*return*/, false];
15766
- case 4: return [4 /*yield*/, this._confirmHeaderAction(transactionInfo.uuid, operationStatus.pendingReason, operationStatus.pendingReasonTranslation, operationStatus.pendingReasonType)];
15767
+ case 4: return [4 /*yield*/, this._confirmHeaderAction(transactionInfo.uuid, operationStatus.pendingReason, operationStatus.pendingReasonTranslation, operationStatus.pendingReasonType, saveTransaction)];
15767
15768
  case 5: return [2 /*return*/, _b.sent()];
15768
15769
  case 6: return [2 /*return*/, true];
15769
15770
  }
@@ -15785,7 +15786,8 @@
15785
15786
  });
15786
15787
  });
15787
15788
  };
15788
- PendingReasonService.prototype.resolvePendingHeaderReason = function (pendingHeaderValues) {
15789
+ PendingReasonService.prototype.resolvePendingHeaderReason = function (pendingHeaderValues, saveTransaction) {
15790
+ if (saveTransaction === void 0) { saveTransaction = true; }
15789
15791
  return __awaiter(this, void 0, void 0, function () {
15790
15792
  var response;
15791
15793
  return __generator(this, function (_a) {
@@ -15794,7 +15796,7 @@
15794
15796
  case 1:
15795
15797
  response = _a.sent();
15796
15798
  // this.rememberCurrentTransaction(response);
15797
- return [2 /*return*/, this.handleHeaderOperationStatuses(response, false)];
15799
+ return [2 /*return*/, this.handleHeaderOperationStatuses(response, saveTransaction)];
15798
15800
  }
15799
15801
  });
15800
15802
  });
@@ -15889,7 +15891,8 @@
15889
15891
  });
15890
15892
  });
15891
15893
  };
15892
- PendingReasonService.prototype._confirmHeaderAction = function (uuid, reason, message, type) {
15894
+ PendingReasonService.prototype._confirmHeaderAction = function (uuid, reason, message, type, saveTransaction) {
15895
+ if (saveTransaction === void 0) { saveTransaction = true; }
15893
15896
  return __awaiter(this, void 0, void 0, function () {
15894
15897
  var reasonRequest, response;
15895
15898
  return __generator(this, function (_a) {
@@ -15900,7 +15903,7 @@
15900
15903
  case 1:
15901
15904
  response = _a.sent();
15902
15905
  reasonRequest.confirmation = response.button === AppPopupButtonType.Yes;
15903
- return [4 /*yield*/, this.resolvePendingHeaderReason(reasonRequest)];
15906
+ return [4 /*yield*/, this.resolvePendingHeaderReason(reasonRequest, saveTransaction)];
15904
15907
  case 2: return [2 /*return*/, _a.sent()];
15905
15908
  }
15906
15909
  });