iptdevs-design-system 3.2.90 → 3.2.92

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.
@@ -3672,7 +3672,7 @@ class MediaService extends IPTGeneralService {
3672
3672
  let serviceUrl = this.SERVICE_URL + 'get/media/code/' + idCode;
3673
3673
  return this.http.get(serviceUrl);
3674
3674
  }
3675
- uploadDocumentTwo(params) {
3675
+ uploadDocument(params) {
3676
3676
  const serviceUrl = this.SERVICE_URL + 'document/upload';
3677
3677
  const formData = new FormData();
3678
3678
  formData.append('params[token]', params.token);
@@ -3681,7 +3681,7 @@ class MediaService extends IPTGeneralService {
3681
3681
  formData.append('file', params.file);
3682
3682
  return this.http.post(serviceUrl, formData);
3683
3683
  }
3684
- uploadDocument(params) {
3684
+ uploadDocumentTwo(params) {
3685
3685
  let serviceUrl = this.SERVICE_URL + 'document/upload';
3686
3686
  let formData = new FormData();
3687
3687
  formData.append('file', params.file);
@@ -3690,6 +3690,11 @@ class MediaService extends IPTGeneralService {
3690
3690
  formData.append('token', params.token);
3691
3691
  return this.http.post(serviceUrl, formData);
3692
3692
  }
3693
+ getDocumentUrl(request) {
3694
+ let serviceUrl = this.SERVICE_URL + 'document/get/url';
3695
+ this.generateRequestParams(request);
3696
+ return this.http.post(serviceUrl, this.httpOptions);
3697
+ }
3693
3698
  }
3694
3699
  MediaService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: MediaService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
3695
3700
  MediaService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: MediaService, providedIn: 'root' });