sigesp 0.9.47-20230717 → 0.9.49-20230719

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.
@@ -2679,10 +2679,18 @@
2679
2679
  _this.type = proben.tippro;
2680
2680
  _this.observation = proben.obspro;
2681
2681
  _this.contribuiterType = proben.tipconpro;
2682
- _this.stateCode = proben.codest.trim();
2683
- _this.parishCode = proben.codpar.trim();
2684
- _this.countryCode = proben.codpai.trim();
2685
- _this.municipalityCode = proben.codmun.trim();
2682
+ if (proben.codest) {
2683
+ _this.stateCode = proben.codest.trim();
2684
+ }
2685
+ if (proben.codpar) {
2686
+ _this.stateCode = proben.codpar.trim();
2687
+ }
2688
+ if (proben.codpai) {
2689
+ _this.countryCode = proben.codpai.trim();
2690
+ }
2691
+ if (proben.codmun) {
2692
+ _this.municipalityCode = proben.codmun.trim();
2693
+ }
2686
2694
  _this.currencyCode = proben.codmon;
2687
2695
  _this.organizationType = parseInt(proben.id_tiporg);
2688
2696
  _this.systemLogDate = proben.fecregsis;
@@ -7515,7 +7523,7 @@
7515
7523
  * @modificado 17-07-2023
7516
7524
  */
7517
7525
  SigespService.prototype.getProvidersAndBeneficiaries = function (type, destination, account) {
7518
- if (type === void 0) { type = null; }
7526
+ if (type === void 0) { type = 'default'; }
7519
7527
  if (destination === void 0) { destination = null; }
7520
7528
  if (account === void 0) { account = 'N'; }
7521
7529
  return this.http.get(this.URL + "/dao/rpc/proveedor_beneficiario_dao.php" + (type ? "?provider_type=" + type : '') + "&destination=" + destination + "&account=" + account, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) {