project-booster-vue 10.23.7 → 10.23.8

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "project-booster-vue",
3
- "version": "10.23.7",
3
+ "version": "10.23.8",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -126,7 +126,7 @@ onBeforeMount(() => {
126
126
  if (store.hasModule('products')) {
127
127
  store.dispatch('products/loadProduct', {
128
128
  payload: props.payload.viewModel.defaultProduct,
129
- storeId: metadata && metadata.storeId ? metadata.storeId : '',
129
+ storeId: metadata && metadata.storeId ? metadata.storeId : '032', // default storeId is Lesquin - Lille
130
130
  });
131
131
  }
132
132
  });
@@ -16,14 +16,55 @@ export interface SummaryComponent {
16
16
  }
17
17
 
18
18
  export interface Summary {
19
- subprojectId: string;
20
19
  subprojectTemplateId: string;
21
20
  subprojectTemplateLabel: string;
22
21
  businessUnit: string;
23
- summaryDate: string;
24
- maxPrice: string;
25
- cost: SummaryCost;
26
- components: SummaryComponent[];
22
+ summaryDate: Date;
23
+ cost: Cost;
24
+ components: Component[];
25
+ subprojectAttributes: SubprojectAttributes;
26
+ suggestedTypologies: SuggestedTypology[];
27
+ }
28
+
29
+ interface Component {
30
+ componentId: string;
31
+ title: string;
32
+ details: string;
33
+ cost: Cost;
34
+ lines: Line[];
35
+ }
36
+
37
+ interface Cost {
38
+ min: number;
39
+ max: number;
40
+ currency: string;
41
+ }
42
+
43
+ interface Line {
44
+ text: string;
45
+ cost: Cost;
46
+ }
47
+
48
+ interface SubprojectAttributes {
49
+ age: string;
50
+ equipmentToReplace: string;
51
+ haveHeatedFloor: string;
52
+ housingType: string;
53
+ income: string;
54
+ inhabitantsCount: number;
55
+ location: string;
56
+ mainResidence: string;
57
+ product: Product;
58
+ situation: string;
59
+ surfaceAreaInSquareMeters: number;
60
+ surfaceCategory: string;
61
+ }
62
+
63
+ interface SuggestedTypology {
64
+ domesticSpaceLabel: string;
65
+ domesticSpaceHref: string;
66
+ projectKindHref: string;
67
+ projectTypeHref: string;
27
68
  }
28
69
 
29
70
  export interface Estimate {