ecotransac-shared-js 1.1.19 → 1.1.21

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 CHANGED
@@ -43,6 +43,16 @@ type Address = {
43
43
  postalCode: Scalars['String']['output'];
44
44
  url?: Maybe<Scalars['String']['output']>;
45
45
  };
46
+ type AddressInput = {
47
+ address: Scalars['String']['input'];
48
+ country: Scalars['String']['input'];
49
+ department: Scalars['String']['input'];
50
+ lat?: InputMaybe<Scalars['Float']['input']>;
51
+ lng?: InputMaybe<Scalars['Float']['input']>;
52
+ locality: Scalars['String']['input'];
53
+ postalCode: Scalars['String']['input'];
54
+ url?: InputMaybe<Scalars['String']['input']>;
55
+ };
46
56
  type Advert = {
47
57
  __typename?: 'Advert';
48
58
  adUrl: Scalars['String']['output'];
@@ -296,6 +306,36 @@ type Contact = {
296
306
  updatedAt: Scalars['DateTime']['output'];
297
307
  wards: Array<Contact>;
298
308
  };
309
+ type ContactInput = {
310
+ address?: InputMaybe<AddressInput>;
311
+ attachmentsId?: InputMaybe<Array<Scalars['String']['input']>>;
312
+ authorizationRepresentationDate?: InputMaybe<Scalars['DateTime']['input']>;
313
+ companyCapitalStock?: InputMaybe<Scalars['Int']['input']>;
314
+ companyLegalStatus?: InputMaybe<LegalStatus>;
315
+ companyName?: InputMaybe<Scalars['String']['input']>;
316
+ companyRegistrationNumber?: InputMaybe<Scalars['String']['input']>;
317
+ countryOfBirth?: InputMaybe<Scalars['String']['input']>;
318
+ dateOfBirth?: InputMaybe<Scalars['DateTime']['input']>;
319
+ email?: InputMaybe<Scalars['String']['input']>;
320
+ firstName: Scalars['String']['input'];
321
+ gender?: InputMaybe<Gender>;
322
+ /** A contact id */
323
+ guardianId?: InputMaybe<Scalars['String']['input']>;
324
+ interestedByPropertyId?: InputMaybe<Scalars['String']['input']>;
325
+ isLegalEntity?: InputMaybe<Scalars['Boolean']['input']>;
326
+ kycDocumentNumber?: InputMaybe<Scalars['String']['input']>;
327
+ kycDocumentType?: InputMaybe<IdentificationDocument>;
328
+ kycExpiresAt?: InputMaybe<Scalars['DateTime']['input']>;
329
+ kycIssuedBy?: InputMaybe<Scalars['String']['input']>;
330
+ lastName: Scalars['String']['input'];
331
+ maritalStatus?: InputMaybe<MaritalStatus>;
332
+ nationality?: InputMaybe<Scalars['String']['input']>;
333
+ ownedPropertyId?: InputMaybe<Scalars['String']['input']>;
334
+ phone: Scalars['String']['input'];
335
+ placeOfBirth?: InputMaybe<Scalars['String']['input']>;
336
+ prenupType?: InputMaybe<PrenupType>;
337
+ profession?: InputMaybe<Scalars['String']['input']>;
338
+ };
299
339
  type Coordinate = {
300
340
  __typename?: 'Coordinate';
301
341
  lat: Scalars['Float']['output'];
@@ -907,13 +947,14 @@ type Field<T> = {
907
947
  label: string;
908
948
  condition?: Condition;
909
949
  requiredFor?: RequiredFor[];
910
- props?: Record<string, unknown> & {
950
+ props?: {
911
951
  options?: SelectOption[];
912
952
  suffix?: string;
913
- className?: string;
953
+ tooltip?: string;
954
+ placeholder?: string;
914
955
  };
915
956
  };
916
- type FieldType = "text" | "number" | "select" | "textarea" | "radio" | "date" | "country" | "switch" | "propertyType" | "grade" | "year" | "exclusivity";
957
+ type FieldType = "text" | "number" | "select" | "textarea" | "radio" | "date" | "country" | "switch" | "propertyType" | "grade" | "year" | "exclusivity" | "address" | "phone";
917
958
  type State = {
918
959
  [key: string]: boolean;
919
960
  };
@@ -970,6 +1011,21 @@ declare const HEATING_ENERGY: SelectOption[];
970
1011
  type StateType = Pick<Property, "isForProfessionalUse" | "propertyType" | "isOccupied" | "isCoOwnership" | "isHousingScheme" | "isBusinessAssetsTransfer" | "isLeaseRightsTransfer" | "isCommercialWallsSale" | "isDpeCompleted" | "isEnergyAuditCompleted" | "leaseEstablishedUnder" | "constructionYear">;
971
1012
  declare const getPropertyState: (property: StateType) => State;
972
1013
 
1014
+ declare const mandateFormFields: Field<MandateInput>[];
1015
+
1016
+ declare const MANDATE_EXCLUSIVITY: {
1017
+ value: MandateExclusivity;
1018
+ label: string;
1019
+ }[];
1020
+
1021
+ declare const contactFormFields: Field<ContactInput>[];
1022
+
1023
+ declare const GENDER: SelectOption[];
1024
+ declare const IDENTIFICATION_DOCUMENTS: SelectOption[];
1025
+ declare const LEGAL_NATURE: SelectOption[];
1026
+ declare const MARITAL_STATUS: SelectOption[];
1027
+ declare const PRENUP_TYPES: SelectOption[];
1028
+
973
1029
  declare const COMPANY_INFO: {
974
1030
  name: string;
975
1031
  contactEmail: string;
@@ -1005,19 +1061,8 @@ declare const COMPANY_INFO: {
1005
1061
  };
1006
1062
  };
1007
1063
 
1008
- declare const GENDER: SelectOption[];
1009
- declare const IDENTIFICATION_DOCUMENTS: SelectOption[];
1010
- declare const LEGAL_NATURE: SelectOption[];
1011
- declare const MARITAL_STATUS: SelectOption[];
1012
- declare const PRENUP_TYPES: SelectOption[];
1013
-
1014
1064
  declare const COUNTRIES: SelectOption[];
1015
1065
 
1016
- declare const mandateFormFields: Field<MandateInput>[];
1017
-
1018
- declare const MANDATE_EXCLUSIVITY: {
1019
- value: MandateExclusivity;
1020
- label: string;
1021
- }[];
1066
+ declare const LEGAL_STATUS: SelectOption[];
1022
1067
 
1023
- export { COMPANY_INFO, CONDITIONS, COUNTRIES, type Condition, ESTATE_CONDITION, EXPOSURES, type Field, GENDER, HEATING_ENERGY, IDENTIFICATION_DOCUMENTS, KITCHEN_TYPE, LEASE_ESTABLISHMENT, LEASE_TRANSFERT_PERMISSIONS, LEGAL_NATURE, MANDATE_EXCLUSIVITY, MARITAL_STATUS, PRENUP_TYPES, SHARING_CONFIGURATION, STANDINGS, type SelectOption, type State, VIEWS, and, featuresFormFields, formatAddress, formatAgentLegalData, formatDate, formatMandateNumber, formatNumber, formatPhone, formatPrice, formatSeconds, getAgencyFees, getFeesPercentage, getLabel, getLowThreshold, getNetPrice, getPropertyState, getPropertyTitle, getValue, mandateFormFields, not, only, or, propertyFields, shouldRender, surfacesFormFields, technicalFormFields };
1068
+ export { COMPANY_INFO, CONDITIONS, COUNTRIES, type Condition, ESTATE_CONDITION, EXPOSURES, type Field, GENDER, HEATING_ENERGY, IDENTIFICATION_DOCUMENTS, 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, formatSeconds, getAgencyFees, getFeesPercentage, getLabel, getLowThreshold, getNetPrice, getPropertyState, getPropertyTitle, getValue, mandateFormFields, not, only, or, propertyFields, shouldRender, surfacesFormFields, technicalFormFields };
package/dist/index.d.ts CHANGED
@@ -43,6 +43,16 @@ type Address = {
43
43
  postalCode: Scalars['String']['output'];
44
44
  url?: Maybe<Scalars['String']['output']>;
45
45
  };
46
+ type AddressInput = {
47
+ address: Scalars['String']['input'];
48
+ country: Scalars['String']['input'];
49
+ department: Scalars['String']['input'];
50
+ lat?: InputMaybe<Scalars['Float']['input']>;
51
+ lng?: InputMaybe<Scalars['Float']['input']>;
52
+ locality: Scalars['String']['input'];
53
+ postalCode: Scalars['String']['input'];
54
+ url?: InputMaybe<Scalars['String']['input']>;
55
+ };
46
56
  type Advert = {
47
57
  __typename?: 'Advert';
48
58
  adUrl: Scalars['String']['output'];
@@ -296,6 +306,36 @@ type Contact = {
296
306
  updatedAt: Scalars['DateTime']['output'];
297
307
  wards: Array<Contact>;
298
308
  };
309
+ type ContactInput = {
310
+ address?: InputMaybe<AddressInput>;
311
+ attachmentsId?: InputMaybe<Array<Scalars['String']['input']>>;
312
+ authorizationRepresentationDate?: InputMaybe<Scalars['DateTime']['input']>;
313
+ companyCapitalStock?: InputMaybe<Scalars['Int']['input']>;
314
+ companyLegalStatus?: InputMaybe<LegalStatus>;
315
+ companyName?: InputMaybe<Scalars['String']['input']>;
316
+ companyRegistrationNumber?: InputMaybe<Scalars['String']['input']>;
317
+ countryOfBirth?: InputMaybe<Scalars['String']['input']>;
318
+ dateOfBirth?: InputMaybe<Scalars['DateTime']['input']>;
319
+ email?: InputMaybe<Scalars['String']['input']>;
320
+ firstName: Scalars['String']['input'];
321
+ gender?: InputMaybe<Gender>;
322
+ /** A contact id */
323
+ guardianId?: InputMaybe<Scalars['String']['input']>;
324
+ interestedByPropertyId?: InputMaybe<Scalars['String']['input']>;
325
+ isLegalEntity?: InputMaybe<Scalars['Boolean']['input']>;
326
+ kycDocumentNumber?: InputMaybe<Scalars['String']['input']>;
327
+ kycDocumentType?: InputMaybe<IdentificationDocument>;
328
+ kycExpiresAt?: InputMaybe<Scalars['DateTime']['input']>;
329
+ kycIssuedBy?: InputMaybe<Scalars['String']['input']>;
330
+ lastName: Scalars['String']['input'];
331
+ maritalStatus?: InputMaybe<MaritalStatus>;
332
+ nationality?: InputMaybe<Scalars['String']['input']>;
333
+ ownedPropertyId?: InputMaybe<Scalars['String']['input']>;
334
+ phone: Scalars['String']['input'];
335
+ placeOfBirth?: InputMaybe<Scalars['String']['input']>;
336
+ prenupType?: InputMaybe<PrenupType>;
337
+ profession?: InputMaybe<Scalars['String']['input']>;
338
+ };
299
339
  type Coordinate = {
300
340
  __typename?: 'Coordinate';
301
341
  lat: Scalars['Float']['output'];
@@ -907,13 +947,14 @@ type Field<T> = {
907
947
  label: string;
908
948
  condition?: Condition;
909
949
  requiredFor?: RequiredFor[];
910
- props?: Record<string, unknown> & {
950
+ props?: {
911
951
  options?: SelectOption[];
912
952
  suffix?: string;
913
- className?: string;
953
+ tooltip?: string;
954
+ placeholder?: string;
914
955
  };
915
956
  };
916
- type FieldType = "text" | "number" | "select" | "textarea" | "radio" | "date" | "country" | "switch" | "propertyType" | "grade" | "year" | "exclusivity";
957
+ type FieldType = "text" | "number" | "select" | "textarea" | "radio" | "date" | "country" | "switch" | "propertyType" | "grade" | "year" | "exclusivity" | "address" | "phone";
917
958
  type State = {
918
959
  [key: string]: boolean;
919
960
  };
@@ -970,6 +1011,21 @@ declare const HEATING_ENERGY: SelectOption[];
970
1011
  type StateType = Pick<Property, "isForProfessionalUse" | "propertyType" | "isOccupied" | "isCoOwnership" | "isHousingScheme" | "isBusinessAssetsTransfer" | "isLeaseRightsTransfer" | "isCommercialWallsSale" | "isDpeCompleted" | "isEnergyAuditCompleted" | "leaseEstablishedUnder" | "constructionYear">;
971
1012
  declare const getPropertyState: (property: StateType) => State;
972
1013
 
1014
+ declare const mandateFormFields: Field<MandateInput>[];
1015
+
1016
+ declare const MANDATE_EXCLUSIVITY: {
1017
+ value: MandateExclusivity;
1018
+ label: string;
1019
+ }[];
1020
+
1021
+ declare const contactFormFields: Field<ContactInput>[];
1022
+
1023
+ declare const GENDER: SelectOption[];
1024
+ declare const IDENTIFICATION_DOCUMENTS: SelectOption[];
1025
+ declare const LEGAL_NATURE: SelectOption[];
1026
+ declare const MARITAL_STATUS: SelectOption[];
1027
+ declare const PRENUP_TYPES: SelectOption[];
1028
+
973
1029
  declare const COMPANY_INFO: {
974
1030
  name: string;
975
1031
  contactEmail: string;
@@ -1005,19 +1061,8 @@ declare const COMPANY_INFO: {
1005
1061
  };
1006
1062
  };
1007
1063
 
1008
- declare const GENDER: SelectOption[];
1009
- declare const IDENTIFICATION_DOCUMENTS: SelectOption[];
1010
- declare const LEGAL_NATURE: SelectOption[];
1011
- declare const MARITAL_STATUS: SelectOption[];
1012
- declare const PRENUP_TYPES: SelectOption[];
1013
-
1014
1064
  declare const COUNTRIES: SelectOption[];
1015
1065
 
1016
- declare const mandateFormFields: Field<MandateInput>[];
1017
-
1018
- declare const MANDATE_EXCLUSIVITY: {
1019
- value: MandateExclusivity;
1020
- label: string;
1021
- }[];
1066
+ declare const LEGAL_STATUS: SelectOption[];
1022
1067
 
1023
- export { COMPANY_INFO, CONDITIONS, COUNTRIES, type Condition, ESTATE_CONDITION, EXPOSURES, type Field, GENDER, HEATING_ENERGY, IDENTIFICATION_DOCUMENTS, KITCHEN_TYPE, LEASE_ESTABLISHMENT, LEASE_TRANSFERT_PERMISSIONS, LEGAL_NATURE, MANDATE_EXCLUSIVITY, MARITAL_STATUS, PRENUP_TYPES, SHARING_CONFIGURATION, STANDINGS, type SelectOption, type State, VIEWS, and, featuresFormFields, formatAddress, formatAgentLegalData, formatDate, formatMandateNumber, formatNumber, formatPhone, formatPrice, formatSeconds, getAgencyFees, getFeesPercentage, getLabel, getLowThreshold, getNetPrice, getPropertyState, getPropertyTitle, getValue, mandateFormFields, not, only, or, propertyFields, shouldRender, surfacesFormFields, technicalFormFields };
1068
+ export { COMPANY_INFO, CONDITIONS, COUNTRIES, type Condition, ESTATE_CONDITION, EXPOSURES, type Field, GENDER, HEATING_ENERGY, IDENTIFICATION_DOCUMENTS, 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, formatSeconds, getAgencyFees, getFeesPercentage, getLabel, getLowThreshold, getNetPrice, getPropertyState, getPropertyTitle, getValue, mandateFormFields, not, only, or, propertyFields, shouldRender, surfacesFormFields, technicalFormFields };
package/dist/index.js CHANGED
@@ -42,6 +42,7 @@ __export(src_exports, {
42
42
  LEASE_ESTABLISHMENT: () => LEASE_ESTABLISHMENT,
43
43
  LEASE_TRANSFERT_PERMISSIONS: () => LEASE_TRANSFERT_PERMISSIONS,
44
44
  LEGAL_NATURE: () => LEGAL_NATURE,
45
+ LEGAL_STATUS: () => LEGAL_STATUS,
45
46
  MANDATE_EXCLUSIVITY: () => MANDATE_EXCLUSIVITY,
46
47
  MARITAL_STATUS: () => MARITAL_STATUS,
47
48
  PRENUP_TYPES: () => PRENUP_TYPES,
@@ -49,6 +50,7 @@ __export(src_exports, {
49
50
  STANDINGS: () => STANDINGS,
50
51
  VIEWS: () => VIEWS,
51
52
  and: () => and,
53
+ contactFormFields: () => contactFormFields,
52
54
  featuresFormFields: () => featuresFormFields,
53
55
  formatAddress: () => formatAddress,
54
56
  formatAgentLegalData: () => formatAgentLegalData,
@@ -911,14 +913,14 @@ var technicalFormFields = [
911
913
  fieldType: "radio",
912
914
  label: "DPE r\xE9alis\xE9",
913
915
  condition: and(not("isParking"), not("isLand"), not("isBuilding")),
914
- requiredFor: ["DIFFUSION" /* Diffusion */]
916
+ requiredFor: ["MANDATE_CREATION" /* MandateCreation */]
915
917
  },
916
918
  {
917
919
  name: "isDpeCompleted",
918
920
  fieldType: "radio",
919
921
  label: "DPE collectif r\xE9alis\xE9",
920
922
  condition: only("isBuilding"),
921
- requiredFor: ["DIFFUSION" /* Diffusion */]
923
+ requiredFor: ["MANDATE_CREATION" /* MandateCreation */]
922
924
  },
923
925
  {
924
926
  name: "dpeScore",
@@ -1260,120 +1262,7 @@ var getPropertyState = (property) => ({
1260
1262
  isUnderTenYearsOld: property.constructionYear ? (0, import_date_fns2.isAfter)(property.constructionYear, (0, import_date_fns2.sub)(/* @__PURE__ */ new Date(), { years: 10 })) : false
1261
1263
  });
1262
1264
 
1263
- // src/static/company-details.ts
1264
- var COMPANY_INFO = {
1265
- name: "Ecotransac",
1266
- contactEmail: "contact@ecotransac.fr",
1267
- contactPhone: "+33610839998",
1268
- contactPhoneFormatted: "06 10 83 99 98",
1269
- officeAddress: "131 Chem. du Bac \xC0 Traille - 69300 Caluire-et-Cuire",
1270
- gdprEmail: "rgpd@ecotransac.fr",
1271
- registration: {
1272
- legalStatus: "SAS",
1273
- legalStatusFull: "Soci\xE9t\xE9 par actions simplifi\xE9e",
1274
- capitalStock: "5 000 euros",
1275
- address: "62 rue Pierre Corneille - 69006 LYON",
1276
- rcs: "RCS Lyon",
1277
- siren: "933 482 499",
1278
- siret: "933 482 499 00011",
1279
- VATNumber: "FR85 933 482 499",
1280
- apeCode: "68.31Z",
1281
- representative: "Loris BOCUZE",
1282
- pappersUrl: "https://www.pappers.fr/entreprise/ecotransac-933482499"
1283
- },
1284
- professionalCard: {
1285
- issuedBy: "CCI de Lyon M\xE9tropole Saint-\xC9tienne Roanne",
1286
- cardNumber: "CPI 6901 2024 000 000 137"
1287
- },
1288
- insurance: {
1289
- name: "ALLIANZ IARD",
1290
- headOfficeAddress: "1 cours Michelet - 92076 PARIS LA DEFENSE CEDEX",
1291
- localOfficeAddress: "28 rue T\xEAte d'Or - 69006 LYON"
1292
- },
1293
- mediation: {
1294
- mediator: "IMMOMEDIATEURS",
1295
- address: "55 avenue Marceau - 75116 Paris"
1296
- }
1297
- };
1298
-
1299
- // src/static/contact-select-options.ts
1300
- var GENDER = [
1301
- { value: "FEMALE" /* Female */, label: "Madame" },
1302
- { value: "MALE" /* Male */, label: "Monsieur" }
1303
- ];
1304
- var IDENTIFICATION_DOCUMENTS = [
1305
- {
1306
- value: "NATIONAL_ID_CARD" /* NationalIdCard */,
1307
- label: "Carte nationale d\u2019identit\xE9"
1308
- },
1309
- {
1310
- value: "PASSPORT" /* Passport */,
1311
- label: "Passeport"
1312
- },
1313
- {
1314
- value: "DRIVER_LICENSE" /* DriverLicense */,
1315
- label: "Permis de conduire"
1316
- },
1317
- {
1318
- value: "RESIDENCE_PERMIT" /* ResidencePermit */,
1319
- label: "Carte de s\xE9jour"
1320
- },
1321
- {
1322
- value: "RESIDENCE_CARD_CERTIFICATE" /* ResidenceCardCertificate */,
1323
- label: "Carte ou certificat de r\xE9sidence"
1324
- }
1325
- ];
1326
- var LEGAL_NATURE = [
1327
- { value: "FULL_OWNERSHIP" /* FullOwnership */, label: "Pleine propri\xE9t\xE9" },
1328
- { value: "USUFRUCTUARY" /* Usufructuary */, label: "Usufruitier" },
1329
- { value: "BARE_OWNER" /* BareOwner */, label: "Nu-propri\xE9taire" },
1330
- {
1331
- value: "CO_OWNER_IN_UNDIVIDED_PROPERTY" /* CoOwnerInUndividedProperty */,
1332
- label: "Indivisaire"
1333
- }
1334
- ];
1335
- var MARITAL_STATUS = [
1336
- {
1337
- value: "MARRIED_WITH_PRENUP" /* MarriedWithPrenup */,
1338
- label: "Mari\xE9(e) avec contrat de mariage"
1339
- },
1340
- {
1341
- value: "MARRIED_WITHOUT_PRENUP" /* MarriedWithoutPrenup */,
1342
- label: "Mari\xE9(e) sans contrat de mariage"
1343
- },
1344
- { value: "CIVIL_PARTNERSHIP" /* CivilPartnership */, label: "Pacs\xE9(e)" },
1345
- { value: "DIVORCED" /* Divorced */, label: "Divorc\xE9(e)" },
1346
- { value: "WIDOWED" /* Widowed */, label: "Veuf(ve)" },
1347
- { value: "SINGLE" /* Single */, label: "C\xE9libataire" }
1348
- ];
1349
- var PRENUP_TYPES = [
1350
- {
1351
- value: "COMMUNITY_OF_PROPERTY_WITHOUT_GAINS" /* CommunityOfPropertyWithoutGains */,
1352
- label: "Communaut\xE9 de biens r\xE9duite aux acqu\xEAts"
1353
- },
1354
- {
1355
- value: "NOTARIZED_MARRIAGE_CONTRACT" /* NotarizedMarriageContract */,
1356
- label: "Contrat de mariage par acte notari\xE9"
1357
- },
1358
- {
1359
- value: "PARTICIPATION_IN_ACQUISITIONS" /* ParticipationInAcquisitions */,
1360
- label: "Participation aux acqu\xEAts"
1361
- },
1362
- {
1363
- value: "PARTICIPATION_IN_ACQUISITIONS_WITH_FULL_ATTRIBUTION_TO_SURVIVOR" /* ParticipationInAcquisitionsWithFullAttributionToSurvivor */,
1364
- label: "Participation aux acqu\xEAts avec clause d'attribution int\xE9grale au survivant"
1365
- },
1366
- {
1367
- value: "SEPARATION_OF_PROPERTY" /* SeparationOfProperty */,
1368
- label: "S\xE9paration de biens"
1369
- },
1370
- {
1371
- value: "UNIVERSAL_COMMUNITY" /* UniversalCommunity */,
1372
- label: "Communaut\xE9 universelle"
1373
- }
1374
- ];
1375
-
1376
- // src/static/mandate-select-options.ts
1265
+ // src/static/mandate/select-options.ts
1377
1266
  var MANDATE_EXCLUSIVITY = [
1378
1267
  {
1379
1268
  value: "EXCLUSIVE" /* Exclusive */,
@@ -1389,7 +1278,7 @@ var MANDATE_EXCLUSIVITY = [
1389
1278
  }
1390
1279
  ];
1391
1280
 
1392
- // src/static/mandate-fields.ts
1281
+ // src/static/mandate/fields.ts
1393
1282
  var mandateFormFields = [
1394
1283
  {
1395
1284
  name: "exclusivity",
@@ -1517,23 +1406,305 @@ var mandateFormFields = [
1517
1406
  fieldType: "text",
1518
1407
  name: "notaryNameAndCity",
1519
1408
  label: "Nom et ville du notaire d\xE9tenteur du titre de propri\xE9t\xE9",
1520
- condition: not("isForProfessionalUse")
1409
+ condition: not("isForProfessionalUse"),
1410
+ requiredFor: ["MANDATE_CREATION" /* MandateCreation */]
1521
1411
  },
1522
1412
  {
1523
1413
  fieldType: "text",
1524
1414
  name: "notaryNameAndCity",
1525
1415
  label: "Coordonn\xE9es du professionnel en charge de la cession",
1526
- condition: only("isForProfessionalUse")
1416
+ condition: only("isForProfessionalUse"),
1417
+ requiredFor: ["MANDATE_CREATION" /* MandateCreation */]
1527
1418
  },
1528
1419
  {
1529
1420
  name: "specialConditions",
1530
1421
  fieldType: "textarea",
1531
1422
  label: "Conditions particuli\xE8res du mandat",
1532
1423
  requiredFor: [],
1533
- condition: void 0,
1534
- props: { className: "md:col-span-2", placeholder: "Aucune" }
1424
+ condition: void 0
1535
1425
  }
1536
1426
  ];
1427
+
1428
+ // src/static/legal-status.ts
1429
+ var LEGAL_STATUS = [
1430
+ {
1431
+ value: "EI" /* Ei */,
1432
+ label: "EI"
1433
+ },
1434
+ {
1435
+ value: "EURL" /* Eurl */,
1436
+ label: "EURL"
1437
+ },
1438
+ {
1439
+ value: "SARL" /* Sarl */,
1440
+ label: "SARL"
1441
+ },
1442
+ {
1443
+ value: "SASU" /* Sasu */,
1444
+ label: "SASU"
1445
+ },
1446
+ {
1447
+ value: "SAS" /* Sas */,
1448
+ label: "SAS"
1449
+ },
1450
+ {
1451
+ value: "SA" /* Sa */,
1452
+ label: "SA"
1453
+ },
1454
+ {
1455
+ value: "SNC" /* Snc */,
1456
+ label: "SNC"
1457
+ },
1458
+ {
1459
+ value: "SCS" /* Scs */,
1460
+ label: "SCS"
1461
+ },
1462
+ {
1463
+ value: "SCA" /* Sca */,
1464
+ label: "SCA"
1465
+ }
1466
+ ];
1467
+
1468
+ // src/static/contact/select-options.ts
1469
+ var GENDER = [
1470
+ { value: "FEMALE" /* Female */, label: "Madame" },
1471
+ { value: "MALE" /* Male */, label: "Monsieur" }
1472
+ ];
1473
+ var IDENTIFICATION_DOCUMENTS = [
1474
+ {
1475
+ value: "NATIONAL_ID_CARD" /* NationalIdCard */,
1476
+ label: "Carte nationale d\u2019identit\xE9"
1477
+ },
1478
+ {
1479
+ value: "PASSPORT" /* Passport */,
1480
+ label: "Passeport"
1481
+ },
1482
+ {
1483
+ value: "DRIVER_LICENSE" /* DriverLicense */,
1484
+ label: "Permis de conduire"
1485
+ },
1486
+ {
1487
+ value: "RESIDENCE_PERMIT" /* ResidencePermit */,
1488
+ label: "Carte de s\xE9jour"
1489
+ },
1490
+ {
1491
+ value: "RESIDENCE_CARD_CERTIFICATE" /* ResidenceCardCertificate */,
1492
+ label: "Carte ou certificat de r\xE9sidence"
1493
+ }
1494
+ ];
1495
+ var LEGAL_NATURE = [
1496
+ { value: "FULL_OWNERSHIP" /* FullOwnership */, label: "Pleine propri\xE9t\xE9" },
1497
+ { value: "USUFRUCTUARY" /* Usufructuary */, label: "Usufruitier" },
1498
+ { value: "BARE_OWNER" /* BareOwner */, label: "Nu-propri\xE9taire" },
1499
+ {
1500
+ value: "CO_OWNER_IN_UNDIVIDED_PROPERTY" /* CoOwnerInUndividedProperty */,
1501
+ label: "Indivisaire"
1502
+ }
1503
+ ];
1504
+ var MARITAL_STATUS = [
1505
+ {
1506
+ value: "MARRIED_WITH_PRENUP" /* MarriedWithPrenup */,
1507
+ label: "Mari\xE9(e) avec contrat de mariage"
1508
+ },
1509
+ {
1510
+ value: "MARRIED_WITHOUT_PRENUP" /* MarriedWithoutPrenup */,
1511
+ label: "Mari\xE9(e) sans contrat de mariage"
1512
+ },
1513
+ { value: "CIVIL_PARTNERSHIP" /* CivilPartnership */, label: "Pacs\xE9(e)" },
1514
+ { value: "DIVORCED" /* Divorced */, label: "Divorc\xE9(e)" },
1515
+ { value: "WIDOWED" /* Widowed */, label: "Veuf(ve)" },
1516
+ { value: "SINGLE" /* Single */, label: "C\xE9libataire" }
1517
+ ];
1518
+ var PRENUP_TYPES = [
1519
+ {
1520
+ value: "COMMUNITY_OF_PROPERTY_WITHOUT_GAINS" /* CommunityOfPropertyWithoutGains */,
1521
+ label: "Communaut\xE9 de biens r\xE9duite aux acqu\xEAts"
1522
+ },
1523
+ {
1524
+ value: "NOTARIZED_MARRIAGE_CONTRACT" /* NotarizedMarriageContract */,
1525
+ label: "Contrat de mariage par acte notari\xE9"
1526
+ },
1527
+ {
1528
+ value: "PARTICIPATION_IN_ACQUISITIONS" /* ParticipationInAcquisitions */,
1529
+ label: "Participation aux acqu\xEAts"
1530
+ },
1531
+ {
1532
+ value: "PARTICIPATION_IN_ACQUISITIONS_WITH_FULL_ATTRIBUTION_TO_SURVIVOR" /* ParticipationInAcquisitionsWithFullAttributionToSurvivor */,
1533
+ label: "Participation aux acqu\xEAts avec clause d'attribution int\xE9grale au survivant"
1534
+ },
1535
+ {
1536
+ value: "SEPARATION_OF_PROPERTY" /* SeparationOfProperty */,
1537
+ label: "S\xE9paration de biens"
1538
+ },
1539
+ {
1540
+ value: "UNIVERSAL_COMMUNITY" /* UniversalCommunity */,
1541
+ label: "Communaut\xE9 universelle"
1542
+ }
1543
+ ];
1544
+
1545
+ // src/static/contact/fields.ts
1546
+ var contactFormFields = [
1547
+ {
1548
+ fieldType: "switch",
1549
+ name: "isLegalEntity",
1550
+ label: "Le contact est une personne morale"
1551
+ },
1552
+ {
1553
+ fieldType: "text",
1554
+ name: "companyName",
1555
+ label: "D\xE9nomination sociale",
1556
+ condition: only("isLegalEntity")
1557
+ },
1558
+ {
1559
+ fieldType: "text",
1560
+ name: "companyLegalStatus",
1561
+ label: "Forme juridique",
1562
+ condition: only("isLegalEntity"),
1563
+ props: { options: LEGAL_STATUS }
1564
+ },
1565
+ {
1566
+ fieldType: "text",
1567
+ name: "companyRegistrationNumber",
1568
+ label: "Num\xE9ro d'immatriculation (SIREN)",
1569
+ condition: only("isLegalEntity")
1570
+ },
1571
+ {
1572
+ fieldType: "number",
1573
+ name: "companyCapitalStock",
1574
+ label: "Capital social",
1575
+ condition: only("isLegalEntity"),
1576
+ props: { suffix: "\u20AC" }
1577
+ },
1578
+ {
1579
+ fieldType: "date",
1580
+ name: "authorizationRepresentationDate",
1581
+ label: "Date d'habilitation \xE0 repr\xE9senter l'entit\xE9",
1582
+ condition: only("isLegalEntity")
1583
+ },
1584
+ {
1585
+ fieldType: "radio",
1586
+ name: "gender",
1587
+ label: "Civilit\xE9",
1588
+ props: { options: GENDER }
1589
+ },
1590
+ {
1591
+ fieldType: "text",
1592
+ name: "firstName",
1593
+ label: "Pr\xE9nom"
1594
+ },
1595
+ {
1596
+ fieldType: "text",
1597
+ name: "lastName",
1598
+ label: "Nom de famille"
1599
+ },
1600
+ {
1601
+ fieldType: "text",
1602
+ name: "profession",
1603
+ label: "Fonction dans l'entit\xE9",
1604
+ condition: only("isLegalEntity")
1605
+ },
1606
+ {
1607
+ fieldType: "country",
1608
+ name: "nationality",
1609
+ label: "Nationalit\xE9"
1610
+ },
1611
+ {
1612
+ fieldType: "date",
1613
+ name: "dateOfBirth",
1614
+ label: "Date de naissance"
1615
+ },
1616
+ {
1617
+ fieldType: "text",
1618
+ name: "placeOfBirth",
1619
+ label: "Ville de naissance"
1620
+ },
1621
+ {
1622
+ fieldType: "country",
1623
+ name: "countryOfBirth",
1624
+ label: "Pays de naissance"
1625
+ },
1626
+ {
1627
+ fieldType: "text",
1628
+ name: "maritalStatus",
1629
+ label: "Situation matrimoniale",
1630
+ props: { options: MARITAL_STATUS }
1631
+ },
1632
+ {
1633
+ fieldType: "text",
1634
+ name: "prenupType",
1635
+ label: "Type de contrat de mariage",
1636
+ condition: only("isMarriedWithPrenup"),
1637
+ props: { options: PRENUP_TYPES }
1638
+ },
1639
+ {
1640
+ fieldType: "text",
1641
+ name: "profession",
1642
+ label: "Profession",
1643
+ condition: not("isLegalEntity")
1644
+ },
1645
+ {
1646
+ fieldType: "phone",
1647
+ name: "phone",
1648
+ label: "Num\xE9ro de t\xE9l\xE9phone"
1649
+ },
1650
+ {
1651
+ fieldType: "text",
1652
+ name: "email",
1653
+ label: "Adresse e-mail"
1654
+ },
1655
+ {
1656
+ fieldType: "address",
1657
+ name: "address",
1658
+ label: "Adresse postale"
1659
+ },
1660
+ {
1661
+ fieldType: "text",
1662
+ name: "kycDocumentType",
1663
+ label: "Type de document d'identit\xE9",
1664
+ props: { options: IDENTIFICATION_DOCUMENTS }
1665
+ },
1666
+ {
1667
+ fieldType: "date",
1668
+ name: "kycExpiresAt",
1669
+ label: "Date d'expiration"
1670
+ }
1671
+ ];
1672
+
1673
+ // src/static/company-details.ts
1674
+ var COMPANY_INFO = {
1675
+ name: "Ecotransac",
1676
+ contactEmail: "contact@ecotransac.fr",
1677
+ contactPhone: "+33610839998",
1678
+ contactPhoneFormatted: "06 10 83 99 98",
1679
+ officeAddress: "131 Chem. du Bac \xC0 Traille - 69300 Caluire-et-Cuire",
1680
+ gdprEmail: "rgpd@ecotransac.fr",
1681
+ registration: {
1682
+ legalStatus: "SAS",
1683
+ legalStatusFull: "Soci\xE9t\xE9 par actions simplifi\xE9e",
1684
+ capitalStock: "5 000 euros",
1685
+ address: "62 rue Pierre Corneille - 69006 LYON",
1686
+ rcs: "RCS Lyon",
1687
+ siren: "933 482 499",
1688
+ siret: "933 482 499 00011",
1689
+ VATNumber: "FR85 933 482 499",
1690
+ apeCode: "68.31Z",
1691
+ representative: "Loris BOCUZE",
1692
+ pappersUrl: "https://www.pappers.fr/entreprise/ecotransac-933482499"
1693
+ },
1694
+ professionalCard: {
1695
+ issuedBy: "CCI de Lyon M\xE9tropole Saint-\xC9tienne Roanne",
1696
+ cardNumber: "CPI 6901 2024 000 000 137"
1697
+ },
1698
+ insurance: {
1699
+ name: "ALLIANZ IARD",
1700
+ headOfficeAddress: "1 cours Michelet - 92076 PARIS LA DEFENSE CEDEX",
1701
+ localOfficeAddress: "28 rue T\xEAte d'Or - 69006 LYON"
1702
+ },
1703
+ mediation: {
1704
+ mediator: "IMMOMEDIATEURS",
1705
+ address: "55 avenue Marceau - 75116 Paris"
1706
+ }
1707
+ };
1537
1708
  // Annotate the CommonJS export names for ESM import in node:
1538
1709
  0 && (module.exports = {
1539
1710
  COMPANY_INFO,
@@ -1548,6 +1719,7 @@ var mandateFormFields = [
1548
1719
  LEASE_ESTABLISHMENT,
1549
1720
  LEASE_TRANSFERT_PERMISSIONS,
1550
1721
  LEGAL_NATURE,
1722
+ LEGAL_STATUS,
1551
1723
  MANDATE_EXCLUSIVITY,
1552
1724
  MARITAL_STATUS,
1553
1725
  PRENUP_TYPES,
@@ -1555,6 +1727,7 @@ var mandateFormFields = [
1555
1727
  STANDINGS,
1556
1728
  VIEWS,
1557
1729
  and,
1730
+ contactFormFields,
1558
1731
  featuresFormFields,
1559
1732
  formatAddress,
1560
1733
  formatAgentLegalData,
package/dist/index.mjs CHANGED
@@ -832,14 +832,14 @@ var technicalFormFields = [
832
832
  fieldType: "radio",
833
833
  label: "DPE r\xE9alis\xE9",
834
834
  condition: and(not("isParking"), not("isLand"), not("isBuilding")),
835
- requiredFor: ["DIFFUSION" /* Diffusion */]
835
+ requiredFor: ["MANDATE_CREATION" /* MandateCreation */]
836
836
  },
837
837
  {
838
838
  name: "isDpeCompleted",
839
839
  fieldType: "radio",
840
840
  label: "DPE collectif r\xE9alis\xE9",
841
841
  condition: only("isBuilding"),
842
- requiredFor: ["DIFFUSION" /* Diffusion */]
842
+ requiredFor: ["MANDATE_CREATION" /* MandateCreation */]
843
843
  },
844
844
  {
845
845
  name: "dpeScore",
@@ -1181,120 +1181,7 @@ var getPropertyState = (property) => ({
1181
1181
  isUnderTenYearsOld: property.constructionYear ? isAfter(property.constructionYear, sub(/* @__PURE__ */ new Date(), { years: 10 })) : false
1182
1182
  });
1183
1183
 
1184
- // src/static/company-details.ts
1185
- var COMPANY_INFO = {
1186
- name: "Ecotransac",
1187
- contactEmail: "contact@ecotransac.fr",
1188
- contactPhone: "+33610839998",
1189
- contactPhoneFormatted: "06 10 83 99 98",
1190
- officeAddress: "131 Chem. du Bac \xC0 Traille - 69300 Caluire-et-Cuire",
1191
- gdprEmail: "rgpd@ecotransac.fr",
1192
- registration: {
1193
- legalStatus: "SAS",
1194
- legalStatusFull: "Soci\xE9t\xE9 par actions simplifi\xE9e",
1195
- capitalStock: "5 000 euros",
1196
- address: "62 rue Pierre Corneille - 69006 LYON",
1197
- rcs: "RCS Lyon",
1198
- siren: "933 482 499",
1199
- siret: "933 482 499 00011",
1200
- VATNumber: "FR85 933 482 499",
1201
- apeCode: "68.31Z",
1202
- representative: "Loris BOCUZE",
1203
- pappersUrl: "https://www.pappers.fr/entreprise/ecotransac-933482499"
1204
- },
1205
- professionalCard: {
1206
- issuedBy: "CCI de Lyon M\xE9tropole Saint-\xC9tienne Roanne",
1207
- cardNumber: "CPI 6901 2024 000 000 137"
1208
- },
1209
- insurance: {
1210
- name: "ALLIANZ IARD",
1211
- headOfficeAddress: "1 cours Michelet - 92076 PARIS LA DEFENSE CEDEX",
1212
- localOfficeAddress: "28 rue T\xEAte d'Or - 69006 LYON"
1213
- },
1214
- mediation: {
1215
- mediator: "IMMOMEDIATEURS",
1216
- address: "55 avenue Marceau - 75116 Paris"
1217
- }
1218
- };
1219
-
1220
- // src/static/contact-select-options.ts
1221
- var GENDER = [
1222
- { value: "FEMALE" /* Female */, label: "Madame" },
1223
- { value: "MALE" /* Male */, label: "Monsieur" }
1224
- ];
1225
- var IDENTIFICATION_DOCUMENTS = [
1226
- {
1227
- value: "NATIONAL_ID_CARD" /* NationalIdCard */,
1228
- label: "Carte nationale d\u2019identit\xE9"
1229
- },
1230
- {
1231
- value: "PASSPORT" /* Passport */,
1232
- label: "Passeport"
1233
- },
1234
- {
1235
- value: "DRIVER_LICENSE" /* DriverLicense */,
1236
- label: "Permis de conduire"
1237
- },
1238
- {
1239
- value: "RESIDENCE_PERMIT" /* ResidencePermit */,
1240
- label: "Carte de s\xE9jour"
1241
- },
1242
- {
1243
- value: "RESIDENCE_CARD_CERTIFICATE" /* ResidenceCardCertificate */,
1244
- label: "Carte ou certificat de r\xE9sidence"
1245
- }
1246
- ];
1247
- var LEGAL_NATURE = [
1248
- { value: "FULL_OWNERSHIP" /* FullOwnership */, label: "Pleine propri\xE9t\xE9" },
1249
- { value: "USUFRUCTUARY" /* Usufructuary */, label: "Usufruitier" },
1250
- { value: "BARE_OWNER" /* BareOwner */, label: "Nu-propri\xE9taire" },
1251
- {
1252
- value: "CO_OWNER_IN_UNDIVIDED_PROPERTY" /* CoOwnerInUndividedProperty */,
1253
- label: "Indivisaire"
1254
- }
1255
- ];
1256
- var MARITAL_STATUS = [
1257
- {
1258
- value: "MARRIED_WITH_PRENUP" /* MarriedWithPrenup */,
1259
- label: "Mari\xE9(e) avec contrat de mariage"
1260
- },
1261
- {
1262
- value: "MARRIED_WITHOUT_PRENUP" /* MarriedWithoutPrenup */,
1263
- label: "Mari\xE9(e) sans contrat de mariage"
1264
- },
1265
- { value: "CIVIL_PARTNERSHIP" /* CivilPartnership */, label: "Pacs\xE9(e)" },
1266
- { value: "DIVORCED" /* Divorced */, label: "Divorc\xE9(e)" },
1267
- { value: "WIDOWED" /* Widowed */, label: "Veuf(ve)" },
1268
- { value: "SINGLE" /* Single */, label: "C\xE9libataire" }
1269
- ];
1270
- var PRENUP_TYPES = [
1271
- {
1272
- value: "COMMUNITY_OF_PROPERTY_WITHOUT_GAINS" /* CommunityOfPropertyWithoutGains */,
1273
- label: "Communaut\xE9 de biens r\xE9duite aux acqu\xEAts"
1274
- },
1275
- {
1276
- value: "NOTARIZED_MARRIAGE_CONTRACT" /* NotarizedMarriageContract */,
1277
- label: "Contrat de mariage par acte notari\xE9"
1278
- },
1279
- {
1280
- value: "PARTICIPATION_IN_ACQUISITIONS" /* ParticipationInAcquisitions */,
1281
- label: "Participation aux acqu\xEAts"
1282
- },
1283
- {
1284
- value: "PARTICIPATION_IN_ACQUISITIONS_WITH_FULL_ATTRIBUTION_TO_SURVIVOR" /* ParticipationInAcquisitionsWithFullAttributionToSurvivor */,
1285
- label: "Participation aux acqu\xEAts avec clause d'attribution int\xE9grale au survivant"
1286
- },
1287
- {
1288
- value: "SEPARATION_OF_PROPERTY" /* SeparationOfProperty */,
1289
- label: "S\xE9paration de biens"
1290
- },
1291
- {
1292
- value: "UNIVERSAL_COMMUNITY" /* UniversalCommunity */,
1293
- label: "Communaut\xE9 universelle"
1294
- }
1295
- ];
1296
-
1297
- // src/static/mandate-select-options.ts
1184
+ // src/static/mandate/select-options.ts
1298
1185
  var MANDATE_EXCLUSIVITY = [
1299
1186
  {
1300
1187
  value: "EXCLUSIVE" /* Exclusive */,
@@ -1310,7 +1197,7 @@ var MANDATE_EXCLUSIVITY = [
1310
1197
  }
1311
1198
  ];
1312
1199
 
1313
- // src/static/mandate-fields.ts
1200
+ // src/static/mandate/fields.ts
1314
1201
  var mandateFormFields = [
1315
1202
  {
1316
1203
  name: "exclusivity",
@@ -1438,23 +1325,305 @@ var mandateFormFields = [
1438
1325
  fieldType: "text",
1439
1326
  name: "notaryNameAndCity",
1440
1327
  label: "Nom et ville du notaire d\xE9tenteur du titre de propri\xE9t\xE9",
1441
- condition: not("isForProfessionalUse")
1328
+ condition: not("isForProfessionalUse"),
1329
+ requiredFor: ["MANDATE_CREATION" /* MandateCreation */]
1442
1330
  },
1443
1331
  {
1444
1332
  fieldType: "text",
1445
1333
  name: "notaryNameAndCity",
1446
1334
  label: "Coordonn\xE9es du professionnel en charge de la cession",
1447
- condition: only("isForProfessionalUse")
1335
+ condition: only("isForProfessionalUse"),
1336
+ requiredFor: ["MANDATE_CREATION" /* MandateCreation */]
1448
1337
  },
1449
1338
  {
1450
1339
  name: "specialConditions",
1451
1340
  fieldType: "textarea",
1452
1341
  label: "Conditions particuli\xE8res du mandat",
1453
1342
  requiredFor: [],
1454
- condition: void 0,
1455
- props: { className: "md:col-span-2", placeholder: "Aucune" }
1343
+ condition: void 0
1456
1344
  }
1457
1345
  ];
1346
+
1347
+ // src/static/legal-status.ts
1348
+ var LEGAL_STATUS = [
1349
+ {
1350
+ value: "EI" /* Ei */,
1351
+ label: "EI"
1352
+ },
1353
+ {
1354
+ value: "EURL" /* Eurl */,
1355
+ label: "EURL"
1356
+ },
1357
+ {
1358
+ value: "SARL" /* Sarl */,
1359
+ label: "SARL"
1360
+ },
1361
+ {
1362
+ value: "SASU" /* Sasu */,
1363
+ label: "SASU"
1364
+ },
1365
+ {
1366
+ value: "SAS" /* Sas */,
1367
+ label: "SAS"
1368
+ },
1369
+ {
1370
+ value: "SA" /* Sa */,
1371
+ label: "SA"
1372
+ },
1373
+ {
1374
+ value: "SNC" /* Snc */,
1375
+ label: "SNC"
1376
+ },
1377
+ {
1378
+ value: "SCS" /* Scs */,
1379
+ label: "SCS"
1380
+ },
1381
+ {
1382
+ value: "SCA" /* Sca */,
1383
+ label: "SCA"
1384
+ }
1385
+ ];
1386
+
1387
+ // src/static/contact/select-options.ts
1388
+ var GENDER = [
1389
+ { value: "FEMALE" /* Female */, label: "Madame" },
1390
+ { value: "MALE" /* Male */, label: "Monsieur" }
1391
+ ];
1392
+ var IDENTIFICATION_DOCUMENTS = [
1393
+ {
1394
+ value: "NATIONAL_ID_CARD" /* NationalIdCard */,
1395
+ label: "Carte nationale d\u2019identit\xE9"
1396
+ },
1397
+ {
1398
+ value: "PASSPORT" /* Passport */,
1399
+ label: "Passeport"
1400
+ },
1401
+ {
1402
+ value: "DRIVER_LICENSE" /* DriverLicense */,
1403
+ label: "Permis de conduire"
1404
+ },
1405
+ {
1406
+ value: "RESIDENCE_PERMIT" /* ResidencePermit */,
1407
+ label: "Carte de s\xE9jour"
1408
+ },
1409
+ {
1410
+ value: "RESIDENCE_CARD_CERTIFICATE" /* ResidenceCardCertificate */,
1411
+ label: "Carte ou certificat de r\xE9sidence"
1412
+ }
1413
+ ];
1414
+ var LEGAL_NATURE = [
1415
+ { value: "FULL_OWNERSHIP" /* FullOwnership */, label: "Pleine propri\xE9t\xE9" },
1416
+ { value: "USUFRUCTUARY" /* Usufructuary */, label: "Usufruitier" },
1417
+ { value: "BARE_OWNER" /* BareOwner */, label: "Nu-propri\xE9taire" },
1418
+ {
1419
+ value: "CO_OWNER_IN_UNDIVIDED_PROPERTY" /* CoOwnerInUndividedProperty */,
1420
+ label: "Indivisaire"
1421
+ }
1422
+ ];
1423
+ var MARITAL_STATUS = [
1424
+ {
1425
+ value: "MARRIED_WITH_PRENUP" /* MarriedWithPrenup */,
1426
+ label: "Mari\xE9(e) avec contrat de mariage"
1427
+ },
1428
+ {
1429
+ value: "MARRIED_WITHOUT_PRENUP" /* MarriedWithoutPrenup */,
1430
+ label: "Mari\xE9(e) sans contrat de mariage"
1431
+ },
1432
+ { value: "CIVIL_PARTNERSHIP" /* CivilPartnership */, label: "Pacs\xE9(e)" },
1433
+ { value: "DIVORCED" /* Divorced */, label: "Divorc\xE9(e)" },
1434
+ { value: "WIDOWED" /* Widowed */, label: "Veuf(ve)" },
1435
+ { value: "SINGLE" /* Single */, label: "C\xE9libataire" }
1436
+ ];
1437
+ var PRENUP_TYPES = [
1438
+ {
1439
+ value: "COMMUNITY_OF_PROPERTY_WITHOUT_GAINS" /* CommunityOfPropertyWithoutGains */,
1440
+ label: "Communaut\xE9 de biens r\xE9duite aux acqu\xEAts"
1441
+ },
1442
+ {
1443
+ value: "NOTARIZED_MARRIAGE_CONTRACT" /* NotarizedMarriageContract */,
1444
+ label: "Contrat de mariage par acte notari\xE9"
1445
+ },
1446
+ {
1447
+ value: "PARTICIPATION_IN_ACQUISITIONS" /* ParticipationInAcquisitions */,
1448
+ label: "Participation aux acqu\xEAts"
1449
+ },
1450
+ {
1451
+ value: "PARTICIPATION_IN_ACQUISITIONS_WITH_FULL_ATTRIBUTION_TO_SURVIVOR" /* ParticipationInAcquisitionsWithFullAttributionToSurvivor */,
1452
+ label: "Participation aux acqu\xEAts avec clause d'attribution int\xE9grale au survivant"
1453
+ },
1454
+ {
1455
+ value: "SEPARATION_OF_PROPERTY" /* SeparationOfProperty */,
1456
+ label: "S\xE9paration de biens"
1457
+ },
1458
+ {
1459
+ value: "UNIVERSAL_COMMUNITY" /* UniversalCommunity */,
1460
+ label: "Communaut\xE9 universelle"
1461
+ }
1462
+ ];
1463
+
1464
+ // src/static/contact/fields.ts
1465
+ var contactFormFields = [
1466
+ {
1467
+ fieldType: "switch",
1468
+ name: "isLegalEntity",
1469
+ label: "Le contact est une personne morale"
1470
+ },
1471
+ {
1472
+ fieldType: "text",
1473
+ name: "companyName",
1474
+ label: "D\xE9nomination sociale",
1475
+ condition: only("isLegalEntity")
1476
+ },
1477
+ {
1478
+ fieldType: "text",
1479
+ name: "companyLegalStatus",
1480
+ label: "Forme juridique",
1481
+ condition: only("isLegalEntity"),
1482
+ props: { options: LEGAL_STATUS }
1483
+ },
1484
+ {
1485
+ fieldType: "text",
1486
+ name: "companyRegistrationNumber",
1487
+ label: "Num\xE9ro d'immatriculation (SIREN)",
1488
+ condition: only("isLegalEntity")
1489
+ },
1490
+ {
1491
+ fieldType: "number",
1492
+ name: "companyCapitalStock",
1493
+ label: "Capital social",
1494
+ condition: only("isLegalEntity"),
1495
+ props: { suffix: "\u20AC" }
1496
+ },
1497
+ {
1498
+ fieldType: "date",
1499
+ name: "authorizationRepresentationDate",
1500
+ label: "Date d'habilitation \xE0 repr\xE9senter l'entit\xE9",
1501
+ condition: only("isLegalEntity")
1502
+ },
1503
+ {
1504
+ fieldType: "radio",
1505
+ name: "gender",
1506
+ label: "Civilit\xE9",
1507
+ props: { options: GENDER }
1508
+ },
1509
+ {
1510
+ fieldType: "text",
1511
+ name: "firstName",
1512
+ label: "Pr\xE9nom"
1513
+ },
1514
+ {
1515
+ fieldType: "text",
1516
+ name: "lastName",
1517
+ label: "Nom de famille"
1518
+ },
1519
+ {
1520
+ fieldType: "text",
1521
+ name: "profession",
1522
+ label: "Fonction dans l'entit\xE9",
1523
+ condition: only("isLegalEntity")
1524
+ },
1525
+ {
1526
+ fieldType: "country",
1527
+ name: "nationality",
1528
+ label: "Nationalit\xE9"
1529
+ },
1530
+ {
1531
+ fieldType: "date",
1532
+ name: "dateOfBirth",
1533
+ label: "Date de naissance"
1534
+ },
1535
+ {
1536
+ fieldType: "text",
1537
+ name: "placeOfBirth",
1538
+ label: "Ville de naissance"
1539
+ },
1540
+ {
1541
+ fieldType: "country",
1542
+ name: "countryOfBirth",
1543
+ label: "Pays de naissance"
1544
+ },
1545
+ {
1546
+ fieldType: "text",
1547
+ name: "maritalStatus",
1548
+ label: "Situation matrimoniale",
1549
+ props: { options: MARITAL_STATUS }
1550
+ },
1551
+ {
1552
+ fieldType: "text",
1553
+ name: "prenupType",
1554
+ label: "Type de contrat de mariage",
1555
+ condition: only("isMarriedWithPrenup"),
1556
+ props: { options: PRENUP_TYPES }
1557
+ },
1558
+ {
1559
+ fieldType: "text",
1560
+ name: "profession",
1561
+ label: "Profession",
1562
+ condition: not("isLegalEntity")
1563
+ },
1564
+ {
1565
+ fieldType: "phone",
1566
+ name: "phone",
1567
+ label: "Num\xE9ro de t\xE9l\xE9phone"
1568
+ },
1569
+ {
1570
+ fieldType: "text",
1571
+ name: "email",
1572
+ label: "Adresse e-mail"
1573
+ },
1574
+ {
1575
+ fieldType: "address",
1576
+ name: "address",
1577
+ label: "Adresse postale"
1578
+ },
1579
+ {
1580
+ fieldType: "text",
1581
+ name: "kycDocumentType",
1582
+ label: "Type de document d'identit\xE9",
1583
+ props: { options: IDENTIFICATION_DOCUMENTS }
1584
+ },
1585
+ {
1586
+ fieldType: "date",
1587
+ name: "kycExpiresAt",
1588
+ label: "Date d'expiration"
1589
+ }
1590
+ ];
1591
+
1592
+ // src/static/company-details.ts
1593
+ var COMPANY_INFO = {
1594
+ name: "Ecotransac",
1595
+ contactEmail: "contact@ecotransac.fr",
1596
+ contactPhone: "+33610839998",
1597
+ contactPhoneFormatted: "06 10 83 99 98",
1598
+ officeAddress: "131 Chem. du Bac \xC0 Traille - 69300 Caluire-et-Cuire",
1599
+ gdprEmail: "rgpd@ecotransac.fr",
1600
+ registration: {
1601
+ legalStatus: "SAS",
1602
+ legalStatusFull: "Soci\xE9t\xE9 par actions simplifi\xE9e",
1603
+ capitalStock: "5 000 euros",
1604
+ address: "62 rue Pierre Corneille - 69006 LYON",
1605
+ rcs: "RCS Lyon",
1606
+ siren: "933 482 499",
1607
+ siret: "933 482 499 00011",
1608
+ VATNumber: "FR85 933 482 499",
1609
+ apeCode: "68.31Z",
1610
+ representative: "Loris BOCUZE",
1611
+ pappersUrl: "https://www.pappers.fr/entreprise/ecotransac-933482499"
1612
+ },
1613
+ professionalCard: {
1614
+ issuedBy: "CCI de Lyon M\xE9tropole Saint-\xC9tienne Roanne",
1615
+ cardNumber: "CPI 6901 2024 000 000 137"
1616
+ },
1617
+ insurance: {
1618
+ name: "ALLIANZ IARD",
1619
+ headOfficeAddress: "1 cours Michelet - 92076 PARIS LA DEFENSE CEDEX",
1620
+ localOfficeAddress: "28 rue T\xEAte d'Or - 69006 LYON"
1621
+ },
1622
+ mediation: {
1623
+ mediator: "IMMOMEDIATEURS",
1624
+ address: "55 avenue Marceau - 75116 Paris"
1625
+ }
1626
+ };
1458
1627
  export {
1459
1628
  COMPANY_INFO,
1460
1629
  CONDITIONS,
@@ -1468,6 +1637,7 @@ export {
1468
1637
  LEASE_ESTABLISHMENT,
1469
1638
  LEASE_TRANSFERT_PERMISSIONS,
1470
1639
  LEGAL_NATURE,
1640
+ LEGAL_STATUS,
1471
1641
  MANDATE_EXCLUSIVITY,
1472
1642
  MARITAL_STATUS,
1473
1643
  PRENUP_TYPES,
@@ -1475,6 +1645,7 @@ export {
1475
1645
  STANDINGS,
1476
1646
  VIEWS,
1477
1647
  and,
1648
+ contactFormFields,
1478
1649
  featuresFormFields,
1479
1650
  formatAddress,
1480
1651
  formatAgentLegalData,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ecotransac-shared-js",
3
- "version": "1.1.19",
3
+ "version": "1.1.21",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "modules": "dist/index.mjs",