ecotransac-shared-js 1.1.58 → 1.1.60
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 +15 -17
- package/dist/index.d.ts +15 -17
- package/dist/index.js +9 -43
- package/dist/index.mjs +9 -42
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -287,7 +287,6 @@ type Contact = {
|
|
|
287
287
|
isInterestedBuyer: Scalars['Boolean']['output'];
|
|
288
288
|
isLegalEntity: Scalars['Boolean']['output'];
|
|
289
289
|
kycDocumentNumber?: Maybe<Scalars['String']['output']>;
|
|
290
|
-
kycDocumentType?: Maybe<IdentificationDocument>;
|
|
291
290
|
kycExpiresAt?: Maybe<Scalars['DateTime']['output']>;
|
|
292
291
|
kycIssuedBy?: Maybe<Scalars['String']['output']>;
|
|
293
292
|
lastName: Scalars['String']['output'];
|
|
@@ -323,7 +322,6 @@ type EnergyScore = 'A' | 'B' | 'C' | 'D' | 'E' | 'F' | 'G';
|
|
|
323
322
|
type EstateCondition = 'NEW_PROPERTY' | 'OLD_PROPERTY';
|
|
324
323
|
type Gender = 'FEMALE' | 'MALE';
|
|
325
324
|
type HeatingEnergy = 'ELECTRICITY' | 'FUEL' | 'GAS' | 'GEOTHERMIE' | 'OTHER' | 'WOOD';
|
|
326
|
-
type IdentificationDocument = 'DRIVER_LICENSE' | 'NATIONAL_ID_CARD' | 'PASSPORT' | 'RESIDENCE_CARD_CERTIFICATE' | 'RESIDENCE_PERMIT';
|
|
327
325
|
type InsulationLevel = 'AVERAGE' | 'GOOD' | 'POOR';
|
|
328
326
|
type KitchenType = 'AMERICAN_EQUIPPED' | 'EQUIPPED' | 'INDUSTRIAL' | 'KITCHENETTE' | 'NONE' | 'SEPARATED' | 'SEPARATE_EQUIPPED';
|
|
329
327
|
type LeaseEstablishment = 'NOTARY_DEED' | 'PRIVATE_DEED';
|
|
@@ -337,7 +335,7 @@ type LegalNatureOfProperty =
|
|
|
337
335
|
| 'FULL_OWNERSHIP'
|
|
338
336
|
/** Usufruitier */
|
|
339
337
|
| 'USUFRUCTUARY';
|
|
340
|
-
type LegalStatus = 'EI' | 'EURL' | 'SA' | 'SARL' | 'SAS' | 'SASU' | '
|
|
338
|
+
type LegalStatus = 'EI' | 'EURL' | 'SA' | 'SARL' | 'SAS' | 'SASU' | 'SCI' | 'SCS' | 'SNC';
|
|
341
339
|
type Lesson = {
|
|
342
340
|
__typename?: 'Lesson';
|
|
343
341
|
chapters: Array<Chapter>;
|
|
@@ -362,36 +360,37 @@ type LightingType = 'CLASSIC' | 'LOW_CONSUMPTION' | 'MIXED';
|
|
|
362
360
|
type Mandate = {
|
|
363
361
|
__typename?: 'Mandate';
|
|
364
362
|
agencyFeePercentage?: Maybe<Scalars['Float']['output']>;
|
|
365
|
-
agencyFees
|
|
363
|
+
agencyFees: Scalars['Float']['output'];
|
|
366
364
|
agent: User;
|
|
367
365
|
agentId: Scalars['String']['output'];
|
|
368
|
-
agentRemuneration
|
|
366
|
+
agentRemuneration: Scalars['Float']['output'];
|
|
369
367
|
attachment: Attachment;
|
|
370
368
|
attachmentId: Scalars['String']['output'];
|
|
371
369
|
businessAssetsPrice?: Maybe<Scalars['Float']['output']>;
|
|
372
370
|
cancelledAt?: Maybe<Scalars['DateTime']['output']>;
|
|
373
371
|
createdAt: Scalars['DateTime']['output'];
|
|
374
|
-
displayedPrice
|
|
372
|
+
displayedPrice: Scalars['Float']['output'];
|
|
375
373
|
exclusivity: MandateExclusivity;
|
|
376
|
-
expirationDate
|
|
377
|
-
id: Scalars['ID']['output'];
|
|
374
|
+
expirationDate?: Maybe<Scalars['DateTime']['output']>;
|
|
378
375
|
isActive: Scalars['Boolean']['output'];
|
|
379
376
|
isBusinessAssetsTransfer?: Maybe<Scalars['Boolean']['output']>;
|
|
380
377
|
isCommercialWallsSale?: Maybe<Scalars['Boolean']['output']>;
|
|
381
|
-
isExclusive
|
|
378
|
+
isExclusive: Scalars['Boolean']['output'];
|
|
382
379
|
isForProfessionalUse: Scalars['Boolean']['output'];
|
|
383
380
|
isLeaseRightsTransfer?: Maybe<Scalars['Boolean']['output']>;
|
|
384
|
-
isLowPrice
|
|
381
|
+
isLowPrice: Scalars['Boolean']['output'];
|
|
385
382
|
leaseRightsPrice?: Maybe<Scalars['Float']['output']>;
|
|
386
383
|
netOwnerPrice?: Maybe<Scalars['Float']['output']>;
|
|
384
|
+
/** entity ID */
|
|
387
385
|
number: Scalars['Int']['output'];
|
|
388
386
|
property: Property;
|
|
389
387
|
propertyId: Scalars['String']['output'];
|
|
390
388
|
rejectionReason?: Maybe<Scalars['String']['output']>;
|
|
389
|
+
startDate?: Maybe<Scalars['DateTime']['output']>;
|
|
391
390
|
/** Duration in months */
|
|
392
391
|
status: MandateStatus;
|
|
393
|
-
transactionPrice?: Maybe<Scalars['Float']['output']>;
|
|
394
392
|
withdrawalDate?: Maybe<Scalars['DateTime']['output']>;
|
|
393
|
+
withdrawalStartDate?: Maybe<Scalars['DateTime']['output']>;
|
|
395
394
|
};
|
|
396
395
|
type MandateExclusivity = 'EXCLUSIVE' | 'SEMI_EXCLUSIVE' | 'SIMPLE';
|
|
397
396
|
type MandateStatus = 'AWAITING_AGENT_SIGNATURE' | 'AWAITING_OWNER_SIGNATURE' | 'AWAITING_STAFF_VALIDATION' | 'CANCELED' | 'EXPIRED' | 'PROCESSING' | 'REJECTED' | 'WITHDRAWN';
|
|
@@ -455,7 +454,6 @@ type Profile = {
|
|
|
455
454
|
dateOfBirth?: Maybe<Scalars['DateTime']['output']>;
|
|
456
455
|
gender?: Maybe<Gender>;
|
|
457
456
|
kycDocumentNumber?: Maybe<Scalars['String']['output']>;
|
|
458
|
-
kycDocumentType?: Maybe<IdentificationDocument>;
|
|
459
457
|
kycExpiresAt?: Maybe<Scalars['DateTime']['output']>;
|
|
460
458
|
kycIssuedBy?: Maybe<Scalars['String']['output']>;
|
|
461
459
|
legalStatus?: Maybe<LegalStatus>;
|
|
@@ -544,7 +542,6 @@ type Property = {
|
|
|
544
542
|
isIndividualHouse?: Maybe<Scalars['Boolean']['output']>;
|
|
545
543
|
isLeaseRightsTransfer?: Maybe<Scalars['Boolean']['output']>;
|
|
546
544
|
isOccupied?: Maybe<Scalars['Boolean']['output']>;
|
|
547
|
-
isPreparedLand?: Maybe<Scalars['Boolean']['output']>;
|
|
548
545
|
isServiced?: Maybe<Scalars['Boolean']['output']>;
|
|
549
546
|
kitchenType?: Maybe<KitchenType>;
|
|
550
547
|
landArea?: Maybe<Scalars['Int']['output']>;
|
|
@@ -554,6 +551,7 @@ type Property = {
|
|
|
554
551
|
leaseTransfertPermission?: Maybe<LeaseTransfertPermission>;
|
|
555
552
|
leisuresSurroundings?: Maybe<Scalars['String']['output']>;
|
|
556
553
|
livingArea?: Maybe<Scalars['Int']['output']>;
|
|
554
|
+
mandates: Array<Mandate>;
|
|
557
555
|
naturalsSurroundings?: Maybe<Scalars['String']['output']>;
|
|
558
556
|
ongoingProcedures?: Maybe<Scalars['String']['output']>;
|
|
559
557
|
otherServices?: Maybe<Scalars['String']['output']>;
|
|
@@ -569,11 +567,12 @@ type Property = {
|
|
|
569
567
|
propertyLotsCount?: Maybe<Scalars['Int']['output']>;
|
|
570
568
|
propertyLotsIdentifiers?: Maybe<Scalars['String']['output']>;
|
|
571
569
|
propertyTaxPrice?: Maybe<Scalars['Float']['output']>;
|
|
570
|
+
propertyTitleNotaryInfo?: Maybe<Scalars['String']['output']>;
|
|
572
571
|
propertyType: Scalars['String']['output'];
|
|
573
572
|
recommendedWorkCost?: Maybe<Scalars['Float']['output']>;
|
|
574
573
|
reference: Scalars['Int']['output'];
|
|
575
574
|
renovationYear?: Maybe<Scalars['DateTime']['output']>;
|
|
576
|
-
|
|
575
|
+
roomOrApartmentsCount?: Maybe<Scalars['Int']['output']>;
|
|
577
576
|
securityServices?: Maybe<Scalars['String']['output']>;
|
|
578
577
|
shopsSurroundings?: Maybe<Scalars['String']['output']>;
|
|
579
578
|
showerRoomsCount?: Maybe<Scalars['Int']['output']>;
|
|
@@ -763,7 +762,7 @@ declare const formatPhone: (phone?: string | null) => string | null;
|
|
|
763
762
|
declare const formatMandateNumber: (number: number) => string;
|
|
764
763
|
declare const formatRegistrationNumber: (rawNumber?: string | null) => string | null;
|
|
765
764
|
declare const formatAgentLegalData: (profile?: Pick<Profile, "legalStatus" | "registrationNumber" | "registrationPlace"> | null) => string | null;
|
|
766
|
-
declare const getPropertyTitle: (property: Pick<Property, "propertyType" | "
|
|
765
|
+
declare const getPropertyTitle: (property: Pick<Property, "propertyType" | "roomOrApartmentsCount" | "carrezLawArea" | "isForProfessionalUse" | "floorLevel">) => string;
|
|
767
766
|
declare const formatNumber: (number?: number | null) => string;
|
|
768
767
|
|
|
769
768
|
declare const only: (condition: string | Condition) => Condition;
|
|
@@ -797,7 +796,6 @@ declare const MANDATE_EXCLUSIVITY: SelectOption<MandateExclusivity>[];
|
|
|
797
796
|
declare const contactFormFields: Field[];
|
|
798
797
|
|
|
799
798
|
declare const GENDER: SelectOption<Gender>[];
|
|
800
|
-
declare const IDENTIFICATION_DOCUMENTS: SelectOption<IdentificationDocument>[];
|
|
801
799
|
declare const LEGAL_NATURE: SelectOption<LegalNatureOfProperty>[];
|
|
802
800
|
declare const MARITAL_STATUS: SelectOption<MaritalStatus>[];
|
|
803
801
|
declare const PRENUP_TYPES: SelectOption<PrenupType>[];
|
|
@@ -848,4 +846,4 @@ declare const COUNTRIES: SelectOption<string>[];
|
|
|
848
846
|
|
|
849
847
|
declare const LEGAL_STATUS: SelectOption<LegalStatus>[];
|
|
850
848
|
|
|
851
|
-
export { COMPANY_INFO, CONDITIONS, COUNTRIES, type Condition, ESTATE_CONDITION, EXPOSURES, type Field, GENDER, HEATING_ENERGY,
|
|
849
|
+
export { COMPANY_INFO, CONDITIONS, COUNTRIES, type Condition, ESTATE_CONDITION, EXPOSURES, type Field, GENDER, HEATING_ENERGY, 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, formatReference, formatRegistrationNumber, formatSeconds, getAgencyFees, getContactState, getDisplayedPrice, getFeesPercentage, getIsLowPrice, getLabel, getLowThreshold, getNetPrice, getPropertyState, getPropertyTitle, getValue, mandateFormFields, not, only, or, propertyFields, shouldRender, surfacesFormFields, technicalFormFields };
|
package/dist/index.d.ts
CHANGED
|
@@ -287,7 +287,6 @@ type Contact = {
|
|
|
287
287
|
isInterestedBuyer: Scalars['Boolean']['output'];
|
|
288
288
|
isLegalEntity: Scalars['Boolean']['output'];
|
|
289
289
|
kycDocumentNumber?: Maybe<Scalars['String']['output']>;
|
|
290
|
-
kycDocumentType?: Maybe<IdentificationDocument>;
|
|
291
290
|
kycExpiresAt?: Maybe<Scalars['DateTime']['output']>;
|
|
292
291
|
kycIssuedBy?: Maybe<Scalars['String']['output']>;
|
|
293
292
|
lastName: Scalars['String']['output'];
|
|
@@ -323,7 +322,6 @@ type EnergyScore = 'A' | 'B' | 'C' | 'D' | 'E' | 'F' | 'G';
|
|
|
323
322
|
type EstateCondition = 'NEW_PROPERTY' | 'OLD_PROPERTY';
|
|
324
323
|
type Gender = 'FEMALE' | 'MALE';
|
|
325
324
|
type HeatingEnergy = 'ELECTRICITY' | 'FUEL' | 'GAS' | 'GEOTHERMIE' | 'OTHER' | 'WOOD';
|
|
326
|
-
type IdentificationDocument = 'DRIVER_LICENSE' | 'NATIONAL_ID_CARD' | 'PASSPORT' | 'RESIDENCE_CARD_CERTIFICATE' | 'RESIDENCE_PERMIT';
|
|
327
325
|
type InsulationLevel = 'AVERAGE' | 'GOOD' | 'POOR';
|
|
328
326
|
type KitchenType = 'AMERICAN_EQUIPPED' | 'EQUIPPED' | 'INDUSTRIAL' | 'KITCHENETTE' | 'NONE' | 'SEPARATED' | 'SEPARATE_EQUIPPED';
|
|
329
327
|
type LeaseEstablishment = 'NOTARY_DEED' | 'PRIVATE_DEED';
|
|
@@ -337,7 +335,7 @@ type LegalNatureOfProperty =
|
|
|
337
335
|
| 'FULL_OWNERSHIP'
|
|
338
336
|
/** Usufruitier */
|
|
339
337
|
| 'USUFRUCTUARY';
|
|
340
|
-
type LegalStatus = 'EI' | 'EURL' | 'SA' | 'SARL' | 'SAS' | 'SASU' | '
|
|
338
|
+
type LegalStatus = 'EI' | 'EURL' | 'SA' | 'SARL' | 'SAS' | 'SASU' | 'SCI' | 'SCS' | 'SNC';
|
|
341
339
|
type Lesson = {
|
|
342
340
|
__typename?: 'Lesson';
|
|
343
341
|
chapters: Array<Chapter>;
|
|
@@ -362,36 +360,37 @@ type LightingType = 'CLASSIC' | 'LOW_CONSUMPTION' | 'MIXED';
|
|
|
362
360
|
type Mandate = {
|
|
363
361
|
__typename?: 'Mandate';
|
|
364
362
|
agencyFeePercentage?: Maybe<Scalars['Float']['output']>;
|
|
365
|
-
agencyFees
|
|
363
|
+
agencyFees: Scalars['Float']['output'];
|
|
366
364
|
agent: User;
|
|
367
365
|
agentId: Scalars['String']['output'];
|
|
368
|
-
agentRemuneration
|
|
366
|
+
agentRemuneration: Scalars['Float']['output'];
|
|
369
367
|
attachment: Attachment;
|
|
370
368
|
attachmentId: Scalars['String']['output'];
|
|
371
369
|
businessAssetsPrice?: Maybe<Scalars['Float']['output']>;
|
|
372
370
|
cancelledAt?: Maybe<Scalars['DateTime']['output']>;
|
|
373
371
|
createdAt: Scalars['DateTime']['output'];
|
|
374
|
-
displayedPrice
|
|
372
|
+
displayedPrice: Scalars['Float']['output'];
|
|
375
373
|
exclusivity: MandateExclusivity;
|
|
376
|
-
expirationDate
|
|
377
|
-
id: Scalars['ID']['output'];
|
|
374
|
+
expirationDate?: Maybe<Scalars['DateTime']['output']>;
|
|
378
375
|
isActive: Scalars['Boolean']['output'];
|
|
379
376
|
isBusinessAssetsTransfer?: Maybe<Scalars['Boolean']['output']>;
|
|
380
377
|
isCommercialWallsSale?: Maybe<Scalars['Boolean']['output']>;
|
|
381
|
-
isExclusive
|
|
378
|
+
isExclusive: Scalars['Boolean']['output'];
|
|
382
379
|
isForProfessionalUse: Scalars['Boolean']['output'];
|
|
383
380
|
isLeaseRightsTransfer?: Maybe<Scalars['Boolean']['output']>;
|
|
384
|
-
isLowPrice
|
|
381
|
+
isLowPrice: Scalars['Boolean']['output'];
|
|
385
382
|
leaseRightsPrice?: Maybe<Scalars['Float']['output']>;
|
|
386
383
|
netOwnerPrice?: Maybe<Scalars['Float']['output']>;
|
|
384
|
+
/** entity ID */
|
|
387
385
|
number: Scalars['Int']['output'];
|
|
388
386
|
property: Property;
|
|
389
387
|
propertyId: Scalars['String']['output'];
|
|
390
388
|
rejectionReason?: Maybe<Scalars['String']['output']>;
|
|
389
|
+
startDate?: Maybe<Scalars['DateTime']['output']>;
|
|
391
390
|
/** Duration in months */
|
|
392
391
|
status: MandateStatus;
|
|
393
|
-
transactionPrice?: Maybe<Scalars['Float']['output']>;
|
|
394
392
|
withdrawalDate?: Maybe<Scalars['DateTime']['output']>;
|
|
393
|
+
withdrawalStartDate?: Maybe<Scalars['DateTime']['output']>;
|
|
395
394
|
};
|
|
396
395
|
type MandateExclusivity = 'EXCLUSIVE' | 'SEMI_EXCLUSIVE' | 'SIMPLE';
|
|
397
396
|
type MandateStatus = 'AWAITING_AGENT_SIGNATURE' | 'AWAITING_OWNER_SIGNATURE' | 'AWAITING_STAFF_VALIDATION' | 'CANCELED' | 'EXPIRED' | 'PROCESSING' | 'REJECTED' | 'WITHDRAWN';
|
|
@@ -455,7 +454,6 @@ type Profile = {
|
|
|
455
454
|
dateOfBirth?: Maybe<Scalars['DateTime']['output']>;
|
|
456
455
|
gender?: Maybe<Gender>;
|
|
457
456
|
kycDocumentNumber?: Maybe<Scalars['String']['output']>;
|
|
458
|
-
kycDocumentType?: Maybe<IdentificationDocument>;
|
|
459
457
|
kycExpiresAt?: Maybe<Scalars['DateTime']['output']>;
|
|
460
458
|
kycIssuedBy?: Maybe<Scalars['String']['output']>;
|
|
461
459
|
legalStatus?: Maybe<LegalStatus>;
|
|
@@ -544,7 +542,6 @@ type Property = {
|
|
|
544
542
|
isIndividualHouse?: Maybe<Scalars['Boolean']['output']>;
|
|
545
543
|
isLeaseRightsTransfer?: Maybe<Scalars['Boolean']['output']>;
|
|
546
544
|
isOccupied?: Maybe<Scalars['Boolean']['output']>;
|
|
547
|
-
isPreparedLand?: Maybe<Scalars['Boolean']['output']>;
|
|
548
545
|
isServiced?: Maybe<Scalars['Boolean']['output']>;
|
|
549
546
|
kitchenType?: Maybe<KitchenType>;
|
|
550
547
|
landArea?: Maybe<Scalars['Int']['output']>;
|
|
@@ -554,6 +551,7 @@ type Property = {
|
|
|
554
551
|
leaseTransfertPermission?: Maybe<LeaseTransfertPermission>;
|
|
555
552
|
leisuresSurroundings?: Maybe<Scalars['String']['output']>;
|
|
556
553
|
livingArea?: Maybe<Scalars['Int']['output']>;
|
|
554
|
+
mandates: Array<Mandate>;
|
|
557
555
|
naturalsSurroundings?: Maybe<Scalars['String']['output']>;
|
|
558
556
|
ongoingProcedures?: Maybe<Scalars['String']['output']>;
|
|
559
557
|
otherServices?: Maybe<Scalars['String']['output']>;
|
|
@@ -569,11 +567,12 @@ type Property = {
|
|
|
569
567
|
propertyLotsCount?: Maybe<Scalars['Int']['output']>;
|
|
570
568
|
propertyLotsIdentifiers?: Maybe<Scalars['String']['output']>;
|
|
571
569
|
propertyTaxPrice?: Maybe<Scalars['Float']['output']>;
|
|
570
|
+
propertyTitleNotaryInfo?: Maybe<Scalars['String']['output']>;
|
|
572
571
|
propertyType: Scalars['String']['output'];
|
|
573
572
|
recommendedWorkCost?: Maybe<Scalars['Float']['output']>;
|
|
574
573
|
reference: Scalars['Int']['output'];
|
|
575
574
|
renovationYear?: Maybe<Scalars['DateTime']['output']>;
|
|
576
|
-
|
|
575
|
+
roomOrApartmentsCount?: Maybe<Scalars['Int']['output']>;
|
|
577
576
|
securityServices?: Maybe<Scalars['String']['output']>;
|
|
578
577
|
shopsSurroundings?: Maybe<Scalars['String']['output']>;
|
|
579
578
|
showerRoomsCount?: Maybe<Scalars['Int']['output']>;
|
|
@@ -763,7 +762,7 @@ declare const formatPhone: (phone?: string | null) => string | null;
|
|
|
763
762
|
declare const formatMandateNumber: (number: number) => string;
|
|
764
763
|
declare const formatRegistrationNumber: (rawNumber?: string | null) => string | null;
|
|
765
764
|
declare const formatAgentLegalData: (profile?: Pick<Profile, "legalStatus" | "registrationNumber" | "registrationPlace"> | null) => string | null;
|
|
766
|
-
declare const getPropertyTitle: (property: Pick<Property, "propertyType" | "
|
|
765
|
+
declare const getPropertyTitle: (property: Pick<Property, "propertyType" | "roomOrApartmentsCount" | "carrezLawArea" | "isForProfessionalUse" | "floorLevel">) => string;
|
|
767
766
|
declare const formatNumber: (number?: number | null) => string;
|
|
768
767
|
|
|
769
768
|
declare const only: (condition: string | Condition) => Condition;
|
|
@@ -797,7 +796,6 @@ declare const MANDATE_EXCLUSIVITY: SelectOption<MandateExclusivity>[];
|
|
|
797
796
|
declare const contactFormFields: Field[];
|
|
798
797
|
|
|
799
798
|
declare const GENDER: SelectOption<Gender>[];
|
|
800
|
-
declare const IDENTIFICATION_DOCUMENTS: SelectOption<IdentificationDocument>[];
|
|
801
799
|
declare const LEGAL_NATURE: SelectOption<LegalNatureOfProperty>[];
|
|
802
800
|
declare const MARITAL_STATUS: SelectOption<MaritalStatus>[];
|
|
803
801
|
declare const PRENUP_TYPES: SelectOption<PrenupType>[];
|
|
@@ -848,4 +846,4 @@ declare const COUNTRIES: SelectOption<string>[];
|
|
|
848
846
|
|
|
849
847
|
declare const LEGAL_STATUS: SelectOption<LegalStatus>[];
|
|
850
848
|
|
|
851
|
-
export { COMPANY_INFO, CONDITIONS, COUNTRIES, type Condition, ESTATE_CONDITION, EXPOSURES, type Field, GENDER, HEATING_ENERGY,
|
|
849
|
+
export { COMPANY_INFO, CONDITIONS, COUNTRIES, type Condition, ESTATE_CONDITION, EXPOSURES, type Field, GENDER, HEATING_ENERGY, 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, formatReference, formatRegistrationNumber, formatSeconds, getAgencyFees, getContactState, getDisplayedPrice, getFeesPercentage, getIsLowPrice, getLabel, getLowThreshold, getNetPrice, getPropertyState, getPropertyTitle, getValue, mandateFormFields, not, only, or, propertyFields, shouldRender, surfacesFormFields, technicalFormFields };
|
package/dist/index.js
CHANGED
|
@@ -37,7 +37,6 @@ __export(src_exports, {
|
|
|
37
37
|
EXPOSURES: () => EXPOSURES,
|
|
38
38
|
GENDER: () => GENDER,
|
|
39
39
|
HEATING_ENERGY: () => HEATING_ENERGY,
|
|
40
|
-
IDENTIFICATION_DOCUMENTS: () => IDENTIFICATION_DOCUMENTS,
|
|
41
40
|
KITCHEN_TYPE: () => KITCHEN_TYPE,
|
|
42
41
|
LEASE_ESTABLISHMENT: () => LEASE_ESTABLISHMENT,
|
|
43
42
|
LEASE_TRANSFERT_PERMISSIONS: () => LEASE_TRANSFERT_PERMISSIONS,
|
|
@@ -454,7 +453,10 @@ var getPropertyTitle = (property) => {
|
|
|
454
453
|
if (!property) return "";
|
|
455
454
|
const base = `${property.propertyType}${property.isForProfessionalUse ? " professionnel" : ""} \xE0 vendre`;
|
|
456
455
|
const infos = [base];
|
|
457
|
-
if (property.
|
|
456
|
+
if (property.roomOrApartmentsCount)
|
|
457
|
+
infos.push(
|
|
458
|
+
`${property.roomOrApartmentsCount} ${property.propertyType === "Immeuble" ? "appartements" : "pi\xE8ces"}`
|
|
459
|
+
);
|
|
458
460
|
if (property.floorLevel) {
|
|
459
461
|
const floorLabel = property.floorLevel === 1 ? "er" : "\xE8me";
|
|
460
462
|
infos.push(`${property.floorLevel}${floorLabel} \xE9tage`);
|
|
@@ -1037,13 +1039,6 @@ var technicalFormFields = [
|
|
|
1037
1039
|
}
|
|
1038
1040
|
];
|
|
1039
1041
|
var surfacesFormFields = [
|
|
1040
|
-
{
|
|
1041
|
-
name: "apartmentsCount",
|
|
1042
|
-
fieldType: "number",
|
|
1043
|
-
label: "Nombre de sous-logements",
|
|
1044
|
-
condition: only("isBuilding"),
|
|
1045
|
-
requiredFor: ["DIFFUSION"]
|
|
1046
|
-
},
|
|
1047
1042
|
{
|
|
1048
1043
|
name: "livingArea",
|
|
1049
1044
|
fieldType: "number",
|
|
@@ -1115,7 +1110,7 @@ var surfacesFormFields = [
|
|
|
1115
1110
|
requiredFor: ["MANDATE_CREATION", "DIFFUSION"]
|
|
1116
1111
|
},
|
|
1117
1112
|
{
|
|
1118
|
-
name: "
|
|
1113
|
+
name: "roomOrApartmentsCount",
|
|
1119
1114
|
fieldType: "number",
|
|
1120
1115
|
label: "Nombre de pi\xE8ce(s)",
|
|
1121
1116
|
condition: and(
|
|
@@ -1130,7 +1125,7 @@ var surfacesFormFields = [
|
|
|
1130
1125
|
}
|
|
1131
1126
|
},
|
|
1132
1127
|
{
|
|
1133
|
-
name: "
|
|
1128
|
+
name: "roomOrApartmentsCount",
|
|
1134
1129
|
fieldType: "number",
|
|
1135
1130
|
label: "Nombre de pi\xE8ce(s)",
|
|
1136
1131
|
condition: only("isForProfessionalUse"),
|
|
@@ -1140,7 +1135,7 @@ var surfacesFormFields = [
|
|
|
1140
1135
|
}
|
|
1141
1136
|
},
|
|
1142
1137
|
{
|
|
1143
|
-
name: "
|
|
1138
|
+
name: "roomOrApartmentsCount",
|
|
1144
1139
|
fieldType: "number",
|
|
1145
1140
|
label: "Nombre de logement(s)",
|
|
1146
1141
|
condition: only("isBuilding"),
|
|
@@ -1446,7 +1441,7 @@ var LEGAL_STATUS = [
|
|
|
1446
1441
|
{ value: "SA", label: "SA" },
|
|
1447
1442
|
{ value: "SNC", label: "SNC" },
|
|
1448
1443
|
{ value: "SCS", label: "SCS" },
|
|
1449
|
-
{ value: "
|
|
1444
|
+
{ value: "SCI", label: "SCI" }
|
|
1450
1445
|
];
|
|
1451
1446
|
|
|
1452
1447
|
// src/static/contact/select-options.ts
|
|
@@ -1454,28 +1449,6 @@ var GENDER = [
|
|
|
1454
1449
|
{ value: "FEMALE", label: "Madame" },
|
|
1455
1450
|
{ value: "MALE", label: "Monsieur" }
|
|
1456
1451
|
];
|
|
1457
|
-
var IDENTIFICATION_DOCUMENTS = [
|
|
1458
|
-
{
|
|
1459
|
-
value: "NATIONAL_ID_CARD",
|
|
1460
|
-
label: "Carte nationale d\u2019identit\xE9"
|
|
1461
|
-
},
|
|
1462
|
-
{
|
|
1463
|
-
value: "PASSPORT",
|
|
1464
|
-
label: "Passeport"
|
|
1465
|
-
},
|
|
1466
|
-
{
|
|
1467
|
-
value: "DRIVER_LICENSE",
|
|
1468
|
-
label: "Permis de conduire"
|
|
1469
|
-
},
|
|
1470
|
-
{
|
|
1471
|
-
value: "RESIDENCE_PERMIT",
|
|
1472
|
-
label: "Carte de s\xE9jour"
|
|
1473
|
-
},
|
|
1474
|
-
{
|
|
1475
|
-
value: "RESIDENCE_CARD_CERTIFICATE",
|
|
1476
|
-
label: "Carte ou certificat de r\xE9sidence"
|
|
1477
|
-
}
|
|
1478
|
-
];
|
|
1479
1452
|
var LEGAL_NATURE = [
|
|
1480
1453
|
{ value: "FULL_OWNERSHIP", label: "Pleine propri\xE9t\xE9" },
|
|
1481
1454
|
{ value: "USUFRUCTUARY", label: "Usufruitier" },
|
|
@@ -1639,16 +1612,10 @@ var contactFormFields = [
|
|
|
1639
1612
|
fieldType: "address",
|
|
1640
1613
|
label: "Adresse postale"
|
|
1641
1614
|
},
|
|
1642
|
-
{
|
|
1643
|
-
name: "kycDocumentType",
|
|
1644
|
-
fieldType: "select",
|
|
1645
|
-
label: "Type de document d'identit\xE9",
|
|
1646
|
-
props: { options: IDENTIFICATION_DOCUMENTS }
|
|
1647
|
-
},
|
|
1648
1615
|
{
|
|
1649
1616
|
name: "kycDocumentNumber",
|
|
1650
1617
|
fieldType: "text",
|
|
1651
|
-
label: "Num\xE9ro du document"
|
|
1618
|
+
label: "Num\xE9ro du document d\u2019identit\xE9"
|
|
1652
1619
|
},
|
|
1653
1620
|
{
|
|
1654
1621
|
name: "kycIssuedBy",
|
|
@@ -1716,7 +1683,6 @@ var COMPANY_INFO = {
|
|
|
1716
1683
|
EXPOSURES,
|
|
1717
1684
|
GENDER,
|
|
1718
1685
|
HEATING_ENERGY,
|
|
1719
|
-
IDENTIFICATION_DOCUMENTS,
|
|
1720
1686
|
KITCHEN_TYPE,
|
|
1721
1687
|
LEASE_ESTABLISHMENT,
|
|
1722
1688
|
LEASE_TRANSFERT_PERMISSIONS,
|
package/dist/index.mjs
CHANGED
|
@@ -368,7 +368,10 @@ var getPropertyTitle = (property) => {
|
|
|
368
368
|
if (!property) return "";
|
|
369
369
|
const base = `${property.propertyType}${property.isForProfessionalUse ? " professionnel" : ""} \xE0 vendre`;
|
|
370
370
|
const infos = [base];
|
|
371
|
-
if (property.
|
|
371
|
+
if (property.roomOrApartmentsCount)
|
|
372
|
+
infos.push(
|
|
373
|
+
`${property.roomOrApartmentsCount} ${property.propertyType === "Immeuble" ? "appartements" : "pi\xE8ces"}`
|
|
374
|
+
);
|
|
372
375
|
if (property.floorLevel) {
|
|
373
376
|
const floorLabel = property.floorLevel === 1 ? "er" : "\xE8me";
|
|
374
377
|
infos.push(`${property.floorLevel}${floorLabel} \xE9tage`);
|
|
@@ -951,13 +954,6 @@ var technicalFormFields = [
|
|
|
951
954
|
}
|
|
952
955
|
];
|
|
953
956
|
var surfacesFormFields = [
|
|
954
|
-
{
|
|
955
|
-
name: "apartmentsCount",
|
|
956
|
-
fieldType: "number",
|
|
957
|
-
label: "Nombre de sous-logements",
|
|
958
|
-
condition: only("isBuilding"),
|
|
959
|
-
requiredFor: ["DIFFUSION"]
|
|
960
|
-
},
|
|
961
957
|
{
|
|
962
958
|
name: "livingArea",
|
|
963
959
|
fieldType: "number",
|
|
@@ -1029,7 +1025,7 @@ var surfacesFormFields = [
|
|
|
1029
1025
|
requiredFor: ["MANDATE_CREATION", "DIFFUSION"]
|
|
1030
1026
|
},
|
|
1031
1027
|
{
|
|
1032
|
-
name: "
|
|
1028
|
+
name: "roomOrApartmentsCount",
|
|
1033
1029
|
fieldType: "number",
|
|
1034
1030
|
label: "Nombre de pi\xE8ce(s)",
|
|
1035
1031
|
condition: and(
|
|
@@ -1044,7 +1040,7 @@ var surfacesFormFields = [
|
|
|
1044
1040
|
}
|
|
1045
1041
|
},
|
|
1046
1042
|
{
|
|
1047
|
-
name: "
|
|
1043
|
+
name: "roomOrApartmentsCount",
|
|
1048
1044
|
fieldType: "number",
|
|
1049
1045
|
label: "Nombre de pi\xE8ce(s)",
|
|
1050
1046
|
condition: only("isForProfessionalUse"),
|
|
@@ -1054,7 +1050,7 @@ var surfacesFormFields = [
|
|
|
1054
1050
|
}
|
|
1055
1051
|
},
|
|
1056
1052
|
{
|
|
1057
|
-
name: "
|
|
1053
|
+
name: "roomOrApartmentsCount",
|
|
1058
1054
|
fieldType: "number",
|
|
1059
1055
|
label: "Nombre de logement(s)",
|
|
1060
1056
|
condition: only("isBuilding"),
|
|
@@ -1360,7 +1356,7 @@ var LEGAL_STATUS = [
|
|
|
1360
1356
|
{ value: "SA", label: "SA" },
|
|
1361
1357
|
{ value: "SNC", label: "SNC" },
|
|
1362
1358
|
{ value: "SCS", label: "SCS" },
|
|
1363
|
-
{ value: "
|
|
1359
|
+
{ value: "SCI", label: "SCI" }
|
|
1364
1360
|
];
|
|
1365
1361
|
|
|
1366
1362
|
// src/static/contact/select-options.ts
|
|
@@ -1368,28 +1364,6 @@ var GENDER = [
|
|
|
1368
1364
|
{ value: "FEMALE", label: "Madame" },
|
|
1369
1365
|
{ value: "MALE", label: "Monsieur" }
|
|
1370
1366
|
];
|
|
1371
|
-
var IDENTIFICATION_DOCUMENTS = [
|
|
1372
|
-
{
|
|
1373
|
-
value: "NATIONAL_ID_CARD",
|
|
1374
|
-
label: "Carte nationale d\u2019identit\xE9"
|
|
1375
|
-
},
|
|
1376
|
-
{
|
|
1377
|
-
value: "PASSPORT",
|
|
1378
|
-
label: "Passeport"
|
|
1379
|
-
},
|
|
1380
|
-
{
|
|
1381
|
-
value: "DRIVER_LICENSE",
|
|
1382
|
-
label: "Permis de conduire"
|
|
1383
|
-
},
|
|
1384
|
-
{
|
|
1385
|
-
value: "RESIDENCE_PERMIT",
|
|
1386
|
-
label: "Carte de s\xE9jour"
|
|
1387
|
-
},
|
|
1388
|
-
{
|
|
1389
|
-
value: "RESIDENCE_CARD_CERTIFICATE",
|
|
1390
|
-
label: "Carte ou certificat de r\xE9sidence"
|
|
1391
|
-
}
|
|
1392
|
-
];
|
|
1393
1367
|
var LEGAL_NATURE = [
|
|
1394
1368
|
{ value: "FULL_OWNERSHIP", label: "Pleine propri\xE9t\xE9" },
|
|
1395
1369
|
{ value: "USUFRUCTUARY", label: "Usufruitier" },
|
|
@@ -1553,16 +1527,10 @@ var contactFormFields = [
|
|
|
1553
1527
|
fieldType: "address",
|
|
1554
1528
|
label: "Adresse postale"
|
|
1555
1529
|
},
|
|
1556
|
-
{
|
|
1557
|
-
name: "kycDocumentType",
|
|
1558
|
-
fieldType: "select",
|
|
1559
|
-
label: "Type de document d'identit\xE9",
|
|
1560
|
-
props: { options: IDENTIFICATION_DOCUMENTS }
|
|
1561
|
-
},
|
|
1562
1530
|
{
|
|
1563
1531
|
name: "kycDocumentNumber",
|
|
1564
1532
|
fieldType: "text",
|
|
1565
|
-
label: "Num\xE9ro du document"
|
|
1533
|
+
label: "Num\xE9ro du document d\u2019identit\xE9"
|
|
1566
1534
|
},
|
|
1567
1535
|
{
|
|
1568
1536
|
name: "kycIssuedBy",
|
|
@@ -1629,7 +1597,6 @@ export {
|
|
|
1629
1597
|
EXPOSURES,
|
|
1630
1598
|
GENDER,
|
|
1631
1599
|
HEATING_ENERGY,
|
|
1632
|
-
IDENTIFICATION_DOCUMENTS,
|
|
1633
1600
|
KITCHEN_TYPE,
|
|
1634
1601
|
LEASE_ESTABLISHMENT,
|
|
1635
1602
|
LEASE_TRANSFERT_PERMISSIONS,
|