@movalib/movalib-commons 1.9.0 → 1.10.0

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.
@@ -23,6 +23,6 @@ export default class GarageService {
23
23
  static sendSupplierRequest(garageId: string, eventId: string, req: any): Promise<APIResponse<string>>;
24
24
  static deleteGarageSupplier(garageId: string, supplierId: string): Promise<APIResponse<string>>;
25
25
  static createGarageSupplier(garageId: string, req: any): Promise<APIResponse<string>>;
26
- static updateGarage(garageId: string, formData: FormData): Promise<APIResponse<string>>;
26
+ static updateGarage(garageId: string, req: any): Promise<APIResponse<string>>;
27
27
  static getAdministratedGarages(): Promise<APIResponse<Garage[]>>;
28
28
  }
@@ -166,12 +166,12 @@ var GarageService = /** @class */ (function () {
166
166
  body: JSON.stringify(req)
167
167
  });
168
168
  };
169
- GarageService.updateGarage = function (garageId, formData) {
169
+ GarageService.updateGarage = function (garageId, req) {
170
170
  return (0, ApiHelper_1.request)({
171
171
  url: "".concat(ApiHelper_1.API_BASE_URL, "/garage/").concat(garageId),
172
172
  method: Enums_1.APIMethod.PATCH,
173
173
  appType: Enums_1.MovaAppType.GARAGE,
174
- body: formData
174
+ body: JSON.stringify(req)
175
175
  });
176
176
  };
177
177
  GarageService.getAdministratedGarages = function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@movalib/movalib-commons",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
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",
@@ -191,12 +191,12 @@ export default class GarageService {
191
191
  });
192
192
  }
193
193
 
194
- static updateGarage(garageId: string, formData: FormData): Promise<APIResponse<string>> {
194
+ static updateGarage(garageId: string, req: any): Promise<APIResponse<string>> {
195
195
  return request({
196
196
  url: `${API_BASE_URL}/garage/${garageId}`,
197
197
  method: APIMethod.PATCH,
198
198
  appType: MovaAppType.GARAGE,
199
- body: formData
199
+ body: JSON.stringify(req)
200
200
  });
201
201
  }
202
202