@movalib/movalib-commons 1.59.4 → 1.59.5

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.
@@ -8,6 +8,7 @@ export default class GarageService {
8
8
  static deleteEventEmployee(garageId: string, eventId: string): Promise<APIResponse<string>>;
9
9
  static updateEventEmployee(garageId: string, eventId: string, employeeId: string): Promise<APIResponse<string>>;
10
10
  static updateColorPrestationCategory(garageId: string, categoryCode: string, color: string): Promise<APIResponse<string>>;
11
+ static updateGarageEventColor(garageId: string, eventId: string, color: string): Promise<APIResponse<string>>;
11
12
  static updateVehicleGarageEvent(garageId: string, eventId: string, req: any): Promise<APIResponse<string>>;
12
13
  static sendGarageMandate(garageId: string): Promise<APIResponse<string>>;
13
14
  static getGarageAllData(garageId: string): Promise<APIResponse<Garage>>;
@@ -53,6 +53,14 @@ var GarageService = /** @class */ (function () {
53
53
  body: JSON.stringify({ color: color })
54
54
  });
55
55
  };
56
+ GarageService.updateGarageEventColor = function (garageId, eventId, color) {
57
+ return (0, ApiHelper_1.request)({
58
+ url: "".concat(ApiHelper_1.API_BASE_URL, "/garage/").concat(garageId, "/event/").concat(eventId, "/color"),
59
+ method: Enums_1.APIMethod.PATCH,
60
+ appType: Enums_1.MovaAppType.GARAGE,
61
+ body: JSON.stringify({ color: color })
62
+ });
63
+ };
56
64
  GarageService.updateVehicleGarageEvent = function (garageId, eventId, req) {
57
65
  return (0, ApiHelper_1.request)({
58
66
  url: "".concat(ApiHelper_1.API_BASE_URL, "/garage/").concat(garageId, "/event/").concat(eventId, "/vehicle"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@movalib/movalib-commons",
3
- "version": "1.59.4",
3
+ "version": "1.59.5",
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",
@@ -47,7 +47,14 @@ export default class GarageService {
47
47
  body: JSON.stringify({ color })
48
48
  });
49
49
  }
50
-
50
+ static updateGarageEventColor(garageId: string, eventId: string, color: string): Promise<APIResponse<string>> {
51
+ return request({
52
+ url: `${API_BASE_URL}/garage/${garageId}/event/${eventId}/color`,
53
+ method: APIMethod.PATCH,
54
+ appType: MovaAppType.GARAGE,
55
+ body: JSON.stringify({ color })
56
+ });
57
+ }
51
58
  static updateVehicleGarageEvent(garageId: string, eventId: string, req: any): Promise<APIResponse<string>> {
52
59
 
53
60
  return request({