ecotransac-shared-js 1.2.4 → 1.2.6
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/dist/index.d.mts +12 -3
- package/dist/index.d.ts +12 -3
- package/dist/index.js +140 -0
- package/dist/index.mjs +135 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -789,8 +789,17 @@ declare const LEASE_TRANSFERT_PERMISSIONS: SelectOption<LeaseTransfertPermission
|
|
|
789
789
|
declare const KITCHEN_TYPE: SelectOption<KitchenType>[];
|
|
790
790
|
declare const HEATING_ENERGY: SelectOption<HeatingEnergy>[];
|
|
791
791
|
|
|
792
|
-
type StateType$
|
|
793
|
-
declare const getPropertyState: (property: StateType$
|
|
792
|
+
type StateType$2 = Pick<Property, "isForProfessionalUse" | "propertyType" | "isOccupied" | "isCoOwnership" | "isHousingScheme" | "isBusinessAssetsTransfer" | "isLeaseRightsTransfer" | "isCommercialWallsSale" | "isDpeCompleted" | "isEnergyAuditCompleted" | "leaseEstablishedUnder" | "constructionYear">;
|
|
793
|
+
declare const getPropertyState: (property: StateType$2) => State;
|
|
794
|
+
|
|
795
|
+
declare const renovationPropertyFormFields: Field[];
|
|
796
|
+
declare const renovationProjectFormFields: Field[];
|
|
797
|
+
declare const renovationFormFields: Field[];
|
|
798
|
+
|
|
799
|
+
declare const RENOVATION_TYPES: SelectOption<RenovationType>[];
|
|
800
|
+
|
|
801
|
+
type StateType$1 = Pick<Renovation, "hasDPE">;
|
|
802
|
+
declare const getRenovationState: (renovation: StateType$1) => State;
|
|
794
803
|
|
|
795
804
|
declare const mandateFormFields: Field[];
|
|
796
805
|
|
|
@@ -849,4 +858,4 @@ declare const COUNTRIES: SelectOption<string>[];
|
|
|
849
858
|
|
|
850
859
|
declare const LEGAL_STATUS: SelectOption<LegalStatus>[];
|
|
851
860
|
|
|
852
|
-
export { COMPANY_INFO, CONDITIONS, COUNTRIES, type Condition, ESTATE_CONDITION, EXPOSURES, type Field, GENDER, HEATING_ENERGY, KITCHEN_TYPE, LEASE_ESTABLISHMENT, LEASE_TRANSFERT_PERMISSIONS, LEGAL_NATURE, LEGAL_STATUS, MANDATE_EXCLUSIVITY, MARITAL_STATUS, PRENUP_TYPES, SHARING_CONFIGURATION, STANDINGS, type SelectOption, type State, VIEWS, and, contactFormFields, featuresFormFields, formatAddress, formatAgentLegalData, formatDate, formatMandateNumber, formatNumber, formatPhone, formatPrice, formatReference, formatRegistrationNumber, formatSeconds, getAgencyFees, getContactState, getDisplayedPrice, getFeesPercentage, getIsLowPrice, getLabel, getLowThreshold, getNetPrice, getPropertyState, getPropertyTitle, getValue, mandateFormFields, not, only, or, propertyFields, shouldRender, surfacesFormFields, technicalFormFields };
|
|
861
|
+
export { COMPANY_INFO, CONDITIONS, COUNTRIES, type Condition, ESTATE_CONDITION, EXPOSURES, type Field, GENDER, HEATING_ENERGY, KITCHEN_TYPE, LEASE_ESTABLISHMENT, LEASE_TRANSFERT_PERMISSIONS, LEGAL_NATURE, LEGAL_STATUS, MANDATE_EXCLUSIVITY, MARITAL_STATUS, PRENUP_TYPES, RENOVATION_TYPES, SHARING_CONFIGURATION, STANDINGS, type SelectOption, type State, VIEWS, and, contactFormFields, featuresFormFields, formatAddress, formatAgentLegalData, formatDate, formatMandateNumber, formatNumber, formatPhone, formatPrice, formatReference, formatRegistrationNumber, formatSeconds, getAgencyFees, getContactState, getDisplayedPrice, getFeesPercentage, getIsLowPrice, getLabel, getLowThreshold, getNetPrice, getPropertyState, getPropertyTitle, getRenovationState, getValue, mandateFormFields, not, only, or, propertyFields, renovationFormFields, renovationProjectFormFields, renovationPropertyFormFields, shouldRender, surfacesFormFields, technicalFormFields };
|
package/dist/index.d.ts
CHANGED
|
@@ -789,8 +789,17 @@ declare const LEASE_TRANSFERT_PERMISSIONS: SelectOption<LeaseTransfertPermission
|
|
|
789
789
|
declare const KITCHEN_TYPE: SelectOption<KitchenType>[];
|
|
790
790
|
declare const HEATING_ENERGY: SelectOption<HeatingEnergy>[];
|
|
791
791
|
|
|
792
|
-
type StateType$
|
|
793
|
-
declare const getPropertyState: (property: StateType$
|
|
792
|
+
type StateType$2 = Pick<Property, "isForProfessionalUse" | "propertyType" | "isOccupied" | "isCoOwnership" | "isHousingScheme" | "isBusinessAssetsTransfer" | "isLeaseRightsTransfer" | "isCommercialWallsSale" | "isDpeCompleted" | "isEnergyAuditCompleted" | "leaseEstablishedUnder" | "constructionYear">;
|
|
793
|
+
declare const getPropertyState: (property: StateType$2) => State;
|
|
794
|
+
|
|
795
|
+
declare const renovationPropertyFormFields: Field[];
|
|
796
|
+
declare const renovationProjectFormFields: Field[];
|
|
797
|
+
declare const renovationFormFields: Field[];
|
|
798
|
+
|
|
799
|
+
declare const RENOVATION_TYPES: SelectOption<RenovationType>[];
|
|
800
|
+
|
|
801
|
+
type StateType$1 = Pick<Renovation, "hasDPE">;
|
|
802
|
+
declare const getRenovationState: (renovation: StateType$1) => State;
|
|
794
803
|
|
|
795
804
|
declare const mandateFormFields: Field[];
|
|
796
805
|
|
|
@@ -849,4 +858,4 @@ declare const COUNTRIES: SelectOption<string>[];
|
|
|
849
858
|
|
|
850
859
|
declare const LEGAL_STATUS: SelectOption<LegalStatus>[];
|
|
851
860
|
|
|
852
|
-
export { COMPANY_INFO, CONDITIONS, COUNTRIES, type Condition, ESTATE_CONDITION, EXPOSURES, type Field, GENDER, HEATING_ENERGY, KITCHEN_TYPE, LEASE_ESTABLISHMENT, LEASE_TRANSFERT_PERMISSIONS, LEGAL_NATURE, LEGAL_STATUS, MANDATE_EXCLUSIVITY, MARITAL_STATUS, PRENUP_TYPES, SHARING_CONFIGURATION, STANDINGS, type SelectOption, type State, VIEWS, and, contactFormFields, featuresFormFields, formatAddress, formatAgentLegalData, formatDate, formatMandateNumber, formatNumber, formatPhone, formatPrice, formatReference, formatRegistrationNumber, formatSeconds, getAgencyFees, getContactState, getDisplayedPrice, getFeesPercentage, getIsLowPrice, getLabel, getLowThreshold, getNetPrice, getPropertyState, getPropertyTitle, getValue, mandateFormFields, not, only, or, propertyFields, shouldRender, surfacesFormFields, technicalFormFields };
|
|
861
|
+
export { COMPANY_INFO, CONDITIONS, COUNTRIES, type Condition, ESTATE_CONDITION, EXPOSURES, type Field, GENDER, HEATING_ENERGY, KITCHEN_TYPE, LEASE_ESTABLISHMENT, LEASE_TRANSFERT_PERMISSIONS, LEGAL_NATURE, LEGAL_STATUS, MANDATE_EXCLUSIVITY, MARITAL_STATUS, PRENUP_TYPES, RENOVATION_TYPES, SHARING_CONFIGURATION, STANDINGS, type SelectOption, type State, VIEWS, and, contactFormFields, featuresFormFields, formatAddress, formatAgentLegalData, formatDate, formatMandateNumber, formatNumber, formatPhone, formatPrice, formatReference, formatRegistrationNumber, formatSeconds, getAgencyFees, getContactState, getDisplayedPrice, getFeesPercentage, getIsLowPrice, getLabel, getLowThreshold, getNetPrice, getPropertyState, getPropertyTitle, getRenovationState, getValue, mandateFormFields, not, only, or, propertyFields, renovationFormFields, renovationProjectFormFields, renovationPropertyFormFields, shouldRender, surfacesFormFields, technicalFormFields };
|
package/dist/index.js
CHANGED
|
@@ -45,6 +45,7 @@ __export(src_exports, {
|
|
|
45
45
|
MANDATE_EXCLUSIVITY: () => MANDATE_EXCLUSIVITY,
|
|
46
46
|
MARITAL_STATUS: () => MARITAL_STATUS,
|
|
47
47
|
PRENUP_TYPES: () => PRENUP_TYPES,
|
|
48
|
+
RENOVATION_TYPES: () => RENOVATION_TYPES,
|
|
48
49
|
SHARING_CONFIGURATION: () => SHARING_CONFIGURATION,
|
|
49
50
|
STANDINGS: () => STANDINGS,
|
|
50
51
|
VIEWS: () => VIEWS,
|
|
@@ -71,12 +72,16 @@ __export(src_exports, {
|
|
|
71
72
|
getNetPrice: () => getNetPrice,
|
|
72
73
|
getPropertyState: () => getPropertyState,
|
|
73
74
|
getPropertyTitle: () => getPropertyTitle,
|
|
75
|
+
getRenovationState: () => getRenovationState,
|
|
74
76
|
getValue: () => getValue,
|
|
75
77
|
mandateFormFields: () => mandateFormFields,
|
|
76
78
|
not: () => not,
|
|
77
79
|
only: () => only,
|
|
78
80
|
or: () => or,
|
|
79
81
|
propertyFields: () => propertyFields,
|
|
82
|
+
renovationFormFields: () => renovationFormFields,
|
|
83
|
+
renovationProjectFormFields: () => renovationProjectFormFields,
|
|
84
|
+
renovationPropertyFormFields: () => renovationPropertyFormFields,
|
|
80
85
|
shouldRender: () => shouldRender,
|
|
81
86
|
surfacesFormFields: () => surfacesFormFields,
|
|
82
87
|
technicalFormFields: () => technicalFormFields
|
|
@@ -1278,6 +1283,136 @@ var getPropertyState = (property) => ({
|
|
|
1278
1283
|
isUnderTenYearsOld: property.constructionYear ? (0, import_date_fns2.isAfter)(property.constructionYear, (0, import_date_fns2.sub)(/* @__PURE__ */ new Date(), { years: 10 })) : false
|
|
1279
1284
|
});
|
|
1280
1285
|
|
|
1286
|
+
// src/static/select-options.ts
|
|
1287
|
+
var HEATING_ENERGY2 = [
|
|
1288
|
+
{ label: "Bois", value: "WOOD" },
|
|
1289
|
+
{ label: "\xC9lectricit\xE9", value: "ELECTRICITY" },
|
|
1290
|
+
{ label: "Gaz", value: "GAS" },
|
|
1291
|
+
{ label: "G\xE9othermie", value: "GEOTHERMAL" },
|
|
1292
|
+
{ label: "Fioul", value: "FUEL" },
|
|
1293
|
+
{ label: "Autre", value: "OTHER" }
|
|
1294
|
+
];
|
|
1295
|
+
|
|
1296
|
+
// src/static/renovation/select-options.ts
|
|
1297
|
+
var RENOVATION_TYPES = [
|
|
1298
|
+
{ value: "RENOVATION", label: "R\xE9novation \xE9nerg\xE9tique" },
|
|
1299
|
+
{ value: "UPGRADE", label: "Am\xE9lioration \xE9nerg\xE9tique" }
|
|
1300
|
+
];
|
|
1301
|
+
|
|
1302
|
+
// src/static/renovation/fields.ts
|
|
1303
|
+
var renovationPropertyFormFields = [
|
|
1304
|
+
{
|
|
1305
|
+
name: "renovationType",
|
|
1306
|
+
fieldType: "radio",
|
|
1307
|
+
label: "Prestation",
|
|
1308
|
+
props: { options: RENOVATION_TYPES }
|
|
1309
|
+
},
|
|
1310
|
+
{
|
|
1311
|
+
name: "livingArea",
|
|
1312
|
+
fieldType: "number",
|
|
1313
|
+
label: "Surface habitable du logement",
|
|
1314
|
+
props: { suffix: "m\xB2" }
|
|
1315
|
+
},
|
|
1316
|
+
{
|
|
1317
|
+
name: "roomCount",
|
|
1318
|
+
fieldType: "number",
|
|
1319
|
+
label: "Nombre de pi\xE8ces",
|
|
1320
|
+
props: { suffix: "pi\xE8ce(s)" }
|
|
1321
|
+
},
|
|
1322
|
+
{
|
|
1323
|
+
name: "floorCount",
|
|
1324
|
+
fieldType: "number",
|
|
1325
|
+
label: "Nombre d'\xE9tages",
|
|
1326
|
+
props: { suffix: "\xE9tages" }
|
|
1327
|
+
},
|
|
1328
|
+
{
|
|
1329
|
+
name: "constructionYear",
|
|
1330
|
+
fieldType: "year",
|
|
1331
|
+
label: "Ann\xE9e de construction",
|
|
1332
|
+
requiredFor: []
|
|
1333
|
+
},
|
|
1334
|
+
{
|
|
1335
|
+
name: "hasDPE",
|
|
1336
|
+
fieldType: "radio",
|
|
1337
|
+
label: "DPE r\xE9alis\xE9"
|
|
1338
|
+
},
|
|
1339
|
+
{
|
|
1340
|
+
name: "currentDPEScore",
|
|
1341
|
+
fieldType: "grade",
|
|
1342
|
+
label: "Score \xE9nerg\xE9tique actuel",
|
|
1343
|
+
condition: only("hasDPE")
|
|
1344
|
+
},
|
|
1345
|
+
{
|
|
1346
|
+
name: "propertyType",
|
|
1347
|
+
fieldType: "propertyType",
|
|
1348
|
+
label: "Nature du bien"
|
|
1349
|
+
},
|
|
1350
|
+
{
|
|
1351
|
+
name: "address",
|
|
1352
|
+
fieldType: "address",
|
|
1353
|
+
label: ""
|
|
1354
|
+
}
|
|
1355
|
+
];
|
|
1356
|
+
var renovationProjectFormFields = [
|
|
1357
|
+
{
|
|
1358
|
+
name: "interestedByServices",
|
|
1359
|
+
fieldType: "textarea",
|
|
1360
|
+
label: "Services souhait\xE9s"
|
|
1361
|
+
},
|
|
1362
|
+
{
|
|
1363
|
+
name: "budget",
|
|
1364
|
+
fieldType: "number",
|
|
1365
|
+
label: "Budget disponible pour les travaux",
|
|
1366
|
+
props: { suffix: "\u20AC" }
|
|
1367
|
+
},
|
|
1368
|
+
{
|
|
1369
|
+
name: "constraints",
|
|
1370
|
+
fieldType: "textarea",
|
|
1371
|
+
label: "Contraintes sp\xE9cifiques",
|
|
1372
|
+
props: { tooltip: "Acc\xE8s ou d\xE9lais par exemple" },
|
|
1373
|
+
requiredFor: []
|
|
1374
|
+
},
|
|
1375
|
+
{
|
|
1376
|
+
name: "insulationLevel",
|
|
1377
|
+
fieldType: "select",
|
|
1378
|
+
label: "Niveau d\u2019isolation actuel",
|
|
1379
|
+
requiredFor: []
|
|
1380
|
+
},
|
|
1381
|
+
{
|
|
1382
|
+
name: "heatingEnergy",
|
|
1383
|
+
fieldType: "select",
|
|
1384
|
+
label: "Chauffage principal",
|
|
1385
|
+
props: { options: HEATING_ENERGY2 },
|
|
1386
|
+
requiredFor: []
|
|
1387
|
+
},
|
|
1388
|
+
{
|
|
1389
|
+
name: "annualElectricityConsumption",
|
|
1390
|
+
fieldType: "number",
|
|
1391
|
+
label: "Consommation annuelle d'\xE9lectricit\xE9",
|
|
1392
|
+
props: { suffix: "Kwh" },
|
|
1393
|
+
requiredFor: []
|
|
1394
|
+
},
|
|
1395
|
+
{
|
|
1396
|
+
name: "annualElectricityBill",
|
|
1397
|
+
fieldType: "number",
|
|
1398
|
+
label: "Facture d'\xE9lectricit\xE9 annuelle (hors abonnement)",
|
|
1399
|
+
props: {
|
|
1400
|
+
suffix: "\u20AC/an",
|
|
1401
|
+
tooltip: "Le prix du kWh TTC de l'\xE9lectricit\xE9 est de 0.2516 \u20AC en juillet 2024 en France"
|
|
1402
|
+
},
|
|
1403
|
+
requiredFor: []
|
|
1404
|
+
}
|
|
1405
|
+
];
|
|
1406
|
+
var renovationFormFields = [
|
|
1407
|
+
...renovationPropertyFormFields,
|
|
1408
|
+
...renovationProjectFormFields
|
|
1409
|
+
];
|
|
1410
|
+
|
|
1411
|
+
// src/static/renovation/state.ts
|
|
1412
|
+
var getRenovationState = (renovation) => ({
|
|
1413
|
+
hasDPE: Boolean(renovation.hasDPE)
|
|
1414
|
+
});
|
|
1415
|
+
|
|
1281
1416
|
// src/static/mandate/select-options.ts
|
|
1282
1417
|
var MANDATE_EXCLUSIVITY = [
|
|
1283
1418
|
{ value: "EXCLUSIVE", label: "Mandat exclusif" },
|
|
@@ -1694,6 +1829,7 @@ var COMPANY_INFO = {
|
|
|
1694
1829
|
MANDATE_EXCLUSIVITY,
|
|
1695
1830
|
MARITAL_STATUS,
|
|
1696
1831
|
PRENUP_TYPES,
|
|
1832
|
+
RENOVATION_TYPES,
|
|
1697
1833
|
SHARING_CONFIGURATION,
|
|
1698
1834
|
STANDINGS,
|
|
1699
1835
|
VIEWS,
|
|
@@ -1720,12 +1856,16 @@ var COMPANY_INFO = {
|
|
|
1720
1856
|
getNetPrice,
|
|
1721
1857
|
getPropertyState,
|
|
1722
1858
|
getPropertyTitle,
|
|
1859
|
+
getRenovationState,
|
|
1723
1860
|
getValue,
|
|
1724
1861
|
mandateFormFields,
|
|
1725
1862
|
not,
|
|
1726
1863
|
only,
|
|
1727
1864
|
or,
|
|
1728
1865
|
propertyFields,
|
|
1866
|
+
renovationFormFields,
|
|
1867
|
+
renovationProjectFormFields,
|
|
1868
|
+
renovationPropertyFormFields,
|
|
1729
1869
|
shouldRender,
|
|
1730
1870
|
surfacesFormFields,
|
|
1731
1871
|
technicalFormFields
|
package/dist/index.mjs
CHANGED
|
@@ -1193,6 +1193,136 @@ var getPropertyState = (property) => ({
|
|
|
1193
1193
|
isUnderTenYearsOld: property.constructionYear ? isAfter(property.constructionYear, sub(/* @__PURE__ */ new Date(), { years: 10 })) : false
|
|
1194
1194
|
});
|
|
1195
1195
|
|
|
1196
|
+
// src/static/select-options.ts
|
|
1197
|
+
var HEATING_ENERGY2 = [
|
|
1198
|
+
{ label: "Bois", value: "WOOD" },
|
|
1199
|
+
{ label: "\xC9lectricit\xE9", value: "ELECTRICITY" },
|
|
1200
|
+
{ label: "Gaz", value: "GAS" },
|
|
1201
|
+
{ label: "G\xE9othermie", value: "GEOTHERMAL" },
|
|
1202
|
+
{ label: "Fioul", value: "FUEL" },
|
|
1203
|
+
{ label: "Autre", value: "OTHER" }
|
|
1204
|
+
];
|
|
1205
|
+
|
|
1206
|
+
// src/static/renovation/select-options.ts
|
|
1207
|
+
var RENOVATION_TYPES = [
|
|
1208
|
+
{ value: "RENOVATION", label: "R\xE9novation \xE9nerg\xE9tique" },
|
|
1209
|
+
{ value: "UPGRADE", label: "Am\xE9lioration \xE9nerg\xE9tique" }
|
|
1210
|
+
];
|
|
1211
|
+
|
|
1212
|
+
// src/static/renovation/fields.ts
|
|
1213
|
+
var renovationPropertyFormFields = [
|
|
1214
|
+
{
|
|
1215
|
+
name: "renovationType",
|
|
1216
|
+
fieldType: "radio",
|
|
1217
|
+
label: "Prestation",
|
|
1218
|
+
props: { options: RENOVATION_TYPES }
|
|
1219
|
+
},
|
|
1220
|
+
{
|
|
1221
|
+
name: "livingArea",
|
|
1222
|
+
fieldType: "number",
|
|
1223
|
+
label: "Surface habitable du logement",
|
|
1224
|
+
props: { suffix: "m\xB2" }
|
|
1225
|
+
},
|
|
1226
|
+
{
|
|
1227
|
+
name: "roomCount",
|
|
1228
|
+
fieldType: "number",
|
|
1229
|
+
label: "Nombre de pi\xE8ces",
|
|
1230
|
+
props: { suffix: "pi\xE8ce(s)" }
|
|
1231
|
+
},
|
|
1232
|
+
{
|
|
1233
|
+
name: "floorCount",
|
|
1234
|
+
fieldType: "number",
|
|
1235
|
+
label: "Nombre d'\xE9tages",
|
|
1236
|
+
props: { suffix: "\xE9tages" }
|
|
1237
|
+
},
|
|
1238
|
+
{
|
|
1239
|
+
name: "constructionYear",
|
|
1240
|
+
fieldType: "year",
|
|
1241
|
+
label: "Ann\xE9e de construction",
|
|
1242
|
+
requiredFor: []
|
|
1243
|
+
},
|
|
1244
|
+
{
|
|
1245
|
+
name: "hasDPE",
|
|
1246
|
+
fieldType: "radio",
|
|
1247
|
+
label: "DPE r\xE9alis\xE9"
|
|
1248
|
+
},
|
|
1249
|
+
{
|
|
1250
|
+
name: "currentDPEScore",
|
|
1251
|
+
fieldType: "grade",
|
|
1252
|
+
label: "Score \xE9nerg\xE9tique actuel",
|
|
1253
|
+
condition: only("hasDPE")
|
|
1254
|
+
},
|
|
1255
|
+
{
|
|
1256
|
+
name: "propertyType",
|
|
1257
|
+
fieldType: "propertyType",
|
|
1258
|
+
label: "Nature du bien"
|
|
1259
|
+
},
|
|
1260
|
+
{
|
|
1261
|
+
name: "address",
|
|
1262
|
+
fieldType: "address",
|
|
1263
|
+
label: ""
|
|
1264
|
+
}
|
|
1265
|
+
];
|
|
1266
|
+
var renovationProjectFormFields = [
|
|
1267
|
+
{
|
|
1268
|
+
name: "interestedByServices",
|
|
1269
|
+
fieldType: "textarea",
|
|
1270
|
+
label: "Services souhait\xE9s"
|
|
1271
|
+
},
|
|
1272
|
+
{
|
|
1273
|
+
name: "budget",
|
|
1274
|
+
fieldType: "number",
|
|
1275
|
+
label: "Budget disponible pour les travaux",
|
|
1276
|
+
props: { suffix: "\u20AC" }
|
|
1277
|
+
},
|
|
1278
|
+
{
|
|
1279
|
+
name: "constraints",
|
|
1280
|
+
fieldType: "textarea",
|
|
1281
|
+
label: "Contraintes sp\xE9cifiques",
|
|
1282
|
+
props: { tooltip: "Acc\xE8s ou d\xE9lais par exemple" },
|
|
1283
|
+
requiredFor: []
|
|
1284
|
+
},
|
|
1285
|
+
{
|
|
1286
|
+
name: "insulationLevel",
|
|
1287
|
+
fieldType: "select",
|
|
1288
|
+
label: "Niveau d\u2019isolation actuel",
|
|
1289
|
+
requiredFor: []
|
|
1290
|
+
},
|
|
1291
|
+
{
|
|
1292
|
+
name: "heatingEnergy",
|
|
1293
|
+
fieldType: "select",
|
|
1294
|
+
label: "Chauffage principal",
|
|
1295
|
+
props: { options: HEATING_ENERGY2 },
|
|
1296
|
+
requiredFor: []
|
|
1297
|
+
},
|
|
1298
|
+
{
|
|
1299
|
+
name: "annualElectricityConsumption",
|
|
1300
|
+
fieldType: "number",
|
|
1301
|
+
label: "Consommation annuelle d'\xE9lectricit\xE9",
|
|
1302
|
+
props: { suffix: "Kwh" },
|
|
1303
|
+
requiredFor: []
|
|
1304
|
+
},
|
|
1305
|
+
{
|
|
1306
|
+
name: "annualElectricityBill",
|
|
1307
|
+
fieldType: "number",
|
|
1308
|
+
label: "Facture d'\xE9lectricit\xE9 annuelle (hors abonnement)",
|
|
1309
|
+
props: {
|
|
1310
|
+
suffix: "\u20AC/an",
|
|
1311
|
+
tooltip: "Le prix du kWh TTC de l'\xE9lectricit\xE9 est de 0.2516 \u20AC en juillet 2024 en France"
|
|
1312
|
+
},
|
|
1313
|
+
requiredFor: []
|
|
1314
|
+
}
|
|
1315
|
+
];
|
|
1316
|
+
var renovationFormFields = [
|
|
1317
|
+
...renovationPropertyFormFields,
|
|
1318
|
+
...renovationProjectFormFields
|
|
1319
|
+
];
|
|
1320
|
+
|
|
1321
|
+
// src/static/renovation/state.ts
|
|
1322
|
+
var getRenovationState = (renovation) => ({
|
|
1323
|
+
hasDPE: Boolean(renovation.hasDPE)
|
|
1324
|
+
});
|
|
1325
|
+
|
|
1196
1326
|
// src/static/mandate/select-options.ts
|
|
1197
1327
|
var MANDATE_EXCLUSIVITY = [
|
|
1198
1328
|
{ value: "EXCLUSIVE", label: "Mandat exclusif" },
|
|
@@ -1608,6 +1738,7 @@ export {
|
|
|
1608
1738
|
MANDATE_EXCLUSIVITY,
|
|
1609
1739
|
MARITAL_STATUS,
|
|
1610
1740
|
PRENUP_TYPES,
|
|
1741
|
+
RENOVATION_TYPES,
|
|
1611
1742
|
SHARING_CONFIGURATION,
|
|
1612
1743
|
STANDINGS,
|
|
1613
1744
|
VIEWS,
|
|
@@ -1634,12 +1765,16 @@ export {
|
|
|
1634
1765
|
getNetPrice,
|
|
1635
1766
|
getPropertyState,
|
|
1636
1767
|
getPropertyTitle,
|
|
1768
|
+
getRenovationState,
|
|
1637
1769
|
getValue,
|
|
1638
1770
|
mandateFormFields,
|
|
1639
1771
|
not,
|
|
1640
1772
|
only,
|
|
1641
1773
|
or,
|
|
1642
1774
|
propertyFields,
|
|
1775
|
+
renovationFormFields,
|
|
1776
|
+
renovationProjectFormFields,
|
|
1777
|
+
renovationPropertyFormFields,
|
|
1643
1778
|
shouldRender,
|
|
1644
1779
|
surfacesFormFields,
|
|
1645
1780
|
technicalFormFields
|