|
|
@@ -14,26 +14,26 @@ export class EmployeeService {
|
|
|
}
|
|
|
|
|
|
public getConsultOfEmployees() {
|
|
|
- return this._httpRequestService.getQuery(`${this._url}/consult/1`).pipe(
|
|
|
+ return this._httpRequestService.getQuery(`${this._url}/consult`).pipe(
|
|
|
map((data: any) => data))
|
|
|
}
|
|
|
public getAvaibleUsers() {
|
|
|
- return this._httpRequestService.getQuery(`${this._url}/user-avaible/1`).pipe(
|
|
|
+ return this._httpRequestService.getQuery(`${this._url}/user-avaible`).pipe(
|
|
|
map((data: any) => data))
|
|
|
}
|
|
|
|
|
|
public getDocumentsByEmployee(employeeId: string) {
|
|
|
- return this._httpRequestService.getQuery(`${this._url}/documents/${employeeId}/1`).pipe(
|
|
|
+ return this._httpRequestService.getQuery(`${this._url}/documents/${employeeId}`).pipe(
|
|
|
map((data: any) => data))
|
|
|
}
|
|
|
|
|
|
public getLastDocumentsByEmployee(employeeId: string) {
|
|
|
- return this._httpRequestService.getQuery(`${this._url}/last-documents/${employeeId}/1`).pipe(
|
|
|
+ return this._httpRequestService.getQuery(`${this._url}/last-documents/${employeeId}`).pipe(
|
|
|
map((data: any) => data))
|
|
|
}
|
|
|
|
|
|
public getInterventionsByEmployee(employeeId: string) {
|
|
|
- return this._httpRequestService.getQuery(`${this._url}/orders/${employeeId}/1`).pipe(
|
|
|
+ return this._httpRequestService.getQuery(`${this._url}/orders/${employeeId}`).pipe(
|
|
|
map((data: any) => data))
|
|
|
}
|
|
|
|
|
|
@@ -53,22 +53,22 @@ export class EmployeeService {
|
|
|
}
|
|
|
|
|
|
public getEmployeeById(employeeId: string) {
|
|
|
- return this._httpRequestService.getQuery(`${this._url}/${employeeId}/1`).pipe(
|
|
|
+ return this._httpRequestService.getQuery(`${this._url}/${employeeId}`).pipe(
|
|
|
map((data: any) => data))
|
|
|
}
|
|
|
|
|
|
public getAllEmployees() {
|
|
|
- return this._httpRequestService.getQuery(`${this._url}/1`).pipe(
|
|
|
+ return this._httpRequestService.getQuery(`${this._url}`).pipe(
|
|
|
map((data: any) => data))
|
|
|
}
|
|
|
|
|
|
public getContractsOfEveryEmployee() {
|
|
|
- return this._httpRequestService.getQuery(`${this._url}/contracts/employees/1`).pipe(
|
|
|
+ return this._httpRequestService.getQuery(`${this._url}/contracts/employees`).pipe(
|
|
|
map((data: any) => data))
|
|
|
}
|
|
|
|
|
|
public getDetailsOfContractsByEmployee(employeeId: string) {
|
|
|
- return this._httpRequestService.getQuery(`${this._url}/contracts/history/${employeeId}/1`).pipe(
|
|
|
+ return this._httpRequestService.getQuery(`${this._url}/contracts/history/${employeeId}`).pipe(
|
|
|
map((data: any) => data))
|
|
|
}
|
|
|
|
|
|
@@ -81,5 +81,5 @@ public DownoloadEmployeeInfoOnPdf(response: DownoloadEmployeeInfo){
|
|
|
return this._httpRequestService.postQuery(`${this._url}/downoload-details-pdf`, response)
|
|
|
.pipe(map((data: any) => data));
|
|
|
}
|
|
|
-
|
|
|
-}
|
|
|
+
|
|
|
+}
|