ecotransac-shared-js 1.2.28 → 1.2.30
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 +10 -9
- package/dist/index.d.ts +10 -9
- package/dist/index.js +16 -7
- package/dist/index.mjs +16 -7
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -45,10 +45,6 @@ type Scalars = {
|
|
|
45
45
|
input: Date;
|
|
46
46
|
output: Date;
|
|
47
47
|
};
|
|
48
|
-
Upload: {
|
|
49
|
-
input: any;
|
|
50
|
-
output: any;
|
|
51
|
-
};
|
|
52
48
|
};
|
|
53
49
|
type Address = {
|
|
54
50
|
__typename?: 'Address';
|
|
@@ -64,13 +60,13 @@ type Address = {
|
|
|
64
60
|
};
|
|
65
61
|
type Advert = {
|
|
66
62
|
__typename?: 'Advert';
|
|
67
|
-
adUrl
|
|
63
|
+
adUrl?: Maybe<Scalars['String']['output']>;
|
|
68
64
|
createdAt: Scalars['DateTime']['output'];
|
|
69
65
|
description: Scalars['String']['output'];
|
|
70
66
|
id: Scalars['String']['output'];
|
|
71
|
-
isPublished: Scalars['Boolean']['output'];
|
|
72
67
|
property: Property;
|
|
73
68
|
propertyId: Scalars['String']['output'];
|
|
69
|
+
publishedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
74
70
|
title: Scalars['String']['output'];
|
|
75
71
|
updatedAt: Scalars['DateTime']['output'];
|
|
76
72
|
withdrawnAt?: Maybe<Scalars['DateTime']['output']>;
|
|
@@ -402,10 +398,11 @@ type CustomerFeedback = {
|
|
|
402
398
|
__typename?: 'CustomerFeedback';
|
|
403
399
|
comment: Scalars['String']['output'];
|
|
404
400
|
createdAt: Scalars['DateTime']['output'];
|
|
405
|
-
|
|
406
|
-
|
|
401
|
+
customerLocation: Scalars['String']['output'];
|
|
402
|
+
customerName: Scalars['String']['output'];
|
|
407
403
|
id: Scalars['ID']['output'];
|
|
408
404
|
isHidden: Scalars['Boolean']['output'];
|
|
405
|
+
isRenovation: Scalars['Boolean']['output'];
|
|
409
406
|
userSlug: Scalars['String']['output'];
|
|
410
407
|
};
|
|
411
408
|
type EnergyScore = 'A' | 'B' | 'C' | 'D' | 'E' | 'F' | 'G';
|
|
@@ -575,6 +572,7 @@ type Profile = {
|
|
|
575
572
|
personalEmail?: Maybe<Scalars['String']['output']>;
|
|
576
573
|
phone?: Maybe<Scalars['String']['output']>;
|
|
577
574
|
pictureUrl?: Maybe<Scalars['String']['output']>;
|
|
575
|
+
pictureUrlNoBg?: Maybe<Scalars['String']['output']>;
|
|
578
576
|
placeOfBirth?: Maybe<Scalars['String']['output']>;
|
|
579
577
|
presentation?: Maybe<Scalars['String']['output']>;
|
|
580
578
|
punchline?: Maybe<Scalars['String']['output']>;
|
|
@@ -632,6 +630,7 @@ type Property = {
|
|
|
632
630
|
hasElevator?: Maybe<Scalars['Boolean']['output']>;
|
|
633
631
|
hasGarden?: Maybe<Scalars['Boolean']['output']>;
|
|
634
632
|
hasHotWater?: Maybe<Scalars['Boolean']['output']>;
|
|
633
|
+
hasOngoingProcedures?: Maybe<Scalars['Boolean']['output']>;
|
|
635
634
|
hasRoofing?: Maybe<Scalars['Boolean']['output']>;
|
|
636
635
|
hasSeparateToilet?: Maybe<Scalars['Boolean']['output']>;
|
|
637
636
|
healthsSurroundings?: Maybe<Scalars['String']['output']>;
|
|
@@ -666,7 +665,7 @@ type Property = {
|
|
|
666
665
|
livingArea?: Maybe<Scalars['Int']['output']>;
|
|
667
666
|
mandates: Array<Mandate>;
|
|
668
667
|
naturalsSurroundings?: Maybe<Scalars['String']['output']>;
|
|
669
|
-
|
|
668
|
+
ongoingProceduresDetails?: Maybe<Scalars['String']['output']>;
|
|
670
669
|
otherServices?: Maybe<Scalars['String']['output']>;
|
|
671
670
|
othersSurroundings?: Maybe<Scalars['String']['output']>;
|
|
672
671
|
outsideServices?: Maybe<Scalars['String']['output']>;
|
|
@@ -697,6 +696,7 @@ type Property = {
|
|
|
697
696
|
tradingName?: Maybe<Scalars['String']['output']>;
|
|
698
697
|
transportsSurroundings?: Maybe<Scalars['String']['output']>;
|
|
699
698
|
view?: Maybe<PropertyView>;
|
|
699
|
+
virtualVisitUrl?: Maybe<Scalars['String']['output']>;
|
|
700
700
|
wastewaterDisposalSystem?: Maybe<Scalars['String']['output']>;
|
|
701
701
|
};
|
|
702
702
|
type PropertyCondition = 'BRAND_NEW' | 'GOOD' | 'MEDIUM' | 'REALLY_GOOD' | 'REFRESH_NEEDED' | 'RENOVATION_NEEDED';
|
|
@@ -799,6 +799,7 @@ type Surface = {
|
|
|
799
799
|
type Tier = 'TIER_1' | 'TIER_2' | 'TIER_3' | 'TIER_4';
|
|
800
800
|
type User = {
|
|
801
801
|
__typename?: 'User';
|
|
802
|
+
archivedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
802
803
|
cart?: Maybe<Cart>;
|
|
803
804
|
commissionRate: Scalars['Float']['output'];
|
|
804
805
|
commissions: Array<Commission>;
|
package/dist/index.d.ts
CHANGED
|
@@ -45,10 +45,6 @@ type Scalars = {
|
|
|
45
45
|
input: Date;
|
|
46
46
|
output: Date;
|
|
47
47
|
};
|
|
48
|
-
Upload: {
|
|
49
|
-
input: any;
|
|
50
|
-
output: any;
|
|
51
|
-
};
|
|
52
48
|
};
|
|
53
49
|
type Address = {
|
|
54
50
|
__typename?: 'Address';
|
|
@@ -64,13 +60,13 @@ type Address = {
|
|
|
64
60
|
};
|
|
65
61
|
type Advert = {
|
|
66
62
|
__typename?: 'Advert';
|
|
67
|
-
adUrl
|
|
63
|
+
adUrl?: Maybe<Scalars['String']['output']>;
|
|
68
64
|
createdAt: Scalars['DateTime']['output'];
|
|
69
65
|
description: Scalars['String']['output'];
|
|
70
66
|
id: Scalars['String']['output'];
|
|
71
|
-
isPublished: Scalars['Boolean']['output'];
|
|
72
67
|
property: Property;
|
|
73
68
|
propertyId: Scalars['String']['output'];
|
|
69
|
+
publishedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
74
70
|
title: Scalars['String']['output'];
|
|
75
71
|
updatedAt: Scalars['DateTime']['output'];
|
|
76
72
|
withdrawnAt?: Maybe<Scalars['DateTime']['output']>;
|
|
@@ -402,10 +398,11 @@ type CustomerFeedback = {
|
|
|
402
398
|
__typename?: 'CustomerFeedback';
|
|
403
399
|
comment: Scalars['String']['output'];
|
|
404
400
|
createdAt: Scalars['DateTime']['output'];
|
|
405
|
-
|
|
406
|
-
|
|
401
|
+
customerLocation: Scalars['String']['output'];
|
|
402
|
+
customerName: Scalars['String']['output'];
|
|
407
403
|
id: Scalars['ID']['output'];
|
|
408
404
|
isHidden: Scalars['Boolean']['output'];
|
|
405
|
+
isRenovation: Scalars['Boolean']['output'];
|
|
409
406
|
userSlug: Scalars['String']['output'];
|
|
410
407
|
};
|
|
411
408
|
type EnergyScore = 'A' | 'B' | 'C' | 'D' | 'E' | 'F' | 'G';
|
|
@@ -575,6 +572,7 @@ type Profile = {
|
|
|
575
572
|
personalEmail?: Maybe<Scalars['String']['output']>;
|
|
576
573
|
phone?: Maybe<Scalars['String']['output']>;
|
|
577
574
|
pictureUrl?: Maybe<Scalars['String']['output']>;
|
|
575
|
+
pictureUrlNoBg?: Maybe<Scalars['String']['output']>;
|
|
578
576
|
placeOfBirth?: Maybe<Scalars['String']['output']>;
|
|
579
577
|
presentation?: Maybe<Scalars['String']['output']>;
|
|
580
578
|
punchline?: Maybe<Scalars['String']['output']>;
|
|
@@ -632,6 +630,7 @@ type Property = {
|
|
|
632
630
|
hasElevator?: Maybe<Scalars['Boolean']['output']>;
|
|
633
631
|
hasGarden?: Maybe<Scalars['Boolean']['output']>;
|
|
634
632
|
hasHotWater?: Maybe<Scalars['Boolean']['output']>;
|
|
633
|
+
hasOngoingProcedures?: Maybe<Scalars['Boolean']['output']>;
|
|
635
634
|
hasRoofing?: Maybe<Scalars['Boolean']['output']>;
|
|
636
635
|
hasSeparateToilet?: Maybe<Scalars['Boolean']['output']>;
|
|
637
636
|
healthsSurroundings?: Maybe<Scalars['String']['output']>;
|
|
@@ -666,7 +665,7 @@ type Property = {
|
|
|
666
665
|
livingArea?: Maybe<Scalars['Int']['output']>;
|
|
667
666
|
mandates: Array<Mandate>;
|
|
668
667
|
naturalsSurroundings?: Maybe<Scalars['String']['output']>;
|
|
669
|
-
|
|
668
|
+
ongoingProceduresDetails?: Maybe<Scalars['String']['output']>;
|
|
670
669
|
otherServices?: Maybe<Scalars['String']['output']>;
|
|
671
670
|
othersSurroundings?: Maybe<Scalars['String']['output']>;
|
|
672
671
|
outsideServices?: Maybe<Scalars['String']['output']>;
|
|
@@ -697,6 +696,7 @@ type Property = {
|
|
|
697
696
|
tradingName?: Maybe<Scalars['String']['output']>;
|
|
698
697
|
transportsSurroundings?: Maybe<Scalars['String']['output']>;
|
|
699
698
|
view?: Maybe<PropertyView>;
|
|
699
|
+
virtualVisitUrl?: Maybe<Scalars['String']['output']>;
|
|
700
700
|
wastewaterDisposalSystem?: Maybe<Scalars['String']['output']>;
|
|
701
701
|
};
|
|
702
702
|
type PropertyCondition = 'BRAND_NEW' | 'GOOD' | 'MEDIUM' | 'REALLY_GOOD' | 'REFRESH_NEEDED' | 'RENOVATION_NEEDED';
|
|
@@ -799,6 +799,7 @@ type Surface = {
|
|
|
799
799
|
type Tier = 'TIER_1' | 'TIER_2' | 'TIER_3' | 'TIER_4';
|
|
800
800
|
type User = {
|
|
801
801
|
__typename?: 'User';
|
|
802
|
+
archivedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
802
803
|
cart?: Maybe<Cart>;
|
|
803
804
|
commissionRate: Scalars['Float']['output'];
|
|
804
805
|
commissions: Array<Commission>;
|
package/dist/index.js
CHANGED
|
@@ -94,7 +94,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
94
94
|
// src/functions/agency-fees.ts
|
|
95
95
|
var import_currency = __toESM(require("currency.js"));
|
|
96
96
|
var import_lodash = require("lodash");
|
|
97
|
-
var getLowThreshold = (isForPro) => isForPro ? { limit: 5e4, fees: 4950 } : { limit:
|
|
97
|
+
var getLowThreshold = (isForPro) => isForPro ? { limit: 5e4, fees: 4950 } : { limit: 7e4, fees: 7e3 };
|
|
98
98
|
var getFeesPercentage = (price, isForProfessionalUse) => {
|
|
99
99
|
if (isForProfessionalUse) {
|
|
100
100
|
if (price < 5e4) return 0;
|
|
@@ -103,8 +103,8 @@ var getFeesPercentage = (price, isForProfessionalUse) => {
|
|
|
103
103
|
if ((0, import_lodash.inRange)(price, 3e5, 6e5)) return 8;
|
|
104
104
|
return 7;
|
|
105
105
|
}
|
|
106
|
-
if (price <
|
|
107
|
-
if ((0, import_lodash.inRange)(price,
|
|
106
|
+
if (price < 7e4) return 0;
|
|
107
|
+
if ((0, import_lodash.inRange)(price, 7e4, 12e4)) return 10;
|
|
108
108
|
if ((0, import_lodash.inRange)(price, 12e4, 16e4)) return 8.5;
|
|
109
109
|
if ((0, import_lodash.inRange)(price, 16e4, 23e4)) return 7.5;
|
|
110
110
|
if ((0, import_lodash.inRange)(price, 23e4, 32e4)) return 6.5;
|
|
@@ -912,13 +912,22 @@ var featuresFormFields = [
|
|
|
912
912
|
requiredFor: ["DIFFUSION"]
|
|
913
913
|
},
|
|
914
914
|
{
|
|
915
|
-
name: "
|
|
916
|
-
fieldType: "
|
|
915
|
+
name: "hasOngoingProcedures",
|
|
916
|
+
fieldType: "radio-boolean",
|
|
917
917
|
label: "Proc\xE9dure en cours dans la copropri\xE9t\xE9",
|
|
918
918
|
condition: only("isCoOwnership"),
|
|
919
919
|
props: {
|
|
920
|
-
|
|
921
|
-
|
|
920
|
+
tooltip: "Cocher si le bien fait l'objet d'une proc\xE9dure actuellement."
|
|
921
|
+
},
|
|
922
|
+
requiredFor: []
|
|
923
|
+
},
|
|
924
|
+
{
|
|
925
|
+
name: "ongoingProceduresDetails",
|
|
926
|
+
fieldType: "text",
|
|
927
|
+
label: "Si oui, d\xE9tails de la proc\xE9dure en cours",
|
|
928
|
+
condition: only("isCoOwnership"),
|
|
929
|
+
props: {
|
|
930
|
+
placeholder: "D\xE9crivez la proc\xE9dure en cours"
|
|
922
931
|
},
|
|
923
932
|
requiredFor: []
|
|
924
933
|
},
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/functions/agency-fees.ts
|
|
2
2
|
import currency from "currency.js";
|
|
3
3
|
import { inRange } from "lodash";
|
|
4
|
-
var getLowThreshold = (isForPro) => isForPro ? { limit: 5e4, fees: 4950 } : { limit:
|
|
4
|
+
var getLowThreshold = (isForPro) => isForPro ? { limit: 5e4, fees: 4950 } : { limit: 7e4, fees: 7e3 };
|
|
5
5
|
var getFeesPercentage = (price, isForProfessionalUse) => {
|
|
6
6
|
if (isForProfessionalUse) {
|
|
7
7
|
if (price < 5e4) return 0;
|
|
@@ -10,8 +10,8 @@ var getFeesPercentage = (price, isForProfessionalUse) => {
|
|
|
10
10
|
if (inRange(price, 3e5, 6e5)) return 8;
|
|
11
11
|
return 7;
|
|
12
12
|
}
|
|
13
|
-
if (price <
|
|
14
|
-
if (inRange(price,
|
|
13
|
+
if (price < 7e4) return 0;
|
|
14
|
+
if (inRange(price, 7e4, 12e4)) return 10;
|
|
15
15
|
if (inRange(price, 12e4, 16e4)) return 8.5;
|
|
16
16
|
if (inRange(price, 16e4, 23e4)) return 7.5;
|
|
17
17
|
if (inRange(price, 23e4, 32e4)) return 6.5;
|
|
@@ -819,13 +819,22 @@ var featuresFormFields = [
|
|
|
819
819
|
requiredFor: ["DIFFUSION"]
|
|
820
820
|
},
|
|
821
821
|
{
|
|
822
|
-
name: "
|
|
823
|
-
fieldType: "
|
|
822
|
+
name: "hasOngoingProcedures",
|
|
823
|
+
fieldType: "radio-boolean",
|
|
824
824
|
label: "Proc\xE9dure en cours dans la copropri\xE9t\xE9",
|
|
825
825
|
condition: only("isCoOwnership"),
|
|
826
826
|
props: {
|
|
827
|
-
|
|
828
|
-
|
|
827
|
+
tooltip: "Cocher si le bien fait l'objet d'une proc\xE9dure actuellement."
|
|
828
|
+
},
|
|
829
|
+
requiredFor: []
|
|
830
|
+
},
|
|
831
|
+
{
|
|
832
|
+
name: "ongoingProceduresDetails",
|
|
833
|
+
fieldType: "text",
|
|
834
|
+
label: "Si oui, d\xE9tails de la proc\xE9dure en cours",
|
|
835
|
+
condition: only("isCoOwnership"),
|
|
836
|
+
props: {
|
|
837
|
+
placeholder: "D\xE9crivez la proc\xE9dure en cours"
|
|
829
838
|
},
|
|
830
839
|
requiredFor: []
|
|
831
840
|
},
|