@movalib/movalib-commons 1.51.0 → 1.51.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.
@@ -18,6 +18,7 @@ export default class GarageService {
18
18
  static createGarageEmployeePrestation(garageId: string, employeeId: string, prestationId: string): Promise<APIResponse<string>>;
19
19
  static deleteGarageEmployeeAbsence(garageId: string, employeeId: string, absenceId: string): Promise<APIResponse<string>>;
20
20
  static createGarageEmployeeAbsence(garageId: string, employeeId: string, req: any): Promise<APIResponse<string>>;
21
+ static updateGarageEmployee(garageId: string, employeeId: string, req: any): Promise<APIResponse<string>>;
21
22
  static updateGarageEmployeeSchedules(garageId: string, employeeId: string, req: any): Promise<APIResponse<string>>;
22
23
  static deleteGarageEmployee(garageId: string, req: any): Promise<APIResponse<string>>;
23
24
  static createGarageEmployee(garageId: string, req: any): Promise<APIResponse<string>>;
@@ -126,6 +126,14 @@ var GarageService = /** @class */ (function () {
126
126
  body: JSON.stringify(req)
127
127
  });
128
128
  };
129
+ GarageService.updateGarageEmployee = function (garageId, employeeId, req) {
130
+ return (0, ApiHelper_1.request)({
131
+ url: "".concat(ApiHelper_1.API_BASE_URL, "/garage/").concat(garageId, "/employees/").concat(employeeId),
132
+ method: Enums_1.APIMethod.PATCH,
133
+ appType: Enums_1.MovaAppType.GARAGE,
134
+ body: JSON.stringify(req)
135
+ });
136
+ };
129
137
  GarageService.updateGarageEmployeeSchedules = function (garageId, employeeId, req) {
130
138
  return (0, ApiHelper_1.request)({
131
139
  url: "".concat(ApiHelper_1.API_BASE_URL, "/garage/").concat(garageId, "/employees/").concat(employeeId, "/schedules"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@movalib/movalib-commons",
3
- "version": "1.51.0",
3
+ "version": "1.51.1",
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",
@@ -134,6 +134,15 @@ export default class GarageService {
134
134
  });
135
135
  }
136
136
 
137
+ static updateGarageEmployee(garageId: string, employeeId: string, req: any): Promise<APIResponse<string>> {
138
+ return request({
139
+ url: `${API_BASE_URL}/garage/${garageId}/employees/${employeeId}`,
140
+ method: APIMethod.PATCH,
141
+ appType: MovaAppType.GARAGE,
142
+ body: JSON.stringify(req)
143
+ });
144
+ }
145
+
137
146
  static updateGarageEmployeeSchedules(garageId: string, employeeId: string, req: any): Promise<APIResponse<string>> {
138
147
  return request({
139
148
  url: `${API_BASE_URL}/garage/${garageId}/employees/${employeeId}/schedules`,