iptdevs-design-system 3.1.35 → 3.1.36
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/commercial/commercial.model.mjs +1 -1
- package/esm2020/lib/core/services/commercial-service/comercial.service.mjs +16 -1
- package/fesm2015/iptdevs-design-system.mjs +15 -0
- package/fesm2015/iptdevs-design-system.mjs.map +1 -1
- package/fesm2020/iptdevs-design-system.mjs +15 -0
- package/fesm2020/iptdevs-design-system.mjs.map +1 -1
- package/lib/core/models/commercial/commercial.model.d.ts +29 -0
- package/lib/core/services/commercial-service/comercial.service.d.ts +2 -0
- package/package.json +1 -1
|
@@ -2616,6 +2616,21 @@ class CommercialService extends IPTGeneralService {
|
|
|
2616
2616
|
this.generateRequestParams(token);
|
|
2617
2617
|
return this.http.post(serviceUrl, this.httpOptions);
|
|
2618
2618
|
}
|
|
2619
|
+
createDocument(params) {
|
|
2620
|
+
let serviceUrl = this.SERVICE_URL + 'post/media/document';
|
|
2621
|
+
let formData = new FormData();
|
|
2622
|
+
formData.append('file', params.file);
|
|
2623
|
+
formData.append('user_autor', params.user_autor);
|
|
2624
|
+
formData.append('code_user', params.code_user);
|
|
2625
|
+
formData.append('type_document', params.type_document);
|
|
2626
|
+
formData.append('token', params.token);
|
|
2627
|
+
return this.http.post(serviceUrl, formData);
|
|
2628
|
+
}
|
|
2629
|
+
getDocumentsByStudent(params) {
|
|
2630
|
+
let serviceUrl = this.SERVICE_URL + 'get/media/document/user';
|
|
2631
|
+
this.generateRequestParams(params);
|
|
2632
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
2633
|
+
}
|
|
2619
2634
|
}
|
|
2620
2635
|
CommercialService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CommercialService, deps: [{ token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2621
2636
|
CommercialService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CommercialService, providedIn: 'root' });
|