ecotransac-shared-js 1.2.20 → 1.2.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.js +45 -22
- package/dist/index.mjs +45 -22
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1668,131 +1668,154 @@ var contactFormFields = [
|
|
|
1668
1668
|
{
|
|
1669
1669
|
name: "isLegalEntity",
|
|
1670
1670
|
fieldType: "switch",
|
|
1671
|
-
label: "Le contact est une personne morale"
|
|
1671
|
+
label: "Le contact est une personne morale",
|
|
1672
|
+
requiredFor: ["MANDATE_CREATION"]
|
|
1672
1673
|
},
|
|
1673
1674
|
{
|
|
1674
1675
|
name: "companyName",
|
|
1675
1676
|
fieldType: "text",
|
|
1676
1677
|
label: "D\xE9nomination sociale",
|
|
1677
|
-
condition: only("isLegalEntity")
|
|
1678
|
+
condition: only("isLegalEntity"),
|
|
1679
|
+
requiredFor: ["MANDATE_CREATION"]
|
|
1678
1680
|
},
|
|
1679
1681
|
{
|
|
1680
1682
|
name: "companyLegalStatus",
|
|
1681
1683
|
fieldType: "select",
|
|
1682
1684
|
label: "Forme juridique",
|
|
1683
1685
|
condition: only("isLegalEntity"),
|
|
1686
|
+
requiredFor: ["MANDATE_CREATION"],
|
|
1684
1687
|
props: { options: LEGAL_STATUS }
|
|
1685
1688
|
},
|
|
1686
1689
|
{
|
|
1687
1690
|
name: "companyRegistrationNumber",
|
|
1688
1691
|
fieldType: "text",
|
|
1689
1692
|
label: "Num\xE9ro d'immatriculation (SIREN)",
|
|
1690
|
-
condition: only("isLegalEntity")
|
|
1693
|
+
condition: only("isLegalEntity"),
|
|
1694
|
+
requiredFor: ["MANDATE_CREATION"]
|
|
1691
1695
|
},
|
|
1692
1696
|
{
|
|
1693
1697
|
name: "companyCapitalStock",
|
|
1694
1698
|
fieldType: "number",
|
|
1695
1699
|
label: "Capital social",
|
|
1696
1700
|
condition: only("isLegalEntity"),
|
|
1697
|
-
props: { suffix: "\u20AC" }
|
|
1701
|
+
props: { suffix: "\u20AC" },
|
|
1702
|
+
requiredFor: ["MANDATE_CREATION"]
|
|
1698
1703
|
},
|
|
1699
1704
|
{
|
|
1700
1705
|
name: "authorizationRepresentationDate",
|
|
1701
1706
|
fieldType: "date",
|
|
1702
1707
|
label: "Date d'habilitation \xE0 repr\xE9senter l'entit\xE9",
|
|
1703
|
-
condition: only("isLegalEntity")
|
|
1708
|
+
condition: only("isLegalEntity"),
|
|
1709
|
+
requiredFor: ["MANDATE_CREATION"]
|
|
1704
1710
|
},
|
|
1705
1711
|
{
|
|
1706
1712
|
name: "gender",
|
|
1707
1713
|
fieldType: "radio",
|
|
1708
1714
|
label: "Civilit\xE9",
|
|
1709
|
-
props: { options: GENDER }
|
|
1715
|
+
props: { options: GENDER },
|
|
1716
|
+
requiredFor: ["MANDATE_CREATION"]
|
|
1710
1717
|
},
|
|
1711
1718
|
{
|
|
1712
1719
|
name: "firstName",
|
|
1713
1720
|
fieldType: "text",
|
|
1714
|
-
label: "Pr\xE9nom"
|
|
1721
|
+
label: "Pr\xE9nom",
|
|
1722
|
+
requiredFor: ["MANDATE_CREATION"]
|
|
1715
1723
|
},
|
|
1716
1724
|
{
|
|
1717
1725
|
name: "lastName",
|
|
1718
1726
|
fieldType: "text",
|
|
1719
|
-
label: "Nom de famille"
|
|
1727
|
+
label: "Nom de famille",
|
|
1728
|
+
requiredFor: ["MANDATE_CREATION"]
|
|
1720
1729
|
},
|
|
1721
1730
|
{
|
|
1722
1731
|
name: "profession",
|
|
1723
1732
|
fieldType: "text",
|
|
1724
1733
|
label: "Fonction dans l'entit\xE9",
|
|
1725
|
-
condition: only("isLegalEntity")
|
|
1734
|
+
condition: only("isLegalEntity"),
|
|
1735
|
+
requiredFor: []
|
|
1726
1736
|
},
|
|
1727
1737
|
{
|
|
1728
1738
|
name: "nationality",
|
|
1729
1739
|
fieldType: "country",
|
|
1730
|
-
label: "Nationalit\xE9"
|
|
1740
|
+
label: "Nationalit\xE9",
|
|
1741
|
+
requiredFor: []
|
|
1731
1742
|
},
|
|
1732
1743
|
{
|
|
1733
1744
|
name: "dateOfBirth",
|
|
1734
1745
|
fieldType: "date",
|
|
1735
|
-
label: "Date de naissance"
|
|
1746
|
+
label: "Date de naissance",
|
|
1747
|
+
requiredFor: []
|
|
1736
1748
|
},
|
|
1737
1749
|
{
|
|
1738
1750
|
name: "placeOfBirth",
|
|
1739
1751
|
fieldType: "text",
|
|
1740
|
-
label: "Ville de naissance"
|
|
1752
|
+
label: "Ville de naissance",
|
|
1753
|
+
requiredFor: []
|
|
1741
1754
|
},
|
|
1742
1755
|
{
|
|
1743
1756
|
name: "countryOfBirth",
|
|
1744
1757
|
fieldType: "country",
|
|
1745
|
-
label: "Pays de naissance"
|
|
1758
|
+
label: "Pays de naissance",
|
|
1759
|
+
requiredFor: []
|
|
1746
1760
|
},
|
|
1747
1761
|
{
|
|
1748
1762
|
name: "maritalStatus",
|
|
1749
1763
|
fieldType: "select",
|
|
1750
1764
|
label: "Situation matrimoniale",
|
|
1751
1765
|
props: { options: MARITAL_STATUS },
|
|
1752
|
-
condition: not("isLegalEntity")
|
|
1766
|
+
condition: not("isLegalEntity"),
|
|
1767
|
+
requiredFor: ["MANDATE_CREATION"]
|
|
1753
1768
|
},
|
|
1754
1769
|
{
|
|
1755
1770
|
name: "prenupType",
|
|
1756
1771
|
fieldType: "select",
|
|
1757
1772
|
label: "Type de contrat de mariage",
|
|
1758
1773
|
condition: and(only("isMarriedWithPrenup"), not("isLegalEntity")),
|
|
1759
|
-
props: { options: PRENUP_TYPES }
|
|
1774
|
+
props: { options: PRENUP_TYPES },
|
|
1775
|
+
requiredFor: ["MANDATE_CREATION"]
|
|
1760
1776
|
},
|
|
1761
1777
|
{
|
|
1762
1778
|
name: "profession",
|
|
1763
1779
|
fieldType: "text",
|
|
1764
1780
|
label: "Profession",
|
|
1765
|
-
condition: not("isLegalEntity")
|
|
1781
|
+
condition: not("isLegalEntity"),
|
|
1782
|
+
requiredFor: []
|
|
1766
1783
|
},
|
|
1767
1784
|
{
|
|
1768
1785
|
name: "phone",
|
|
1769
1786
|
fieldType: "phone",
|
|
1770
|
-
label: "Num\xE9ro de t\xE9l\xE9phone"
|
|
1787
|
+
label: "Num\xE9ro de t\xE9l\xE9phone",
|
|
1788
|
+
requiredFor: ["MANDATE_CREATION"]
|
|
1771
1789
|
},
|
|
1772
1790
|
{
|
|
1773
1791
|
name: "email",
|
|
1774
1792
|
fieldType: "text",
|
|
1775
|
-
label: "Adresse e-mail"
|
|
1793
|
+
label: "Adresse e-mail",
|
|
1794
|
+
requiredFor: ["MANDATE_CREATION"]
|
|
1776
1795
|
},
|
|
1777
1796
|
{
|
|
1778
1797
|
name: "address",
|
|
1779
1798
|
fieldType: "address",
|
|
1780
|
-
label: "Adresse postale"
|
|
1799
|
+
label: "Adresse postale",
|
|
1800
|
+
requiredFor: ["MANDATE_CREATION"]
|
|
1781
1801
|
},
|
|
1782
1802
|
{
|
|
1783
1803
|
name: "kycDocumentNumber",
|
|
1784
1804
|
fieldType: "text",
|
|
1785
|
-
label: "Num\xE9ro du document d\u2019identit\xE9"
|
|
1805
|
+
label: "Num\xE9ro du document d\u2019identit\xE9",
|
|
1806
|
+
requiredFor: []
|
|
1786
1807
|
},
|
|
1787
1808
|
{
|
|
1788
1809
|
name: "kycIssuedBy",
|
|
1789
1810
|
fieldType: "country",
|
|
1790
|
-
label: "Pays de d\xE9livrance"
|
|
1811
|
+
label: "Pays de d\xE9livrance",
|
|
1812
|
+
requiredFor: []
|
|
1791
1813
|
},
|
|
1792
1814
|
{
|
|
1793
1815
|
name: "kycExpiresAt",
|
|
1794
1816
|
fieldType: "date",
|
|
1795
|
-
label: "Date d'expiration"
|
|
1817
|
+
label: "Date d'expiration",
|
|
1818
|
+
requiredFor: []
|
|
1796
1819
|
}
|
|
1797
1820
|
];
|
|
1798
1821
|
|
package/dist/index.mjs
CHANGED
|
@@ -1575,131 +1575,154 @@ var contactFormFields = [
|
|
|
1575
1575
|
{
|
|
1576
1576
|
name: "isLegalEntity",
|
|
1577
1577
|
fieldType: "switch",
|
|
1578
|
-
label: "Le contact est une personne morale"
|
|
1578
|
+
label: "Le contact est une personne morale",
|
|
1579
|
+
requiredFor: ["MANDATE_CREATION"]
|
|
1579
1580
|
},
|
|
1580
1581
|
{
|
|
1581
1582
|
name: "companyName",
|
|
1582
1583
|
fieldType: "text",
|
|
1583
1584
|
label: "D\xE9nomination sociale",
|
|
1584
|
-
condition: only("isLegalEntity")
|
|
1585
|
+
condition: only("isLegalEntity"),
|
|
1586
|
+
requiredFor: ["MANDATE_CREATION"]
|
|
1585
1587
|
},
|
|
1586
1588
|
{
|
|
1587
1589
|
name: "companyLegalStatus",
|
|
1588
1590
|
fieldType: "select",
|
|
1589
1591
|
label: "Forme juridique",
|
|
1590
1592
|
condition: only("isLegalEntity"),
|
|
1593
|
+
requiredFor: ["MANDATE_CREATION"],
|
|
1591
1594
|
props: { options: LEGAL_STATUS }
|
|
1592
1595
|
},
|
|
1593
1596
|
{
|
|
1594
1597
|
name: "companyRegistrationNumber",
|
|
1595
1598
|
fieldType: "text",
|
|
1596
1599
|
label: "Num\xE9ro d'immatriculation (SIREN)",
|
|
1597
|
-
condition: only("isLegalEntity")
|
|
1600
|
+
condition: only("isLegalEntity"),
|
|
1601
|
+
requiredFor: ["MANDATE_CREATION"]
|
|
1598
1602
|
},
|
|
1599
1603
|
{
|
|
1600
1604
|
name: "companyCapitalStock",
|
|
1601
1605
|
fieldType: "number",
|
|
1602
1606
|
label: "Capital social",
|
|
1603
1607
|
condition: only("isLegalEntity"),
|
|
1604
|
-
props: { suffix: "\u20AC" }
|
|
1608
|
+
props: { suffix: "\u20AC" },
|
|
1609
|
+
requiredFor: ["MANDATE_CREATION"]
|
|
1605
1610
|
},
|
|
1606
1611
|
{
|
|
1607
1612
|
name: "authorizationRepresentationDate",
|
|
1608
1613
|
fieldType: "date",
|
|
1609
1614
|
label: "Date d'habilitation \xE0 repr\xE9senter l'entit\xE9",
|
|
1610
|
-
condition: only("isLegalEntity")
|
|
1615
|
+
condition: only("isLegalEntity"),
|
|
1616
|
+
requiredFor: ["MANDATE_CREATION"]
|
|
1611
1617
|
},
|
|
1612
1618
|
{
|
|
1613
1619
|
name: "gender",
|
|
1614
1620
|
fieldType: "radio",
|
|
1615
1621
|
label: "Civilit\xE9",
|
|
1616
|
-
props: { options: GENDER }
|
|
1622
|
+
props: { options: GENDER },
|
|
1623
|
+
requiredFor: ["MANDATE_CREATION"]
|
|
1617
1624
|
},
|
|
1618
1625
|
{
|
|
1619
1626
|
name: "firstName",
|
|
1620
1627
|
fieldType: "text",
|
|
1621
|
-
label: "Pr\xE9nom"
|
|
1628
|
+
label: "Pr\xE9nom",
|
|
1629
|
+
requiredFor: ["MANDATE_CREATION"]
|
|
1622
1630
|
},
|
|
1623
1631
|
{
|
|
1624
1632
|
name: "lastName",
|
|
1625
1633
|
fieldType: "text",
|
|
1626
|
-
label: "Nom de famille"
|
|
1634
|
+
label: "Nom de famille",
|
|
1635
|
+
requiredFor: ["MANDATE_CREATION"]
|
|
1627
1636
|
},
|
|
1628
1637
|
{
|
|
1629
1638
|
name: "profession",
|
|
1630
1639
|
fieldType: "text",
|
|
1631
1640
|
label: "Fonction dans l'entit\xE9",
|
|
1632
|
-
condition: only("isLegalEntity")
|
|
1641
|
+
condition: only("isLegalEntity"),
|
|
1642
|
+
requiredFor: []
|
|
1633
1643
|
},
|
|
1634
1644
|
{
|
|
1635
1645
|
name: "nationality",
|
|
1636
1646
|
fieldType: "country",
|
|
1637
|
-
label: "Nationalit\xE9"
|
|
1647
|
+
label: "Nationalit\xE9",
|
|
1648
|
+
requiredFor: []
|
|
1638
1649
|
},
|
|
1639
1650
|
{
|
|
1640
1651
|
name: "dateOfBirth",
|
|
1641
1652
|
fieldType: "date",
|
|
1642
|
-
label: "Date de naissance"
|
|
1653
|
+
label: "Date de naissance",
|
|
1654
|
+
requiredFor: []
|
|
1643
1655
|
},
|
|
1644
1656
|
{
|
|
1645
1657
|
name: "placeOfBirth",
|
|
1646
1658
|
fieldType: "text",
|
|
1647
|
-
label: "Ville de naissance"
|
|
1659
|
+
label: "Ville de naissance",
|
|
1660
|
+
requiredFor: []
|
|
1648
1661
|
},
|
|
1649
1662
|
{
|
|
1650
1663
|
name: "countryOfBirth",
|
|
1651
1664
|
fieldType: "country",
|
|
1652
|
-
label: "Pays de naissance"
|
|
1665
|
+
label: "Pays de naissance",
|
|
1666
|
+
requiredFor: []
|
|
1653
1667
|
},
|
|
1654
1668
|
{
|
|
1655
1669
|
name: "maritalStatus",
|
|
1656
1670
|
fieldType: "select",
|
|
1657
1671
|
label: "Situation matrimoniale",
|
|
1658
1672
|
props: { options: MARITAL_STATUS },
|
|
1659
|
-
condition: not("isLegalEntity")
|
|
1673
|
+
condition: not("isLegalEntity"),
|
|
1674
|
+
requiredFor: ["MANDATE_CREATION"]
|
|
1660
1675
|
},
|
|
1661
1676
|
{
|
|
1662
1677
|
name: "prenupType",
|
|
1663
1678
|
fieldType: "select",
|
|
1664
1679
|
label: "Type de contrat de mariage",
|
|
1665
1680
|
condition: and(only("isMarriedWithPrenup"), not("isLegalEntity")),
|
|
1666
|
-
props: { options: PRENUP_TYPES }
|
|
1681
|
+
props: { options: PRENUP_TYPES },
|
|
1682
|
+
requiredFor: ["MANDATE_CREATION"]
|
|
1667
1683
|
},
|
|
1668
1684
|
{
|
|
1669
1685
|
name: "profession",
|
|
1670
1686
|
fieldType: "text",
|
|
1671
1687
|
label: "Profession",
|
|
1672
|
-
condition: not("isLegalEntity")
|
|
1688
|
+
condition: not("isLegalEntity"),
|
|
1689
|
+
requiredFor: []
|
|
1673
1690
|
},
|
|
1674
1691
|
{
|
|
1675
1692
|
name: "phone",
|
|
1676
1693
|
fieldType: "phone",
|
|
1677
|
-
label: "Num\xE9ro de t\xE9l\xE9phone"
|
|
1694
|
+
label: "Num\xE9ro de t\xE9l\xE9phone",
|
|
1695
|
+
requiredFor: ["MANDATE_CREATION"]
|
|
1678
1696
|
},
|
|
1679
1697
|
{
|
|
1680
1698
|
name: "email",
|
|
1681
1699
|
fieldType: "text",
|
|
1682
|
-
label: "Adresse e-mail"
|
|
1700
|
+
label: "Adresse e-mail",
|
|
1701
|
+
requiredFor: ["MANDATE_CREATION"]
|
|
1683
1702
|
},
|
|
1684
1703
|
{
|
|
1685
1704
|
name: "address",
|
|
1686
1705
|
fieldType: "address",
|
|
1687
|
-
label: "Adresse postale"
|
|
1706
|
+
label: "Adresse postale",
|
|
1707
|
+
requiredFor: ["MANDATE_CREATION"]
|
|
1688
1708
|
},
|
|
1689
1709
|
{
|
|
1690
1710
|
name: "kycDocumentNumber",
|
|
1691
1711
|
fieldType: "text",
|
|
1692
|
-
label: "Num\xE9ro du document d\u2019identit\xE9"
|
|
1712
|
+
label: "Num\xE9ro du document d\u2019identit\xE9",
|
|
1713
|
+
requiredFor: []
|
|
1693
1714
|
},
|
|
1694
1715
|
{
|
|
1695
1716
|
name: "kycIssuedBy",
|
|
1696
1717
|
fieldType: "country",
|
|
1697
|
-
label: "Pays de d\xE9livrance"
|
|
1718
|
+
label: "Pays de d\xE9livrance",
|
|
1719
|
+
requiredFor: []
|
|
1698
1720
|
},
|
|
1699
1721
|
{
|
|
1700
1722
|
name: "kycExpiresAt",
|
|
1701
1723
|
fieldType: "date",
|
|
1702
|
-
label: "Date d'expiration"
|
|
1724
|
+
label: "Date d'expiration",
|
|
1725
|
+
requiredFor: []
|
|
1703
1726
|
}
|
|
1704
1727
|
];
|
|
1705
1728
|
|