@movalib/movalib-commons 1.1.85 → 1.1.87

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.
package/devIndex.tsx CHANGED
@@ -73,7 +73,8 @@ const App = () => {
73
73
 
74
74
  const getQRCodeData = ():string => {
75
75
  // On renvoie les données pour le QR Code, l'url change selon l'environnement (variables d'environnement)
76
- return `https://app.movalib.com/#/garage/2?redirect=garage`;
76
+ //return `https://app.movalib.com/#/garage/2?redirect=garage`;
77
+ return `https://app.movalib.com/#/garage/4`;
77
78
  }
78
79
 
79
80
  const handleScheduleChange = (schedule: DaySchedule[]) => {
package/dist/devIndex.js CHANGED
@@ -99,7 +99,8 @@ var App = function () {
99
99
  };
100
100
  var getQRCodeData = function () {
101
101
  // On renvoie les données pour le QR Code, l'url change selon l'environnement (variables d'environnement)
102
- return "https://app.movalib.com/#/garage/2?redirect=garage";
102
+ //return `https://app.movalib.com/#/garage/2?redirect=garage`;
103
+ return "https://app.movalib.com/#/garage/4";
103
104
  };
104
105
  var handleScheduleChange = function (schedule) {
105
106
  if (schedule) {
@@ -109,18 +109,23 @@ var PLVBaseLine = {
109
109
  justifyContent: 'left',
110
110
  alignItems: 'center',
111
111
  fontFamily: 'Caveat',
112
+ lineHeight: 2.5,
112
113
  fontWeight: 700,
113
- transform: 'rotate(-10deg)',
114
- fontSize: '30px',
114
+ marginTop: 20,
115
+ paddingLeft: 0,
116
+ //transform: 'rotate(-10deg)',
117
+ fontSize: '27px',
115
118
  };
116
119
  var PLVBaseLineA3 = {
117
120
  display: 'flex',
118
121
  justifyContent: 'left',
119
122
  alignItems: 'center',
120
123
  fontFamily: 'Caveat',
124
+ lineHeight: 2.5,
121
125
  fontWeight: 700,
122
- transform: 'rotate(-10deg)',
123
- fontSize: '40px',
126
+ marginTop: 20,
127
+ //transform: 'rotate(-10deg)',
128
+ fontSize: '38px',
124
129
  };
125
130
  var PVLFooterText = {
126
131
  fontFamily: 'Montserrat, sans-serif',
@@ -150,7 +155,7 @@ var PLVComponent = /** @class */ (function (_super) {
150
155
  this.props.printSize === PrintSize.A3 ? '297mm' : '0mm',
151
156
  height: this.props.printSize === PrintSize.A4 ? '297mm' :
152
157
  this.props.printSize === PrintSize.A3 ? '420mm' : '0mm',
153
- } }, { children: (0, jsx_runtime_1.jsxs)(material_1.Grid, __assign({ container: true }, { children: [(0, jsx_runtime_1.jsx)(material_1.Grid, __assign({ item: true, xs: 12, style: PLVHeaderLogo, sx: { m: 2, mt: 6 } }, { children: (0, jsx_runtime_1.jsx)("img", { src: logo_large_png_1.default, style: PLVHeaderLogo }) })), (0, jsx_runtime_1.jsxs)(material_1.Grid, __assign({ item: true, xs: 12, sx: { ml: 6, mt: 4 } }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ style: this.props.printSize === PrintSize.A3 ? PLVTitleA3 : PLVTitle }, { children: (0, jsx_runtime_1.jsx)("span", __assign({ className: 'highlight' }, { children: "Dans ce garage" })) })), (0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ style: this.props.printSize === PrintSize.A3 ? PLVTitleA3 : PLVTitle }, { children: (0, jsx_runtime_1.jsx)("span", __assign({ className: 'highlight' }, { children: " prenez rendez-vous " })) })), (0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ style: this.props.printSize === PrintSize.A3 ? PLVTitleA3 : PLVTitle }, { children: (0, jsx_runtime_1.jsx)("span", __assign({ className: 'highlight' }, { children: " en un clic. " })) }))] })), (0, jsx_runtime_1.jsxs)(material_1.Grid, __assign({ item: true, xs: 12, sx: { ml: 6, mt: 4 } }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ style: this.props.printSize === PrintSize.A3 ? PLVTitleA3 : PLVTitle }, { children: (0, jsx_runtime_1.jsx)("span", __assign({ className: 'not-highlight' }, { children: " Votre entretien " })) })), (0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ style: this.props.printSize === PrintSize.A3 ? PLVTitleA3 : PLVTitle }, { children: (0, jsx_runtime_1.jsx)("span", __assign({ className: 'not-highlight' }, { children: " auto ne sera plus " })) })), (0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ style: this.props.printSize === PrintSize.A3 ? PLVTitleA3 : PLVTitle }, { children: (0, jsx_runtime_1.jsx)("span", __assign({ className: 'not-highlight' }, { children: " un casse-t\u00EAte ! " })) }))] })), (0, jsx_runtime_1.jsx)(material_1.Grid, __assign({ item: true, xs: 7, sx: { pl: 8, mt: this.props.printSize === PrintSize.A3 ? 11 : 7 }, style: PLVQRCode }, { children: (0, jsx_runtime_1.jsx)(QRCode_1.default, { data: this.props.url, size: this.props.printSize === PrintSize.A4 ? 350 : 500 }) })), (0, jsx_runtime_1.jsx)(material_1.Grid, __assign({ item: true, xs: 5, style: PLVBaseLine }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ style: this.props.printSize === PrintSize.A3 ? PLVBaseLineA3 : PLVBaseLine }, { children: "En plus l'appli est gratuite !" })) })), (0, jsx_runtime_1.jsxs)(material_1.Grid, __assign({ item: true, xs: 12, sx: { mt: 3 }, style: PLVFooterLogo }, { children: [(0, jsx_runtime_1.jsx)("span", __assign({ style: this.props.printSize === PrintSize.A3 ? PVLFooterTextA3 : PVLFooterText }, { children: "WWW.MOVALIB.COM" })), (0, jsx_runtime_1.jsx)("img", { src: leafs_large_png_1.default, style: PLVFooterLogo })] }))] })) })));
158
+ } }, { children: (0, jsx_runtime_1.jsxs)(material_1.Grid, __assign({ container: true }, { children: [(0, jsx_runtime_1.jsx)(material_1.Grid, __assign({ item: true, xs: 12, style: PLVHeaderLogo, sx: { m: 2, mt: 6, mb: 4 } }, { children: (0, jsx_runtime_1.jsx)("img", { src: logo_large_png_1.default, style: PLVHeaderLogo }) })), (0, jsx_runtime_1.jsxs)(material_1.Grid, __assign({ item: true, xs: 12, sx: { ml: 6, mt: 4 } }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ style: this.props.printSize === PrintSize.A3 ? PLVTitleA3 : PLVTitle }, { children: (0, jsx_runtime_1.jsx)("span", __assign({ className: 'highlight' }, { children: "Prenez rendez-vous " })) })), (0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ style: this.props.printSize === PrintSize.A3 ? PLVTitleA3 : PLVTitle }, { children: (0, jsx_runtime_1.jsx)("span", __assign({ className: 'highlight' }, { children: " en un clic ! " })) }))] })), (0, jsx_runtime_1.jsxs)(material_1.Grid, __assign({ item: true, xs: 12, sx: { ml: 6, mt: 4 } }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ style: this.props.printSize === PrintSize.A3 ? PLVTitleA3 : PLVTitle }, { children: (0, jsx_runtime_1.jsx)("span", __assign({ className: 'not-highlight' }, { children: " Votre entretien " })) })), (0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ style: this.props.printSize === PrintSize.A3 ? PLVTitleA3 : PLVTitle }, { children: (0, jsx_runtime_1.jsx)("span", __assign({ className: 'not-highlight' }, { children: " auto ne sera plus " })) })), (0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ style: this.props.printSize === PrintSize.A3 ? PLVTitleA3 : PLVTitle }, { children: (0, jsx_runtime_1.jsx)("span", __assign({ className: 'not-highlight' }, { children: " un casse-t\u00EAte. " })) }))] })), (0, jsx_runtime_1.jsx)(material_1.Grid, __assign({ item: true, xs: 6, sx: { pl: 0, mt: this.props.printSize === PrintSize.A3 ? 11 : 7 }, style: PLVQRCode }, { children: (0, jsx_runtime_1.jsx)(QRCode_1.default, { data: this.props.url, size: this.props.printSize === PrintSize.A4 ? 300 : 450 }) })), (0, jsx_runtime_1.jsx)(material_1.Grid, __assign({ item: true, xs: 6, style: PLVBaseLine }, { children: (0, jsx_runtime_1.jsxs)(material_1.Typography, __assign({ style: this.props.printSize === PrintSize.A3 ? PLVBaseLineA3 : PLVBaseLine }, { children: ["Vos rendez-vous et factures en un clic", (0, jsx_runtime_1.jsx)("br", {}), "Alertes et suivi en temps r\u00E9\u00E9l", (0, jsx_runtime_1.jsx)("br", {}), "Regroupez 100% de vos documents", (0, jsx_runtime_1.jsx)("br", {}), "Movalib vous r\u00E9concilie avec votre auto !"] })) })), (0, jsx_runtime_1.jsxs)(material_1.Grid, __assign({ item: true, xs: 12, sx: { mt: this.props.printSize === PrintSize.A3 ? 12 : 8 }, style: PLVFooterLogo }, { children: [(0, jsx_runtime_1.jsx)("span", __assign({ style: this.props.printSize === PrintSize.A3 ? PVLFooterTextA3 : PVLFooterText }, { children: "WWW.MOVALIB.COM" })), (0, jsx_runtime_1.jsx)("img", { src: leafs_large_png_1.default, style: PLVFooterLogo })] }))] })) })));
154
159
  };
155
160
  return PLVComponent;
156
161
  }(react_1.default.Component));
@@ -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 getEmployeeDetails(garageId: string, employeeId: string): Promise<APIResponse<Employee>>;
5
6
  static updateGaragePrestation(garageId: string, prestationId: string, req: any): Promise<APIResponse<string>>;
6
7
  static deleteGarageEmployeePrestationType(garageId: string, employeeId: string, req: any): Promise<APIResponse<string>>;
7
8
  static createGarageEmployeePrestationType(garageId: string, employeeId: string, req: any): 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.getEmployeeDetails = function (garageId, employeeId) {
9
+ return (0, ApiHelper_1.request)({
10
+ url: "".concat(ApiHelper_1.API_BASE_URL, "/garage/").concat(garageId, "/employees/").concat(employeeId),
11
+ method: Enums_1.APIMethod.GET,
12
+ appType: Enums_1.MovaAppType.GARAGE
13
+ });
14
+ };
8
15
  GarageService.updateGaragePrestation = function (garageId, prestationId, req) {
9
16
  return (0, ApiHelper_1.request)({
10
17
  url: "".concat(ApiHelper_1.API_BASE_URL, "/garage/").concat(garageId, "/prestations/").concat(prestationId),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@movalib/movalib-commons",
3
- "version": "1.1.85",
3
+ "version": "1.1.87",
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",
package/src/GaragePLV.tsx CHANGED
@@ -65,9 +65,12 @@ const PLVBaseLine:CSSProperties = {
65
65
  justifyContent: 'left',
66
66
  alignItems: 'center',
67
67
  fontFamily: 'Caveat',
68
+ lineHeight: 2.5,
68
69
  fontWeight: 700,
69
- transform: 'rotate(-10deg)',
70
- fontSize: '30px',
70
+ marginTop: 20,
71
+ paddingLeft: 0,
72
+ //transform: 'rotate(-10deg)',
73
+ fontSize: '27px',
71
74
  }
72
75
 
73
76
  const PLVBaseLineA3:CSSProperties = {
@@ -75,9 +78,11 @@ const PLVBaseLineA3:CSSProperties = {
75
78
  justifyContent: 'left',
76
79
  alignItems: 'center',
77
80
  fontFamily: 'Caveat',
81
+ lineHeight: 2.5,
78
82
  fontWeight: 700,
79
- transform: 'rotate(-10deg)',
80
- fontSize: '40px',
83
+ marginTop: 20,
84
+ //transform: 'rotate(-10deg)',
85
+ fontSize: '38px',
81
86
  }
82
87
 
83
88
  const PVLFooterText:CSSProperties = {
@@ -112,19 +117,16 @@ class PLVComponent extends React.Component<GaragePLVProps> {
112
117
 
113
118
  <Grid container>
114
119
 
115
- <Grid item xs={12} style={PLVHeaderLogo} sx={{ m: 2, mt: 6}}>
120
+ <Grid item xs={12} style={PLVHeaderLogo} sx={{ m: 2, mt: 6, mb: 4 }}>
116
121
  <img src={LogoLarge} style={PLVHeaderLogo}/>
117
122
  </Grid>
118
123
 
119
124
  <Grid item xs={12} sx={{ ml: 6, mt: 4 }}>
120
125
  <Typography style={this.props.printSize === PrintSize.A3 ? PLVTitleA3 : PLVTitle} >
121
- <span className='highlight'>Dans ce garage</span>
126
+ <span className='highlight'>Prenez rendez-vous </span>
122
127
  </Typography>
123
128
  <Typography style={this.props.printSize === PrintSize.A3 ? PLVTitleA3 : PLVTitle}>
124
- <span className='highlight'> prenez rendez-vous </span>
125
- </Typography>
126
- <Typography style={this.props.printSize === PrintSize.A3 ? PLVTitleA3 : PLVTitle}>
127
- <span className='highlight'> en un clic. </span>
129
+ <span className='highlight'> en un clic ! </span>
128
130
  </Typography>
129
131
  </Grid>
130
132
 
@@ -136,21 +138,24 @@ class PLVComponent extends React.Component<GaragePLVProps> {
136
138
  <span className='not-highlight'> auto ne sera plus </span>
137
139
  </Typography>
138
140
  <Typography style={this.props.printSize === PrintSize.A3 ? PLVTitleA3 : PLVTitle}>
139
- <span className='not-highlight'> un casse-tête ! </span>
141
+ <span className='not-highlight'> un casse-tête. </span>
140
142
  </Typography>
141
143
  </Grid>
142
144
 
143
- <Grid item xs={7} sx={{ pl: 8, mt: this.props.printSize === PrintSize.A3 ? 11 : 7 }} style={PLVQRCode}>
144
- <QRCode data={this.props.url} size={this.props.printSize === PrintSize.A4 ? 350 : 500} />
145
+ <Grid item xs={6} sx={{ pl: 0, mt: this.props.printSize === PrintSize.A3 ? 11 : 7 }} style={PLVQRCode}>
146
+ <QRCode data={this.props.url} size={this.props.printSize === PrintSize.A4 ? 300 : 450} />
145
147
  </Grid>
146
148
 
147
- <Grid item xs={5} style={PLVBaseLine}>
149
+ <Grid item xs={6} style={PLVBaseLine}>
148
150
  <Typography style={this.props.printSize === PrintSize.A3 ? PLVBaseLineA3 : PLVBaseLine }>
149
- En plus l'appli est gratuite !
151
+ Vos rendez-vous et factures en un clic<br />
152
+ Alertes et suivi en temps réél<br />
153
+ Regroupez 100% de vos documents<br />
154
+ Movalib vous réconcilie avec votre auto !
150
155
  </Typography>
151
156
  </Grid>
152
157
 
153
- <Grid item xs={12} sx={{ mt: 3 }} style={PLVFooterLogo}>
158
+ <Grid item xs={12} sx={{ mt: this.props.printSize === PrintSize.A3 ? 12 : 8 }} style={PLVFooterLogo}>
154
159
  <span style={this.props.printSize === PrintSize.A3 ? PVLFooterTextA3 : PVLFooterText}>WWW.MOVALIB.COM</span>
155
160
  <img src={LeafsLarge} style={PLVFooterLogo}/>
156
161
  </Grid>
@@ -5,6 +5,15 @@ import Garage from "../models/Garage";
5
5
 
6
6
  export default class GarageService {
7
7
 
8
+ static getEmployeeDetails(garageId: string, employeeId: string): Promise<APIResponse<Employee>> {
9
+ return request({
10
+ url: `${API_BASE_URL}/garage/${garageId}/employees/${employeeId}`,
11
+ method: APIMethod.GET,
12
+ appType: MovaAppType.GARAGE
13
+ });
14
+ }
15
+
16
+
8
17
  static updateGaragePrestation(garageId: string, prestationId: string, req: any): Promise<APIResponse<string>> {
9
18
  return request({
10
19
  url: `${API_BASE_URL}/garage/${garageId}/prestations/${prestationId}`,