iptdevs-design-system 3.2.44 → 3.2.45
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 +14 -0
- package/lib/core/services/commercial-service/comercial.service.d.ts +4 -1
- package/package.json +1 -1
|
@@ -4322,6 +4322,21 @@ class CommercialService extends IPTGeneralService {
|
|
|
4322
4322
|
this.generateRequestParams(code);
|
|
4323
4323
|
return this.http.get(serviceUrl);
|
|
4324
4324
|
}
|
|
4325
|
+
createCondition(request) {
|
|
4326
|
+
const serviceUrl = this.SERVICE_URL + 'commission-conditions';
|
|
4327
|
+
this.generateRequestParams(request);
|
|
4328
|
+
return this.http.post(serviceUrl, this.httpOptions);
|
|
4329
|
+
}
|
|
4330
|
+
updateCondition(request, code) {
|
|
4331
|
+
const serviceUrl = this.SERVICE_URL + `commission-conditions/${code}`;
|
|
4332
|
+
this.generateRequestParams(request);
|
|
4333
|
+
return this.http.put(serviceUrl, this.httpOptions);
|
|
4334
|
+
}
|
|
4335
|
+
deleteCondition(request, code) {
|
|
4336
|
+
const serviceUrl = this.SERVICE_URL + `commission-conditions/${code}`;
|
|
4337
|
+
this.generateRequestParams(request);
|
|
4338
|
+
return this.http.delete(serviceUrl, this.httpOptions);
|
|
4339
|
+
}
|
|
4325
4340
|
}
|
|
4326
4341
|
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 });
|
|
4327
4342
|
CommercialService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CommercialService, providedIn: 'root' });
|