@movalib/movalib-commons 1.21.0 → 1.23.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.
@@ -22,6 +22,8 @@ export default class Garage {
22
22
  orderPreference?: OrderPreference;
23
23
  amVehicleDeposit?: Date;
24
24
  pmVehicleDeposit?: Date;
25
+ zonedAmVehicleDeposit?: Date;
26
+ zonedPmVehicleDeposit?: Date;
25
27
  appointmentRequestStart?: Date;
26
28
  slotAlgorithm?: SlotAlgorithm;
27
29
  customerQuoteActive?: boolean;
@@ -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 getGarageAllData(garageId: string): Promise<APIResponse<Garage>>;
5
6
  static createGaragePrestationRequest(garageId: string, req: any): Promise<APIResponse<string>>;
6
7
  static getGarageSettings(garageId: string): Promise<APIResponse<Garage>>;
7
8
  static uploadLogo(garageId: string, formData: FormData): Promise<APIResponse<string>>;
@@ -5,6 +5,13 @@ var Enums_1 = require("../helpers/Enums");
5
5
  var GarageService = /** @class */ (function () {
6
6
  function GarageService() {
7
7
  }
8
+ GarageService.getGarageAllData = function (garageId) {
9
+ return (0, ApiHelper_1.request)({
10
+ url: "".concat(ApiHelper_1.API_BASE_URL, "/garage/").concat(garageId, "/all-data"),
11
+ method: Enums_1.APIMethod.GET,
12
+ appType: Enums_1.MovaAppType.GARAGE
13
+ });
14
+ };
8
15
  GarageService.createGaragePrestationRequest = function (garageId, req) {
9
16
  return (0, ApiHelper_1.request)({
10
17
  url: "".concat(ApiHelper_1.API_BASE_URL, "/garage/").concat(garageId, "/prestations/request"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@movalib/movalib-commons",
3
- "version": "1.21.0",
3
+ "version": "1.23.0",
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",
@@ -24,6 +24,8 @@ export default class Garage {
24
24
  orderPreference?: OrderPreference;
25
25
  amVehicleDeposit?: Date;
26
26
  pmVehicleDeposit?: Date;
27
+ zonedAmVehicleDeposit?: Date;
28
+ zonedPmVehicleDeposit?: Date;
27
29
  appointmentRequestStart?: Date;
28
30
  slotAlgorithm?: SlotAlgorithm;
29
31
  customerQuoteActive?: boolean;
@@ -5,6 +5,14 @@ import Garage from "../models/Garage";
5
5
 
6
6
  export default class GarageService {
7
7
 
8
+ static getGarageAllData(garageId: string): Promise<APIResponse<Garage>> {
9
+ return request({
10
+ url: `${API_BASE_URL}/garage/${garageId}/all-data`,
11
+ method: APIMethod.GET,
12
+ appType: MovaAppType.GARAGE
13
+ });
14
+ }
15
+
8
16
  static createGaragePrestationRequest(garageId: string, req: any): Promise<APIResponse<string>> {
9
17
  return request({
10
18
  url: `${API_BASE_URL}/garage/${garageId}/prestations/request`,