@experteam-mx/ngx-services 20.3.5 → 20.3.6-dev1.0
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.
|
@@ -1270,6 +1270,64 @@ class ApiCatalogsService {
|
|
|
1270
1270
|
return this.http.get(`${this.url}/package-locations`, { params })
|
|
1271
1271
|
.pipe(map(({ data }) => data));
|
|
1272
1272
|
}
|
|
1273
|
+
/**
|
|
1274
|
+
* Retrieves export reasons based on the provided query parameters.
|
|
1275
|
+
* @param params - Query parameters to filter, sort, or paginate export reasons
|
|
1276
|
+
* @returns An Observable that emits the export reasons data
|
|
1277
|
+
*/
|
|
1278
|
+
getExportReasons(params) {
|
|
1279
|
+
return this.http.get(`${this.url}/export-reasons`, { params })
|
|
1280
|
+
.pipe(map(({ data }) => data));
|
|
1281
|
+
}
|
|
1282
|
+
/**
|
|
1283
|
+
* Creates a new export reason.
|
|
1284
|
+
* @param body - Export reason data to create
|
|
1285
|
+
* @returns An Observable that emits the created export reason
|
|
1286
|
+
*/
|
|
1287
|
+
postExportReason(body) {
|
|
1288
|
+
return this.http.post(`${this.url}/export-reasons`, body)
|
|
1289
|
+
.pipe(map(({ data }) => data));
|
|
1290
|
+
}
|
|
1291
|
+
/**
|
|
1292
|
+
* Updates an existing export reason.
|
|
1293
|
+
* @param id - Identifier of the export reason to update
|
|
1294
|
+
* @param body - Updated export reason data
|
|
1295
|
+
* @returns An Observable that emits the updated export reason
|
|
1296
|
+
*/
|
|
1297
|
+
putExportReason(id, body) {
|
|
1298
|
+
return this.http.put(`${this.url}/export-reasons/${id}`, body)
|
|
1299
|
+
.pipe(map(({ data }) => data));
|
|
1300
|
+
}
|
|
1301
|
+
/**
|
|
1302
|
+
* Deletes an export reason by its identifier.
|
|
1303
|
+
* @param id - Identifier of the export reason to delete
|
|
1304
|
+
* @returns An Observable that emits the operation result
|
|
1305
|
+
*/
|
|
1306
|
+
deleteExportReason(id) {
|
|
1307
|
+
return this.http.delete(`${this.url}/export-reasons/${id}`)
|
|
1308
|
+
.pipe(map(({ data }) => data));
|
|
1309
|
+
}
|
|
1310
|
+
/**
|
|
1311
|
+
* Updates the active status of an export reason.
|
|
1312
|
+
* @param id - Identifier of the export reason
|
|
1313
|
+
* @param isActive - Indicates whether the export reason should be active or inactive
|
|
1314
|
+
* @returns An Observable that emits the operation result
|
|
1315
|
+
*/
|
|
1316
|
+
patchExportReason(id, isActive) {
|
|
1317
|
+
return this.http.patch(`${this.url}/export-reasons/${id}`, {
|
|
1318
|
+
isActive
|
|
1319
|
+
})
|
|
1320
|
+
.pipe(map(({ data }) => data));
|
|
1321
|
+
}
|
|
1322
|
+
/**
|
|
1323
|
+
* Retrieves export reason types based on the provided query parameters.
|
|
1324
|
+
* @param params - Query parameters to filter, sort, or paginate export reason types
|
|
1325
|
+
* @returns An Observable that emits the export reason types data
|
|
1326
|
+
*/
|
|
1327
|
+
getExportReasonTypes(params) {
|
|
1328
|
+
return this.http.get(`${this.url}/export-reason-types`, { params })
|
|
1329
|
+
.pipe(map(({ data }) => data));
|
|
1330
|
+
}
|
|
1273
1331
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiCatalogsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1274
1332
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: ApiCatalogsService, providedIn: 'root' });
|
|
1275
1333
|
}
|