@movalib/movalib-commons 1.8.0 → 1.9.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,
|
|
26
|
+
static updateGarage(garageId: string, formData: FormData): 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,
|
|
169
|
+
GarageService.updateGarage = function (garageId, formData) {
|
|
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:
|
|
174
|
+
body: formData
|
|
175
175
|
});
|
|
176
176
|
};
|
|
177
177
|
GarageService.getAdministratedGarages = function () {
|
package/package.json
CHANGED
|
@@ -191,12 +191,12 @@ export default class GarageService {
|
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
-
static updateGarage(garageId: string,
|
|
194
|
+
static updateGarage(garageId: string, formData: FormData): 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:
|
|
199
|
+
body: formData
|
|
200
200
|
});
|
|
201
201
|
}
|
|
202
202
|
|