visorus-erp-core 10.1.0 → 10.1.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.
@@ -121,6 +121,17 @@
121
121
  var options = this.global.buildAuth();
122
122
  return this.http.delete(url, options);
123
123
  };
124
+ /**
125
+ * Realiza una petición PATCH genérica y autenticada.
126
+ * @param endpoint El endpoint del API
127
+ * @param id El ID del recurso a actualizar parcialmente
128
+ * @param body El cuerpo con los campos a actualizar
129
+ */
130
+ ApiService.prototype.patch = function (endpoint, id, body) {
131
+ var url = "<span class=\"math-inline\">{this.global.getUrl(endpoint)}/</span>{id}";
132
+ var options = this.global.buildAuth();
133
+ return this.http.patch(url, body, options);
134
+ };
124
135
  return ApiService;
125
136
  }());
126
137
  /** @nocollapse */ ApiService.ɵfac = function ApiService_Factory(t) { return new (t || ApiService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(GlobalService)); };