@movalib/movalib-commons 1.68.35 → 1.68.36

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.
@@ -138,7 +138,16 @@ export declare enum PartsApplicationType {
138
138
  FRONT_LEFT = "FTLT",
139
139
  FRONT_RIGHT = "FTRT",
140
140
  REAR_LEFT = "RRLT",
141
- REAR_RIGHT = "RRRT"
141
+ REAR_RIGHT = "RRRT",
142
+ ENG = "ENG",
143
+ TRA = "TRA",
144
+ OIL = "OIL",
145
+ BRK = "BRK",
146
+ COOL = "COOL",
147
+ PS = "PS",
148
+ FUEL = "FUEL",
149
+ TRAOIL = "TRAOIL",
150
+ AC = "AC"
142
151
  }
143
152
  export declare enum APIMethod {
144
153
  GET = "GET",
@@ -157,6 +157,15 @@ var PartsApplicationType;
157
157
  PartsApplicationType["FRONT_RIGHT"] = "FTRT";
158
158
  PartsApplicationType["REAR_LEFT"] = "RRLT";
159
159
  PartsApplicationType["REAR_RIGHT"] = "RRRT";
160
+ PartsApplicationType["ENG"] = "ENG";
161
+ PartsApplicationType["TRA"] = "TRA";
162
+ PartsApplicationType["OIL"] = "OIL";
163
+ PartsApplicationType["BRK"] = "BRK";
164
+ PartsApplicationType["COOL"] = "COOL";
165
+ PartsApplicationType["PS"] = "PS";
166
+ PartsApplicationType["FUEL"] = "FUEL";
167
+ PartsApplicationType["TRAOIL"] = "TRAOIL";
168
+ PartsApplicationType["AC"] = "AC";
160
169
  })(PartsApplicationType || (exports.PartsApplicationType = PartsApplicationType = {}));
161
170
  var APIMethod;
162
171
  (function (APIMethod) {
@@ -21,7 +21,7 @@ export declare const getDayOfWeek: (index: number) => DayOfWeek | undefined;
21
21
  export declare const getFrenchDayLabel: (day: DayOfWeek | undefined) => "Lundi" | "Mardi" | "Mercredi" | "Jeudi" | "Vendredi" | "Samedi" | "Dimanche" | undefined;
22
22
  export declare const flexLeftRow: CSSProperties;
23
23
  export declare const capitalizeFirstLetter: (str: string) => string;
24
- export declare const getApplicationShortLabel: (application: PartsApplicationType | undefined) => "" | "AVG" | "AVD" | "ARG" | "ARD" | "AV" | "AR" | "G" | "D" | "AV + AR" | "G + D";
24
+ export declare const getApplicationShortLabel: (application: PartsApplicationType | undefined) => "" | "AVG" | "AVD" | "ARG" | "ARD" | "AV" | "AR" | "G" | "D" | "AV + AR" | "G + D" | "Liq. frein" | "Moteur" | "Transm." | "HUILE" | "Liq. refroid." | "Direct. assistée" | "Carburant" | "Huile boîte" | "Clim.";
25
25
  export declare const getApplicationSecondaryLabel: (secondaryApplication: SecondaryPartsApplicationType) => string;
26
26
  export declare const flexEnd: CSSProperties;
27
27
  export declare const flexCenter: CSSProperties;
@@ -259,6 +259,24 @@ var getApplicationShortLabel = function (application) {
259
259
  return "ARG";
260
260
  case Enums_1.PartsApplicationType.REAR_RIGHT:
261
261
  return "ARD";
262
+ case Enums_1.PartsApplicationType.BRK:
263
+ return "Liq. frein";
264
+ case Enums_1.PartsApplicationType.ENG:
265
+ return "Moteur";
266
+ case Enums_1.PartsApplicationType.TRA:
267
+ return "Transm.";
268
+ case Enums_1.PartsApplicationType.OIL:
269
+ return "HUILE";
270
+ case Enums_1.PartsApplicationType.COOL:
271
+ return "Liq. refroid.";
272
+ case Enums_1.PartsApplicationType.PS:
273
+ return "Direct. assistée";
274
+ case Enums_1.PartsApplicationType.FUEL:
275
+ return "Carburant";
276
+ case Enums_1.PartsApplicationType.TRAOIL:
277
+ return "Huile boîte";
278
+ case Enums_1.PartsApplicationType.AC:
279
+ return "Clim.";
262
280
  }
263
281
  }
264
282
  return "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@movalib/movalib-commons",
3
- "version": "1.68.35",
3
+ "version": "1.68.36",
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",
@@ -151,6 +151,15 @@ export enum PartsApplicationType {
151
151
  FRONT_RIGHT = "FTRT",
152
152
  REAR_LEFT = "RRLT",
153
153
  REAR_RIGHT = "RRRT",
154
+ ENG = "ENG",
155
+ TRA = "TRA",
156
+ OIL = "OIL",
157
+ BRK = "BRK",
158
+ COOL= "COOL",
159
+ PS = "PS",
160
+ FUEL = "FUEL",
161
+ TRAOIL = "TRAOIL",
162
+ AC = "AC"
154
163
  }
155
164
 
156
165
  export enum APIMethod {
@@ -1,15 +1,10 @@
1
1
  import parsePhoneNumberFromString from "libphonenumber-js/max";
2
- import { CSSProperties } from "react";
2
+ import {CSSProperties} from "react";
3
3
  import Operation from "../models/Operation";
4
4
  import Schedule from "../models/Schedule";
5
5
  import VehicleTire from "../models/VehicleTire";
6
- import {
7
- DayOfWeek,
8
- PartsApplicationType,
9
- SecondaryPartsApplicationType,
10
- VehiclePlateFormat,
11
- } from "./Enums";
12
- import { MovaFormField, MovaInterval } from "./Types";
6
+ import {DayOfWeek, PartsApplicationType, SecondaryPartsApplicationType, VehiclePlateFormat,} from "./Enums";
7
+ import {MovaFormField, MovaInterval} from "./Types";
13
8
 
14
9
  export const getApplicationsShortLabels = (
15
10
  applications: PartsApplicationType[] | undefined
@@ -279,6 +274,24 @@ export const getApplicationShortLabel = (
279
274
  return "ARG";
280
275
  case PartsApplicationType.REAR_RIGHT:
281
276
  return "ARD";
277
+ case PartsApplicationType.BRK:
278
+ return "Liq. frein";
279
+ case PartsApplicationType.ENG:
280
+ return "Moteur" ;
281
+ case PartsApplicationType.TRA:
282
+ return "Transm.";
283
+ case PartsApplicationType.OIL:
284
+ return "HUILE";
285
+ case PartsApplicationType.COOL:
286
+ return "Liq. refroid.";
287
+ case PartsApplicationType.PS:
288
+ return "Direct. assistée";
289
+ case PartsApplicationType.FUEL:
290
+ return "Carburant";
291
+ case PartsApplicationType.TRAOIL:
292
+ return "Huile boîte";
293
+ case PartsApplicationType.AC:
294
+ return "Clim.";
282
295
  }
283
296
  }
284
297
  return "";