project-booster-vue 8.127.2 → 8.128.2
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/package.json +1 -1
- package/src/components/scenario/scenarii/appointment-qualification-kitchen.json +7 -7
- package/src/services/api/configApi.js +4 -0
- package/src/services/api/configurationsApi.js +5 -1
- package/src/services/api/documentsApi.js +5 -1
- package/src/services/api/estimatesApi.js +5 -1
- package/src/services/api/eventsApi.js +17 -1
- package/src/services/api/inhabitantsApi.js +5 -1
- package/src/services/api/mediaApi.js +5 -1
- package/src/services/api/productsApi.js +5 -1
- package/src/services/api/projectsApi.js +5 -1
- package/src/services/api/scenarioApi.js +23 -0
package/package.json
CHANGED
|
@@ -265,7 +265,7 @@
|
|
|
265
265
|
"code": "HAVE_PLAN",
|
|
266
266
|
"viewModel": {
|
|
267
267
|
"title": "J’ai un plan avec les mesures de la pièce ",
|
|
268
|
-
"text": "
|
|
268
|
+
"text": "Dessin, plan d’architecte, plan d'autre cuisiniste...",
|
|
269
269
|
"image": "https://storage.googleapis.com/project-booster-media/vad/plans/Qualif-RDV-Plan-et-Mesures.png"
|
|
270
270
|
}
|
|
271
271
|
},
|
|
@@ -393,7 +393,7 @@
|
|
|
393
393
|
"code": "REMIND_LATER",
|
|
394
394
|
"viewModel": {
|
|
395
395
|
"title": "Me rappeler plus tard d’ajouter un plan",
|
|
396
|
-
"image": "https://storage.googleapis.com/project-booster-media/
|
|
396
|
+
"image": "https://storage.googleapis.com/project-booster-media/vad/plans/noplan-later.jpg"
|
|
397
397
|
},
|
|
398
398
|
"nextStep": {
|
|
399
399
|
"code": "__END__"
|
|
@@ -438,7 +438,7 @@
|
|
|
438
438
|
"code": "REMIND_LATER",
|
|
439
439
|
"viewModel": {
|
|
440
440
|
"title": "Me rappeler plus tard d’ajouter un plan",
|
|
441
|
-
"image": "https://storage.googleapis.com/project-booster-media/
|
|
441
|
+
"image": "https://storage.googleapis.com/project-booster-media/vad/plans/noplan-later.jpg"
|
|
442
442
|
},
|
|
443
443
|
"nextStep": {
|
|
444
444
|
"code": "__END__"
|
|
@@ -554,7 +554,7 @@
|
|
|
554
554
|
"answersComponent": "PbCard",
|
|
555
555
|
"showMore": {
|
|
556
556
|
"itemsPerPage": 4,
|
|
557
|
-
"label": "Afficher plus
|
|
557
|
+
"label": "Afficher plus de documents"
|
|
558
558
|
},
|
|
559
559
|
"mediaPayload": {
|
|
560
560
|
"viewModel": {
|
|
@@ -670,21 +670,21 @@
|
|
|
670
670
|
"viewModel": {
|
|
671
671
|
"title": "Ex : Une photo avec du recul",
|
|
672
672
|
"text": "Pour une bonne vue d’ensemble",
|
|
673
|
-
"image": "https://storage.googleapis.com/project-booster-media/vad/plans/picture-overview.
|
|
673
|
+
"image": "https://storage.googleapis.com/project-booster-media/vad/plans/picture-overview.jpg"
|
|
674
674
|
}
|
|
675
675
|
},
|
|
676
676
|
"2": {
|
|
677
677
|
"viewModel": {
|
|
678
678
|
"title": "Ex : Les contraintes particulières",
|
|
679
679
|
"text": "A prendre en compte pour le plan",
|
|
680
|
-
"image": "https://storage.googleapis.com/project-booster-media/vad/plans/picture-constraints.
|
|
680
|
+
"image": "https://storage.googleapis.com/project-booster-media/vad/plans/picture-constraints.jpg"
|
|
681
681
|
}
|
|
682
682
|
},
|
|
683
683
|
"3": {
|
|
684
684
|
"viewModel": {
|
|
685
685
|
"title": "Ex : Les ouvertures sur d’autres pièces",
|
|
686
686
|
"text": "Un salon, séjour, salle à manger...",
|
|
687
|
-
"image": "https://storage.googleapis.com/project-booster-media/vad/plans/picture-opening.
|
|
687
|
+
"image": "https://storage.googleapis.com/project-booster-media/vad/plans/picture-opening.jpg"
|
|
688
688
|
}
|
|
689
689
|
}
|
|
690
690
|
}
|
|
@@ -5,6 +5,10 @@ export const clientApi = axios.create({
|
|
|
5
5
|
baseURL: config?.VUE_APP_DEFAULT_BASE_URL ?? '/project-booster/api',
|
|
6
6
|
});
|
|
7
7
|
|
|
8
|
+
if (global.window.config) {
|
|
9
|
+
clientApi.defaults.baseURL = global.window.config.VUE_APP_DEFAULT_BASE_URL;
|
|
10
|
+
}
|
|
11
|
+
|
|
8
12
|
export const updateConfigApiClient = (config) => {
|
|
9
13
|
if (config.apiKey) {
|
|
10
14
|
clientApi.defaults.headers.common['X-ClientApiKey'] = config.apiKey;
|
|
@@ -2,9 +2,13 @@ import axios from 'axios';
|
|
|
2
2
|
import he from 'he';
|
|
3
3
|
|
|
4
4
|
export const clientApi = axios.create({
|
|
5
|
-
baseURL:
|
|
5
|
+
baseURL: '/project-booster/api',
|
|
6
6
|
});
|
|
7
7
|
|
|
8
|
+
if (global.window.config) {
|
|
9
|
+
clientApi.defaults.baseURL = global.window.config.VUE_APP_DEFAULT_BASE_URL;
|
|
10
|
+
}
|
|
11
|
+
|
|
8
12
|
export const updateConfigurationsApiClient = (config) => {
|
|
9
13
|
if (config.apiKey) {
|
|
10
14
|
clientApi.defaults.headers.common['X-ClientApiKey'] = config.apiKey;
|
|
@@ -2,9 +2,13 @@ import axios from 'axios';
|
|
|
2
2
|
import he from 'he';
|
|
3
3
|
|
|
4
4
|
export const clientApi = axios.create({
|
|
5
|
-
baseURL:
|
|
5
|
+
baseURL: '/project-booster/api',
|
|
6
6
|
});
|
|
7
7
|
|
|
8
|
+
if (global.window.config) {
|
|
9
|
+
clientApi.defaults.baseURL = global.window.config.VUE_APP_DEFAULT_BASE_URL;
|
|
10
|
+
}
|
|
11
|
+
|
|
8
12
|
export const updateDocumentsApiClient = (config) => {
|
|
9
13
|
if (config.apiKey) {
|
|
10
14
|
clientApi.defaults.headers.common['X-ClientApiKey'] = config.apiKey;
|
|
@@ -2,9 +2,13 @@ import axios from 'axios';
|
|
|
2
2
|
import he from 'he';
|
|
3
3
|
|
|
4
4
|
export const clientApi = axios.create({
|
|
5
|
-
baseURL:
|
|
5
|
+
baseURL: '/project-booster/api',
|
|
6
6
|
});
|
|
7
7
|
|
|
8
|
+
if (global.window.config) {
|
|
9
|
+
clientApi.defaults.baseURL = global.window.config.VUE_APP_DEFAULT_BASE_URL;
|
|
10
|
+
}
|
|
11
|
+
|
|
8
12
|
export const updateEstimatesApiClient = (config) => {
|
|
9
13
|
if (config.apiKey) {
|
|
10
14
|
clientApi.defaults.headers.common['X-ClientApiKey'] = config.apiKey;
|
|
@@ -2,9 +2,13 @@ import axios from 'axios';
|
|
|
2
2
|
import he from 'he';
|
|
3
3
|
|
|
4
4
|
export const clientApi = axios.create({
|
|
5
|
-
baseURL:
|
|
5
|
+
baseURL: '/project-booster/api',
|
|
6
6
|
});
|
|
7
7
|
|
|
8
|
+
if (global.window.config) {
|
|
9
|
+
clientApi.defaults.baseURL = global.window.config.VUE_APP_DEFAULT_BASE_URL;
|
|
10
|
+
}
|
|
11
|
+
|
|
8
12
|
export const updateEventsApiClient = (config) => {
|
|
9
13
|
if (config.apiKey) {
|
|
10
14
|
clientApi.defaults.headers.common['X-ClientApiKey'] = config.apiKey;
|
|
@@ -14,6 +18,18 @@ export const updateEventsApiClient = (config) => {
|
|
|
14
18
|
}
|
|
15
19
|
};
|
|
16
20
|
|
|
21
|
+
export const buildEventApi = (target) => async (event) => {
|
|
22
|
+
const response = await clientApi.post(`/events/${target}`, event, {
|
|
23
|
+
headers: { 'Content-Type': 'application/json' },
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
return JSON.parse(
|
|
27
|
+
JSON.stringify(response.data).replace(/:"([^"]+)"/g, (match, $1) => {
|
|
28
|
+
return `: "${he.escape($1)}"`;
|
|
29
|
+
}),
|
|
30
|
+
);
|
|
31
|
+
};
|
|
32
|
+
|
|
17
33
|
export const sendAppointmentQualificationEvent = async (event) => {
|
|
18
34
|
const response = await clientApi.post('/events/appointment-qualification-events', event, {
|
|
19
35
|
headers: { 'Content-Type': 'application/json' },
|
|
@@ -2,9 +2,13 @@ import axios from 'axios';
|
|
|
2
2
|
import he from 'he';
|
|
3
3
|
|
|
4
4
|
export const clientApi = axios.create({
|
|
5
|
-
baseURL:
|
|
5
|
+
baseURL: '/project-booster/api',
|
|
6
6
|
});
|
|
7
7
|
|
|
8
|
+
if (global.window.config) {
|
|
9
|
+
clientApi.defaults.baseURL = global.window.config.VUE_APP_DEFAULT_BASE_URL;
|
|
10
|
+
}
|
|
11
|
+
|
|
8
12
|
export const updateInhabitantsApiClient = (config) => {
|
|
9
13
|
if (config.apiKey) {
|
|
10
14
|
clientApi.defaults.headers.common['X-ClientApiKey'] = config.apiKey;
|
|
@@ -2,9 +2,13 @@ import axios from 'axios';
|
|
|
2
2
|
import he from 'he';
|
|
3
3
|
|
|
4
4
|
export const clientApi = axios.create({
|
|
5
|
-
baseURL:
|
|
5
|
+
baseURL: '/project-booster/api',
|
|
6
6
|
});
|
|
7
7
|
|
|
8
|
+
if (global.window.config) {
|
|
9
|
+
clientApi.defaults.baseURL = global.window.config.VUE_APP_DEFAULT_BASE_URL;
|
|
10
|
+
}
|
|
11
|
+
|
|
8
12
|
export const updateMediaApiClient = (config) => {
|
|
9
13
|
if (config.apiKey) {
|
|
10
14
|
clientApi.defaults.headers.common['X-ClientApiKey'] = config.apiKey;
|
|
@@ -2,9 +2,13 @@ import axios from 'axios';
|
|
|
2
2
|
import he from 'he';
|
|
3
3
|
|
|
4
4
|
export const clientApi = axios.create({
|
|
5
|
-
baseURL:
|
|
5
|
+
baseURL: '/project-booster/api',
|
|
6
6
|
});
|
|
7
7
|
|
|
8
|
+
if (global.window.config) {
|
|
9
|
+
clientApi.defaults.baseURL = global.window.config.VUE_APP_DEFAULT_BASE_URL;
|
|
10
|
+
}
|
|
11
|
+
|
|
8
12
|
export const updateProductsApiClient = (config) => {
|
|
9
13
|
if (config.apiKey) {
|
|
10
14
|
const header = config.apiHeader ?? 'X-Gateway-ApiKey';
|
|
@@ -2,9 +2,13 @@ import axios from 'axios';
|
|
|
2
2
|
import he from 'he';
|
|
3
3
|
|
|
4
4
|
export const clientApi = axios.create({
|
|
5
|
-
baseURL:
|
|
5
|
+
baseURL: '/project-booster/api',
|
|
6
6
|
});
|
|
7
7
|
|
|
8
|
+
if (global.window.config) {
|
|
9
|
+
clientApi.defaults.baseURL = global.window.config.VUE_APP_DEFAULT_BASE_URL;
|
|
10
|
+
}
|
|
11
|
+
|
|
8
12
|
export const updateProjectsApiClient = (config) => {
|
|
9
13
|
if (config.apiKey) {
|
|
10
14
|
clientApi.defaults.headers.common['X-ClientApiKey'] = config.apiKey;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import axios from 'axios';
|
|
2
|
+
|
|
3
|
+
export const clientApi = axios.create({
|
|
4
|
+
baseURL: '/project-booster/api',
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
if (global.window.config) {
|
|
8
|
+
clientApi.defaults.baseURL = global.window.config.VUE_APP_DEFAULT_BASE_URL;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const updateScenarioApiClient = (config) => {
|
|
12
|
+
if (config.apiKey) {
|
|
13
|
+
clientApi.defaults.headers.common['X-ClientApiKey'] = config.apiKey;
|
|
14
|
+
}
|
|
15
|
+
if (config.baseUrl) {
|
|
16
|
+
clientApi.defaults.baseURL = config.baseUrl;
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export const getScenarioById = async (id) => {
|
|
21
|
+
const response = await clientApi.get(`/scenarios/${id}`);
|
|
22
|
+
return response.data;
|
|
23
|
+
};
|