@movalib/movalib-commons 1.59.35 → 1.59.37

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.
@@ -65,7 +65,7 @@ var GarageService = /** @class */ (function () {
65
65
  url: "".concat(ApiHelper_1.API_BASE_URL, "/garage/").concat(garageId, "/prestation-category/").concat(categoryCode, "/color"),
66
66
  method: Enums_1.APIMethod.PATCH,
67
67
  appType: Enums_1.MovaAppType.GARAGE,
68
- body: JSON.stringify({ color: color })
68
+ body: JSON.stringify({ color: color }),
69
69
  });
70
70
  };
71
71
  GarageService.updateGarageEventColor = function (garageId, eventId, color) {
@@ -73,7 +73,7 @@ var GarageService = /** @class */ (function () {
73
73
  url: "".concat(ApiHelper_1.API_BASE_URL, "/garage/").concat(garageId, "/event/").concat(eventId, "/color"),
74
74
  method: Enums_1.APIMethod.PATCH,
75
75
  appType: Enums_1.MovaAppType.GARAGE,
76
- body: JSON.stringify({ color: color })
76
+ body: JSON.stringify({ color: color }),
77
77
  });
78
78
  };
79
79
  GarageService.updateVehicleGarageEvent = function (garageId, eventId, req) {
@@ -81,7 +81,7 @@ var GarageService = /** @class */ (function () {
81
81
  url: "".concat(ApiHelper_1.API_BASE_URL, "/garage/").concat(garageId, "/event/").concat(eventId, "/vehicle"),
82
82
  method: Enums_1.APIMethod.PATCH,
83
83
  appType: Enums_1.MovaAppType.GARAGE,
84
- body: JSON.stringify(req)
84
+ body: JSON.stringify(req),
85
85
  });
86
86
  };
87
87
  GarageService.uploadEventDocument = function (garageId, eventId, req) {
@@ -89,7 +89,7 @@ var GarageService = /** @class */ (function () {
89
89
  url: "".concat(ApiHelper_1.API_BASE_URL, "/garage/").concat(garageId, "/event/").concat(eventId, "/documents"),
90
90
  method: Enums_1.APIMethod.POST,
91
91
  appType: Enums_1.MovaAppType.GARAGE,
92
- body: req
92
+ body: req,
93
93
  });
94
94
  };
95
95
  GarageService.deleteEventDocument = function (garageId, eventId, docId) {
@@ -294,6 +294,20 @@ var GarageService = /** @class */ (function () {
294
294
  body: JSON.stringify(req),
295
295
  });
296
296
  };
297
+ GarageService.deleteSupplierRequest = function (orderId) {
298
+ return (0, ApiHelper_1.request)({
299
+ url: "".concat(ApiHelper_1.API_BASE_URL, "/order/").concat(orderId),
300
+ method: Enums_1.APIMethod.DELETE,
301
+ appType: Enums_1.MovaAppType.GARAGE,
302
+ });
303
+ };
304
+ GarageService.receiveSupplierRequest = function (orderId) {
305
+ return (0, ApiHelper_1.request)({
306
+ url: "".concat(ApiHelper_1.API_BASE_URL, "/order/").concat(orderId, "/receive"),
307
+ method: Enums_1.APIMethod.PATCH,
308
+ appType: Enums_1.MovaAppType.GARAGE,
309
+ });
310
+ };
297
311
  GarageService.deleteGarageSupplier = function (garageId, supplierId) {
298
312
  return (0, ApiHelper_1.request)({
299
313
  url: "".concat(ApiHelper_1.API_BASE_URL, "/garage/").concat(garageId, "/suppliers/").concat(supplierId),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@movalib/movalib-commons",
3
- "version": "1.59.35",
3
+ "version": "1.59.37",
4
4
  "description": "Bibliothèque d'objets communs à l'ensemble des projets React de Movalib",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",