iptdevs-design-system 3.2.68 → 3.2.79
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.
- package/esm2020/lib/core/models/media/media.interfaces.mjs +1 -1
- package/esm2020/lib/core/models/notes/INotesTemplate.mjs +1 -1
- package/esm2020/lib/core/services/media-service/media.service.mjs +11 -1
- package/fesm2015/iptdevs-design-system.mjs +10 -0
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +10 -0
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/lib/core/models/media/media.interfaces.d.ts +5 -0
- package/lib/core/models/notes/INotesTemplate.d.ts +4 -0
- package/lib/core/services/media-service/media.service.d.ts +2 -1
- package/package.json +1 -1
|
@@ -3672,6 +3672,16 @@ 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
|
+
uploadDocument(params) {
|
|
3676
|
+
const serviceUrl = this.SERVICE_URL + 'document/upload';
|
|
3677
|
+
const formData = new FormData();
|
|
3678
|
+
formData.append('params[token]', params.token);
|
|
3679
|
+
formData.append('params[code_user]', params.code_user.toString());
|
|
3680
|
+
if (params.file) {
|
|
3681
|
+
formData.append('file', params.file, params.file.name);
|
|
3682
|
+
}
|
|
3683
|
+
return this.http.post(serviceUrl, formData);
|
|
3684
|
+
}
|
|
3675
3685
|
}
|
|
3676
3686
|
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 });
|
|
3677
3687
|
MediaService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: MediaService, providedIn: 'root' });
|