@experteam-mx/ngx-services 18.9.1 → 18.9.3
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/esm2022/lib/apis/api-billing-pa.service.mjs +30 -1
- package/esm2022/lib/apis/api-companies.service.mjs +2 -2
- package/esm2022/lib/apis/models/api-billing.models.mjs +1 -1
- package/fesm2022/experteam-mx-ngx-services.mjs +30 -1
- package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
- package/lib/apis/api-billing-pa.service.d.ts +22 -1
- package/lib/apis/models/api-billing.models.d.ts +6 -0
- package/package.json +1 -1
|
@@ -259,6 +259,35 @@ class ApiBillingPaService {
|
|
|
259
259
|
params
|
|
260
260
|
}).pipe(map(({ data }) => data));
|
|
261
261
|
}
|
|
262
|
+
/**
|
|
263
|
+
* RRetrieves the list of billing configurations to locations
|
|
264
|
+
*
|
|
265
|
+
* @return {Observable<BillingConfigsOut>} An observable that emits an array of billing configurations to locations
|
|
266
|
+
*/
|
|
267
|
+
getConfigs() {
|
|
268
|
+
return this.http.get(`${this.url}/location/configs`)
|
|
269
|
+
.pipe(map(({ data }) => data));
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* Retrieves the details of a location in billing configurations
|
|
273
|
+
*
|
|
274
|
+
* @param {number} id - The id of the location to fetch.
|
|
275
|
+
* @return {Observable<BillingConfigOut>} An observable that emits the location billing configuration data.
|
|
276
|
+
*/
|
|
277
|
+
getConfig(id) {
|
|
278
|
+
return this.http.get(`${this.url}/locations/${id}`)
|
|
279
|
+
.pipe(map(({ data }) => data));
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Sends a POST request to create a new billing configuration location.
|
|
283
|
+
*
|
|
284
|
+
* @param {BillingConfigIn} body - The billing configuration to location data to be sent in the request body.
|
|
285
|
+
* @return {Observable<BillingConfigOut>} An observable emitting the created billing configuration to location data.
|
|
286
|
+
*/
|
|
287
|
+
postConfigs(body) {
|
|
288
|
+
return this.http.post(`${this.url}/locations`, body)
|
|
289
|
+
.pipe(map(({ data }) => data));
|
|
290
|
+
}
|
|
262
291
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiBillingPaService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
263
292
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiBillingPaService, providedIn: 'root' });
|
|
264
293
|
}
|
|
@@ -1038,7 +1067,7 @@ class ApiCompaniesService {
|
|
|
1038
1067
|
* @return {Observable<SupplyEntitiesOut>} An observable containing the processed supply entities data.
|
|
1039
1068
|
*/
|
|
1040
1069
|
putSupplyEntities(body) {
|
|
1041
|
-
return this.http.
|
|
1070
|
+
return this.http.put(`${this.url}/supply-entities`, body)
|
|
1042
1071
|
.pipe(map(({ data }) => data));
|
|
1043
1072
|
}
|
|
1044
1073
|
/**
|