@movalib/movalib-commons 1.1.73 → 1.1.74

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.
@@ -9,7 +9,7 @@ export default class GarageService {
9
9
  static updateGarageEmployeeSchedules(garageId: string, employeeId: string, req: any): Promise<APIResponse<string>>;
10
10
  static deleteGarageEmployee(garageId: string, req: any): Promise<APIResponse<string>>;
11
11
  static createGarageEmployee(garageId: string, req: any): Promise<APIResponse<string>>;
12
- static getEmployees(): Promise<APIResponse<Employee[]>>;
12
+ static getEmployees(garageId: string): Promise<APIResponse<Employee[]>>;
13
13
  static activateGarage(garageId: string): Promise<APIResponse<string>>;
14
14
  static salesSignUp(formData: FormData): Promise<APIResponse<number>>;
15
15
  static sendNewEventQuote(garageId: string, eventId: string, formData: FormData): Promise<APIResponse<string>>;
@@ -61,9 +61,9 @@ var GarageService = /** @class */ (function () {
61
61
  body: JSON.stringify(req)
62
62
  });
63
63
  };
64
- GarageService.getEmployees = function () {
64
+ GarageService.getEmployees = function (garageId) {
65
65
  return (0, ApiHelper_1.request)({
66
- url: "".concat(ApiHelper_1.API_BASE_URL, "/user/employees"),
66
+ url: "".concat(ApiHelper_1.API_BASE_URL, "/garage/").concat(garageId, "/employees"),
67
67
  method: Enums_1.APIMethod.GET,
68
68
  appType: Enums_1.MovaAppType.GARAGE
69
69
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@movalib/movalib-commons",
3
- "version": "1.1.73",
3
+ "version": "1.1.74",
4
4
  "description": "Bibliothèque d'objets communs à l'ensemble des projets React de Movalib",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -68,9 +68,9 @@ export default class GarageService {
68
68
  });
69
69
  }
70
70
 
71
- static getEmployees(): Promise<APIResponse<Employee[]>> {
71
+ static getEmployees(garageId: string): Promise<APIResponse<Employee[]>> {
72
72
  return request({
73
- url: `${API_BASE_URL}/user/employees`,
73
+ url: `${API_BASE_URL}/garage/${garageId}/employees`,
74
74
  method: APIMethod.GET,
75
75
  appType: MovaAppType.GARAGE
76
76
  });