@movalib/movalib-commons 1.51.1 → 1.51.2
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.
|
@@ -20,7 +20,7 @@ export default class GarageService {
|
|
|
20
20
|
static createGarageEmployeeAbsence(garageId: string, employeeId: string, req: any): Promise<APIResponse<string>>;
|
|
21
21
|
static updateGarageEmployee(garageId: string, employeeId: string, req: any): Promise<APIResponse<string>>;
|
|
22
22
|
static updateGarageEmployeeSchedules(garageId: string, employeeId: string, req: any): Promise<APIResponse<string>>;
|
|
23
|
-
static deleteGarageEmployee(garageId: string,
|
|
23
|
+
static deleteGarageEmployee(garageId: string, employeeId: string): Promise<APIResponse<string>>;
|
|
24
24
|
static createGarageEmployee(garageId: string, req: any): Promise<APIResponse<string>>;
|
|
25
25
|
static getEmployees(garageId: string): Promise<APIResponse<Employee[]>>;
|
|
26
26
|
static activateGarage(garageId: string): Promise<APIResponse<string>>;
|
|
@@ -142,12 +142,11 @@ var GarageService = /** @class */ (function () {
|
|
|
142
142
|
body: JSON.stringify(req)
|
|
143
143
|
});
|
|
144
144
|
};
|
|
145
|
-
GarageService.deleteGarageEmployee = function (garageId,
|
|
145
|
+
GarageService.deleteGarageEmployee = function (garageId, employeeId) {
|
|
146
146
|
return (0, ApiHelper_1.request)({
|
|
147
|
-
url: "".concat(ApiHelper_1.API_BASE_URL, "/garage/").concat(garageId, "/employees"),
|
|
147
|
+
url: "".concat(ApiHelper_1.API_BASE_URL, "/garage/").concat(garageId, "/employees/").concat(employeeId),
|
|
148
148
|
method: Enums_1.APIMethod.DELETE,
|
|
149
|
-
appType: Enums_1.MovaAppType.GARAGE
|
|
150
|
-
body: JSON.stringify(req)
|
|
149
|
+
appType: Enums_1.MovaAppType.GARAGE
|
|
151
150
|
});
|
|
152
151
|
};
|
|
153
152
|
GarageService.createGarageEmployee = function (garageId, req) {
|
package/package.json
CHANGED
|
@@ -152,12 +152,11 @@ export default class GarageService {
|
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
-
static deleteGarageEmployee(garageId: string,
|
|
155
|
+
static deleteGarageEmployee(garageId: string, employeeId: string): Promise<APIResponse<string>> {
|
|
156
156
|
return request({
|
|
157
|
-
url: `${API_BASE_URL}/garage/${garageId}/employees`,
|
|
157
|
+
url: `${API_BASE_URL}/garage/${garageId}/employees/${employeeId}`,
|
|
158
158
|
method: APIMethod.DELETE,
|
|
159
|
-
appType: MovaAppType.GARAGE
|
|
160
|
-
body: JSON.stringify(req)
|
|
159
|
+
appType: MovaAppType.GARAGE
|
|
161
160
|
});
|
|
162
161
|
}
|
|
163
162
|
|