@movalib/movalib-commons 1.55.8 → 1.56.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.
|
@@ -3,6 +3,7 @@ import Employee from "../models/Employee";
|
|
|
3
3
|
import Garage from "../models/Garage";
|
|
4
4
|
import { AddCustomerVehicleParams, DeleteCustomerVehicleParams } from "./GarageService.types";
|
|
5
5
|
export default class GarageService {
|
|
6
|
+
static setOrderedEvent(garageId: string, eventId: string, req: any): Promise<APIResponse<string>>;
|
|
6
7
|
static deleteEventEmployee(garageId: string, eventId: string): Promise<APIResponse<string>>;
|
|
7
8
|
static updateEventEmployee(garageId: string, eventId: string, employeeId: string): Promise<APIResponse<string>>;
|
|
8
9
|
static updateVehicleGarageEvent(garageId: string, eventId: string, req: any): Promise<APIResponse<string>>;
|
|
@@ -16,6 +16,14 @@ var Enums_1 = require("../helpers/Enums");
|
|
|
16
16
|
var GarageService = /** @class */ (function () {
|
|
17
17
|
function GarageService() {
|
|
18
18
|
}
|
|
19
|
+
GarageService.setOrderedEvent = function (garageId, eventId, req) {
|
|
20
|
+
return (0, ApiHelper_1.request)({
|
|
21
|
+
url: "".concat(ApiHelper_1.API_BASE_URL, "/garage/").concat(garageId, "/events/").concat(eventId, "/ordered"),
|
|
22
|
+
method: Enums_1.APIMethod.POST,
|
|
23
|
+
appType: Enums_1.MovaAppType.GARAGE,
|
|
24
|
+
body: JSON.stringify(req)
|
|
25
|
+
});
|
|
26
|
+
};
|
|
19
27
|
GarageService.deleteEventEmployee = function (garageId, eventId) {
|
|
20
28
|
return (0, ApiHelper_1.request)({
|
|
21
29
|
url: "".concat(ApiHelper_1.API_BASE_URL, "/garage/").concat(garageId, "/event/").concat(eventId, "/employees"),
|
package/package.json
CHANGED
|
@@ -6,6 +6,15 @@ import {AddCustomerVehicleParams, DeleteCustomerVehicleParams} from "./GarageSer
|
|
|
6
6
|
|
|
7
7
|
export default class GarageService {
|
|
8
8
|
|
|
9
|
+
static setOrderedEvent(garageId: string, eventId: string, req: any): Promise<APIResponse<string>> {
|
|
10
|
+
return request({
|
|
11
|
+
url: `${API_BASE_URL}/garage/${garageId}/events/${eventId}/ordered`,
|
|
12
|
+
method: APIMethod.POST,
|
|
13
|
+
appType: MovaAppType.GARAGE,
|
|
14
|
+
body: JSON.stringify(req)
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
|
|
9
18
|
static deleteEventEmployee(garageId: string, eventId: string): Promise<APIResponse<string>> {
|
|
10
19
|
return request({
|
|
11
20
|
url: `${API_BASE_URL}/garage/${garageId}/event/${eventId}/employees`,
|