@movalib/movalib-commons 1.37.0 → 1.39.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.
|
@@ -36,5 +36,6 @@ export default class Garage {
|
|
|
36
36
|
teamManagementActive?: boolean;
|
|
37
37
|
documents?: Document[];
|
|
38
38
|
subscriptions?: Subscription[];
|
|
39
|
+
supportPhoneNumber?: string;
|
|
39
40
|
constructor(id: string, adminId: string, name: string, address: Address, workforce: number, prestations: Prestation[], schedules: Schedule[], contactPhone: string, contactEmail?: string, logo?: string, suppliers?: Supplier[], documents?: Document[], subscriptions?: Subscription[]);
|
|
40
41
|
}
|
|
@@ -31,4 +31,7 @@ export default class GarageService {
|
|
|
31
31
|
static createGarageSupplier(garageId: string, req: any): Promise<APIResponse<string>>;
|
|
32
32
|
static updateGarage(garageId: string, req: any): Promise<APIResponse<string>>;
|
|
33
33
|
static getAdministratedGarages(): Promise<APIResponse<Garage[]>>;
|
|
34
|
+
static sendGarageSupportRequest(garageId: string, req: {
|
|
35
|
+
message: string;
|
|
36
|
+
}): Promise<APIResponse<string>>;
|
|
34
37
|
}
|
|
@@ -226,6 +226,14 @@ var GarageService = /** @class */ (function () {
|
|
|
226
226
|
appType: Enums_1.MovaAppType.GARAGE
|
|
227
227
|
});
|
|
228
228
|
};
|
|
229
|
+
GarageService.sendGarageSupportRequest = function (garageId, req) {
|
|
230
|
+
return (0, ApiHelper_1.request)({
|
|
231
|
+
url: "".concat(ApiHelper_1.API_BASE_URL, "/garage/").concat(garageId, "/support-request"),
|
|
232
|
+
method: Enums_1.APIMethod.POST,
|
|
233
|
+
appType: Enums_1.MovaAppType.GARAGE,
|
|
234
|
+
body: JSON.stringify(req)
|
|
235
|
+
});
|
|
236
|
+
};
|
|
229
237
|
return GarageService;
|
|
230
238
|
}());
|
|
231
239
|
exports.default = GarageService;
|
package/package.json
CHANGED
package/src/models/Garage.ts
CHANGED
|
@@ -38,6 +38,7 @@ export default class Garage {
|
|
|
38
38
|
teamManagementActive?: boolean;
|
|
39
39
|
documents?: Document[];
|
|
40
40
|
subscriptions?: Subscription[];
|
|
41
|
+
supportPhoneNumber?: string;
|
|
41
42
|
|
|
42
43
|
constructor(
|
|
43
44
|
id:string,
|
|
@@ -68,4 +69,4 @@ export default class Garage {
|
|
|
68
69
|
this.documents = documents;
|
|
69
70
|
this.subscriptions = subscriptions;
|
|
70
71
|
}
|
|
71
|
-
}
|
|
72
|
+
}
|
|
@@ -2,7 +2,6 @@ import { APIResponse, API_BASE_URL, request } from "../helpers/ApiHelper";
|
|
|
2
2
|
import { APIMethod, MovaAppType } from "../helpers/Enums";
|
|
3
3
|
import Employee from "../models/Employee";
|
|
4
4
|
import Garage from "../models/Garage";
|
|
5
|
-
import Subscription from "../models/Subscription";
|
|
6
5
|
|
|
7
6
|
export default class GarageService {
|
|
8
7
|
|
|
@@ -262,4 +261,13 @@ export default class GarageService {
|
|
|
262
261
|
});
|
|
263
262
|
}
|
|
264
263
|
|
|
265
|
-
}
|
|
264
|
+
static sendGarageSupportRequest(garageId: string, req: { message: string }): Promise<APIResponse<string>> {
|
|
265
|
+
return request({
|
|
266
|
+
url: `${API_BASE_URL}/garage/${garageId}/support-request`,
|
|
267
|
+
method: APIMethod.POST,
|
|
268
|
+
appType: MovaAppType.GARAGE,
|
|
269
|
+
body: JSON.stringify(req)
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
}
|