ecotransac-shared-js 1.1.25 → 1.1.27
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 +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +7 -5
- package/dist/index.mjs +6 -5
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -983,6 +983,7 @@ declare const formatDate: (date?: Date | null, withTime?: boolean) => string | n
|
|
|
983
983
|
declare const formatPrice: (price: number) => string;
|
|
984
984
|
declare const formatPhone: (phone?: string | null) => string | null;
|
|
985
985
|
declare const formatMandateNumber: (number: number) => string;
|
|
986
|
+
declare const formatRegistrationNumber: (rawNumber?: string | null) => string | null;
|
|
986
987
|
declare const formatAgentLegalData: (profile?: Pick<Profile, "legalStatus" | "registrationNumber" | "registrationPlace"> | null) => string | null;
|
|
987
988
|
declare const getPropertyTitle: (property: Pick<Property, "propertyType" | "roomCount" | "livingArea" | "isForProfessionalUse" | "floorLevel">) => string;
|
|
988
989
|
declare const formatNumber: (number?: number | null) => string;
|
|
@@ -1068,4 +1069,4 @@ declare const COUNTRIES: SelectOption[];
|
|
|
1068
1069
|
|
|
1069
1070
|
declare const LEGAL_STATUS: SelectOption[];
|
|
1070
1071
|
|
|
1071
|
-
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, getContactState, getFeesPercentage, getLabel, getLowThreshold, getNetPrice, getPropertyState, getPropertyTitle, getValue, mandateFormFields, not, only, or, propertyFields, shouldRender, surfacesFormFields, technicalFormFields };
|
|
1072
|
+
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, formatRegistrationNumber, formatSeconds, getAgencyFees, getContactState, getFeesPercentage, getLabel, getLowThreshold, getNetPrice, getPropertyState, getPropertyTitle, getValue, mandateFormFields, not, only, or, propertyFields, shouldRender, surfacesFormFields, technicalFormFields };
|
package/dist/index.d.ts
CHANGED
|
@@ -983,6 +983,7 @@ declare const formatDate: (date?: Date | null, withTime?: boolean) => string | n
|
|
|
983
983
|
declare const formatPrice: (price: number) => string;
|
|
984
984
|
declare const formatPhone: (phone?: string | null) => string | null;
|
|
985
985
|
declare const formatMandateNumber: (number: number) => string;
|
|
986
|
+
declare const formatRegistrationNumber: (rawNumber?: string | null) => string | null;
|
|
986
987
|
declare const formatAgentLegalData: (profile?: Pick<Profile, "legalStatus" | "registrationNumber" | "registrationPlace"> | null) => string | null;
|
|
987
988
|
declare const getPropertyTitle: (property: Pick<Property, "propertyType" | "roomCount" | "livingArea" | "isForProfessionalUse" | "floorLevel">) => string;
|
|
988
989
|
declare const formatNumber: (number?: number | null) => string;
|
|
@@ -1068,4 +1069,4 @@ declare const COUNTRIES: SelectOption[];
|
|
|
1068
1069
|
|
|
1069
1070
|
declare const LEGAL_STATUS: SelectOption[];
|
|
1070
1071
|
|
|
1071
|
-
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, getContactState, getFeesPercentage, getLabel, getLowThreshold, getNetPrice, getPropertyState, getPropertyTitle, getValue, mandateFormFields, not, only, or, propertyFields, shouldRender, surfacesFormFields, technicalFormFields };
|
|
1072
|
+
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, formatRegistrationNumber, formatSeconds, getAgencyFees, getContactState, getFeesPercentage, getLabel, getLowThreshold, getNetPrice, getPropertyState, getPropertyTitle, getValue, mandateFormFields, not, only, or, propertyFields, shouldRender, surfacesFormFields, technicalFormFields };
|
package/dist/index.js
CHANGED
|
@@ -59,6 +59,7 @@ __export(src_exports, {
|
|
|
59
59
|
formatNumber: () => formatNumber,
|
|
60
60
|
formatPhone: () => formatPhone,
|
|
61
61
|
formatPrice: () => formatPrice,
|
|
62
|
+
formatRegistrationNumber: () => formatRegistrationNumber,
|
|
62
63
|
formatSeconds: () => formatSeconds,
|
|
63
64
|
getAgencyFees: () => getAgencyFees,
|
|
64
65
|
getContactState: () => getContactState,
|
|
@@ -761,7 +762,7 @@ var featuresFormFields = [
|
|
|
761
762
|
},
|
|
762
763
|
{
|
|
763
764
|
name: "hasElevator",
|
|
764
|
-
fieldType: "radio",
|
|
765
|
+
fieldType: "radio-boolean",
|
|
765
766
|
label: "Avec ascenseur",
|
|
766
767
|
condition: not("isLand"),
|
|
767
768
|
requiredFor: ["MANDATE_CREATION" /* MandateCreation */, "DIFFUSION" /* Diffusion */]
|
|
@@ -776,7 +777,7 @@ var featuresFormFields = [
|
|
|
776
777
|
{
|
|
777
778
|
name: "hasGarden",
|
|
778
779
|
fieldType: "radio-boolean",
|
|
779
|
-
label: "Avec
|
|
780
|
+
label: "Avec jardin",
|
|
780
781
|
condition: and(not("isLand"), not("isParking")),
|
|
781
782
|
requiredFor: ["DIFFUSION" /* Diffusion */]
|
|
782
783
|
},
|
|
@@ -1558,7 +1559,7 @@ var contactFormFields = [
|
|
|
1558
1559
|
},
|
|
1559
1560
|
{
|
|
1560
1561
|
name: "companyLegalStatus",
|
|
1561
|
-
fieldType: "
|
|
1562
|
+
fieldType: "select",
|
|
1562
1563
|
label: "Forme juridique",
|
|
1563
1564
|
condition: only("isLegalEntity"),
|
|
1564
1565
|
props: { options: LEGAL_STATUS }
|
|
@@ -1626,7 +1627,7 @@ var contactFormFields = [
|
|
|
1626
1627
|
},
|
|
1627
1628
|
{
|
|
1628
1629
|
name: "maritalStatus",
|
|
1629
|
-
fieldType: "
|
|
1630
|
+
fieldType: "select",
|
|
1630
1631
|
label: "Situation matrimoniale",
|
|
1631
1632
|
props: { options: MARITAL_STATUS }
|
|
1632
1633
|
},
|
|
@@ -1660,7 +1661,7 @@ var contactFormFields = [
|
|
|
1660
1661
|
},
|
|
1661
1662
|
{
|
|
1662
1663
|
name: "kycDocumentType",
|
|
1663
|
-
fieldType: "
|
|
1664
|
+
fieldType: "select",
|
|
1664
1665
|
label: "Type de document d'identit\xE9",
|
|
1665
1666
|
props: { options: IDENTIFICATION_DOCUMENTS }
|
|
1666
1667
|
},
|
|
@@ -1753,6 +1754,7 @@ var COMPANY_INFO = {
|
|
|
1753
1754
|
formatNumber,
|
|
1754
1755
|
formatPhone,
|
|
1755
1756
|
formatPrice,
|
|
1757
|
+
formatRegistrationNumber,
|
|
1756
1758
|
formatSeconds,
|
|
1757
1759
|
getAgencyFees,
|
|
1758
1760
|
getContactState,
|
package/dist/index.mjs
CHANGED
|
@@ -679,7 +679,7 @@ var featuresFormFields = [
|
|
|
679
679
|
},
|
|
680
680
|
{
|
|
681
681
|
name: "hasElevator",
|
|
682
|
-
fieldType: "radio",
|
|
682
|
+
fieldType: "radio-boolean",
|
|
683
683
|
label: "Avec ascenseur",
|
|
684
684
|
condition: not("isLand"),
|
|
685
685
|
requiredFor: ["MANDATE_CREATION" /* MandateCreation */, "DIFFUSION" /* Diffusion */]
|
|
@@ -694,7 +694,7 @@ var featuresFormFields = [
|
|
|
694
694
|
{
|
|
695
695
|
name: "hasGarden",
|
|
696
696
|
fieldType: "radio-boolean",
|
|
697
|
-
label: "Avec
|
|
697
|
+
label: "Avec jardin",
|
|
698
698
|
condition: and(not("isLand"), not("isParking")),
|
|
699
699
|
requiredFor: ["DIFFUSION" /* Diffusion */]
|
|
700
700
|
},
|
|
@@ -1476,7 +1476,7 @@ var contactFormFields = [
|
|
|
1476
1476
|
},
|
|
1477
1477
|
{
|
|
1478
1478
|
name: "companyLegalStatus",
|
|
1479
|
-
fieldType: "
|
|
1479
|
+
fieldType: "select",
|
|
1480
1480
|
label: "Forme juridique",
|
|
1481
1481
|
condition: only("isLegalEntity"),
|
|
1482
1482
|
props: { options: LEGAL_STATUS }
|
|
@@ -1544,7 +1544,7 @@ var contactFormFields = [
|
|
|
1544
1544
|
},
|
|
1545
1545
|
{
|
|
1546
1546
|
name: "maritalStatus",
|
|
1547
|
-
fieldType: "
|
|
1547
|
+
fieldType: "select",
|
|
1548
1548
|
label: "Situation matrimoniale",
|
|
1549
1549
|
props: { options: MARITAL_STATUS }
|
|
1550
1550
|
},
|
|
@@ -1578,7 +1578,7 @@ var contactFormFields = [
|
|
|
1578
1578
|
},
|
|
1579
1579
|
{
|
|
1580
1580
|
name: "kycDocumentType",
|
|
1581
|
-
fieldType: "
|
|
1581
|
+
fieldType: "select",
|
|
1582
1582
|
label: "Type de document d'identit\xE9",
|
|
1583
1583
|
props: { options: IDENTIFICATION_DOCUMENTS }
|
|
1584
1584
|
},
|
|
@@ -1670,6 +1670,7 @@ export {
|
|
|
1670
1670
|
formatNumber,
|
|
1671
1671
|
formatPhone,
|
|
1672
1672
|
formatPrice,
|
|
1673
|
+
formatRegistrationNumber,
|
|
1673
1674
|
formatSeconds,
|
|
1674
1675
|
getAgencyFees,
|
|
1675
1676
|
getContactState,
|