@experteam-mx/ngx-services 18.8.0 → 18.8.1

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.
@@ -1902,6 +1902,22 @@ class ApiCompaniesService {
1902
1902
  return this.http.put(`${this.url}/tdx-account-settings/${id}`, body)
1903
1903
  .pipe(map(({ data }) => data));
1904
1904
  }
1905
+ /**
1906
+ * Retrieves the employees of a specific location using a provided token.
1907
+ *
1908
+ * @param params - Input parameters for the request, defined by the `LocationEmployeesIn` interface.
1909
+ * @returns An `Observable<LocationEmployeesOut>` that emits the employees
1910
+ * associated with the given location.
1911
+ * @returns The response type is `ApiSuccess<LocationEmployeesOut>`, from which the `data` field is extracted.
1912
+ */
1913
+ getLocationEmployeesByToken(params) {
1914
+ return this.http.get(`${this.url}/location-employees`, {
1915
+ params: params.queryParams,
1916
+ headers: {
1917
+ Authorization: `Bearer ${params.token}`
1918
+ }
1919
+ }).pipe(map(({ data }) => data));
1920
+ }
1905
1921
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiCompaniesService, deps: [{ token: 'env' }, { token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
1906
1922
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ApiCompaniesService, providedIn: 'root' });
1907
1923
  }