@movalib/movalib-commons 1.35.0 → 1.36.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.
|
@@ -2,6 +2,7 @@ import { APIResponse } from "../helpers/ApiHelper";
|
|
|
2
2
|
import Employee from "../models/Employee";
|
|
3
3
|
import Garage from "../models/Garage";
|
|
4
4
|
export default class GarageService {
|
|
5
|
+
static updateVehicleGarageEvent(garageId: string, eventId: string, req: any): Promise<APIResponse<string>>;
|
|
5
6
|
static sendGarageMandate(garageId: string): Promise<APIResponse<string>>;
|
|
6
7
|
static getGarageAllData(garageId: string): Promise<APIResponse<Garage>>;
|
|
7
8
|
static createGaragePrestationRequest(garageId: string, req: any): Promise<APIResponse<string>>;
|
|
@@ -5,6 +5,14 @@ var Enums_1 = require("../helpers/Enums");
|
|
|
5
5
|
var GarageService = /** @class */ (function () {
|
|
6
6
|
function GarageService() {
|
|
7
7
|
}
|
|
8
|
+
GarageService.updateVehicleGarageEvent = function (garageId, eventId, req) {
|
|
9
|
+
return (0, ApiHelper_1.request)({
|
|
10
|
+
url: "".concat(ApiHelper_1.API_BASE_URL, "/garage/").concat(garageId, "/event/").concat(eventId, "/vehicle"),
|
|
11
|
+
method: Enums_1.APIMethod.PATCH,
|
|
12
|
+
appType: Enums_1.MovaAppType.GARAGE,
|
|
13
|
+
body: JSON.stringify(req)
|
|
14
|
+
});
|
|
15
|
+
};
|
|
8
16
|
GarageService.sendGarageMandate = function (garageId) {
|
|
9
17
|
return (0, ApiHelper_1.request)({
|
|
10
18
|
url: "".concat(ApiHelper_1.API_BASE_URL, "/garage/").concat(garageId, "/subscription-mandate"),
|
package/package.json
CHANGED
|
@@ -6,6 +6,16 @@ import Subscription from "../models/Subscription";
|
|
|
6
6
|
|
|
7
7
|
export default class GarageService {
|
|
8
8
|
|
|
9
|
+
static updateVehicleGarageEvent(garageId: string, eventId: string, req: any): Promise<APIResponse<string>> {
|
|
10
|
+
|
|
11
|
+
return request({
|
|
12
|
+
url: `${API_BASE_URL}/garage/${garageId}/event/${eventId}/vehicle`,
|
|
13
|
+
method: APIMethod.PATCH,
|
|
14
|
+
appType: MovaAppType.GARAGE,
|
|
15
|
+
body: JSON.stringify(req)
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
|
|
9
19
|
static sendGarageMandate(garageId: string): Promise<APIResponse<string>> {
|
|
10
20
|
|
|
11
21
|
return request({
|