ecotransac-shared-js 1.2.13 → 1.2.16
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 +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +17 -5
- package/dist/index.mjs +17 -5
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -846,13 +846,18 @@ declare const COMPANY_INFO: {
|
|
|
846
846
|
insurance: {
|
|
847
847
|
name: string;
|
|
848
848
|
headOfficeAddress: string;
|
|
849
|
-
localOfficeAddress: string;
|
|
850
849
|
};
|
|
851
850
|
mediation: {
|
|
852
851
|
mediator: string;
|
|
853
852
|
address: string;
|
|
854
853
|
url: string;
|
|
855
854
|
};
|
|
855
|
+
bankDetails: {
|
|
856
|
+
name: string;
|
|
857
|
+
city: string;
|
|
858
|
+
iban: string;
|
|
859
|
+
bic: string;
|
|
860
|
+
};
|
|
856
861
|
};
|
|
857
862
|
|
|
858
863
|
declare const COUNTRIES: SelectOption<string>[];
|
package/dist/index.d.ts
CHANGED
|
@@ -846,13 +846,18 @@ declare const COMPANY_INFO: {
|
|
|
846
846
|
insurance: {
|
|
847
847
|
name: string;
|
|
848
848
|
headOfficeAddress: string;
|
|
849
|
-
localOfficeAddress: string;
|
|
850
849
|
};
|
|
851
850
|
mediation: {
|
|
852
851
|
mediator: string;
|
|
853
852
|
address: string;
|
|
854
853
|
url: string;
|
|
855
854
|
};
|
|
855
|
+
bankDetails: {
|
|
856
|
+
name: string;
|
|
857
|
+
city: string;
|
|
858
|
+
iban: string;
|
|
859
|
+
bic: string;
|
|
860
|
+
};
|
|
856
861
|
};
|
|
857
862
|
|
|
858
863
|
declare const COUNTRIES: SelectOption<string>[];
|
package/dist/index.js
CHANGED
|
@@ -417,8 +417,15 @@ var formatAddress = (address) => `${address.address}, ${address.postalCode} ${ad
|
|
|
417
417
|
var formatSeconds = (seconds) => {
|
|
418
418
|
const hours = Math.floor(seconds / 3600);
|
|
419
419
|
const minutes = Math.floor((seconds - hours * 3600) / 60);
|
|
420
|
-
|
|
421
|
-
|
|
420
|
+
const secondsLeft = seconds - hours * 3600 - minutes * 60;
|
|
421
|
+
const hoursLabel = hours > 0 ? `${hours} heure${hours > 1 ? "s" : ""}` : null;
|
|
422
|
+
const minutesLabel = minutes > 0 ? `${minutes} minute${minutes > 1 ? "s" : ""}` : null;
|
|
423
|
+
const secondsLabel = secondsLeft > 0 ? `${secondsLeft} seconde${secondsLeft > 1 ? "s" : ""}` : null;
|
|
424
|
+
const labels = [hoursLabel, minutesLabel, secondsLabel].filter(Boolean);
|
|
425
|
+
if (labels.length > 1) {
|
|
426
|
+
labels.splice(-1, 0, "et");
|
|
427
|
+
}
|
|
428
|
+
return labels.join(" ");
|
|
422
429
|
};
|
|
423
430
|
var formatReference = (reference) => `R\xE9f. ${reference.toString().padStart(5, "0")}`;
|
|
424
431
|
var formatDate = (date, withTime = false) => {
|
|
@@ -1818,14 +1825,19 @@ var COMPANY_INFO = {
|
|
|
1818
1825
|
cardNumber: "CPI 6901 2024 000 000 137"
|
|
1819
1826
|
},
|
|
1820
1827
|
insurance: {
|
|
1821
|
-
name: "
|
|
1822
|
-
headOfficeAddress: "
|
|
1823
|
-
localOfficeAddress: "28 rue T\xEAte d'Or - 69006 LYON"
|
|
1828
|
+
name: "Assurance Generali - J.C. Piercy Assurances",
|
|
1829
|
+
headOfficeAddress: "7 Rue Amp\xE8re - 38000 Grenoble"
|
|
1824
1830
|
},
|
|
1825
1831
|
mediation: {
|
|
1826
1832
|
mediator: "IMMOMEDIATEURS",
|
|
1827
1833
|
address: "55 avenue Marceau - 75116 Paris",
|
|
1828
1834
|
url: "www.immomediateurs.com"
|
|
1835
|
+
},
|
|
1836
|
+
bankDetails: {
|
|
1837
|
+
name: "LCL",
|
|
1838
|
+
city: "Saint Didier au mont d'or",
|
|
1839
|
+
iban: "FR41 3000 2010 9400 0009 9459 Z41",
|
|
1840
|
+
bic: "CRLYFRPP"
|
|
1829
1841
|
}
|
|
1830
1842
|
};
|
|
1831
1843
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/index.mjs
CHANGED
|
@@ -326,8 +326,15 @@ var formatAddress = (address) => `${address.address}, ${address.postalCode} ${ad
|
|
|
326
326
|
var formatSeconds = (seconds) => {
|
|
327
327
|
const hours = Math.floor(seconds / 3600);
|
|
328
328
|
const minutes = Math.floor((seconds - hours * 3600) / 60);
|
|
329
|
-
|
|
330
|
-
|
|
329
|
+
const secondsLeft = seconds - hours * 3600 - minutes * 60;
|
|
330
|
+
const hoursLabel = hours > 0 ? `${hours} heure${hours > 1 ? "s" : ""}` : null;
|
|
331
|
+
const minutesLabel = minutes > 0 ? `${minutes} minute${minutes > 1 ? "s" : ""}` : null;
|
|
332
|
+
const secondsLabel = secondsLeft > 0 ? `${secondsLeft} seconde${secondsLeft > 1 ? "s" : ""}` : null;
|
|
333
|
+
const labels = [hoursLabel, minutesLabel, secondsLabel].filter(Boolean);
|
|
334
|
+
if (labels.length > 1) {
|
|
335
|
+
labels.splice(-1, 0, "et");
|
|
336
|
+
}
|
|
337
|
+
return labels.join(" ");
|
|
331
338
|
};
|
|
332
339
|
var formatReference = (reference) => `R\xE9f. ${reference.toString().padStart(5, "0")}`;
|
|
333
340
|
var formatDate = (date, withTime = false) => {
|
|
@@ -1727,14 +1734,19 @@ var COMPANY_INFO = {
|
|
|
1727
1734
|
cardNumber: "CPI 6901 2024 000 000 137"
|
|
1728
1735
|
},
|
|
1729
1736
|
insurance: {
|
|
1730
|
-
name: "
|
|
1731
|
-
headOfficeAddress: "
|
|
1732
|
-
localOfficeAddress: "28 rue T\xEAte d'Or - 69006 LYON"
|
|
1737
|
+
name: "Assurance Generali - J.C. Piercy Assurances",
|
|
1738
|
+
headOfficeAddress: "7 Rue Amp\xE8re - 38000 Grenoble"
|
|
1733
1739
|
},
|
|
1734
1740
|
mediation: {
|
|
1735
1741
|
mediator: "IMMOMEDIATEURS",
|
|
1736
1742
|
address: "55 avenue Marceau - 75116 Paris",
|
|
1737
1743
|
url: "www.immomediateurs.com"
|
|
1744
|
+
},
|
|
1745
|
+
bankDetails: {
|
|
1746
|
+
name: "LCL",
|
|
1747
|
+
city: "Saint Didier au mont d'or",
|
|
1748
|
+
iban: "FR41 3000 2010 9400 0009 9459 Z41",
|
|
1749
|
+
bic: "CRLYFRPP"
|
|
1738
1750
|
}
|
|
1739
1751
|
};
|
|
1740
1752
|
export {
|